9.10: Grub -> LVM / mdadm hook not found after kernel update

Tom H tomh0665 at gmail.com
Tue Jan 12 00:58:35 UTC 2010


> so, the exact error message was:
> /scripts/init-premount/mdadm line 98: add_mountroot_fail_hook not found
> /scripts/init-premount/lvm line 39: add_mountroot_fail_hook not found

> i got this message after the first kernel update (from
> 2.6.31-14-generic, to 2.6.31-16-generic). I absolutely sure, that the
> ramdisk is the problem. To get it a _bit_ working, i copied the scripts
> out of the ramdisk 2.6.31-14-generic /scripts/*
> to /etc/initramfs-tools/scripts/ and did an update-initramfs -u -t.
> Voila, the error disappears (i made a copy before). But to get the
> system booting, I have to type:

> initramfs> mdadm -A /dev/md1 /dev/sdb1 /dev/sdc1
> initramfs> lvm vgchange -a y
> initramfs> exit

> I don't know, why the raid doesn't start. Without /dev/md1 the LVM can't
> get up

> The /etc/mdadm.conf is OK and works for the old kernel/ramdisk from
> 2.6.31-14-generic:
> DEVICE partitions
> CREATE owner=root group=disk mode=0660 auto=yes
> HOMEHOST <system>
> ARRAY /dev/md1 level=raid1 num-devices=2
> UUID=3f7d6e60:9776d2cb:dfba13a3:6a307b36

> First i thought, of missing modules (multipath/raid1) and did some grub
> tests, but the modules are available and working. But Raid doesn't start
> automatically ...

Do you have udev rules for mdadm and lvm in the 2.6.31-16 initrd?




More information about the ubuntu-users mailing list