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

Denny Schierz linuxmail at 4lin.net
Sun Jan 10 19:29:33 UTC 2010


hi, 

first, sorry for my very late answer. I had no time over Christmas.

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

so, again, sorry for my late mail.

cu denny






-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20100110/8a62b25e/attachment.sig>


More information about the ubuntu-users mailing list