Bug#403687: [email@example.com: Re: Bug #406697 - Device nodes are
not removed when devices are brought down]
david at hardeman.nu
Sun Jan 14 22:08:53 UTC 2007
I'll forward the same message to this bug that I forwarded to #406697
(which is now closed). Feel free to substitute "cryptsetup" for
lvm or any other suitable packages in the text below...
udev currently receives uevents from the kernel when a new device-mapper
device mapping is created and creates a /dev/dm-* node. libdevmapper
knows when devices are created/removed and creates the /dev/mapper/*
However, the kernel will not (AFAIK) send uevents when device-mapper
mappings are renamed, changed or removed, so udev is not able to remove
the devices when appropriate.
So the "fix" would be to add support for those uevents to the kernel
and to change udev to act on them. Ideally it would create the /dev/dm-*
devices and symlinks in /dev/mapper/*.
Once that is in place, node creation can be removed from libdevmapper
(meaning it will have to wait for the nodes to magically appear
There is a writeup on this with some more details at:
However, I can't see that anything needs to be done in cryptsetup
(except making sure that all works when/if this behaviour is changed in
More information about the pkg-lvm-maintainers