AIX: LUN Was Accidentally Removed and Re-Mapped But Still in Missing State

Within AIX, if a LUN is accidentally removed and then re-mapped the OS will still have the disk labeled as stale or missing. This is fairly simple to fix, but if you don’t know the steps to correct the issue it can be quite frustrating.

In the example below, after the LUN has been re-mapped the disk still appears as missing

$ lsvg -p myvg

myvg:
PV_NAME       PV STATE    TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk1        active         999         0        00..00..00..00..00
hdisk2        missing        999         0        00..00..00..00..00
hdisk2 was the LUN that was accidentally removed. The varyonvg command activates a specified volume group, in this case myvg. This will re-active all available disks:

$ varyonvg myvg

Looking at the state of hdisk2 now
$ lsvg -p myvg

myvg:
PV_NAME       PV STATE    TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk1        active         999         0        00..00..00..00..00
hdisk2        active         999         0        00..00..00..00..00
hdisk2 is now active and everything is back to normal.

Related Articles:


ABOUT US
Seeds of Genius, Inc. offers a full range of IT solutions including hardware and software products in addition to consulting, installation and support services. For more information, please visit our main web site at http://www.seedsofgenius.com or contact our Technical Sales department at (410) 312-9806.