Operating System - HP-UX
1753722 Members
4734 Online
108799 Solutions
New Discussion юеВ

Re: Replacing boot disk of VPars

 
SOLVED
Go to solution
Yashwant
Valued Contributor

Replacing boot disk of VPars

Hi Guys


kindly guide us whethere following steps for replacing boot disk are correct.



1.Detach the PV from LVM usage
# pvchange -a n /dev/dsk/c0t0d0
2.Inform FE to replace the disk
3.Check the status of the disk
# ioscan -fnC disk
4.Restore VG configuration in to the new disk
# vgcfgrestore -n /dev/vg00 /dev/rdsk/c0t0d0
5.update the boot configuration
# mkboot -l /dev/rdsk/c0t0d0
# mkboot -a "hpux -lq" /dev/rdsk/c0t0d0
6.Resync the mirror
# vgchange -a y vg00
7. Update BDRA
# lvlnboot -R vg00
8. Check the boot configuration
# lvlnboot тАУv
9. Check all the mirrors in vg are sync.
# vgdisplay -v vg00 |egrep -i "lv name|lv status"


My only querry whether after running 4th step do we need to run 5th step or 4th step will take care of all things
4 REPLIES 4
Johnson Punniyalingam
Honored Contributor

Re: Replacing boot disk of VPars

Refer to HP official document (replacing Boot disks)


http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.pdf
Problems are common to all, but attitude makes the difference
Kapil Jha
Honored Contributor
Solution

Re: Replacing boot disk of VPars

1)pvchange -a N /dev/dsk/c0t0d0

Step 4 and 5
vgcfgrestore would only restore VG configuration and not boot configuration, you would have to do it.

Rest everything seems to be fine.

BR,
Kapil+

I am in this small bowl, I wane see the real world......
Yashwant
Valued Contributor

Re: Replacing boot disk of VPars

Thanks kapil..


small query again.. do we need to run

#vgsync vg00 command after

# vgchange -a y vg00 ??
Kapil Jha
Honored Contributor

Re: Replacing boot disk of VPars

No need,

When a volume group is activated, LVM performs the necessary mirror consistency recovery for each logical volume in the volume group based on the state of the Mirror Write Cache and Mirror Consistency Recovery.

Se man page.

BR,
Kapil+
I am in this small bowl, I wane see the real world......