TITLE : Procedure for exchanging a "Hot Swap" mirrored rootvg disk. OS LEVEL : AIX 4.x DATE : 16/06/99 VERSION : 1.1 ---------------------------------------------------------------------------- In the following example, an RS6000 has 3 disks, 2 of which have the AIX filesystems mirrored on. The boolist contains both hdisk0 and hdisk1. There are no other logical volumes in rootvg other than the AIX system logical volumes. hdisk0 has failed and need replacing, both hdisk0 and hdisk1 are in "Hot Swap" carriers and therefore the machine does not need shutting down. lspv hdisk0 00522d5f22e3b29d rootvg hdisk1 00522d5f90e66fd2 rootvg hdisk2 00522df586d454c3 datavg lsvg -l rootvg rootvg: LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT hd6 paging 4 8 2 open/syncd N/A hd5 boot 1 2 2 closed/syncd N/A hd8 jfslog 1 2 2 open/syncd N/A hd4 jfs 1 2 2 open/syncd / hd2 jfs 12 24 2 open/syncd /usr hd9var jfs 1 2 2 open/syncd /var hd3 jfs 2 4 2 open/syncd /tmp hd1 jfs 1 2 2 open/syncd /home 1, Reduce the logical volume copies from both disks to hdisk1 only :- rmlvcopy hd6 1 hdisk0 rmlvcopy hd5 1 hdisk0 rmlvcopy hd8 1 hdisk0 rmlvcopy hd4 1 hdisk0 rmlvcopy hd2 1 hdisk0 rmlvcopy hd9var 1 hdisk0 rmlvcopy hd3 1 hdisk0 rmlvcopy hd1 1 hdisk0 2, Check that no logical volumes are left on hdisk0 :- lspv -p hdisk0 hdisk0: PP RANGE STATE REGION LV ID TYPE MOUNT POINT 1-101 free outer edge 102-201 free outer middle 202-301 free center 302-401 free inner middle 402-501 free inner edge 3, Remove the volume group from hdisk0 reducevg -df rootvg hdisk0 4, Recreate the boot logical volume on hdisk1, and reset bootlist:- bosboot -a -d /dev/hdisk1 bootlist -m normal rmt0 cd0 hdisk1 5, Check that everything has been removed from hdisk0 :- lspv hdisk0 00522d5f22e3b29d None hdisk1 00522d5f90e66fd2 rootvg hdisk2 00522df586d454c3 datavg 6, Delete hdisk0 :- rmdev -l hdisk0 -d 7, Remove the failed hard drive and replace with a new hard drive. 8, Configure the new disk drive :- cfgmgr 9, Check new hard drive is present :- lspv 10, Include the new hdisk in root volume group :- extendvg rootvg hdisk? (where hdisk? is the new hard disk) 11, Re-create the mirror :- mirrorvg rootvg hdisk? (where hdisk? is the new hard disk) 12, Syncronise the mirror :- syncvg -v rootvg 13, Reset the bootlist :- bootlist -m normal rmt0 cd0 hdisk0 hdisk1 14, Turn off Quorum checking on rootvg :- chvg -Q n rootvg