Operating System - HP-UX
1833776 Members
2241 Online
110063 Solutions
New Discussion

Re: Mirroring boot volumes

 
Raymond Klein
New Member

Mirroring boot volumes

I have recently configured MirrorDisk/UX on and D270 running HPUX 11.00. The requirement was to have a mirror of the boot disk so that the system could continue to work and boot from the alternate disk in the event that the primary disk fails.
I performed the following:
pvcreate -B /dev/rdsk/c2t12d0
vgextend /dev/vg00 /dev/dsk/c2t12d0
mkboot /dev/rdsk/c2t12d0
mkboot -a "hpux -lq" /dev/rdsk/c2t12d0
mkboot -a "hpux -lq" /dev/rdsk/c0t5d0
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t12d0
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c2t12d0
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c2t12d0
lvlnboot -r /dev/vg00/lvol3
lvlnboot -s /dev/vg00/lvol2
lvlnboot -b /dev/vg00/lvol1

NOTE: the primary path is /dev/dsk/c0t5d0 and the secondary path is /dev/dsk/c2t12d0

When I try to boot from the alternate path I get the following error:
Exec failed: cannot find /stand/vmunix or /vmunix

Please can I have some ideas about solving this problem
achtung
8 REPLIES 8
A. Clay Stephenson
Acclaimed Contributor

Re: Mirroring boot volumes

Well, first your boot string is wrong.

Change to
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/dsk/c0t5d0

and

mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/dsk/c2t12d0

The prudent thing would have been to do the mkboot a on just the alternate so that you still have an intact boot
before altering the primary boot.

Also, I assume that you have more the three LVOL's in vg00; all must be mirrored.


If it ain't broke, I can fix that.
Sridhar Bhaskarla
Honored Contributor

Re: Mirroring boot volumes

Hi,

I have a feeling that your mirroring was not successful. "hpux -lq" should automatically pickup (;0)/stand/vmunix.

It should have put you back into ISL after failing to find vmunix. So go ahead try

ISL>hpux -is (;0)/stand/vmunix

and see if it works (i am skeptical about it though) If it does not work try a previous kernel just to see if the current one got wiped off.

ISL> hpux -is (;0)/stand/vmunix.prev

You cannot pass the single user mode in this case because you don't have other logical volumes mirrored. However, if you still have the other boot disk on the system, they will get mounted.
You will need to mirror all the logical volumes on the primary drive.

If you lost both the drives, then only thing you can do is to through boot through install CD and restore the kernel.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
??_29
Advisor

Re: Mirroring boot volumes

Hi:
You should change to
lvextend -m1 /dev/vg00/lvol1 /dev/dsk/c2t12d0
......
lvextend -m1 /dev/vg00/lvol8 /dev/dsk/c2t12d0
mkboot -a"hpux -lq(;0) /stand/vmunix" /dev/dsk/c2t12d0
mkboot -a 'hpux -lq(;0) /stand/vmunix" /dev/dsk/c0t5d0
lvlnboot -R
lvlnboot -d /dev/vg00/lvol2
lvlnboot -r /dev/vg00/lvol3
lvlnboot -s /dev/vg00/lvol2
lvlnboot -b /dev/vg00/lvol1

lvlnboot -R
Nail Wang
Advisor

Re: Mirroring boot volumes

You can do this:
pvcreate -f /dev/rdsk/c2t12d0
pvcreate -B /dev/rdsk/c2t12d0
vgextend /dev/vg00 /dev/dsk/c2t12d0
mkboot /dev/dsk/c2t12d0
mkboot -a "hpux -lq(;0)/stand/vmunix" /dev/dsk/c2t12d0
for i in $i /dev/vg00/lvol*
>do
>lvextend -m 1 $i /dev/dsk/c2t12d0
>done
lvlnboot -Rv
lvlnboot -s
lvlnboot -b
Michael Steele_2
Honored Contributor

Re: Mirroring boot volumes

One test for a successfully made boot disk is the following:

lifls -C /dev/rdsk/c....

If the bootlif is not corrupted then you should see a display of ~6 files including AUTO.

lifcp /dev/rdsk/c...:AUTO -

...will indicate your mkboot string. Which should be what the others have indicated above.
Support Fatherhood - Stop Family Law
Lyn Syms
Occasional Advisor

Re: Mirroring boot volumes

When using the mkboot command you need to specify where the kernel will reside. When I am creating a mirror boot volume I would usually specify a command such as the following:
mkboot ???a ???hpux (10/0.7.0;0)/stand/vmunix??? ???v /dev/rdsk/c0t6d0

I hope that is of some help.
If at first you don't suceed try try again...
Donald Kok
Respected Contributor

Re: Mirroring boot volumes

Hi,
you can check /var/adm/syslog/syslog.log,
and check if you made a typo.
HTH
Donald
My systems are 100% Murphy Compliant. Guaranteed!!!
Adisuria Wangsadinata_1
Honored Contributor

Re: Mirroring boot volumes

Hi there,

I refer you to use the document below from knowledge mine to re-create the mirror boot disk on your system :

http://itrc.hp.com/cki/bin/doc.pl/screen=ckiSearchResults?mode=id&searchString=LVMKBRC00005103

Hope this is the answer that you looking for 8-).

Best Regards,
A.W.
now working, next not working ... that's unix