[SOLVED] CentOS 6 installation exits with mdadm error 127 then grub2 freezes at loading stage2.
[SOLVED] CentOS 6 installation exits with mdadm error 127 then grub2 freezes at loading stage2.
Hi,
I made a clean reinstall from CentOS5.5_32 to CentOS6.0_64. I'm installing from external usb dvd drive.
My current partitioning:
sda:
- sda1 -> 1GB md0 RAID1
- sda2 -> 499GB md1 RAID1
sdb:
- sdb1 -> 1GB md0 RAID1
- sdb2 -> 499GB md1 RAID1
RAID devices:
- md0 -> 1GB ext4 (/boot)
- md1 -> 499GB VolGroup00 LVM
LVM:
- LogVol01 -> 495GB ext4 (/)
- LogVol00 -> 4GB (swap)
I used this setup for more than two years with CentOS5.5. Now I just switched from ext3 to ext4 and switched on encryption for logvol / and swap, not /boot. Also the installer is told to place the boot loader on /dev/md0. But loader password is not used.
I do only the minimal install but when the installer is rebooting it exits with something like "waiting for mdraid to become clean" "mdadm exited with error status 127". And after reboot grub2 freezes at loading stage2. Is it doing some fsck and should I wait or what?
I've found two similar topics but no solution.
http://forums.oracle.com/forums/thread.jspa?threadID=2203978&tstart=240
http://www.linuxquestions.org/questions/red-hat-31/error-mdadm-exited-with-status-127-a-855713/
Thx for any help.
I made a clean reinstall from CentOS5.5_32 to CentOS6.0_64. I'm installing from external usb dvd drive.
My current partitioning:
sda:
- sda1 -> 1GB md0 RAID1
- sda2 -> 499GB md1 RAID1
sdb:
- sdb1 -> 1GB md0 RAID1
- sdb2 -> 499GB md1 RAID1
RAID devices:
- md0 -> 1GB ext4 (/boot)
- md1 -> 499GB VolGroup00 LVM
LVM:
- LogVol01 -> 495GB ext4 (/)
- LogVol00 -> 4GB (swap)
I used this setup for more than two years with CentOS5.5. Now I just switched from ext3 to ext4 and switched on encryption for logvol / and swap, not /boot. Also the installer is told to place the boot loader on /dev/md0. But loader password is not used.
I do only the minimal install but when the installer is rebooting it exits with something like "waiting for mdraid to become clean" "mdadm exited with error status 127". And after reboot grub2 freezes at loading stage2. Is it doing some fsck and should I wait or what?
I've found two similar topics but no solution.
http://forums.oracle.com/forums/thread.jspa?threadID=2203978&tstart=240
http://www.linuxquestions.org/questions/red-hat-31/error-mdadm-exited-with-status-127-a-855713/
Thx for any help.
Re: CentOS 6 installation exits with mdadm error 127 then grub2 freezes at loading stage2.
I tried reinstalling without encryption it means it's the same setup I used in the past for CentOS5 install (except ext3 -> ext4) but the result is the same, not working cause of the mdadm error.
Re: CentOS 6 installation exits with mdadm error 127 then grub2 freezes at loading stage2.
Nobody has any idea what went wrong? :-?
Or how to get better problem description than "mdadm error 127" or "frozen grub2" ?
Or how to get better problem description than "mdadm error 127" or "frozen grub2" ?
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: CentOS 6 installation exits with mdadm error 127 then grub2 freezes at loading stage2.
I haven't tried a CentOS-6 RAID install but I think the GRUB boot device should be /dev/sda and not /dev/md0. See [url=http://wiki.centos.org/HowTos/SoftwareRAIDonCentOS5]HowTos/SoftwareRAIDonCentOS5[/url].
I'd try putting the CentOS-6 installation DVD in and following [url=http://wiki.centos.org/TipsAndTricks/ReinstallGRUB]How to re-install bootstrap code (GRUB)[/url].
I'd try putting the CentOS-6 installation DVD in and following [url=http://wiki.centos.org/TipsAndTricks/ReinstallGRUB]How to re-install bootstrap code (GRUB)[/url].
Re: CentOS 6 installation exits with mdadm error 127 then grub2 freezes at loading stage2.
Thank you for your reply.
I'll give it a try, however I thought If anaconda is offering me installing the grub on raid1 device it can handle it or at least find underlying physical devices and install it on both of them.
I'll give it a try, however I thought If anaconda is offering me installing the grub on raid1 device it can handle it or at least find underlying physical devices and install it on both of them.
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: CentOS 6 installation exits with mdadm error 127 then grub2 freezes at loading stage2.
I just went through a test install of CentOS-6 on RAID1 and anaconda defaults to writing the GRUB loader to /dev/sda which works nicely.
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
[SOLVED] CentOS 6 installation exits with mdadm error 127 th
I also tried it and installed grub to md0. It worked.
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: CentOS 6 installation exits with mdadm error 127 then grub2 freezes at loading stage2.
Hmmm - wonder what the difference is. Guess I need to document my procedure.
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: CentOS 6 installation exits with mdadm error 127 then grub2 freezes at loading stage2.
I bet selecting md0 sets: bootloader --location=mbr --driveorder=sda,sdb
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: CentOS 6 installation exits with mdadm error 127 then grub2 freezes at loading stage2.
You may be correct, but then what is the source of the OP's issue?