Red Hat Bugzilla – Bug 427960
Grub + Raid + LVM
Last modified: 2008-01-12 17:16:51 EST
I have installed Fedora Core 8 in a machine with 4 disks each 200
GBytes; sda, sdb, sdc, sdd
the partitioning is the following:
md0: /boot (Raid-1 (2 disks + 2 spare disks))
md1: / (RAID-6, (4 disks) + LVM)
- the LVM has logical volumes:
- / for the linux (00)
- /home the rest (02)
- swap (01)
When I now start the server it stops without any GRUB menu coming up,
the error message "GRUB hard disk error" is displayed.
When I start through the linux rescue it works fine. It reads the hard
disk and no problem when I do the chroot /mnt/sysimage
What is the problem? It seems that the hard disk ctructure can not be
read by GRUB.
What to do?
Here is the menu.lst :
title Fedora (18.104.22.168-85.fc8)
kernel /vmlinuz-22.214.171.124-85.fc8 ro root=/dev/VolGroup00/LogVol00
title Fedora (126.96.36.199-42.fc8)
kernel /vmlinuz-188.8.131.52-42.fc8 ro root=/dev/VolGroup00/LogVol00
Maybe it is possible to first install the RAID and then on top of md1 put
afterwards.....but it wont be possible I guess.....
What is the actual problem? Why doesn't it play together?
GRUB doesn't find the hard disks. Any solution.....I can not startup! I am
I tested to do the following:
1. grub-install /dev/sda1
2. change /dev/md0 in mtab and fstab to /dev/sda1
it did not work, because the /boot could not be found anymore.
Created attachment 291083 [details]
I also tried the following:
grub> root (hd0,0)
grub> setup --stage2=/boot/grub/stage2 --prefix=/grub (hd0)
grub> root (hd1,0)
grub> setup --stage2=/boot/grub/stage2 --prefix=/grub (hd1)
but it does not help!
Is there anyone who knows the problem?
Filesystem 1K-blocks Used Available Use% Mounted on
4062912 2592276 1260924 68% /
380296124 199472 360466984 1% /home
/dev/md0 194366 19289 165042 11% /boot
Personalities : [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : active raid1 sda1 sdc1(S) sdd1(S) sdb1
200704 blocks [2/2] [UU]
md1 : active raid6 sda2 sdd2 sdc2 sdb2
397881344 blocks level 6, 256k chunk, algorithm 2 [4/4] [UUUU]
[root@localhost ~]# tail /etc/fstab
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
/dev/VolGroup00/LogVol02 /home ext3 defaults 1 2
/dev/md0 /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
Created attachment 291122 [details]
[root@localhost ~]# grub-install --recheck /dev/md0
Probing devices to guess BIOS drives. This may take a long time.
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
All above have been done in rescue mode after chroot /mnt/sysimage
Now I have been looking into an another machine with FC3. It has grub + raid but
not lvm. Boot is /dev/md0 The setup is exactly the same as in the FC8. It works
What is the difference? BIOS problem? No, I don't think so as the machines are
exactly the same and have the same BIOS as well as hardware.
My conclusion is that something must have happened with GRUB from FC3 -> FC8
I can not use the machine at all because I can only start it in rescue mode.
Is there anyone who can help me as this is a critical error. I would be thankful
to get some advice.