How to fix Fedora 16 boot problem when using RAID

If you use mdraid (Linux’ software RAID) and you want to install Fedora 16 with /boot, / and swap each in a RAID1 setup your box may not boot once the installation is finished. First go read bugzilla bug 750794 to understand what seems to be happening and why your box with shiny new Fedora 16 may not boot. Here is what I had to do to fix this problem. When you see the “Congratulations…” message at the end of the installation do not reboot. Instead go to the console (alt-f2) and do the following:

1. add the RAID modules to the grub2 environment

2. generate a new grub2 config

3. install grub2 again on both your RAID1 disks. Replace sda & sdb with your devices!!!

Your box should now properly boot. If it does, enjoy your new Fedora 16 installation!

5 thoughts on “How to fix Fedora 16 boot problem when using RAID”

  1. Your blog post was a life saver!

    My FC16 install failed to boot for two reasons:

    1) New FUJITSU server box had RAID set in the disk controllers, needed to disable this and set controllers to “native” mode
    2) FC16 installation media corrupted RAID grub install, per bugzilla bug 750794 cited in your blog

    After reading your post, I did the following:
    1) Boot off FC16 install media and selected RESCUE mode
    2) Issue “chroot /mnt/sysimage”
    3) echo ‘GRUB_PRELOAD_MODULES=”raid mdraid09 mdraid1x”‘ >> /etc/default/grub
    4) grub2-install /dev/sda
    5) grub2-install /dev/sdb
    6) Reboot

    …and yowser–the system restarted, the grub menu popped up and automatically selected the correct boot image!

    Many tnx–you rule, dude!

    P.S. Oddly enough, the procedure on FedoraProject.Org to address this known problem didn’t work

  2. To install grub, grub2 from rescue/restore you may need to bind mount some virtual filesystems, the /proc, /dev, /sys. Sorry I lost the resource that helped sucessful restore in the past. Search to restore grub, grub2.

    like Patrick’s example

    mount –bind /proc /mnt/sysimage/proc
    … …
    … …

Leave a Reply

Your email address will not be published. Required fields are marked *