1834737 Members
3029 Online
110070 Solutions
New Discussion

Re: proper disk recovery

 
SOLVED
Go to solution
VINCENT SPURGEON
Frequent Advisor

proper disk recovery

I have two 34GB drives internal to a an L-Class. Both drives are part of "vg00" with each filesystem/swap and boot information mirrored.

I lost the first drive and successfully booted off the second drive and the system is functioning as "normal".

I have the first drive replaced.

What is the proper sequence of commands to have that drive added back into the volume group and re-sync the mirrors?
It's only a flesh wound...
4 REPLIES 4
S.K. Chan
Honored Contributor
Solution

Re: proper disk recovery

Assuming the new drive is c2t2d0

# mkboot -l /dev/rdsk/c2t2d0
# mkboot -a "hpux -lq" /dev/rdsk/c2t2d0
# vgcfgrestore -n vg00 /dev/rdsk/c2t2d0
=> recovers LVM info to disk
# vgchange -a y vg00
=> enables new root disk
# vgsync vg00
=> this will take awhile (sync the LVs)

After it's done, do the ODE install .. only do this if the primary disk has additional ODE lif files .. check with ..
# lifls -l /dev/rdsk/

Install ODE onto the new mirrored disk..

# ll /usr/sbin/diag/lif/updatediaglif
=> Make sure the file exist.
# lifls -l /dev/rdsk/c2t2d0
=> List content of LIF dir (should have ISL,AUTO,HPUX,PAD,LABEL).
# mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c2t2d0
=> Install ODE LIF files while "protecting" the existing LIF files.
=> Use updatediaglif2 for 11.0 64-bit.
# lifls -l /dev/rdsk/c2t2d0
=> Should now see the additional LIF files.

S.K. Chan
Honored Contributor

Re: proper disk recovery

oops .. one more ..
You might want to double check that your boot path points to the correct disk ..

# setboot
==> display boot path
# setboot -p
==> sets primary boot path
# setboot -a
==> sets alternate boot path
James R. Ferguson
Acclaimed Contributor

Re: proper disk recovery

Hi Vincent:

Have a look at Technical Knowledge Base documents #LVMKBRC00006111 (hot swap) and #LVMKBRC00006116 (no host swap) for mirrored boot disks.

Regards!

...JRF...
Eslam Kamal
Occasional Advisor

Re: proper disk recovery

Hi

you have to check also which lv is boot, root, swap,or dump
# lvlnboot -v

if all is not Ok

you have to use

# lvlnboot -b for boot
# lvlnboot -r for root
# lvlnboot -s for swap
# lvlnboot -d for dump

see man lvlnboot