Raid1 fai install

malk at sidehack.sat.gweep.net malk at sidehack.sat.gweep.net
Wed Dec 15 03:46:04 CET 2004


I threw up the relevant files here:

http://www.linuxma.com/fai_raid

They go w/ the simple example.

This setup does raid1 between /dev/hda3 and /dev/hdc3 for the root filesystem.
It also installs grub on the MBR of both drives so if your BIOS supports
booting from hda or hdc, then you can still boot if either drive fails.

I can't take full credit for this as I got the original config from the
mailing list someone posted a while back.

I found the hook configure.RAID_SERVER fixes the problem where the grub
install on the first hard disk fails like you're having below because
it errors out on there being no /etc/raidtab (at least that's the issue
I had).

There have been fancier setups posted to the mail list before, but I
like this one for it's simplicity IMHO.

Go over each file and tweek to your liking and you should be able to
get a raid-1 setup going without too much trouble.

Best of luck,

-Eric Malkowski

> I've got a raid1 setup working at home
> 
> I will try to remember to post the config area somewhere for you
> to look at.  I based it off one on the mail list a while ago and I remember
> I added a hook so grub would install kernel and ramdisk w/o problems.
> 
> I think it had to do w/ copying the raidtab over before the script that
> handles installing grub runs -- if doing raid, but raidtab isn't there,
> grub-install will erroneously think you're not doing a root raid or
> something like that...
> 
> > 
> > Could someone point me or offer a working mdadm raid1 setup?
> > Even using a /boot:83 partition /dev/sda1 with lilo/grub fails.
> > The install always fails with mkinitrd failing to create the initrd image in /boot.
> > 
> > 
> > Thanks - Andy
> > 
> > 
> 



More information about the linux-fai mailing list