[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Best file system

On Fri, Feb 03, 2006 at 09:23:58PM -0200, Henrique de Moraes Holschuh wrote:
> How do you guys install GRUB on a software RAID1 in such a way that it will
> boot if the primary HD goes boom and the BIOS renames the drives?

Suppose you have md0 on sda1 and sdb1, and BIOS orders them in such way:
HD0: sda
HD1: sdb

And that you already have grub set up on sda (during installation or
Then you do:

# grub
> device (hd0) /dev/sdb
> root (hd0,0)
> setup (hd0)

When you unplug sda, then sdb becomes HD0 and everything works as it
should (since root is on md, you don't need to change fstab). You only
need to make sure not to make initrd when the array is degraded, as this
won't boot when using SCSI naming scheme disks (including SATA), at
least that is what happens with sarge initrd-tools.

Marcin Owsiany <porridge@debian.org>             http://marcin.owsiany.pl/
GnuPG: 1024D/60F41216  FE67 DA2D 0ACA FC5E 3F75  D6F6 3A0D 8AA0 60F4 1216

Reply to: