You are not logged in.

#1 2009-04-24 02:33:38

loonies
Member
Registered: 2009-04-24
Posts: 6

Upgrade kernel error: FATAL: Hook 'raid-partitions' can not be found.

Hi,

while upgrading Arch, on kernel upgrade I got this error:

FATAL: Hook 'raid-partitions' can not be found.

$ sudo pacman -Syy
$ sudo pacman -Syu
...
...
( 92/155) upgrading kernel26-firmware               [##########################################################] 100%
( 93/155) upgrading kernel26                        [##########################################################] 100%
>>> Updating module dependencies. Please wait ...
>>> MKINITCPIO SETUP
>>> ----------------
>>> If you use LVM2, Encrypted root or software RAID,
>>> Ensure you enable support in /etc/mkinitcpio.conf .
>>> More information about mkinitcpio setup can be found here:
>>> http://wiki.archlinux.org/index.php/Mkinitcpio

>>> Generating initial ramdisk, using mkinitcpio.  Please wait...
==> Building image "default"
==> Running command: /sbin/mkinitcpio -k 2.6.29-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26.img
:: Begin dry run
:: Parsing hook [base]
:: Parsing hook [udev]
:: Parsing hook [autodetect]
:: Parsing hook [pata]
:: Parsing hook [scsi]
:: Parsing hook [sata]
:: Parsing hook [raid]
FATAL: Hook 'raid-partitions' can not be found.
==> FAIL
==> Building image "fallback"
==> Running command: /sbin/mkinitcpio -k 2.6.29-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26-fallback.img -S autodetect
:: Begin dry run
:: Parsing hook [base]
:: Parsing hook [udev]
:: Parsing hook [pata]
:: Parsing hook [scsi]
:: Parsing hook [sata]
:: Parsing hook [raid]
FATAL: Hook 'raid-partitions' can not be found.
==> FAIL
Optional dependencies for kernel26
    crda: to set the correct wireless channels of your country
...

This is the first time I got this error (hmm..., for more than a year any kind of error cool )

Well, I have RAID level 1 (mirroring).

Here is my /etc/mkinitcpio.conf

MODULES="pata_acpi ata_generic scsi_mod ata_piix"
BINARIES=""
FILES=""
HOOKS="base udev autodetect pata scsi sata raid raid-partitions keymap usbinput filesystems"
$ uname -srv
Linux 2.6.28-ARCH #1 SMP PREEMPT Tue Mar 17 06:42:43 UTC 2009

This means that kernel is not upgraded yet?
ATM I don't want to reboot machine and run into kernel panic.

Any help to get this raid-partitions hook working appreciated.

Offline

#2 2009-04-24 05:54:35

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Upgrade kernel error: FATAL: Hook 'raid-partitions' can not be found.

The raid-partitions hook has been replaced by a new one: mdadm. Replace raid-partitions by mdadm in your /etc/mkinitcpio.conf and run 'pacman -S kernel26'. That will update the kernel if it hasn't been done (I can't tell from what you posted) and will regenerate your initcpio image. I believe that's all you need to do. Complete info here: http://www.archlinux.org/pipermail/arch … 10567.html

Offline

#3 2009-04-24 06:02:09

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,223
Website

Re: Upgrade kernel error: FATAL: Hook 'raid-partitions' can not be found.

Snowman wrote:

The raid-partitions hook has been replaced by a new one: mdadm. Replace raid-partitions by mdadm in your /etc/mkinitcpio.conf and run 'pacman -S kernel26'.

I thought it was just 'raid'? That's what I'm using with my RAID-1 and it works OK... :s

EDIT: Just read the mail list archive, and if I understand correctly, the 'mdadm' hook replaces 'raid' (not 'raid-partitions')?

Last edited by fukawi2 (2009-04-24 06:05:11)

Offline

#4 2009-04-24 07:54:40

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Upgrade kernel error: FATAL: Hook 'raid-partitions' can not be found.

There is a raid hook provided by mkinitcpio and a mdadm hook provided by mdadm.  I was using the raid hook but I switched to the mdadm one in order to test it (ML link). I'm now using the mdadm one (RAID5).  The mdadm hook has extra functionality compared to the raid one.

The raid-partitions hook was removed in favor of mdadm: http://repos.archlinux.org/viewvc.cgi/m … 5&r2=29447

Offline

#5 2009-04-24 08:02:39

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Upgrade kernel error: FATAL: Hook 'raid-partitions' can not be found.

Is there any advantage to using the mdadm hook as opposed to having your RAID configuration specified in GRUB's configuration file? Because that's how I am doing it now (and it's never broken).


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#6 2009-04-24 09:20:52

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,223
Website

Re: Upgrade kernel error: FATAL: Hook 'raid-partitions' can not be found.

Maybe it could solve this problem? smile
http://bbs.archlinux.org/viewtopic.php?id=70008

Offline

#7 2009-04-24 09:45:03

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Upgrade kernel error: FATAL: Hook 'raid-partitions' can not be found.

That's a good idea... Did you try already? Didn't think of that.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#8 2009-04-24 10:45:57

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,223
Website

Re: Upgrade kernel error: FATAL: Hook 'raid-partitions' can not be found.

Will try and report back.

Offline

#9 2009-04-24 11:22:15

loonies
Member
Registered: 2009-04-24
Posts: 6

Re: Upgrade kernel error: FATAL: Hook 'raid-partitions' can not be found.

Snowman wrote:

The raid-partitions hook has been replaced by a new one: mdadm. Replace raid-partitions by mdadm in your /etc/mkinitcpio.conf and run 'pacman -S kernel26'. That will update the kernel if it hasn't been done (I can't tell from what you posted) and will regenerate your initcpio image. I believe that's all you need to do. Complete info here: http://www.archlinux.org/pipermail/arch … 10567.html

Solved

Thanks.

Wiki doesn't seems to point that out.

As stated here, can I remove:
- raid hook
from /etc/mkinitcpio.conf
- md=0,/dev/sda1,/dev/sdb1 md=1,/dev/sda2,/dev/sdb2 part of line
from grub/menu.lst  (kernel /vmlinuz26 root=/dev/md1 ro md=0,/dev/sda1,/dev/sdb1 md=1,/dev/sda2,/dev/sdb2)

?

Offline

#10 2009-04-24 11:37:43

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,223
Website

Re: Upgrade kernel error: FATAL: Hook 'raid-partitions' can not be found.

Yes, this does solve the issue in the post I linked to above big_smile

I have updated a few wiki pages, mainly this one:
http://wiki.archlinux.org/index.php/Con … Using_raid

Offline

Board footer

Powered by FluxBB