[linux-lvm] unable to remove snapshot of raid1 leg

Alexander 'Leo' Bergolth leo at strike.wu.ac.at
Wed Oct 25 08:47:13 UTC 2017

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!

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

More information about the linux-lvm mailing list