Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#34373 - kernel 3.8.3-2 fails to boot on mdadm + LVM

Attached to Project: Arch Linux
Opened by Laurent Artaud (laurenta) - Tuesday, 19 March 2013, 14:41 GMT
Last edited by Dave Reisner (falconindy) - Friday, 22 March 2013, 14:21 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture x86_64
Severity Critical
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

kernel starts but soon fails to a minimal console with a message about mdadm (sorry: can't remember the exact message)

downgrade to 3.7.10-1 after booting via live USB corrected the problem.

Additional info:
* package version(s)
linux-3.8.3-2
mdadm-3.2.6-3

Steps to reproduce:
/boot on mdadm RAID1
/ and /home on LVM over another mdadm RAID1
This task depends upon

Closed by  Dave Reisner (falconindy)
Friday, 22 March 2013, 14:21 GMT
Reason for closing:  Won't fix
Additional comments about closing:  No interest in whatever the mdadm hook based failure is. mdadm_udev is the way ahead.
Comment by Dave Reisner (falconindy) - Tuesday, 19 March 2013, 14:48 GMT
This bug report is useless without actual error messages...
Comment by ChrisVS (Strider) - Tuesday, 19 March 2013, 21:09 GMT
Difficult to add messages if your kernel refuses to mount / ...
I experience the same problem (also with the previous kernel) but sometimes my boot succeeds and sometimes not. I the latter case, I always see the message 'waiting 10 seconds for /dev/mapper/...'. Could it be there is a problem in the order of the hooks ?
Here are mine :
HOOKS="base udev autodetect block mdadm lvm2 keymap filesystems keyboard fsck"

UPDATE : when I get a command prompt "/rootfs" and I assemble my arrays with 'mdassemble' and then I type exit then I can continue to boot.
Comment by Laurent Artaud (laurenta) - Wednesday, 20 March 2013, 08:56 GMT
I updated again to get the error message.
"""
root (hd0,0)
Filesystem type is ext2fs, partition type 0xfd
kernel /vmlinuz-linux root=/dev/mapper/array-root ro quiet
[Linux-bzimage, setup=0x4200,size=0x38d090]
initrd /initramfs-linux.img
[Linux-initrd @ 0x37be8000, 0x407f69 bytes]

early console in decompress_kernel

Decompressing Linux... Parsing ELF... done.
Booting the kernel.
ERROR: device '/dev/mapper/array-root' not found. Skipping fsck.
ERROR: Unable to find root device '/dev/mapper/array-root'.
You are being dropped to a recovery shell
Type 'exit' to try and continue booting
sh: can't access tty; job control turned off
[rootfs /]#
"""
I confirm that a downgrade to 3.7.10-1 is the only thing needed to correct the problem.
Comment by Dave Reisner (falconindy) - Wednesday, 20 March 2013, 13:16 GMT
Please stop using mdadm and switch to mdadm_udev.
Comment by ChrisVS (Strider) - Wednesday, 20 March 2013, 20:56 GMT
Switch from mdadm hook to mdadm_udev solved the issue for me.
Comment by Dutch de Ruyter (straykat59) - Wednesday, 20 March 2013, 23:45 GMT
I also have this problem with my / on a raid 0 & ext4 but only on the stock Arch Linux. My custom built kernel built from a modified abs linux package however boots as expected.

HOOKS="base udev autodetect modconf block mdadm_udev filesystems keyboard fsck"

So in my case mdadm_udev doesn't solve the issue.

Apologises for not posting up error message but the boot error is non recoverable & appears not to be getting logged.
Comment by Anton Komolov (xRemaLx) - Thursday, 21 March 2013, 07:54 GMT
Try add sleep 1 before /sbin/mdassemble in hook /lib/initcpio/hooks/mdadm
Comment by Laurent Artaud (laurenta) - Thursday, 21 March 2013, 07:59 GMT
Switching to mdadm_udev solved the problem for me too.
Thanks.
Was there an announcement about the need for this change? I didn't see any…
Comment by Anton Komolov (xRemaLx) - Thursday, 21 March 2013, 08:03 GMT
Switching to mdadm_udev solved the problem for me too.
Thanks.
Comment by Dutch de Ruyter (straykat59) - Friday, 22 March 2013, 14:08 GMT
The Linux package has just been upgraded to 3.8.4-1 but hasn't fixed this bug for me.
Comment by Dave Reisner (falconindy) - Friday, 22 March 2013, 14:21 GMT
> The Linux package has just been upgraded to 3.8.4-1 but hasn't fixed this bug for me.
You're clearly seeing something entirely unrelated to this bug report. Moreover, I have no idea what's broken for you because you haven't supplied anything of value in describing the boot failure. Please open a new report with actual detail if you think this is a problem with the ARCH kernel (I really don't think it is).

> Was there an announcement about the need for this change? I didn't see any…
We've been pushing people towards mdadm_udev for well over a year. There's been no announcement. The mdadm hook will go away someday and be replaced by what mdadm_udev is now.

Loading...