Re: replacing disk in ds2300

 
M.Thomas
Frequent Advisor

replacing disk in ds2300

we have a bad disk (disk is still OK but logging lot of events so Hp is replacing it).
it is a mirrored disk (c5t0d0)..i have the steps below for this 11.0 system.

unmount the lvol1 and lvol2 mount points.

1) Reduce the mirrors on the volumes:
# lvreduce -m 0 -A n /dev/vg01/lvol1 /dev/dsk/c5t0d0
# lvreduce -m 0 -A n /dev/vg01/lvol2 /dev/dsk/c5t0d0

2) Physically replace the disk (since this is a hot swap enclosure this can be done online)
3.Check to ensure new disk is seen:
# ioscan -fnC disk
--> Look for c5t0d0 on path 0/9/0/0.0.0 It should be marked as CLAIMED.
4.vgcfgrestore -n vg01 /dev/rdsk/c5t0d0
5. # lvextend -m 1 /dev/vg01/lvol1 /dev/dsk/c5t0d0
# lvextend -m 1 /dev/vg01/lvol2 /dev/dsk/c5t0d0

are these steps OK?

Thanks

Thomas.
4 REPLIES 4
Ivan Krastev
Honored Contributor

Re: replacing disk in ds2300

After step 1 - reduce the mirrors you should remove disk (pv) from volume group. Here is detailed howto - http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf


regards,
ivan
M.Thomas
Frequent Advisor

Re: replacing disk in ds2300

we dont have olr
Victor Fridyev
Honored Contributor

Re: replacing disk in ds2300

Hi,

To your procedure the following should be added:

#vgreduce /dev/dsk/c5t0d0

And after that the disk may be extracted.

Vgreduce removes disk from lvmtab and vg metadata.

HTH
Entities are not to be multiplied beyond necessity - RTFM
Vasu Viswanadha
Advisor

Re: replacing disk in ds2300



Hi,

If this disk is part of root VG, aren't we required to use 'setboot' / 'mkboot' , to set the boot string / AUTO file / Pri / Alt boot disk ? Will 'vgcfgrestore' take care of it, as well ?

BR

Vasu