How to change the status of a disk from ‘removed’ to ‘active’
The status of a Volume Group disk may be seen by:
$ lsvg -p VolumeGroupName
where the VolumeGroupName is the Volume Group in question.
Example of viewing a disks in uservg volume group:
# lsvg -p uservg
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk6 removed 639 238 128..00..00..00..110
hdisk7 active 639 639 128..128..127..128..128
The status of a disk will be shows on the ‘PV STATE’
If a disk has a status of ‘removed’, you may not be able to mount file systems that exist on the
disk in question:
# mount /home/user1/userfs
mount: 0506-324 Cannot mount /dev/userlv1 on /home/user1/userfs: There is an input or output error.
Changing the status of a disk to active:
chpv -va hdisk#
where hdisk# is the disk in question.
Example of changing hdisk6 to active state in the uservg volume group:
# chpv -va hdisk6
NOTE: You may have to run varyonvg uservg to get the volume group to re-probe for the disk and recognize its state has changed.