Operating System - HP-UX
1753513 Members
5618 Online
108795 Solutions
New Discussion юеВ

create mirror disk that's also a boot disk

 
SOLVED
Go to solution
Jerry L. Sims
Frequent Advisor

create mirror disk that's also a boot disk

Hello All,

I was reviewing my vg00 info, and noticed the disk ( c2t6d0 )I want use as a mirror is not a boot disk. What is the best way make this a boot disk before I start the mirroring? disk
(c2t6d0) is currently empty.

server info:
HP-UX B.11.11 U 9000/800/N4000-75

*************************
lvlnboot -v info :

Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c1t6d0 (0/0/2/0.6.0) -- Boot Disk
/dev/dsk/c2t6d0 (0/0/2/1.6.0)
Boot: lvol1 on: /dev/dsk/c1t6d0
Root: lvol3 on: /dev/dsk/c1t6d0
Swap: lvol2 on: /dev/dsk/c1t6d0
Dump: lvol2 on: /dev/dsk/c1t6d0, 0

***********************
5 REPLIES 5
Chris Wilshaw
Honored Contributor
Solution

Re: create mirror disk that's also a boot disk

To set as a boot disk, you need to ensure that the disk is not currently in a volume group.

vgreduce /dev/vg00 /dev/dsk/c2t6d0

Then recreate the device

pvcreate -B /dev/dsk/c2t6d0

Then extend the vg again

vgextend /dev/vg00 /dev/dsk/c2t6d0

You should then be able to apply your mirrors.

You also need to ensure that the disk is then set as the alternate boot path;

setboot -a 0/0/2/1.6.0

(just using setboot on its own will display the current settings)
Sanjay_6
Honored Contributor

Re: create mirror disk that's also a boot disk

To Enable boot on the second disk, do mkboot,

mkboot -a "hpux -lq" /dev/rdsk/c2t6d0

Then do a lvlnboot -v

Hope this helps.

Regds
Sanjay_6
Honored Contributor

Re: create mirror disk that's also a boot disk

Hi,

Additionally if you have mirrored lvol1 and other lvs properly, do a lvlnboot.

lvlnboot -b /dev/vg00/lvol1 (boot lv)
lvlnboot -r /dev/vg00/lvol3 (root lv)
lvlnboot -s /dev/vg00/lvol2 (swap lv)
lvlnboot -d /dev/vg00/lvol2 (dump lv)

Then do a "lvlnboot -v"

Hope this helps.

Regds


A. Clay Stephenson
Acclaimed Contributor

Re: create mirror disk that's also a boot disk

pvcreate -f -B /dev/rdsk/c2t6d0
vgextend /dev/vg00 /dev/dsk/c2t6d0
mkboot /dev/rdsk/c2t6d0
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c2t6d0

LVOLS="lvol1 lvol2 lvol3 lvol4 lvol5 lvol6 lvol7 lvol8"
# Change LVOLS to exactly match your vg00 but make # sure that lvol1, lvol2, lvol3 are done in # strict order:

for LVOL in ${LVOLS}
do
lvextend -m 1 /dev/vg00/${LVOL} /dev/dsk/c2t6d0
done

lvlnboot -R /dev/vg00

mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t6d0
-----------------------------------------
The last mkboot -a makes it possible to boot if either boot disk has failed.

If it ain't broke, I can fix that.
Jerry L. Sims
Frequent Advisor

Re: create mirror disk that's also a boot disk

Thanks All......... :>)