Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 437418 - =sys-fs/udev-171-r8 and sys-kernel/vanilla-sources-3.3.8: path_id causes wrong /dev/disk/by-path symlinks
Summary: =sys-fs/udev-171-r8 and sys-kernel/vanilla-sources-3.3.8: path_id causes wron...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Highest normal (vote)
Assignee: udev maintainers
URL:
Whiteboard:
Keywords:
Depends on: 444604
Blocks:
  Show dependency tree
 
Reported: 2012-10-06 15:31 UTC by sf
Modified: 2012-12-03 15:44 UTC (History)
1 user (show)

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


Attachments
emerge --info (file_437418.txt,5.50 KB, text/plain)
2012-10-06 15:31 UTC, sf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sf 2012-10-06 15:31:54 UTC
Created attachment 325808 [details]
emerge --info

In my system symlinks in /dev/disk/by-path are wrong:

# ls -l /dev/disk/by-path/
total 0
lrwxrwxrwx 1 root root  9 Oct  6 16:28 pci-0000:00:1f.1-scsi-0:0:0:0 -> ../../sr0
lrwxrwxrwx 1 root root 10 Oct  6 15:57 pci-0000:00:1f.1-scsi-0:0:0:0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Oct  6 15:57 pci-0000:00:1f.1-scsi-0:0:0:0-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Oct  6 15:57 pci-0000:00:1f.1-scsi-0:0:0:0-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Oct  6 15:57 pci-0000:00:1f.1-scsi-0:0:0:0-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Oct  6 15:57 pci-0000:00:1f.1-scsi-0:0:0:0-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Oct  6 15:57 pci-0000:00:1f.1-scsi-0:0:0:0-part6 -> ../../sda6
lrwxrwxrwx 1 root root  9 Oct  6 16:16 pci-0000:00:1f.1-scsi-0:0:1:0 -> ../../sr1
[snipped]

The devices really are:

# ls -l /sys/block/
total 0
[snipped]
lrwxrwxrwx 1 root root 0 Oct  6 15:57 sda -> ../devices/pci0000:00/0000:00:1f.1/ata1/host0/target0:0:0/0:0:0:0/block/sda
lrwxrwxrwx 1 root root 0 Oct  6 16:53 sdb -> ../devices/pci0000:00/0000:00:1f.1/ata1/host0/target0:0:1/0:0:1:0/block/sdb
lrwxrwxrwx 1 root root 0 Oct  6 16:53 sr0 -> ../devices/pci0000:00/0000:00:1f.1/ata2/host1/target1:0:0/1:0:0:0/block/sr0
lrwxrwxrwx 1 root root 0 Oct  6 16:53 sr1 -> ../devices/pci0000:00/0000:00:1f.1/ata2/host1/target1:0:1/1:0:1:0/block/sr1

/lib/udev/path_id seems to be the culprit:

# /lib/udev/path_id /devices/pci0000:00/0000:00:1f.1/ata1/host0/target0:0:0/0:0:0:0/block/sda
ID_PATH=pci-0000:00:1f.1-scsi-0:0:0:0
# /lib/udev/path_id /devices/pci0000:00/0000:00:1f.1/ata2/host1/target1:0:0/1:0:0:0/block/sr0
ID_PATH=pci-0000:00:1f.1-scsi-0:0:0:0
# /lib/udev/path_id /devices/pci0000:00/0000:00:1f.1/ata1/host0/target0:0:1/0:0:1:0/block/sdb
ID_PATH=pci-0000:00:1f.1-scsi-0:0:1:0
# /lib/udev/path_id /devices/pci0000:00/0000:00:1f.1/ata2/host1/target1:0:1/1:0:1:0/block/sr1
ID_PATH=pci-0000:00:1f.1-scsi-0:0:1:0

Since I switched to kernel 3.3.8 I experienced several mysterious system lockups when accessing sr0. It is a headless box and logging just seems to have stopped suddenly so no more info from that side.

Searching the net I found the same bug reported for udev-175: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=687378
Comment 1 Agostino Sarubbo gentoo-dev 2012-11-15 16:14:01 UTC
@sf, 3.3.8 is not anymore in the tree, can you reproduce this bug with any other version?
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2012-11-15 16:34:27 UTC
you need to upgrade udev to newer version before using such a new kernel, try the ~ərch version (I know it's not in stable yet, but that's out of my hands, sorry.)
Comment 3 sf 2012-11-16 08:59:42 UTC
Re comment #1:

Right now I am using udev-171-r8 with the following patch:

http://cgit.freedesktop.org/systemd/systemd/commit/?id=481dcf7c8fa8fd9fd181b59443b7e30e9b42add4

I removed all uses of /dev/disk/by-path/ from my system and had no more problems (currently with vanilla-sources-3.5.7).
Comment 4 sf 2012-11-16 09:02:21 UTC
Re comment #2:

As said in comment #3 I have udev-171-r8 and vanilla-sources-3.5.7 (both latest stable). Do you mean this udev version is not suited for this kernel version?
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2012-11-16 09:07:02 UTC
(In reply to comment #4)
> Re comment #2:
> 
> As said in comment #3 I have udev-171-r8 and vanilla-sources-3.5.7 (both
> latest stable). Do you mean this udev version is not suited for this kernel
> version?

as you pointed out in prev. comment, you are using the correct patch applied on top of 171 now.

keep on doing that or upgrade BUT expect to hit more issues with the combination, there are numerous of already fixed bugs in the ~arch copy of udev in relationship with >=3.0.0 kernels.
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2012-11-16 11:07:53 UTC
I've added the patch in tree as =sys-fs/udev-171-r9 to ~arch. Only tested that it compiles.
Comment 7 sf 2012-12-03 10:04:23 UTC
sys-fs/udev-171-r9 works for me. Thanks.
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2012-12-03 15:44:48 UTC
Unfortunately this triggered bug 444604. Seems we 'need to' backport some more.