Install grub on /dev/md0, CentOS 6

General support questions
User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Install grub on /dev/md0, CentOS 6

Post by TrevorH » 2012/01/06 15:44:47

There are many components that might be involved in this problem. Off the top of my head I can think of

grub
mdadm
dracut
kernel

I suspect that all of those have been updated between 6.0 and 6.2 so narrowing down which is the culprit needs some detective work.

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Install grub on /dev/md0, CentOS 6

Post by pschaff » 2012/01/06 15:54:21

Seems from your tests to be related to the kernel, but Trevor has a point - may need more testing. I only used 2.6.32-220.el6 - the original 6.2 kernel - so it seems to be a 6.2 issue. As far as how to file a bug - no time like the present to learn. :-) I recommend starting with [url=http://bugs.centos.org/main_page.php]a CentOS report[/url] and see if the devs think it needs to be kicked upstream, as I suspect it does. Please reference this thread in the report, and if it goes to Red Hat - they have a selection for CentOS bugs under "External Trackers" in [url=https://bugzilla.redhat.com/enter_bug.cgi?product=Red%20Hat%20Enterprise%20Linux%206]Bugzilla[/url].

ebroch
Posts: 15
Joined: 2011/12/28 23:18:25
Location: MT

Re: Install grub on /dev/md0, CentOS 6

Post by ebroch » 2012/01/09 06:07:53

Thanks for all the help. The bug is posted here: http://bugs.centos.org/view.php?id=5400 . Do you guys have any idea how long fixes for these types of issues take?

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

Re: Install grub on /dev/md0, CentOS 6

Post by gerald_clark » 2012/01/09 17:31:41

I removed the current dracut and dracut-kernel, and
re-installed dracut-004-32.el6.noarch and dracut-kernel-004-32.el6.noarch
from the 6.0 DVD.
Then I removed the current kernel and did a yum update kernel.
2.6.32-200.2.1 installed, and I can boot with a disconnected sda.

http://www.centos.org/modules/newbb/viewforum.php?forum=47

It looks like a dracut problem.

ebroch
Posts: 15
Joined: 2011/12/28 23:18:25
Location: MT

Re: Install grub on /dev/md0, CentOS 6

Post by ebroch » 2012/01/09 18:20:23

Gerald,

To be clear, did you mean kernel '2.6.32-220.2.1' rather than '2.6.32-200.2.1?'

Eric

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

Re: Install grub on /dev/md0, CentOS 6

Post by gerald_clark » 2012/01/09 21:18:41

I refered to the kernel, and later in the next sentence, to the version.
After removing the current kernel, I updated to the current kernel, and the initrd worked.

ebroch
Posts: 15
Joined: 2011/12/28 23:18:25
Location: MT

Re: Install grub on /dev/md0, CentOS 6

Post by ebroch » 2012/01/09 22:58:52

Gerald,

You said: "Then I removed the current kernel and did a yum update kernel.
2.6.32-200.2.1* installed, and I can boot with a disconnected sda..."

On my machine the kernel version installed is 2.6.32-220.2.1, not 2.6.32-200.2.1. It won't boot on a failed disk. If you've installed a different kernel version (2.6.32-200.2.1), a previous kernel can you really claim that dracut is the problem?

In order to segregate the problem won't you have to put the seeming problem kernel (2.6.32-220.2.1) on the machine with different versions of dracut?

Again, is this a mistype? Did you intend to put '2.6.32-220.2.1' instead of '2.6.32-200.2.1?' Or is kernel 2.6.32-200.2.1 the final version on the machine you used?

Eric

*Note: This kernel version has 200 not 220 in it as mine does.

User avatar
toracat
Site Admin
Posts: 7518
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: Install grub on /dev/md0, CentOS 6

Post by toracat » 2012/01/09 23:02:02

ebroch, it was a [b]typo[/b]. There is no -200 kernel for CentOS.

ebroch
Posts: 15
Joined: 2011/12/28 23:18:25
Location: MT

Re: Install grub on /dev/md0, CentOS 6

Post by ebroch » 2012/01/09 23:30:00

Thx much, Gerald, for clarifying!!!

cahalsall
Posts: 1
Joined: 2012/01/10 00:31:58

Re: Install grub on /dev/md0, CentOS 6

Post by cahalsall » 2012/01/10 00:52:32

I have this very same setup (/boot partition in /dev/md0 [raid1]) on a Dell PowerEdge 830. I had to revert back to the (2.6.32-71.29.1.el6.i686) kernel after failing to boot from the new (2.6.32-220.2.1.el6.i686) kernel. The original installed operating system is Centos 6 32 bit.

This bug seems to have been reported already at: http://bugs.centos.org/view.php?id=5381

A recommendation was made to reinstall the kernel as a solution. I think I'm going to wait this one out, for now.

Post Reply