Bug#549691: lvm2: lvremove fails to remove open logical volume which is not opened

Daniel Dehennin daniel.dehennin at baby-gnu.org
Sun May 27 19:05:04 UTC 2012


Hello,

After reporting[1] the workaround[2] of calling dmsetup directly to
schroot, Roger Leigh suggested me to make a report against LVM2 or udev.

I don't know where the problem is exactly, but on my system the bug in
100% reproductible:

#+begin_src
root at home:~# lvcreate -L2G -s /dev/hati/sid-amd64-sbuild -n test
  Logical volume "test" created

root at home:~# lvremove -f /dev/hati/test
  Unable to deactivate open hati-test-cow (254:15)
  Failed to resume test.
  libdevmapper exiting with 1 device(s) still suspended.
#+end_src

I can do that over and over again.

Any lvscan command ran after the failing hangs until I do:

#+begin_src
root at home:~# dmsetup resume /dev/hati/sid-amd64-sbuild
#+end_src

Ask whatever you want me to test to solve this issue, this makes sbuild
unusable on my system without my proposed workaround patch.

Thanks.

Footnotes: 
[1]  http://bugs.debian.org/674682

[2]  http://bugs.debian.org/549691#57

-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x7A6FE2DF
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 229 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-lvm-maintainers/attachments/20120527/81565b76/attachment.pgp>


More information about the pkg-lvm-maintainers mailing list