1850187 Members
12413 Online
104050 Solutions
New Discussion

Re: mirrot a boot disk

 
Nappy_1
Frequent Advisor

mirrot a boot disk

I'd like to mirror a boot disk on an rp8400 server

i have the following procedure but i need to check it.

c0t0d0 : primary disk
c1t1d1 : mirror disk

1/
pvcreate -f -B /dev/rdsk/c1t1d1
vgextend vg00 /dev/dsk/c1t1d1

2/mirror all lvol:
lvextend -m 1 /dev/vg00/lvolX /dev/dsk/c1t1d1

3/Copy the boot area to the disk
mkboot -l /dev/rdsk/c1t1d1
mkboot -a 'hpux -lq' /dev/rdsk/c0t0d0
mkboot -a 'hpux -lq' /dev/rdsk/c1t1d1

4/Install ODE files
cd /usr/sbin/diag/lif
mkboot -b updatediaglif2 -p ISL -p AUTO -p HPUX -p LABEL /dev/rdsk/c1t1d1

5/Update the BDRA and LABEL file.
/usr/sbin/lvlnboot -r /dev/vg00/lvol3
/usr/sbin/lvlnboot -b /dev/vg00/lvol1
/usr/sbin/lvlnboot -s /dev/vg00/lvol2
/usr/sbin/lvlnboot -d /dev/vg00/lvol2

6 REPLIES 6
Aneesh Mohan
Honored Contributor

Re: mirrot a boot disk

Hi Nappy,

I have uploaded mirroring doc ,it may help you to accomplish the task without any issues.


Thanks,
Aneesh
Pete Randall
Outstanding Contributor

Re: mirrot a boot disk

(Hopefully this answer isn't too late - it took minutes to get the reply window opened and, when it did finally respond, it wanted me to log in again, which took another 124 seconds)

;^(


Here is the mirroring procedure I follow:

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. 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"

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

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

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

That's all there is to it. You may notice that I left out any
lvlnboot commands. That is because they are 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


Pete

Pete
Torsten.
Acclaimed Contributor

Re: mirrot a boot disk

It took hours to get the reply window open
:-(

Up to HP-UX 11.23 the procedure is in the appendix here:

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf

For 11.31 it is different:

http://docs.hp.com/en/B2355-90950/ch06s02.html#mrflv

Note, the updatediaglif files (offline diagnostics) are now on a separate CD:

http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=PA0712

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Nappy_1
Frequent Advisor

Re: mirrot a boot disk

pete,
do you confirm that the procedure works with hpux 11iv1
Geoff Wild
Honored Contributor

Re: mirrot a boot disk

Here's mine for 11.11 and 11.23 on parisc:

http://www.met.ca/itrc/index.php?option=com_content&task=view&id=33&Itemid=2

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Asif Sharif
Honored Contributor

Re: mirrot a boot disk

Hi,

Please find the attached mirror disk script, I found this on ITRC.

Regards,
Asif Sharif
Regards,
Asif Sharif