Note: This requires that you know the number of levels of
subdirectories.
C.6 Disk Failure -- rootvg
Scenario: System has four disks in the rootvg. LVs hd1, hd2, hd3, hd4 hd6 and
hd6 are on hdisk0. The LV hd9var is on hdisk1. Other user LVs are 1, on
hdisk1, hdisk2 and hdisk3. hdisk1 and hdisk2 fail, system now boots ot to 552
(cannot varyon the rootvg due to lack of quorum).
Boot from diskette, choose option 4, Start a limited function maintenance
shell:
# getrootfs hdisk0
0516-052 varyonvg: Volume group cannot be varied on without a
quorum. More physical volumes in the group must be active
Run diagnostics on inactive PVs.
0516-780 importvg: Unable to import volume group from hdisk0.
getrootfs does not do an importvg -f
Change getrootfs -- From maintenance shell:
# importvg -fy rootvg hdisk0
PV Status: hdisk0 000005960941e8c2 PVACTIVE
hdisk1 0000175005450a7f NONAME
hdisk2 00000330ecb0948f NONAME
hdisk4 0000188edb0944dd PVACTIVE
varyonvg: Volume group rootvg is varied on
0516-510 updatevg: Physical volume not found for physical volume
identifier 0000175005450a7f.
0516-510 updatevg: Physical volume not found for physical volume
identifier 00000330ecb0948f.
0516-548 synclvodm: Partially successful with updating volume
group rootvg.
0516-782 importvg Partially successful importing of hdisk0 and hdisk4.
# varyonvg -fn rootvg
PV Status: hdisk0 000005960941e8c2 PVACTIVE
hdisk1 0000175005450a7f NONAME
hdisk2 00000330ecb0948f NONAME
hdisk4 0000188edb0944dd PVACTIVE
varyonvg: Volume group rootvg is varied on.
Now to change the getrootfs script from importvg -y rootvg $disk to
importvg -fy rootvg $disk.
1. Copy the required commands to the root file system:
# fsck /dev/hd2
# fsck /dev/hd4
# mount /dev/hd4 /mnt
# mount /dev/hd2 /mnt/usr
# cd /mnt/usr/bin
# cp sed /mnt/mysed
# cp chmod /mnt/mychmod (Dont copy to /mnt/sed & /mnt/chmod)
# sync; sync
2. Reboot to maintenance mode:
352 AIX Storage Management

Get AIX Storage Management now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.