Home_greyopenFATE - openSUSE feature tracking > #310857
Dashboard | Search | Sign up | Login

Please login or register to be able to edit or vote this feature.

Fallback entry in GRUB for RAID systems

Feature state



GRUB supports a "fallback" entry that is booted if the default kernel is not available or bootable.

In short: that's exactly what you want on a system with RAID (at least RAID1, not sure if other RAID types are supported.

Unfortunately you have to add this fallback manually. Instead it should be auto-created by perl-bootloader.

The generated menu.lst should look like this on a RAID1 system:

default 0
fallback 1
title openSUSE 
    root (hd0,4)
    kernel /boot/vmlinuz- root=/dev/md1 vga=0x317
    initrd /boot/initrd-
title openSUSE 11.1 - second harddisk 
    root (hd1,4)
    kernel /boot/vmlinuz- root=/dev/md1 vga=0x317 fallback_booted_from_sdb
    initrd /boot/initrd-
# [... failsave section skipped ...]

Added are:

  • the "fallback 1" line
  • the section for the second harddisk - except the "root (hd1,4)" instead of hd0,4 it is an exact copy of the first section

Optional: Add another section for failsave booting from the second harddisk.

Oh, and if someone runs a RAID with 3 harddisks, I'd like to have a menu.lst entry for each of them - even if only the first and second are automatically booted by GRUB ;-)

User benefit:

Imagine a system with RAID1 that has a major failure on the first harddisk or just got the first harddisk replaced after a failure.
In the current state the system will not boot (at least without editing menu.lst), with this feature implemented it will boot automatically.


icons/user_comment.png L. M. wrote: (5 years ago)

Please don't add this by default with any RAID (1) setup.  It makes things more complex and all tools like perl-Bootloader have to cover it too.

This is a special case.  We have to cover the standard, default use cases better.

Last change: 5 years ago
Score: 1
  • Negative: 1
  • Neutral: 0
  • Positive: 2

No tags yet.

Feature Export
Application-xmlXML   Text-x-logPlaintext   PrinterPrint