Operating System - HP-UX
1820203 Members
3963 Online
109620 Solutions
New Discussion юеВ

Re: Removing Mirrored Logical Volumes

 
SOLVED
Go to solution
Cliff Lim Kok Hwee
Regular Advisor

Removing Mirrored Logical Volumes

Gd Day Forum,

I got a Mirrored Logical Volume as follows,

lvdisplay -v /dev/vg00/lvol9 |more
--- Logical volumes ---
LV Name /dev/vg00/lvol9
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 16
Current LE 4
Allocated PE 8
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c0t6d0 4 4
/dev/dsk/c0t5d0 4 4

Query: I would like to remove the Logical Volume, do I need to break the mirror using lvreduce -m 0 /dev/vg00/lvol9 then follow by
lvremove /dev/vg00/lvol9?

Or I can just perform lvremove /dev/vg00/lvol9 will do?

Thanks/cliff
4 REPLIES 4
Robert-Jan Goossens
Honored Contributor
Solution

Re: Removing Mirrored Logical Volumes

Hi Cliff,

Both are good.

# lvreduce -m 0 /dev.....
# lvremove /dev.....

or just
# lvremove /dev.....

Regards,
Robert-Jan
Sunil Sharma_1
Honored Contributor

Re: Removing Mirrored Logical Volumes

both will work but best way is to use lvremove

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Cliff Lim Kok Hwee
Regular Advisor

Re: Removing Mirrored Logical Volumes

Thanks guys.

Tried both n works fine.

regards/cliff
Borislav Perkov
Respected Contributor

Re: Removing Mirrored Logical Volumes

Hi,

In case you want to preserve the data in the moment of removing the mirroring you can use:

lvsplit -s frozen /dev/vg00/lvol9

where -s if for suffix for lvol9.
After this you will have logical volume
/dev/vg00/lvol9frozen

Regards,
Borislav