1836636 Members
1639 Online
110102 Solutions
New Discussion

replace a mirror

 
SOLVED
Go to solution
michael Fischer_1
Occasional Contributor

replace a mirror

Dear colleagues,

Short question: I'd like to replace a mirrored disk (/dev/dsk/c1t0d0; vg01) with lvol1 and lvol2 on it. What are the best steps to suspend the mirror, replace the disk, and re-establish the mirror?

Regards!

Mischa
3 REPLIES 3
Vincent Farrugia
Honored Contributor

Re: replace a mirror

Hello,

This has already been asked before. Follow this link please:

http://forums.itrc.hp.com/cm/QuestionAnswer/0,,0xf68cee3e323bd5118fef0090279cd0f9,00.html

HTH,
Vince
Tape Drives RULE!!!
Sanjay_6
Honored Contributor
Solution

Re: replace a mirror

Hi Mischa,

You don't have to do much. If this is a how-swap disk, do this,

Remove the disk from the cabinet, wait for a few minutes, plug the new disk in. wait for a couple of minutes. do a vgcfgresore for the disk,

vgcfgrestore -n vg01 /dev/rdsk/c1t0d0

activate the disk in the vg,

vgchange -a y /dev/vg01

sync the mirror,

vgsync /dev/vg01

Once the vg has been synced, do a vgdisplay to make sure the lv's have been mirrored correctly,

vgdisplay -v /dev/vg01

Here is a link from itrc to help you out,

http://us-support2.external.hp.com/cki/bin/doc.pl/sid=f30b7d48134ef3f384/screen=ckiDisplayDocument?docId=200000058036738

Hope this helps.

Regds
michael Fischer_1
Occasional Contributor

Re: replace a mirror

Thanks Sanjay

You helped me a lot! First I thought its necessary to do a "lvreduce", replace the disk and then do a "lvextend". But after your answer, this seems not to be necessary...

Regards!

Mischa