FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 12-16-2009, 08:02 PM
NoOp
 
Default 9.10: Grub -> LVM / mdadm hook not found after kernel update

On 12/16/2009 11:44 AM, Denny Schierz wrote:
> hi,
>
> again i have the problem, that i can't boot my system with the latest
> kernel update 2.6.31-16-generic. The boot loader tells me, that hooks
> for lvm/mdadm are not found. Bad. So have to boot the old kernel.
>
> I have on boot partition and the system is on a raid1 (mdadm) and lvm
> inside.

I wonder if it's related to this:
https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/493772
[mdadm + initramfs-tools fail to boot]
Note: that bug is for lucid, but might be worth a look. Also check to
see if you can find similar:
https://bugs.launchpad.net/ubuntu/+source/mdadm


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 01-10-2010, 06:29 PM
Denny Schierz
 
Default 9.10: Grub -> LVM / mdadm hook not found after kernel update

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






--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 01-11-2010, 11:58 PM
Tom H
 
Default 9.10: Grub -> LVM / mdadm hook not found after kernel update

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

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 01-12-2010, 08:58 AM
Denny Schierz
 
Default 9.10: Grub -> LVM / mdadm hook not found after kernel update

hi,

Am Dienstag, den 12.01.2010, 01:58 +0100 schrieb Tom H:

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

yes, I have. My workaround are now two scripts in
scripts/local-top/mdadm|lvm to activate mdadm and lvm, so the systems
boots without any problems now.

cu denny

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 09:19 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org