Skip to contentSkip to conversation

On /dev/disk/by-id/ata-...-part2 missing, again

DISCUSSION Alexander E. Patrakov 1 participant 1 message Oct 27, 2014 4 messages not in the archive Device mapper

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 20141027164905.GT16250@gardel-login

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 20141027171335.GV16250@gardel-login

#4 lore raw
Quoted 32 lines · Lennart Poettering
Quoted 30 lines · Alexander E. Patrakov
Quoted 28 lines · Lennart Poettering
Quoted 14 lines · Alexander E. Patrakov

Some time ago, I have complained that some boots are unsuccessful, because the /dev/disk/by-id/ata-OCZ-VECTOR_OCZ-Z5CB4KC20X0ZG7F8-part2 symlink (which should point to /dev/sda2) is not created by udev in the initramfs (which uses dracut). Thankfully, people on IRC have suggested some useful debugging options:

systemd.log_level=debug rd.udev.log-priority=debug

So now I have a SOS report. It is over 1 MB, so not attached. The useful lines are:

[    3.026515] localhost systemd-udevd[319]: Unable to flock(/dev/sda),
skipping event handling: Resource temporarily unavailable
[    3.027224] localhost systemd-udevd[333]: Unable to flock(/dev/sda),
Quoted 6 lines

skipping event handling: Resource temporarily unavailable

Let me complain here that these error messages still don't contain the complete picture. How am I supposed to know which program in my dracut-created initramfs locks /dev/sda and interferes with udev event handling?

Most likely you are either using a too old util-linux, whose use of BSD locks conflict's with udev's use of it. (fsck -l)

Please always check README, it will let you know precisely which release of util-linux you need at least.

Quoted 6 lines
Quoted 3 lines

I use fsck from util-linux 2.25.1. Verified by extracting the initramfs. According to the README, this version should be OK, so it must be something else.

Hmm, please use "lslocks" or /proc/locks to figure out which process might have the device nodes locked.

OK, after playing with /etc/ld.so.preload and shared libraries, I found the bad guy. It is multipathd from multipath-tools-0.5.0. I don't use multipath-tools on this desktop, but know why they are here (kpartx was needed at one time in order to debug a partition table issue with a disk image, but now I would probably use a partitioned loop device for the same task). Now they are definitely unneeded.

Removed them, but please consider putting a warning in the systemd README file on the incompatibility. As there are no locking-related commits in the multipath-tools repository since 0.5.0, this is definitely not a packaging bug.

Signature · 5 lines
Alexander E. Patrakov
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel