You are not logged in.

#1 2011-06-21 08:43:43

Orim
Member
Registered: 2009-12-10
Posts: 61

Boot errors with udev and mdadm

Hey there,

after the recent initscript updates my system still boots but prints a lot of error messages like this:

udevd[421]: failed to execute '/sbin/mdadm' '/sbin/mdadm --detail --export /dev/md1': No such file or directory

My raids are assembled and started so I'm not sure what the problem is.

I have one RAID1 and one RAID5, the RAID1 device contains my boot partition the RAID5 device is encrypted
with luks and contains everything else (lvm volumes formatted with ext4).

Here is my mkinitcpio.conf:

MODULES="radeon ext2 ext3 ext4 vfat"

BINARIES=""
FILES=""

HOOKS="base udev autodetect pata scsi sata mdadm filesystems usb usbinput encrypt lvm2"

And my grub kernel line:

root (hd0,0)
kernel /vmlinuz26 cryptdevice=/dev/md1:lvm cryptkey=/dev/sdd1:ext3:/vault root=/dev/mapper/lvm-root rootdelay=10 radeon.modeset=1 ro initrd /kernel26.img

The raid volumes are unlocked with a key from an usb device.

Again, everything works fine and has done so for almost 2 years now. I'm just wondering about those udev errors.

Offline

#2 2011-06-21 10:10:17

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Boot errors with udev and mdadm

The problem is that our mdadm hook attempts to assemble via /sbin/mdassemble (or manually), but it includes a udev rule for creating by-{uuid,label,path} symlinks. This is the same rule that triggers automatic assembly of arrays. However, since we package in mdassemble with the hook and not mdadm, you get those errors. Including mdadm on the hook will actually increase boot time because your array will be assembled by udev (when early userspace calls udev trigger), and then stopped and reassembled by mdassemble. Ugly.

You've got 2 choices:

1) ignore it. in the end its harmless.
2) Replace the hook with the one I've posted on flyspray: https://bugs.archlinux.org/task/23905

Last edited by falconindy (2011-06-21 13:29:30)

Offline

#3 2011-06-21 13:24:44

jamar
Member
Registered: 2011-06-21
Posts: 1

Re: Boot errors with udev and mdadm

falconindy wrote:

2) Replace the hook with the one I've posted on flyspray: https://bugs.archlinux.org/task/24807

The flyspray link should be: https://bugs.archlinux.org/task/23905.
Anyway, thanks for pointing this out, system boots now without errors, I only had to change md device references to UUIDs.

Offline

#4 2011-06-21 13:30:06

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Boot errors with udev and mdadm

jamar wrote:

The flyspray link should be: https://bugs.archlinux.org/task/23905.

Sigh, thank you.

Offline

Board footer

Powered by FluxBB