Bad Disk and Need to re-mirror

 
Ray Bell
Regular Advisor

Bad Disk and Need to re-mirror

I have a volume group that have four disk in it and one of the disk is bad. Here''s how it look:
--- Physical volume groups ---
PVG Name PVG1
PV /dev/dsk/c4t1d0
PV /dev/dsk/c4t2d0

PVG Name PVG2
PV /dev/dsk/c5t4d0
PV /dev/dsk/c5t5d0

I need to replace /dev/dsk/c4t1d0 and should I do a lvremove of the logical volume groups and then remove the disk from the volume group. The disk is not total dead but have a lot of stale extents on it. So what would be the best way to do this witout cause any major problems?
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor

Re: Bad Disk and Need to re-mirror

stephen peng
Valued Contributor

Re: Bad Disk and Need to re-mirror

you could read james's pdf.
sometimes I use following step to deal with such issue.
1,vgcfgbackup vgX
2,replace that failing disk
3,vgcfgrestore vgX /dev/dsk/c4t1d0
4,vgchange -a y vgX
5,vgsync vgX
you should check whether all the LVs on vgX were mirrored before
Deeos
Regular Advisor

Re: Bad Disk and Need to re-mirror

Hi,

Before do anything, could you post output of vgdisplay -v vgxx

and their lvs

lvdisplay -v /dev/vgxx/lvolx

for let us know about stale PE extents!




Regards
Deeos
Deepak