1834903 Members
2601 Online
110071 Solutions
New Discussion

Boot Disk

 
SOLVED
Go to solution
system administrator_15
Frequent Advisor

Boot Disk

Hi guys
Just a short one for a change, one of my mirrored boot disks has failed and i will be changing it out.
Do i need to pvcreate -b and mkboot it before running Vgconfigrestore or will this resore all the necassary info in vgda.
regards

andrew
3 REPLIES 3
Pete Randall
Outstanding Contributor

Re: Boot Disk

Hi Andrew,

An excellent guide is available in the Software Recovery Handbook. See Chapter 16 (LVM) and check the section "Replacing a Failed Disk"

http://www1.itrc.hp.com/service/iv/node.do?node=prod%2FWW_Start%2FN1%7C16%7C11


Pete


Pete
T G Manikandan
Honored Contributor
Solution

Re: Boot Disk

There is no need
1.replace bad-disk
2. vgcfgrestore /dev/vg00 /dev/dsk/c#t#d#
3. vgchange -a y /dev/vg00
4. vgsync /dev/vg00 /dev/dsk/c#t#d#
5. mkboot /dev/rdsk/c#t#d#
6. mkboot -a "hpux (0;)/stand/vmunix" /dev/dsk/c#t#d#

Jeff Schussele
Honored Contributor

Re: Boot Disk

Hi Andrew,

According to TKB doc ID LVMKBRC00005103 you should do the following:

pvcreate -B /dev/rdsk/cXtYdZ
vgextend vg00 /dev/dsk/cXtYdZ
mkboot -l /dev/rdsk/cXtYdZ
mkboot -a "hpux -lq" /dev/rdsk/cXtYdZ

Then determine all lvols in vg00 using
pvdisplay -v /dev/dsk/cXtYdZ

Them remirror them all - I use a for loop as follows

for i in 1 2 3 4 5 6 7 8
do
lvextend -m 1 /dev/vg00/lvol$i /dev/dsk/cXtYdZ

Then check to boot/root assignments

lvlnboot -v

This always works for me.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!