Operating System - HP-UX
1828720 Members
2359 Online
109984 Solutions
New Discussion

Cannot boot from mirrored root disk

 
Tim Tipple_2
Occasional Contributor

Cannot boot from mirrored root disk

I have followed the instructions in "Mirrored root disks - Common
Misconceptions" as closely as possible but I still cannot get my second disk to
be bootable.

The output from "lvlnboot -v" shows that I am _almost_ there (the boot, root
and swap logical volumes are all mirrored to both disks) but my second disk is
still not listed as a "Boot Disk". See below:

# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t4d0 (8/4.4.0) -- Boot Disk
/dev/dsk/c0t8d0 (8/4.8.0)
Boot: lvol1 on: /dev/dsk/c0t4d0 /dev/dsk/c0t8d0
Root: lvol3 on: /dev/dsk/c0t4d0 /dev/dsk/c0t8d0
Swap: lvol2 on: /dev/dsk/c0t4d0 /dev/dsk/c0t8d0
Dump: lvol2 on: /dev/dsk/c0t4d0, 0


For completeness, here is the output of "setboot" which I believe is as is
should be:

# setboot
Primary bootpath : 8/4.4.0
Alternate bootpath : 8/4.8.0

Autoboot is ON (enabled)
Autosearch is ON (enabled)


Do you have any suggestions as to what I may have forgotton?


4 REPLIES 4
Marcio Duarte_1
Occasional Advisor

Re: Cannot boot from mirrored root disk

These are the steps you have to do, taking c0t8d0 as a mirror disk:
# pvcreate -B /dev/rdsk/c0t8d0
# vgextend /dev/vg00 /dev/dsk/c0t8d0
# mkboot /dev/rdsk/c0t8d0
# mkboot -a "hpux -lq ...
... (0.8.0;0)/stand/vmunix" /dev/rdsk/c0t8d0
# lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c0t8d0
(repeat the step above for all lvols in vg00)
# lvlnboot -r /dev/vg00/lvolX /dev/vg00 (X=root lvol)
# lvlnboot -s /dev/vg00/lvolY /dev/vg00 (Y=swap lvol)
# lvlnboot -d /dev/vg00/lvolZ /dev/vg00 (Z=dump lvol)
# lvlnboot -b /dev/vg00/lbolW /dev/vg00 (W=boot lvol)
# lvlnboot -v

I hope this helps you !

Regards!

Marcio
Marcio Duarte_1
Occasional Advisor

Re: Cannot boot from mirrored root disk

Maybe you'll have to change step:
# mkboot -a "hpux -lq (0.8.0;0)/... for
# mkboot -a "hpux -lq (4.8.0;0)/...

Marcio
Alan Riggs_1
Regular Advisor

Re: Cannot boot from mirrored root disk

Did you remember to create the physical volume with a bootlif area reserved
(pvcreate -B /dev/rdsk/c?t?d?). If not, you will have nowhere to write the
mkboot information and will have to start the procedure from scratch.
Johannes Imhof
New Member

Re: Cannot boot from mirrored root disk

Hallo Mr Tipple,
did you get an solution for the problem? We also tried to create a mirrored
root disk but it does not work too. I send you our script, it would be very
nice to get help. When you find the mistake in our script, it would be very
nice to send us an answer.

1. pvcreate -B /dev/rdsk/c2t2d0 ### create physical volume for use in LVM
volume group, -B == boot
2. mkboot /dev/rdsk/c2t2d0 ### Place the LIF information on the disk
3. mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c2t2d0 ## disk 2: make sure
that the autoboot string disables the quorum checking
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t2d0 ## disk 1: make sure
that the autoboot string disables the quorum checking

Ausgabe der aktuellen Einstellungen:

# setboot
Primary bootpath : 0/0/1/1.2.0
Alternate bootpath : 0/0/2/0.2.0

Autoboot is ON (enabled)
Autosearch is ON (enabled)

4. SAM => Disk 2 (0/0/2/0.2.0) added to volume group vg00 (ansonsten alles
"default")

5. SAM => Alle logischen Volumes auf 1 Spiegelkopie eingerichtet

6. # lvlnboot -R
Volume Group configuration for /dev/vg00 has been saved in
/etc/lvmconf/vg00.conf
# lvlnboot -v
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: lvol2 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Dump: lvol2 on: /dev/dsk/c1t2d0, 0

Thanks a lot.