27.10.2014 21:49, Lennart Poettering wrote:
On Mon, 27.10.14 21:46, Alexander E. Patrakov (patra...@gmail.com) wrote:

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),
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.

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.

Here is a list of files in my initramfs which, according to grep, contain the word "flock":

./usr/bin/flock
./usr/lib64/systemd/systemd-udevd
./usr/lib64/systemd/systemd-fsck
./usr/lib64/libseccomp.so.2.1.1
./usr/lib64/libgpg-error.so.0.12.1
./lib64/modules/3.17.1-gentoo-r1/kernel/fs/afs/kafs.ko
./lib64/modules/3.17.1-gentoo-r1/kernel/fs/cifs/cifs.ko
./lib64/modules/3.17.1-gentoo-r1/kernel/fs/fuse/fuse.ko
./lib64/modules/3.17.1-gentoo-r1/kernel/fs/gfs2/gfs2.ko
./lib64/modules/3.17.1-gentoo-r1/kernel/fs/lockd/lockd.ko
./lib64/modules/3.17.1-gentoo-r1/kernel/fs/nfs/nfs.ko
./lib64/modules/3.17.1-gentoo-r1/kernel/fs/nfs/nfsv4.ko
./lib64/modules/3.17.1-gentoo-r1/kernel/fs/ocfs2/ocfs2.ko
./lib64/modules/3.17.1-gentoo-r1/kernel/fs/xfs/xfs.ko
./lib64/modules/3.17.1-gentoo-r1/modules.symbols
./lib64/dracut-crypt-lib.sh
./lib64/libdevmapper-event.so.1.02
./lib64/liblvm2cmd.so.2.02
./lib64/libaudit.so.1.0.0
./lib64/libc-2.19.so
./lib64/libuuid.so.1.3.0
./lib64/libmount.so.1.1.0
./lib64/libpthread-2.19.so
./lib64/libmultipath.so.0
./sbin/lvm
./sbin/fsck
./sbin/btrfs
./sbin/dhclient
./sbin/btrfsck


--
Alexander E. Patrakov
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to