Re: unable to remove snapshot of raid1 leg

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/24/2017 01:03 PM, Zdenek Kabelac wrote:
> Dne 23.10.2017 v 18:40 Alexander 'Leo' Bergolth napsal(a):
>> On 10/23/2017 04:44 PM, Heinz Mauelshagen wrote:
>>> Removing such per leg snapshot should be possible after the raid1 LV got
>>> deactivated.
>>
>> Hmm. This LV is currently in use. Any chance to remove it with the raid1
>> LV active?
> 
> The one 'risky' idea could be to try 'vgcfgrestore' metadata before taking
> snapshot then (forcibly) remove  (dmsetup remove (-f)  vg-snapshot)  so
> snapshot is no longer referencing origin.
> (force should not be needed - but if some has opened snapshot...)
> 
> Then you should be able to use  'lvchange --refresh vg'
> 
> and finally drop  'left-over'  cow volume with dmsetup remove.
> (and make sure snapshot is already gone - if not - try remove again)


Thanks a lot!
I tried this on a test-box. Works perfect!

Cheers,
--leo
-- 
e-mail   ::: Leo.Bergolth (at) wu.ac.at
fax      ::: +43-1-31336-906050
location ::: IT-Services | Vienna University of Economics | Austria

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/




[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux