1832595 Members
2987 Online
110043 Solutions
New Discussion

mirrored a boot disk

 
taouw
Frequent Advisor

mirrored a boot disk

Can anyone help me to create a mirrored disk.
first i have a boot disk (/dev/disk/c2t0d0) and secondary disk (/dev/disk/c2t1d0):

#pvcreate -B /dev/rdsk/c2t1d0
#vgextend /dev/vg00 /dev/dsk/c2t1d0
#mkboot -l /dev/rdsk/c2t1d0
#lifcp/dev/rdsk/c2t1d0
#lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t1d0
(lvol1 to lvol8)
#lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c2t1d0
9 REPLIES 9
taouw
Frequent Advisor

Re: mirrored a boot disk

but no boot disk have created
Pete Randall
Outstanding Contributor

Re: mirrored a boot disk

Here's my procedure:

The steps to mirror your boot volume are (PA-RISC):

1. Create a physical volume with a boot reserved area
"pvcreate -B /dev/rdsk/c1t6d0"

2. Add the physical volume to the root VG
"vgextend /dev/vg00 /dev/dsk/c1t6d0"

3. Use mkboot to place the boot utilities in the boot area and add the AUTO file
"mkboot /dev/rdsk/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. Use lvlnboot to identify the root, boot, primary swap and dump lvols
"lvlnboot -r /dev/vg00/lvol3 /dev/vg00" (lvol4 if you have secondary swap in lv
ol3)
"lvlnboot -b /dev/vg00/lvol1"
"lvlnboot -s /dev/vg00/lvol2 /dev/vg00"
"lvlnboot -d /dev/vg00/lvol2 /dev/vg00"
"lvlnboot -v"

6. Mirror the stand, root and swap logical volumes in order
"lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t6d0"
"lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c1t6d0"
"lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c1t6d0"

7. Then mirror the rest of your root logical volumes
"lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c1t6d0"
etc.

8. Modify your alternate boot path
"setboot -a 8/8.6.0 # use the path of your new boot disk"

9. Edit /stand/bootconf and add your new mirrored boot disk.

That's all there is to it. You may notice that I left out the
lvlnboot -R command. That is because it is not
necessary - see the man page:

"This command should be run in recovery mode (-R)
whenever the configuration of the root volume group is
affected by one of the following commands: lvextend,
lvmerge, lvreduce, lvsplit, pvmove, lvremove, vgextend,
or vgreduce (see lvextend(1M), lvmerge(1M), lvreduce(1M),
lvsplit(1M), pvmove(1M), lvremove(1M), vgextend(1M), and
vgreduce(1M)). Starting with HP-UX Release 10.0, this is
done automatically."

For Itanium architecture, follow this guide:
http://docs.hp.com/en/B2355-90950/ch06s02.html#cchgjafa

And, for 11.31, follow this:
http://docs.hp.com/en/B2355-90950/ch06s02.html#mrflv


Pete

Pete
Mel Burslan
Honored Contributor

Re: mirrored a boot disk

try these in addition to what you have done:

mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c2t1d0
cd /usr/sbin/diag/lif
mkboot -b updatediaglif2 -p ISL -p AUTO -p HPUX -p LABEL /dev/rdsk/c2t1d0

________________________________
UNIX because I majored in cryptology...
Steven E. Protter
Exalted Contributor

Re: mirrored a boot disk

Shalom,

http://www.hpux.ws/?p=21

Its all there and is somewhat more extensive.

Also do a boot test so you know it works.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
taouw
Frequent Advisor

Re: mirrored a boot disk

when i write the command mkboot -a "hpux-lq" /dev/rdsk/c2t1d0 i have receive the message:
-a specified but no current boot area on /dev/rdsk/c2t1d0
Mel Burslan
Honored Contributor

Re: mirrored a boot disk

are you sure your pvcreate -B command executed and completed successfully ?

start from scratch and try following Pete's procedure step-by-step. Something you did while troubleshooting the problem might have messed up the LIF on this disk.
________________________________
UNIX because I majored in cryptology...
taouw
Frequent Advisor

Re: mirrored a boot disk

yes, i'm sure to create a volume group with the command #vgcreate -B vg00...
Mel Burslan
Honored Contributor

Re: mirrored a boot disk

since your boot disk is not so much of *bootable*, it won't hurt to destroy it and start from scratch.

raw=/dev/rdsk/c2t1d0
blk=/dev/dsk/c2t1d0

pwcreate -B ${raw}
mkboot -a "hpux -lq (;0)/stand/vmunix" ${raw}
mkboot -l ${raw}
cd /usr/sbin/diag/lif
mkboot -b updatediaglif2 -p ISL -p AUTO -p HPUX -p LABEL ${raw}

vgextend /dev/vg00 ${blk}

# do your logical volume mirroring here

lvlnboot -r /dev/vg00/lvol3 #root fs /
lvlnboot -s /dev/vg00/lvol2 #swap
lvlnboot -d /dev/vg00/lvol2 #swap/dump
lvlnboot -b /dev/vg00/lvol1
lvlnboot -R
lvlnboot -v

Hope this helps
________________________________
UNIX because I majored in cryptology...
Andrew Rutter
Honored Contributor

Re: mirrored a boot disk

hi,

its probably down to the fact you havent done the lvlnboot steps,

do these as already stated

Andy