Bug#549691: lvm2: lvremove fails to remove open logical volume which is not opened
Michael Stapelberg
stapelberg at debian.org
Wed Oct 3 12:24:56 UTC 2012
Hi Peter,
Peter Rajnoha <prajnoha at redhat.com> writes:
> Please, try "kpartx -s", where -s is for "sync mode" so
> all udev processing is synced with kpartx as well.
Thanks for this hint. I added the -s flag, but I can still reproduce the
snapshot removal problem:
lvremove --verbose -f plana/snap_web
Using logical volume(s) on command line
Archiving volume group "plana" metadata (seqno 1137).
Removing snapshot snap_web
Found volume group "plana"
Found volume group "plana"
Loading plana-domu--web table (253:1)
Loading plana-snap_web table (253:9)
plana/snapshot0 already not monitored.
Suspending plana-domu--web (253:1) with device flush
Suspending plana-snap_web (253:9) with device flush
Suspending plana-domu--web-real (253:10) with device flush
Suspending plana-snap_web-cow (253:11) with device flush
Found volume group "plana"
Resuming plana-snap_web-cow (253:11)
Resuming plana-domu--web-real (253:10)
Resuming plana-snap_web (253:9)
Removing plana-snap_web-cow (253:11)
Found volume group "plana"
Resuming plana-domu--web (253:1)
Unable to deactivate open plana-domu--web-real (253:10)
Failed to resume domu-web.
--
Best regards,
Michael
More information about the pkg-lvm-maintainers
mailing list