[SOLVED] CentOS 6 installation exits with mdadm error 127 then grub2 freezes at loading stage2.

General support questions
vvvvv
Posts: 7
Joined: 2011/07/23 18:45:28

[SOLVED] CentOS 6 installation exits with mdadm error 127 then grub2 freezes at loading stage2.

Post by vvvvv » 2011/07/26 11:14:48

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.

vvvvv
Posts: 7
Joined: 2011/07/23 18:45:28

Re: CentOS 6 installation exits with mdadm error 127 then grub2 freezes at loading stage2.

Post by vvvvv » 2011/07/26 12:05:44

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.

vvvvv
Posts: 7
Joined: 2011/07/23 18:45:28

Re: CentOS 6 installation exits with mdadm error 127 then grub2 freezes at loading stage2.

Post by vvvvv » 2011/07/27 20:09:22

Nobody has any idea what went wrong? :-?

Or how to get better problem description than "mdadm error 127" or "frozen grub2" ?

pschaff
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.

Post by pschaff » 2011/07/28 21:37:07

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].

vvvvv
Posts: 7
Joined: 2011/07/23 18:45:28

Re: CentOS 6 installation exits with mdadm error 127 then grub2 freezes at loading stage2.

Post by vvvvv » 2011/07/28 22:06:41

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.

pschaff
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.

Post by pschaff » 2011/07/29 14:33:20

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.

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

[SOLVED] CentOS 6 installation exits with mdadm error 127 th

Post by gerald_clark » 2011/07/29 14:41:26

I also tried it and installed grub to md0. It worked.

pschaff
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.

Post by pschaff » 2011/07/29 14:54:58

Hmmm - wonder what the difference is. Guess I need to document my procedure.

gerald_clark
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.

Post by gerald_clark » 2011/07/29 15:50:40

I bet selecting md0 sets: bootloader --location=mbr --driveorder=sda,sdb

pschaff
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.

Post by pschaff » 2011/07/29 18:27:45

You may be correct, but then what is the source of the OP's issue?

Post Reply