Skip to contentSkip to conversation

udev by-label/by-uuid vs. lvm2

DISCUSSION Andreas Jellinghaus 2 participants 2 messages Nov 2, 2006

lore
Share & tools
lore
#0 lore raw

Hi,

not sure if this is an ubuntu issue:
at least on ubuntu edgy udev creates the
usual /dev/disk/by-uuid and by-label directories
with links for all filesystems/disks/partitions.

but with lvm2 vg's are only created in
/dev/<foo>/<bar> and /dev/mapper/<foo>-<bar>.
that is ok, <foo> is the pv and <bar> the vg.

still the filesystem on <bar> has a uuid and
a label, and neither is found in /dev/disk/by-*/
as link. As a result booting with LABEL or UUID
doesn't work in the initramfs either (UUID is
the default config as far as I know).

can someone tell me if this problem is
a) wontfix/by design
b) kernel too old problem (maybe lvm2 doesn't
create events for udev?)
c) udev out of date or misconfigured (so I will
file a bug with ubuntu to let them know)
d) something else

Thanks, Andreas

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw
Quoted 8 lines · Andreas Jellinghaus

still the filesystem on <bar> has a uuid and a label, and neither is found in /dev/disk/by-*/ as link. As a result booting with LABEL or UUID doesn't work in the initramfs either (UUID is the default config as far as I know).

can someone tell me if this problem is
a) wontfix/by design

At the moment, I think it's by design, but I'm not sure if that makes it a won't fix. I suspect it is, though.

The "standard" udev persistent-storage.rules file has a rule that ignores dm-* devices (which I think includes these). This is probably so that you don't have multiple programs trying to handle device node creation for LVM devices. AFAIK there's no way to have udev create a symlink to a device that it doesn't know anything about.

You probably want to have whatever tool handles LVM devices create the symlink, if it can. It could use udev's vol_id program to find out the UUID and label strings for each partition-equivalent. (I don't think LVM calls them partitions, but I don't know what it does call them. Whatever device contains the filesystem is what vol_id should be run on.)

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel