Bug 495552 - incorrect mdadm.conf syntax prevent reboot after installation
Summary: incorrect mdadm.conf syntax prevent reboot after installation
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: rawhide
Hardware: All
OS: Linux
low
urgent
Target Milestone: ---
Assignee: David Lehman
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 495581
TreeView+ depends on / blocked
 
Reported: 2009-04-13 19:31 UTC by Matthieu Araman
Modified: 2009-04-26 11:58 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-04-26 11:58:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
anaconda mdadm syntax correction (613 bytes, patch)
2009-04-14 10:01 UTC, Matthieu Araman
no flags Details | Diff

Description Matthieu Araman 2009-04-13 19:31:35 UTC
Description of problem:
installing Rawhide with LVM+Raid setup (see parent bug)

Version-Release number of selected component (if applicable):
boot.iso 20090404

How reproducible:


Steps to Reproduce:
1.install rawhide
2.reboot
3.
  
Actual results:
grub OK
load initrd
some hardware detected
latest message about raid + usb 
then nothing
have to ctrl-alt-suppr

Expected results:
system boot after install

Additional info:
I did some debug and think I found the problem (though once corrected, I'm bitten by another bug which corrupt the system)

with F11 beta, I boot in rescue mode
load partition
then look at /etc/mdadm.conf in the sysimage and /

obvious error -> there's a missing \n between the two lines (as I have both /dev/md0 and /dev/md1, I have two lines for raid)

runs mdadm --examine --scan, which should give the same in my understanding

same :
name of md devices
num-devices
UUID

difference :
mdadm created by anaconda -> level=1
mdadm result -> level=raid1


I edited grub.conf and did the following tests 

standard installation setup -> KO
mkinitrd redone from rescue setup (after chroot /mnt/sysimage) -> KO
mkinitrd redone + correcting the missing \n between the two lines -> KO
mkinitrd redone + correcting both the missing \n and putting level=raid1 -> Boot, load partitions, and freeze later on the firstboot screen (will open another bug for this)

I can't test the latest anaconda because of bug 495261.
Can you correct this one if still present (the missing \n at end of line + replacing level=$n by level=raid$n )?

Comment 1 Matthieu Araman 2009-04-14 10:01:15 UTC
Created attachment 339453 [details]
anaconda mdadm syntax correction

This patch change anaconda mdadm.conf syntax generation to match the output of mdadm --examine --scan (another solution could be to just do a "mdadm --examine --scan > mdadm.conf from the install setup as the md should be started to allow installation to occur so the output should be the same in my opinion)

you'll find original and corrected working mdadm.conf at  
http://plouic.com/fedora-matzilla/rawhide20090404/

Comment 2 David Lehman 2009-04-16 17:28:26 UTC
This should be fixed in anaconda-11.5.0.45-1.

Comment 3 Matthieu Araman 2009-04-26 11:58:32 UTC
I confirm this is working with boot.iso/anaconda-11.5.0.45-1

The system boot correctly after installation.
Raid is correct
/etc/mdadm.conf looks correct
cat /proc/mdstat gives :
/dev/md0 (/boot, ext3 ) : active
/dev/md1 (the rest via LVM) : rebuilding in the background after rebooting


Note You need to log in before you can comment on or make changes to this bug.