1833347 Members
3139 Online
110051 Solutions
New Discussion

Mirrrorin boot disk

 
SOLVED
Go to solution
Gerardo Mora
Advisor

Mirrrorin boot disk

Check this procedure

1) Pvcreate ???Bf /dev/rdsk/cxtyd0 or without f if is not a new disk
2) Mkboot /dev/rdsk/cxtyd0
3) Mkboot ???a ???hpux ???lq (52.5.0;0)/stand/vmunix??? /dev/rdsk/cxtyd0 where 52.5.0 is the address of the boot disk.
4) Vgextend /dev/vg00 /dev/dsk/cxtyd0
5) Lvextend ???m 1 /dev/vg00/lvol1 /dev/dsk/cxtyd0 (add all logical vol. of vg00)
6) Lvlnboot ???R /dev/vg00
7) Lvlnboot ???v /dev/vg00


Gerardo
share to learn
6 REPLIES 6
pap
Respected Contributor

Re: Mirrrorin boot disk

Is it a Question or answer?
"Winners don't do different things , they do things differently"
steven Burgess_2
Honored Contributor
Solution

Re: Mirrrorin boot disk

Gerardo

I don't think you are entirely correct

Attached is the method from the HP reference guide

XIII) How to create a mirrored boot disk

Note the following example is using the disk c1t6d0 as the
mirrored boot disk and c0t6d0 as the boot disk.

1) Initialize the disk and make it bootable
pvcreate -B /dev/rdsk/c1t6d0
Note: the -B parameter tell pvcreate that this will be a
bootable disk.
2) Add the physical volume to the volume group
vgextend /dev/vg01 /dev/dsk/c1t6d0
3) Use mkboot to place the boot utilities in the boot area and add
the AUTO file.
mkboot /dev/dsk/c1t6d0
mkboot -a "hpux -lq" /dev/rdsk/c1t6d0
4) Use mkboot to update the AUTO file on the primary boot
disk.
mkboot -a "hpux -lq" /dev/rdsk/c0t6d0
5) Mirror the stand, root and swap logical volumes
lvextend -m 1 /dev/vg00/lvol1
lvextend -m 1 /dev/vg00/lvol2
lvextend -m 1 /dev/vg00/lvol3
Note: LVM will resynchronize the new mirror copies. This step will
takes several minutes

Repeat the lvextend for all other logical volumes on the boot
mirror.
6) Modify your alternate boot path to point to the mirror copy of the
boot disk.
setboot -a 8/8.6.0 # Use the Hardware path for your new
boot disk.

Pay attention to the initial mkboot. You have specified rdsk , this should be dsk.

also your upper and lowercase characters with the mkboot command (forgive if typo)

Hope this is ok

Steve
take your time and think things through
harry d brown jr
Honored Contributor

Re: Mirrrorin boot disk

Gerardo,

You should follow the procedures that Steven provided. making a disk bootable is one thing, its entirely different to "mirror" the root disk. Without the mirroring of vg00, you aren't doing yourself any favors by having "multiple" bootable disks.

You need to have purchased a HPux Mirroring license to do any of this.

live free or die
harry
Live Free or Die
Domenico_5
Respected Contributor

Re: Mirrrorin boot disk

hi gerardo

the correct steps are:

1) Pvcreate ???Bf /dev/rdsk/cxtyd0 or without f if is not a new disk
f parameter means FORCE and you must use it on an old disk with an LVM structure on it

2) Vgextend /dev/vg00 /dev/dsk/cxtyd0

3) Mkboot /dev/rdsk/cxtyd0
4) Mkboot ???a ???hpux ???lq (;0)/stand/vmunix??? /dev/rdsk/cxtyd0 the address of alternate disk is not necessary because ;0 means use default
-lq mean no quorum, if you don't use this option, the server can't reboot without an human participation
5) Lvextend ???m 1 /dev/vg00/lvol1 /dev/dsk/cxtyd0 (add all logical vol. of vg00)

Correct, but you must have HPUX mirror installed. It's very important mirror the lvol1, lvol2 and lvol3 in order because they must to occupy continuous space

6) Lvlnboot ???R /dev/vg00
7) Lvlnboot ???v /dev/vg00
harry d brown jr
Honored Contributor

Re: Mirrrorin boot disk

pap
Respected Contributor

Re: Mirrrorin boot disk

1) pvcreate ???Bf /dev/rdsk/cxtyd0
2) vgextend /dev/vg00 /dev/dsk/cxtyd0
3) mkboot /dev/rdsk/cxtyd0
4) mkboot ???a ???hpux ???lq (;0)/stand/vmunix??? /dev/rdsk/cxtyd0 the
5) lvextend ???m 1 /dev/vg00/lvol1 /dev/dsk/cxtyd0 (add all logical vol. of vg00)

*** Remember while doing mirroring it is important to do mirroring for lvols in fix order. Do the mirroring in sequence for all logical volumes of vg00 exactly as it was created before.(for that you need to do vgdispaly -v /dev/vg00, and do mirroring as per the lvol order displayed .)

6) lvlnboot ???s /dev/vg00/lvol2(if lvol2 is swap)
7) lvlnboot ???d /dev/vg00/lvol2(if lvol2 is dump too)
6) Lvlnboot ???R /dev/vg00
7) Lvlnboot ???v /dev/vg00

Do not forget steps 6 and 7 as it is not mentioned in other replies.

Thanks,
-Piyush.



"Winners don't do different things , they do things differently"