[linux-lvm] Can't remove snapshot at first
prajnoha at redhat.com
Wed Aug 25 12:19:30 UTC 2010
On 08/25/2010 01:30 PM +0100, Milan Broz wrote:
> On 08/25/2010 10:12 AM, Alexander Skwar wrote:
>> --($ ~)-- sudo /sbin/lvremove /dev/Sys/Home-Backup_Snapshot
>> Can't remove open logical volume "Home-Backup_Snapshot"
> Upstream lvm2 with combination of recent udev and udisks package
> should have this fixed (hopefully).
Well, not completely in this exact case. It's hard to cover this
situation with "nowatch"/dm udev flags here because someone could
change the contents of the volume and so the snapshot volume and
original volume can differ.
Anyone scanning for those changes in udev rules could miss the
change of a symlink name based on some changed attribute or some
other call that notifies about changes in general.
We can rule out the mirror's _mimage, snapshot's -cow/-real etc.
scanning, but the top-level snapshot - unfortunately not.
So for now, it would be better to just try to comment out that
watch rule in udisks udev rules so we can see that is the case.
If yes, we can make our argument that this really causes problems
even stronger and try to persuade people who use the watch rule
to be inclined to some other alternative solution that is less
problematic to support.
More information about the linux-lvm