Saturday, April 18, 2020

How to change the reserve_policy to no_reserve to the secondary vios?

How to change the reserve_policy to no_reserve to the secondary vios?


On Client:

unmount /fs
varyoff datavg
rmdev -l hdisk2  (We need to set the disk as defined state)


Target VIO server:

lsmap -vadapter vhostX
rmvdev -vtd <vtd_name>
lsdev -dev hdiskX -attr
chdev -dev hdiskX -attr reserve_policy=no_reserve
lsdev -dev hdiskX -attr   (Now the reserve policy set to no_reserve)
mkvdev -vdev hdiskX -vadapter vhostX -dev <vtd_name>

On client:

cfgmgr
lsdev -Cc disk   (hdiskX should back available)
varyonvg datavg
mount /fs