www.centos.org Forum Index CentOS 6 - General Support Install grub on /dev/md0, CentOS 6
|
Bottom Previous Topic Next Topic |
|
| |
|
|
|---|
| Poster | Thread |
|---|
|
Re: Install grub on /dev/md0, CentOS 6 | #2 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2011/12/28
From MT
Posts: 15
|
The above Dell server has NO hardware raid devices, so I'm not sure whether the the information on this link (http://wiki.centos.org/HowTos/SoftwareRAIDonCentOS5) applies.
When installing CentOS 6 I went through the same procedure as with CentOS 5 (which I have done many, many times before) when implementing a bootable RAID 1 on /dev/md0. Why does it work in CentOS 5 and not in CentOS 6 when following the same procedures as I've always done? Any help would be greatly appreciated. |
||
Posted on: 2011/12/29 15:28
|
|||
|
Re: Install grub on /dev/md0, CentOS 6 | #3 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
|
Did you install GRUB on the MBR on both RAID members as outlined in the Wiki article? That should work if done correctly, although I admittedly have not tested it on CentOS-6.
|
||
|
_________________
Phil Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2011/12/31 14:18
|
|||
|
Re: Install grub on /dev/md0, CentOS 6 | #4 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2011/12/28
From MT
Posts: 15
|
I followed the instructions on this wiki (http://wiki.centos.org/HowTos/SoftwareRAIDonCentOS5) and when I failed a drive to test whether the machine would boot from 1 drive or the other I got the message 'kernel panic - not syncing: Attempted to kill init!"
|
||
Posted on: 2012/1/2 19:52
|
|||
|
Re: Install grub on /dev/md0, CentOS 6 | #5 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
|
Please provide more information about your system by running "./getinfo.sh disk" and showing us the output file, along with the contents of /boot/grub/grub.conf.
|
||
|
_________________
Phil Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2012/1/2 19:59
|
|||
|
Re: Install grub on /dev/md0, CentOS 6 | #6 |
|
|---|---|---|---|
|
Professional Board Member
![]()
Joined: 2005/8/5
From Northern Illinois, USA
Posts: 6175
|
If you installed grub on md0, you must have a standard MBRs with the md0 raid partitions marked as active.
|
||
Posted on: 2012/1/3 18:17
|
|||
|
Re: Install grub on /dev/md0, CentOS 6 | #7 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2011/12/28
From MT
Posts: 15
|
Sorry about the delay getting the output of 'getinfo.sh' I was in the middle of trying another procedure with the machine.
I followed the instructions here: http://wiki.centos.org/HowTos/SoftwareRAIDonCentOS5 with the following exceptions: 1) Installed CentOS 6 minimal install 2) Didn't make /dev/sda1 and /dev/sdb1 primary partitions. Is this necessary? 3) Started network services to do update of system. To test the system I shut it down, unplugged hd1 and started it. The following error ensued: Kernel panic - not syncing: Attempted to kill init! panic occurred, switching back to text console I've posted the output to 'getinfo.sh' at http://pastebin.centos.org [Moderator edit] The actual URL is http://pastebin.centos.org/38234 . |
||
Posted on: 2012/1/4 16:49
|
|||
|
Re: Install grub on /dev/md0, CentOS 6 | #8 |
|
|---|---|---|---|
|
Professional Board Member
![]()
Joined: 2005/8/5
From Northern Illinois, USA
Posts: 6175
|
They should be primary partitions.
|
||
Posted on: 2012/1/4 17:24
|
|||
|
Re: Install grub on /dev/md0, CentOS 6 | #9 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
|
So, they are primary partitions. Have you have done
You forgot /boot/grub/grub.conf |
||
|
_________________
Phil Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2012/1/4 21:00
|
|||
|
Re: Install grub on /dev/md0, CentOS 6 | #10 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2011/12/28
From MT
Posts: 15
|
I did the following:
grub> root (hd1,0) grub> setup (hd1) grub> root (hd0,0) grub> setup (hd0) |
||
Posted on: 2012/1/5 0:08
|
|||
|
Re: Install grub on /dev/md0, CentOS 6 | #11 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2011/12/28
From MT
Posts: 15
|
On the link (http://wiki.centos.org/HowTos/SoftwareRAIDonCentOS5) I installed the bootloader using method 1.
|
||
Posted on: 2012/1/5 0:11
|
|||
|
Re: Install grub on /dev/md0, CentOS 6 | #12 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2011/12/28
From MT
Posts: 15
|
I'm going to reinstall the system with sda1 and sdb1 as md0 raid 1 on which /boot resides as primary partitions and I'll resubmit the output of 'getinfo.sh' and the grub configuration file.
|
||
Posted on: 2012/1/5 0:18
|
|||
|
Re: Install grub on /dev/md0, CentOS 6 | #13 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2011/12/28
From MT
Posts: 15
|
OK. I Re-installed CentOS 6 with sda1 and sdb1 as primary partitions. Still no boot on failed drive...same error as above. The grub config. file and the output of getinfo.sh is at this link: http://pastebin.centos.org/38236
|
||
Posted on: 2012/1/5 2:25
|
|||
|
Re: Install grub on /dev/md0, CentOS 6 | #14 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
|
They were already primary partitions the last time around - you apparently just did not force them to be. I'm mystified, but right now it's past my bedtime. Will try to do some testing tomorrow on VirtualBox.
|
||
|
_________________
Phil Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2012/1/5 2:46
|
|||
|
Re: Install grub on /dev/md0, CentOS 6 | #15 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2011/12/28
From MT
Posts: 15
|
'Mystified' is a good word for it and describes my thoughts exactly. Thanks for all your help so far, though. I have confidence in Linux because there has always been ryhme or reason to dilemmas and it usually ends in my having made a mistake.
In my 'travels' through this dilemma I've installed the i386 version of CentOS 6 and the x86_64 version of the same, both minimal installs. There is a difference in options upon install. In the i386 install there is a screen which allows one to make devices 'system' drives rather than 'data' drives and at the same time gives the option to choose which device will have the boot-loader. This screen comes after the screen of options 'Which type of installation would you like' where the 'Create Custom Layout' occurs. This screen of options (devices system or data and boot-loader) has not been present in the x86_64 minimal install. During the i386 install I made both disks system disks with the boot-loader on the first. After install and update I was able to boot the OS after disk failure but only the kernel which was originally installed. The updated kernel would not boot on disk failure and yielded the error mentioned above. |
||
Posted on: 2012/1/5 5:12
|
|||
|
Re: Install grub on /dev/md0, CentOS 6 | #16 |
|
|---|---|---|---|
|
Newbie
![]()
Joined: 2012/1/5
From
Posts: 2
|
Hi,
I have the same behavior here. no boot on failed drive. It works only with kernel which was originally installed. After update no boot on failed drive, kernel panic. md0 is created on sda1 and sdb1 as primary partition. Grub is installed on both sda1 and sdb1. it works fine on CentOS 5. Grub.conf ------------------------ #boot=/dev/sda default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title CentOS (2.6.32-220.2.1.el6.i686) root (hd0,0) kernel /vmlinuz-2.6.32-220.2.1.el6.i686 ro root=/dev/mapper/VG-LV_root rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=de-latin1-nodeadkeys SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=VG/LV_swap rd_MD_UUID=281f0128:d9149f07:ecadd945:a2317fad LANG=de_DE.UTF-8 rd_NO_DM rd_LVM_LV=VG/LV_root initrd /initramfs-2.6.32-220.2.1.el6.i686.img title centos (2.6.32-220.el6.i686) root (hd0,0) kernel /vmlinuz-2.6.32-220.el6.i686 ro root=/dev/mapper/VG-LV_root rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=de-latin1-nodeadkeys quiet SYSFONT=latarcyrheb-sun16 rhgb crashkernel=auto rd_LVM_LV=VG/LV_swap rd_MD_UUID=281f0128:d9149f07:ecadd945:a2317fad LANG=de_DE.UTF-8 rd_NO_DM rd_LVM_LV=VG/LV_root initrd /initramfs-2.6.32-220.el6.i686.img -------------------------- ./getinfo.sh disk Any help would be greatly appreciated. PS. sorry for my bad english |
||
Posted on: 2012/1/5 12:39
|
|||
|
Re: Install grub on /dev/md0, CentOS 6 | #17 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
|
Quote:
Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature. After reading those links you should realize why you should not hijack threads as you have done. Please start a new Topic for your issue to get the attention you need, providing a link to this one if required for context. |
||
|
_________________
Phil Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2012/1/5 16:34
|
|||
|
Re: Install grub on /dev/md0, CentOS 6 | #18 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2011/12/28
From MT
Posts: 15
|
Phil,
I installed an earlier version of CentOS 6 (Version 6.0), a minimal install, without doing an update and it boots when either drive is failed. I'm posting the output of 'getinfo.sh' and grub.conf. This was accomplished using 'http://wiki.centos.org/HowTos/SoftwareRAIDonCentOS5' (method 2), including zeroing sda1/sdb1, and using 'nodmraid' at install time. I have not done the update yet but will proceed to see if that works. http://pastebin.centos.org/38238 Eric |
||
Posted on: 2012/1/5 17:50
|
|||
|
Re: Install grub on /dev/md0, CentOS 6 | #19 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
|
Tried a fresh 6.2 install with RAID1 on VirtualBox. Took the default of /dev/sda for GRUB at install time. No matter which method I use to update grub on both disks, nor which disk I remove, I am getting "Kernel panic - not syncing: attempted to kill init!" if either disk is missing.
Looks a lot like a bug to me. If there is one upstream I failed to find it. None found for CentOS either. |
||
|
_________________
Phil Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2012/1/6 14:55
|
|||
|
Re: Install grub on /dev/md0, CentOS 6 | #20 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2011/12/28
From MT
Posts: 15
|
Phil,
Since it works with kernel 2.6.32-131.0.15.el6.x86_64 (CentOS 6.1) and not with kernel 2.6.32-220.2.1.el6.x86_64 (CentOS 6.2) do you believe it to be a problem with later kernel? Do you have any recommendations? I've never reported a bug before. Eric |
||
Posted on: 2012/1/6 15:30
|
|||
Top Previous Topic Next Topic |
|
|



Topic options
Print Topic
Threaded
Newest First
ebroch






You cannot start a new topic.