Disk is in Removed state in aix, How to fix it?
I have faced the below issue.
"lspv" output shows that the disk is in available state however
"lsvg -p datavg" output shows that the disk is in "Removed" state in the lpar. (disk is virutal disk)
# lspv
hdisk0 0000000012345678 rootvg active
hdisk1 10000BC987654321 datavg active
hdisk2 10000CD999654321 datavg active
# lsvg -p vgname
datavg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk1 active 646 486 130..00..98..129..129
hdisk2 removed 646 486 130..00..98..129..129
#
Executed the below commands to fix the issue.
# varyonvg datavg (It didn't helpful as it saying unable to sync the logical volumes)
# chpv -va hdisk1 ( This brought the disk into available state)
# syncvg -v datavg (Confirmed that all the logical volumes and FS are in open/sync state)