1833159 Members
3080 Online
110051 Solutions
New Discussion

Re: remove mirror

 
kholikt
Super Advisor

remove mirror

I have a couple of LV that has mirrored copy. Due to the disk space constraint I need to remove the mirror copy but I still want to keep my data.

Can I do this without any downtime?
abc
7 REPLIES 7
Henk Geurts
Esteemed Contributor

Re: remove mirror

you can just use
lvreduce -m 1 /dev// /dev/dsk/cxtxdx

where the disk is the disk where the mirror is removed from.
Henk Geurts
Esteemed Contributor

Re: remove mirror

excuse me

lvreduce -m 0
ofcource.
Adisuria Wangsadinata_1
Honored Contributor

Re: remove mirror

Hi,

Yes, you can remove the mirror without any downtime.

Use 'lvreduce' command, for more details check manpage of lvreduce :

# man lvreduce

Example :

Remove mirror copies of logical extents of a logical volume from the physical volume /dev/dsk/c1t0d0:

# lvreduce -m 0 /dev/vg01/lvol4 /dev/dsk/c1t0d0

Hope this information can help you.

Cheers,
AW
now working, next not working ... that's unix
Arunvijai_4
Honored Contributor

Re: remove mirror

#lvreduce /dev.....

-Arun

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=284128

"A ship in the harbor is safe, but that is not what ships are built for"
AwadheshPandey
Honored Contributor

Re: remove mirror

use
lvreduce -m 0 /dev/vg00/lvol3 /dev/dsk/c0t6d0

Awadhesh
It's kind of fun to do the impossible
GGA
Trusted Contributor

Re: remove mirror

hello do


why u dont extend vg an lv ?

for i in 1 2 3 4 5 6 7 8
do
lvreduce -m 0 /dev/vg00/lvol$i /dev/dsk/cxtxdx
done

regards gga
Nguyen Anh Tien
Honored Contributor

Re: remove mirror

It is easy, but you must be careful.
For example:
VG Name : /dev/vg02
LV
Has one lv Name: /dev/vg02/lvglobus
And it located on 02 pv (mirrored each other)
PVName /dev/dsk/c4t0d2
PVName /dev/dsk/c4t0d4
I will reduce /dev/dsk/c4t0d4 to get more spare just type:
#lvextend -m 0 /dev/vg02/lvglobus /dev/dsk/c4t0d4
Now /dev/dsk/c4t0d4 is still belong to vg02.
If you want to more /dev/dsk/c4t0d4 to another vg let do as below
#vgreduce /dev/vg02 /dev/dsk/c4t0d4
#vgextend /dev/vgxx /dev/dsk/c4t0d4
THat's all
HTH
tienna
HP is simple