1833163 Members
3668 Online
110051 Solutions
New Discussion

Mirror Break

 
SOLVED
Go to solution
Joyce Suganthy
Advisor

Mirror Break

Hi All,

Could someone help me here,
I have two disk mirrrored and I would like to break the mirror.

Please help me with the steps.

Thanks in advance

Joyce
4 REPLIES 4
Norman_21
Honored Contributor
Solution

Re: Mirror Break

Hi,
# lvreduce -m 0 /dev/vg00/lvol1 /dev/dsk/
will break the mirror. repeat the same with all lvs.

Also, here is a good step by step thread:

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

Thanks.
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
Norman_21
Honored Contributor

Re: Mirror Break

add to your notes to make a recovery tape backup before proceeding.

Thanks.
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
T G Manikandan
Honored Contributor

Re: Mirror Break

First do a
vgdisplay -v /dev/vg00

Note down the volumes you are trying to break the mirror.
Then just do a

#lvreduce -m 0 /dev/vg00/lvol1 /dev/dsk/cXtYdZ

Here cXtYdZ is the mirror disk
Here above will remove the mirror of lvol1.

Likewise remove the volumes which need mirror break.

After doing that you can remove the mirror drive (that was just un-mirrored) using

#vgreduce /dev/vg00 /dev/dsk/cXtYdZ

Thanks
Jakes Louw_1
Frequent Advisor

Re: Mirror Break

Use LVSPLIT to split the mirror with the option to merge them again later:

lvsplit -s m lv_path

This will create an LVOL with a suffix of "m" attached to the original LVOL name. You can then use LVMERGE to merge them again later, but NOTE!!! the manpage entry for LVMERGE, especially the destination and source paths....

lvchange -m 0 simply throws the mirror away.