LVM - Boot Disk Prepapartion

 
KUMAR_13
Advisor

LVM - Boot Disk Prepapartion

Hallo All,

Please Tell me How to Prepare Boot Disk In LVM on any HP-UX ?
Please tell Full thing Command By Command or send some Docs Link.
THNX iN Advance.

Cheers
8 REPLIES 8
Pete Randall
Outstanding Contributor

Re: LVM - Boot Disk Prepapartion

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"



Pete

Pete
James R. Ferguson
Acclaimed Contributor

Re: LVM - Boot Disk Prepapartion

H:

Boot disk preparation, as for mirroring, differs for PA-RISC and Itanium systems. I suggest that you consult this guide for the appropriate procedures:

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

Regards!

...JRF...
Mridul Shrivastava
Honored Contributor

Re: LVM - Boot Disk Prepapartion

Hi,

Pls refer the followng link for step by step procedure:

http://docs.hp.com/en/B2355-90672/ch07s07.html
Time has a wonderful way of weeding out the trivial
Chan 007
Honored Contributor

Re: LVM - Boot Disk Prepapartion

Hi Kumar,

This is a bit from Geoff, I don't remember which thread, we give this for our trainee SAs

Hope this helps

Say /dev/dsk/c0t6d0 is the root disk and /dev/dsk/c3t6d0 is the disk you want to make a mirror of.

1. Create a bootable LVM disk to be used for the mirror.
pvcreate -B /dev/rdsk/c3t6d0
2. Add this disk to the current root volume group.
vgextend /dev/vg00 /dev/dsk/c3t6d0
3. Make the new disk a boot disk.
mkboot -l /dev/rdsk/c3t6d0
4. Copy the correct AUTO file into the new LIF area.
mkboot -a "hpux -lq (;0)/vmunix" /dev/rdsk/c3t6d0
5. Mirror the boot, root and primary swap logical volumes to the new
bootable disk. Ensure that all devices in vg00, such as /usr, /swap,
etc., are mirrored.
The following is an example of mirroring the boot logical volume:
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c3t6d0
The following is an example of mirroring the primary swap logical
volume:
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c3t6d0
The following is an example of mirroring the root logical volume:
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c3t6d0
6. Update the boot information contained in the BDRA for the mirror
copies of boot, primary swap and root.
/usr/sbin/lvlnboot -b /dev/vg00/lvol1
/usr/sbin/lvlnboot -s /dev/vg00/lvol2
/usr/sbin/lvlnboot -r /dev/vg00/lvol3
7. Check if the BDRA is correct.
/usr/sbin/lvlnboot -R /dev/vg00
8. Verify that the mirrors were properly created.

lvlnboot -v /dev/vg00
The output of this command is shown in a display like the following:
Boot Definitions for Volume Group /dev/vg00:
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t6d0 (1/0/0/3/0.6.0) -- Boot Disk
/dev/dsk/c3t6d0 (1/0/1/0/0/1/1.6.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c0t6d0
/dev/dsk/c3t6d0
Root: lvol3 on: /dev/dsk/c0t6d0
/dev/dsk/c3t6d0
Swap: lvol2 on: /dev/dsk/c0t6d0
/dev/dsk/c3t6d0
Dump: lvol2 on: /dev/dsk/c0t6d0, 0

If both disks don't display "Boot Disk" - then they won't....go back and redo...


vgdisplay -v vg00

Then lvextend for all other lvols...
Sivakumar TS
Honored Contributor

Re: LVM - Boot Disk Prepapartion

Hi,

The attached DOC is a ulitimate Document,

Regards!

Siva.
Nothing is Impossible !
Torsten.
Acclaimed Contributor

Re: LVM - Boot Disk Prepapartion

It's very important to follow the *right* documentation, because some steps are really different for Integrity and PA-Risc systems.

First make sure you know if you have an Interity or PA-RISC model, than follow the when_good_disks_go_bad document.

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!   
Kyris
Frequent Advisor

Re: LVM - Boot Disk Prepapartion

I have an document which is made easy for someone who rearely does this kind of work. Hope you will find it easy.
kyris
KUMAR_13
Advisor

Re: LVM - Boot Disk Prepapartion

Hallo, THANX EVERY ONE... To give Info