Guys,
In my AIX 6.1 box the rootvg was on hdisk2, I tried to migrated it to hdisk0
Added hisk0 to rootvg , mirrored rootvg and changed bootlist and and sucessfully rebooted from hdisk0
Now I tried to remove the hdisk2 from rootvg so breaked mirror
-bash-3.00# unmirrorvg rootvg hdisk2
0516-1246 rmlvcopy: If hd5 is the boot logical volume, please run 'chpv -c <diskname>'
as root user to clear the boot record and avoid a potential boot
off an old boot image that may reside on the disk from which this
logical volume is moved/removed.
0516-1804 chvg: The quorum change takes effect immediately.
0516-1144 unmirrorvg: rootvg successfully unmirrored, user should perform
bosboot of system to reinitialize boot records. Then, user must modify
bootlist to just include: hdisk0.
-bash-3.00# bootinfo -b
hdisk0
-bash-3.00# chpv -c hdisk2
-bash-3.00# reducevg rootvg hdisk2
-bash-3.00# lspv
hdisk0 0005f8b2b7e6a0f7 rootvg active
hdisk1 0005f8b29b394a29 datavg active
hdisk2 0005f8b223e256a9 rootvg active
even after reducing the VG the hdisk2 still reflects in rootvg
Later I found that the Hdisk contained the sysdumplv
-bash-3.00# lspv -l hdisk2
hdisk2:
LV NAME LPs PPs DISTRIBUTION MOUNT POINT
lg_dumplv 12 12 00..12..00..00..00 N/A
I manually migrated the dumplv to hdisk0 and then removed the hdisk2 from rootvg sucessfully
-bash-3.00# reducevg rootvg hdisk2
-bash-3.00# lspv
hdisk0 0005f8b2b7e6a0f7 rootvg active
hdisk1 0005f8b29b394a29 datavg active
hdisk2 0005f8b223e256a9 None
I wonder why the mirroring didn't happened for the dumplv when i used mirrorvg rootvg as i saw the following before fixing the issue where the DUMP lv is not mirrored by mirrorvg command where rest all LV's got mirrored.
-bash-3.00# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 2 2 closed/syncd N/A
hd6 paging 2 4 2 open/syncd N/A
hd8 jfs2log 1 2 2 open/syncd N/A
hd4 jfs2 20 40 2 open/syncd /
hd2 jfs2 20 40 2 open/syncd /usr
hd9var jfs2 20 40 2 open/syncd /var
hd3 jfs2 20 40 2 open/syncd /tmp
hd1 jfs2 20 40 2 open/syncd /home
hd10opt jfs2 20 40 2 open/syncd /opt
hd11admin jfs2 1 2 2 open/syncd /admin
lg_dumplv sysdump 12 12 1 open/syncd N/A
