linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* udev by-label/by-uuid vs. lvm2
@ 2006-11-02 17:05 Andreas Jellinghaus
  2006-11-02 17:38 ` Bryan Kadzban
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Jellinghaus @ 2006-11-02 17:05 UTC (permalink / raw)
  To: linux-hotplug

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&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: udev by-label/by-uuid vs. lvm2
  2006-11-02 17:05 udev by-label/by-uuid vs. lvm2 Andreas Jellinghaus
@ 2006-11-02 17:38 ` Bryan Kadzban
  0 siblings, 0 replies; 2+ messages in thread
From: Bryan Kadzban @ 2006-11-02 17:38 UTC (permalink / raw)
  To: linux-hotplug


[-- Attachment #1.1: Type: text/plain, Size: 1203 bytes --]

On Thu, Nov 02, 2006 at 06:05:10PM +0100, Andreas Jellinghaus wrote:
> 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.)


[-- Attachment #1.2: Type: application/pgp-signature, Size: 191 bytes --]

[-- Attachment #2: Type: text/plain, Size: 373 bytes --]

-------------------------------------------------------------------------
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

[-- Attachment #3: Type: text/plain, Size: 226 bytes --]

_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-11-02 17:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-02 17:05 udev by-label/by-uuid vs. lvm2 Andreas Jellinghaus
2006-11-02 17:38 ` Bryan Kadzban

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).