Re: Can't remove snapshot at first

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

 



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.

Peter

_______________________________________________
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