RAID1

Marius Korthof mkorthof at isightpartners.com
Tue May 28 21:26:22 CEST 2013


Hi,

I'm trying to setup a machine with 4 x 500GB disks as a RAID1 of 2 disks and 2 spares. I run FAI 4.0.6 on Debian 7.0.  I pasted  my disk_config below; at the end of this email.  The installation fails at GRUB (see below). If I change BOOT_DEVICE to /dev/sda GRUB installs ok but host doesn't boot (error: fd0 read error at grub boot prompt). I've tried putting /boot on a separate partition outside the RAID but again the machine wouldn't boot to OS. The RAID is created fine:  "/dev/md0  457G  737M  433G   1% /target" and "mdadm --detail /dev/md0" output is as expected. Same goes for md1 (swap). Also there rest of the FAI installation finishes OK.

I'm assuming this RAID1 setup is supposed to work or is this a known problem? Any hints/fixes/workarounds? TIA

--shell.log-- (relevant part)

=====   shell: GRUB_PC/10-setup   =====
Segmentation fault
Grub installed on /dev/md0 = (mduuid/eeb8b23f29d98f2885fb600f92109ec1)
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-4-amd64
Found initrd image: /boot/initrd.img-3.2.0-4-amd64
Found memtest86+ image: /boot/memtest86+.bin
Found memtest86+ multiboot image: /boot/memtest86+_multiboot.bin
done
GRUB_PC/10-setup     FAILED with exit code 1.

--end--


--disk_config--

# example of new config file for setup-storage
#
# <type> <mountpoint> <size>   <fs type> <mount options> <misc options>

#disk_config disk1 fstabkey:uuid

disk_config disk1
primary         -       250-100%        -       -
primary         -       1000-2000       -       -

disk_config disk2
primary         -       250-100%        -       -
primary         -       1000-2000       -       -

disk_config disk3
primary         -       250-100%        -       -
primary         -       1000-2000       -       -

disk_config disk4
primary         -       250-100%        -       -
primary         -       1000-2000       -       -

disk_config raid fstabkey:uuid
raid1   /       disk1.1,disk2.1,disk3.1:spare,disk4.1:spare ext3 rw,noatime,errors=remount-ro
raid1   swap    disk1.2,disk2.2,disk3.2:spare,disk4.2:spare swap sw

--end--


Met vriendelijke groet / Kind regards,


Marius Korthof


More information about the linux-fai mailing list