[linux-lvm] Can't remove snapshot at first

Milan Broz mbroz at redhat.com
Wed Aug 25 11:30:24 UTC 2010

On 08/25/2010 10:12 AM, Alexander Skwar wrote:
> I noticed, that rather often, I'm unable to remove an unused
> snapshot volume at first command execution. See this:
> --($ ~)-- sudo /sbin/lvremove /dev/Sys/Home-Backup_Snapshot 
>   Can't remove open logical volume "Home-Backup_Snapshot"
> --($ ~)-- sudo /sbin/lvremove /dev/Sys/Home-Backup_Snapshot 
> Do you really want to remove active logical volume Home-Backup_Snapshot? [y/n]: 
> Between those two commands, I did not do anything at all! I ran the
> commands directly after each other in like 5 seconds or so.

I t is possible that udev run some async scan in reaction to even (during snap manipulation).

Distro maintainers should probably update lvm udev rules
(and possibly udisks rules etc) to work relieably.

Upstream lvm2 with combination of recent udev and udisks package
should have this fixed (hopefully).


More information about the linux-lvm mailing list