1832615 Members
3113 Online
110043 Solutions
New Discussion

Re: Bootable mirror disk

 
SOLVED
Go to solution
Yvonne Butler
Regular Advisor

Bootable mirror disk

I've been trying to get a bootable mirror disk configured but lvlnboot -v is still showing the 2nd disk as not bootable (see below):
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c1t2d0 (0/0/1/1.2.0) -- Boot Disk
/dev/dsk/c2t2d0 (0/0/2/0.2.0)
Boot: lvol1 on: /dev/dsk/c1t2d0
Root: lvol3 on: /dev/dsk/c1t2d0
Swap: lvol9 on: /dev/dsk/c1t2d0
Dump: lvol9 on: /dev/dsk/c1t2d0, 0

I've run the following commands to create the bootable mirror disk, see below:
pvcreate –f –B /dev/rdsk/c2t2d0
mkboot –l /dev/rdsk/c2t2d0
mkboot –a “hpux –lq” /dev/rdsk/c2t2d0
vgextend /dev/vg00 /dev/dsk/c2t2d0
lvextend –m 1 /dev/vg00/lvol1 /dev/dsk/c2t2d0
lvextend –m 1 /dev/vg00/lvol2 /dev/dsk/c2t2d0
lvextend –m 1 /dev/vg00/lvol3 /dev/dsk/c2t2d0
lvextend –m 1 /dev/vg00/lvol4 /dev/dsk/c2t2d0
lvextend –m 1 /dev/vg00/lvol5 /dev/dsk/c2t2d0
lvextend –m 1 /dev/vg00/lvol6 /dev/dsk/c2t2d0
lvextend –m 1 /dev/vg00/lvol7 /dev/dsk/c2t2d0
lvextend –m 1 /dev/vg00/lvol8 /dev/dsk/c2t2d0
lvextend –m 1 /dev/vg00/lvol9 /dev/dsk/c2t2d0 lvextend –m 1 /dev/vg00/lvol10 /dev/dsk/c2t2d0
lvlnboot -R
setboot -p 0/0/1/1.2.0
setboot -a 0/0/2/0.2.0
lvlnboot –v

Still the 2nd disk isn't bootable according to lvlnboot -v.
6 REPLIES 6
Robert-Jan Goossens
Honored Contributor
Solution

Re: Bootable mirror disk

Hello Yvonne,

It is a bit diffecult reading the above output.

check this doc for the steps.

How to create a Mirrored Boot Disk on PA-RISC Systems - Cookbook

Europe
http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000073345589

US
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000073345589

Best regards,
Robert-Jan
Michael Duthie
Trusted Contributor

Re: Bootable mirror disk

Try the following -
lvlnboot -r /dev/vg00/lvol3 /dev/vg00
lvlnboot -b /dev/vg00/lvol1 /dev/vg00
lvlnboot -s /dev/vg00/lvol2 /dev/vg00
lvlnboot -d /dev/vg00/lvol2 /dev/vg00
lvlnboot -R
lvlnboot -v

Mike
Yvonne Butler
Regular Advisor

Re: Bootable mirror disk

I've looked at the cookbook and it doesn't give me anything I haven't already tried.

As for Michael's suggestions, I've tried these commands but lvlnboot -v still doesn't show the 2nd disk (c2t2d0) as bootable.

The results of lvlnboot -v is:

Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c1t2d0 (0/0/1/1.2.0) -- Boot Disk
/dev/dsk/c2t2d0 (0/0/2/0.2.0)
Boot: lvol1 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Root: lvol3 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Swap: lvol9 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Dump: lvol9 on: /dev/dsk/c1t2d0, 0
Sunil Sharma_1
Honored Contributor

Re: Bootable mirror disk

Hi,

You forget to do lvlnboot for all volumes

lvlnboot -r (root lvol path)
lvlnboot -b (boot lvol path)
lvlnboot -s (swap lvol path)
lvlnboot -d (dump lvol path)

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Yvonne Butler
Regular Advisor

Re: Bootable mirror disk

Its ok everyone, I've found the problem... The disk had already been in the lvmtab and was already mirrored but wasn't bootable. I've therefore started again basically by taking the mirrors off, removing the disk from lvmtab and starting over. Straight away after running everything up to mkboot -a "hpux -lq" etc... the 2nd disk appears as bootable in lvlnboot -v.

Thanks everyone, it was the cookbook that got me thinking on the right tracks...
Andrew Rutter
Honored Contributor

Re: Bootable mirror disk

do you have mirrordisc/ux installed correctly?

Andy