1753851 Members
9416 Online
108808 Solutions
New Discussion юеВ

Mirror

 
SOLVED
Go to solution
Scott D. Allen
Regular Advisor

Mirror

I just added a new disk to my system and want to mirror all my lvols in my vg00 volume group. They are not currently mirrored (as i only had one disk in vg00 previously) and i don't know what steps to take to mirror these lvols.
I did a pvcreate on the new disk and I'm assuming I should do a vgextend to add the pv to the vg00. then do i do an lvextend or what?

--Scott
"Sometimes the devil you know is better than the devil you don't know."
4 REPLIES 4
Jag_2
Occasional Advisor
Solution

Re: Mirror

1) Pvcreate -B /dev/rdsk/c3t6d0
The -B option is used to create a bootable Physical Volume.

2) Mkboot /dev/rdsk/c3t6d0
Make sure to use the character device file when using mkboot.

3) Mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c3t6d0

4) Vgextend /dev/vg00 /dev/dsk/c3t6d0
This adds the Physical Volume to the root volume group

5)
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c3t6d0
This command extends the mirror to the specified Physical Volume.
*NOTE: The lvextend command has to be done on all logical volumes on the primary disk.
This means that lvextend has to be done on lvol1 -> lvolX. This also includes
/dev/vg00/lvol2, which by default is primary swap. Lvol1 must be the first logical volume Mirrored; if it is not, then you will not be able to boot from the mirror.

6) lvlnboot -r /dev/vg00/lvol3 Specifies the root logical volume.

7) Lvlnboot -s /dev/vg00/lvol2 Specifies the swap logical volume To determine where the swap logical volume is located Use the swapinfo command.

8) Lvlnboot -d /dev/vg00/lvol2
Specifies the dump logical volume

9) lvlnboot -b /dev/vg00/lvol1
Specifies the boot logical volume

10) lvlnboot -R
Recovers any BDRA info

11) lvlnboot -v
Verify boot, root, swap and dump settings.

12) setboot
This will display the Primary and Alternate boot paths that are currently set.

13) setboot -a mirror_disk_hardware_address
Changes the Alternate Boot Path to the path of the Root Mirror.

14) shutdown -r now
Shut down the system and boot from the mirror disk.
Scott D. Allen
Regular Advisor

Re: Mirror

Thanks Jag. I'll give it a try and let you know how it goes!

--Scott
"Sometimes the devil you know is better than the devil you don't know."
CHRIS ANORUO
Honored Contributor

Re: Mirror

Try this link scott.
http://docs.hp.com/dynaweb/hpux10/@Generic__CollectionView?DwebQuery=MirrorDisk%2FUX
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Joao_Choon
New Member

Re: Mirror

Hello,

should we always do the mirror like this ?
why ?

- lvextend -m 1 lvol1 (boot)
- lvextend -m 1 lvol3 (root)
- lvextend -m 1 lvol2 (swap > 2GB)

why should we change the order lvol1, lvol3, lvol2

thanks