1833268 Members
2857 Online
110051 Solutions
New Discussion

LVM HP-UX/Mirroring

 
SOLVED
Go to solution
P.V.Ramesh
Advisor

LVM HP-UX/Mirroring

Hi

I am facing a problem in disk mirroring. I have done mirroring of root disk. I want set root,boot,swap and dumpt device.

I received the following error
lvlnboot -r /dev/vg00/lvol3
lvlnboot: Physical Volume "/dev/dsk/c0t8d0" on which Logical
Volume "/dev/vg00/lvol3" resides is not a Boot Physical Volume.

Note: - Both original and mirrored disks under group vg00..

Please let me how to set root, boot, swap and dump on the mirrored disk.


6 REPLIES 6
Jeff Schussele
Honored Contributor
Solution

Re: LVM HP-UX/Mirroring

Hi PV,

When you initialized the disk did you use the boot reserve param -B ?

pvcreate -B /dev/rdsk/c0t8d0

Without that param - the boot space will not be reserved.

If you didn't you'll have to go back & start over making sure you use it.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
A. Clay Stephenson
Acclaimed Contributor

Re: LVM HP-UX/Mirroring

When you did your pvcreate on the mirror, did you do a pvcreate -B to create the boot area? If not, you will need to start over.
If it ain't broke, I can fix that.
Sean OB_1
Honored Contributor

Re: LVM HP-UX/Mirroring

This should do what you need:


#pvcreate -B /dev/rdsk/c0t8d0
#mkboot -l /dev/rdsk/c0t8d0
#mkboot -a "hpux ;0)/stand/vmunix" /dev/rdsk/c0t8d0


#vgextend /dev/vg00 /dev/dsk/c0t8d0

then mirror all your lv in rootvg
#lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c0t8d0
#lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c0t8d0



#lvlnboot -r /dev/vg00/lvol1
#lvlnboot -s /dev/vg00/lvol2
#vgcfgbackup vg00
Rodney Hills
Honored Contributor

Re: LVM HP-UX/Mirroring

When you use pvcreate, be sure to use -B option to define it as a bootable disk.

Here is a sample script I use to create my mirror root disk.

# 1) Create LVM disk (bootable)
pvcreate -B -f /dev/rdsk/c0t6d0
# 2) Add boot utilities to new disk
mkboot /dev/rdsk/c0t6d0
# 3) Put AUTO file into new LIF area
mkboot -a "hpux (;0)/stand/vmunix" /dev/rdsk/c0t6d0
# 4) Add disk to vg00
vgextend /dev/vg00 /dev/dsk/c0t6d0
# 5) Mirror /stand logical volume
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c0t6d0
# 6) Mirror swap logical volume
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c0t6d0
# 7) Mirror root logical volume
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c0t6d0
# 8) Mirror /opt /tmp /usr /var /u5
lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c0t6d0
lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c0t6d0
lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c0t6d0
lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/c0t6d0
lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c0t6d0
# 9) Update boot info in regarding mirrors
lvlnboot -r lvol3 /dev/vg00
lvlnboot -b lvol1 /dev/vg00
lvlnboot -s lvol2 /dev/vg00
lvlnboot -d lvol2 /dev/vg00
lvlnboot -R
lvlnboot -v

Hope this helps

-- Rod Hills

There be dragons...
Uday_S_Ankolekar
Honored Contributor

Re: LVM HP-UX/Mirroring

 
Good Luck..
Martin Johnson
Honored Contributor

Re: LVM HP-UX/Mirroring

Did you create the LIF area on the mirror?

HTH
Marty