Root VG mirroring In AIX

LVM_mirror

If you do not mirror the root volume group, you have a single point of failure. Always mirror rootvg! I have seen too many unnecessary system rebuilds

because rootvg was not mirrored. Mirroring rootvg is a straightforward process and consists of the following steps, in which we are going to mirror rootvg
to a new disk called hdisk1:
1. Add hdisk1 to the rootvg for mirroring:
# extendvg rootvg hdisk1
2. Use this command if all the rootvg logical volumes were created properly:
# mirrorvg rootvg
3. Or (if a problem was encountered) manually mirror rootvg and do not mirror the dump device (lv00 in example):
# lsvg
# lsvg -l rootvg
# lsvg rootvg
4. Mirror each logical volume:
# for N in $(lsvg -l rootvg | grep syncd | awk ‘{print $1}’ | grep -v lv00)
> do
> echo $N
> mklvcopy $N 2
> done

5. Sync the volume group:
# syncvg -v rootvg
# lsvg -l rootvg

6. Configure the boot devices:
# ipl_varyon -i
PVNAME BOOT DEVICE PVID VOLUME GROUP ID
hdisk0 NO 00001047375ac230 000010472822f021
hdisk1 YES 000010472822e532 000010472822f021

# bosboot -a -d /dev/hdisk0
bosboot: Boot image is 6955 512 byte blocks.

# ipl_varyon -i
PVNAME BOOT DEVICE PVID VOLUME GROUP ID
hdisk0 YES 00001047375ac230 000010472822f021
hdisk1 YES 000010472822e532 000010472822f021

# chvg -a’y’ -Q’n’ -x’n’ rootvg
# bootlist -m normal -o
hdisk1
# bootlist -m normal hdisk0 hdisk1
# bootlist -m normal -o
hdisk0
hdisk1
# lsvg rootvg | grep -i QUORUM
OPEN LVs: 14 QUORUM: 1

The mirrorvg command does all of the mklvcopy commands under the covers for you. Since disk quorum was disabled, we must reboot the system for the changes
to take effect.
# shutdown -r now

By:-

Bibhuti Bhusan

Leave a comment