You are not logged in.
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 )
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
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
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)
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
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
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
Maybe it could solve this problem?
http://bbs.archlinux.org/viewtopic.php?id=70008
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
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
Will try and report back.
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
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
Yes, this does solve the issue in the post I linked to above
I have updated a few wiki pages, mainly this one:
http://wiki.archlinux.org/index.php/Con … Using_raid
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline