Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 673242 - sys-fs/lvm2 - lvremove on an active LV does not remove it from /dev
Summary: sys-fs/lvm2 - lvremove on an active LV does not remove it from /dev
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
Depends on:
Reported: 2018-12-16 12:41 UTC by Raymond Jennings
Modified: 2020-12-27 23:04 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---

emerge --info (einfo.txt,5.53 KB, text/plain)
2018-12-16 12:42 UTC, Raymond Jennings

Note You need to log in before you can comment on or make changes to this bug.
Description Raymond Jennings 2018-12-16 12:41:09 UTC
I lvremove'd an active volume, but for some reason the block device still persists in /dev/mapper and /dev/<vg>

An ls of /sys/block shows that the dm devices in question no longer exist, yet they're still showing up in /dev

Related issues: renaming logical volumes sometimes creates symlinks instead of moving devices.
Comment 1 Raymond Jennings 2018-12-16 12:42:53 UTC
Created attachment 557904 [details]
emerge --info
Comment 2 Andreas Sturmlechner gentoo-dev 2018-12-16 15:03:05 UTC
Unknown package?
Comment 3 Raymond Jennings 2018-12-16 15:49:02 UTC
Yeah, I'm not sure if this is an issue with udev, lvm2, the kernel, or something else, though those three packages are my first suspects.
Comment 4 Raymond Jennings 2018-12-17 04:49:27 UTC
Just curious but I'm thinking what happens is this:

1.  lvm commands interface with the device mapper
2.  Stuff gets juggled in the kernel
3.  Uevents get fired off
4.  Udev catches them
5.  /dev is updated by udev

Is this correct?

If so, then shouldn't udev be assigned, or at least CCed on, this bug?

If not, how does it work?