Operating System - HP-UX
1834800 Members
2737 Online
110070 Solutions
New Discussion

Re: HPUX 10.20: Breaking Mirrors Root Volume Group VG00, Re-creating Bootable VG00 Mirror

 
SOLVED
Go to solution
LG Porter
Frequent Advisor

HPUX 10.20: Breaking Mirrors Root Volume Group VG00, Re-creating Bootable VG00 Mirror

I have a K570 running HPUX 10.20 with Mirror Disk/UX. The root volume group is prsently mirror however it's mirror disk is not "bootable". What is the best method for breaking the mirror LVM's and re-creating the mirror disk as bootable? Thanks
4 REPLIES 4
Sandip Ghosh
Honored Contributor
Solution

Re: HPUX 10.20: Breaking Mirrors Root Volume Group VG00, Re-creating Bootable VG00 Mirror

Find out the affected disk.
do a lvreduce -m 0 /dev/vg00/
Then again recreate the root mirror

Sandip
Good Luck!!!
Helen French
Honored Contributor

Re: HPUX 10.20: Breaking Mirrors Root Volume Group VG00, Re-creating Bootable VG00 Mirror

You can remove/break the mirroring with lvreduce -m 0 command. After this, check the output of lvlnboot -v command and check if only the primary disk is present there. Then follow the instructions provided in this document to create a bootable mirrored disk (TKB #LVMKBRC00005103):
http://support1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062910904
Life is a promise, fulfill it!
S.K. Chan
Honored Contributor

Re: HPUX 10.20: Breaking Mirrors Root Volume Group VG00, Re-creating Bootable VG00 Mirror

First to break the mirror.. (say c2t2d0 is your secondary disk)
# lvreduce -m 0 /dev/vg00/lvol1 /dev/dsk/c2t2d0
==> Repeat for all other LVs
# vgreduce vg00 /dev/dsk/c2t2d0
# lvlnboot -v
==> Check to make sure ..

Now the mirroring process..(c1t2d0=primary c2t2d0=secondary)
# swlist -l bundle| grep -i mirror
=> Make sure you have MirrorUX installed
# pvcreate -f -B /dev/rdsk/c2t2d0
# mkboot -l /dev/rdsk/c2t2d0
=> Create boot track (place boot utilities in boot area), -l means treat device as LVM disk.
# mkboot -a "hpux -lq" /dev/rdsk/c2t2d0
=> Add AUTO file in boot LIF area, "lq" option is to bypass quorum check.
=> Repeat for primary disk (c1t2d0) as well.
# lifcp /dev/rdsk/c2t2d0:AUTO -
=> Check content of AUTO file. Repeat for primary disk (c1t2d0).
# vgextend /dev/vg00 /dev/dsk/c2t2d0
=> Adding disk to root VG.
# pvdisplay -v /dev/dsk/c1t2d0
=> Note of the order of LVs (assuming it's lvol1,lvol2,lvol3,lvol4 & lvol5)
# lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t2d0
=> Repeat for lvol2->lvol5
# lvlnboot -r /dev/vg00/lvol4 /dev/vg00
# lvlnboot -b /dev/vg00/lvol1 /dev/vg00
# lvlnboot -s /dev/vg00/lvol2 /dev/vg00
# lvlnboot -d /dev/vg00/lvol2 /dev/vg00
=> Update BDRA (root-lvol4, boot-lvol1, primaryswap-lvol2 and dump-lvol2)
# lvlnboot -v
=> Check to make sure both disks are listed for root, boot and swap definition.
# setboot
=> Display boot path.
# setboot -a 0/0/2/0.2.0
=> Change alternate boot path to mirrored disk.
# shutdown -r -y 0
=> Interrupt upon bootup and select alt path to boot from in order to test.


Anil C. Sedha
Trusted Contributor

Re: HPUX 10.20: Breaking Mirrors Root Volume Group VG00, Re-creating Bootable VG00 Mirror

Hi,

Chan has provided a good descriptive method.

I would suggest you to do the same. Your system will be running with the changes in minutes once you follow the procedure.

Regards,
Anil

Don't forget to assign points to all those above who helped you.
If you need to learn, now is the best opportunity