From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4C74FED0.5000603@redhat.com> Date: Wed, 25 Aug 2010 13:30:24 +0200 From: Milan Broz MIME-Version: 1.0 References: In-Reply-To: Content-Transfer-Encoding: 7bit Subject: Re: [linux-lvm] Can't remove snapshot at first Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: text/plain; charset="us-ascii" To: LVM general discussion and development Cc: Alexander Skwar 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). Milan