Re: grub-install fails on software RAID

2013-11-15 Diskussionsfäden Thomas Lange
On Wed, 30 Oct 2013 13:25:59 +0100 (CET), o...@v-brinkmann.de o...@v-brinkmann.de said: /usr/sbin/grub-probe: Fehler: no such disk. Auto-detection of a filesystem of /dev/md0 failed. The same error occurs if I replace (md0) with (hd0) or (hd1), the only entries in

Re: grub-install fails on software RAID

2013-11-15 Diskussionsfäden Thomas Lange
On Wed, 30 Oct 2013 13:42:29 +0100, Markus Koeberl markus.koeb...@tugraz.at said: I have scripts/GRUB_PC/20-raid in my config space with: Thanks Markus, it's a great idea to parse mdstat for getting the list of disks. I modified your code and now I use this for installing grub onto all

Re: grub-install fails on software RAID

2013-10-30 Diskussionsfäden o...@v-brinkmann.de
Thomas Lange la...@informatik.uni-koeln.de hat am 29. Oktober 2013 um 22:07 geschrieben: GROOT=$(echo $GROOT | sed 's:md/:md:g') I've just read the git log. This minor patch is not needed any more in wheezy. That's why these lines were removed on Sep 8th. I guess you still have them in

Re: grub-install fails on software RAID

2013-10-30 Diskussionsfäden Michael Senizaiz
I use a script to bypass partitioning since we have servers with 1-6 disks. Anything with more than 1 disk gets raided, so I have to pass the following to /tmp/fai/disk_var.sh which is read in by the grub setup. Make sure you are using 1.2 metadata for your array. You don't have to bypass

Re: grub-install fails on software RAID

2013-10-30 Diskussionsfäden Markus Koeberl
On Wednesday 30 October 2013 13:25:59 o...@v-brinkmann.de wrote: Thomas Lange la...@informatik.uni-koeln.de hat am 29. Oktober 2013 um 22:07 geschrieben: GROOT=$(echo $GROOT | sed 's:md/:md:g') I've just read the git log. This minor patch is not needed any more in wheezy. That's why

Re: grub-install fails on software RAID

2013-10-30 Diskussionsfäden Michael Senizaiz
Another post-script I run checks the status of the MD sync. If the drive isn't synced the boot sectors may not be on all member disks. I have a LAST script that waits for arrays to sync before rebooting (good idea regardless). If you have multiple arrays you can loop this. I actually just have

Re: grub-install fails on software RAID

2013-10-30 Diskussionsfäden o...@v-brinkmann.de
Markus Koeberl markus.koeb...@tugraz.at hat am 30. Oktober 2013 um 13:42 geschrieben: #install on all member disks $ROOTCMD grub-install --no-floppy /dev/$device Even if I try $ROOTCMD grub-install --no-floppy /dev/sda or /dev/sdb (which are returned by your perl one-liner), I get

Re: grub-install fails on software RAID

2013-10-30 Diskussionsfäden Michael Senizaiz
When installing on a regular disk without raid use the partition number. e.g. /dev/sda1. When installing on an array use the array number /dev/md/0 On Wed, Oct 30, 2013 at 8:16 AM, o...@v-brinkmann.de o...@v-brinkmann.dewrote: ** Markus Koeberl markus.koeb...@tugraz.at hat am 30. Oktober

Re: grub-install fails on software RAID

2013-10-30 Diskussionsfäden Markus Koeberl
On Wednesday 30 October 2013 14:16:48 o...@v-brinkmann.de wrote: Markus Koeberl markus.koeb...@tugraz.at hat am 30. Oktober 2013 um 13:42 geschrieben: #install on all member disks $ROOTCMD grub-install --no-floppy /dev/$device Even if I try $ROOTCMD grub-install --no-floppy

Re: grub-install fails on software RAID

2013-10-30 Diskussionsfäden o...@v-brinkmann.de
Michael Senizaiz trel...@gmail.com hat am 30. Oktober 2013 um 14:19 geschrieben: When installing on a regular disk without raid use the partition number. e.g. /dev/sda1. When installing on an array use the array number /dev/md/0 No matter where I try to install, I always get the

Re: grub-install fails on software RAID

2013-10-30 Diskussionsfäden o...@v-brinkmann.de
Markus Koeberl markus.koeb...@tugraz.at hat am 30. Oktober 2013 um 14:42 geschrieben: I am using: disk_config disk1 disklabel:gpt-bios align-at:4K which creates a bios_grub partition at the beginning of the disk (sector 2048-4095) This indeed created a bios_grub partition, but didn't

Re: grub-install fails on software RAID

2013-10-29 Diskussionsfäden Thomas Lange
On Tue, 29 Oct 2013 13:10:00 +0100, Olav Brinkmann o...@v-brinkmann.de said: disk_config raid fstabkey:uuid raid1 /boot sda1,sdb1 ext4rw raid1 / sda2,sdb2 ext4rw Everything seems OK so far, but during the installation run the default

Re: grub-install fails on software RAID

2013-10-29 Diskussionsfäden andrew bezella
On Tue, 2013-10-29 at 13:10 +0100, Olav Brinkmann wrote: [...] Everything seems OK so far, but during the installation run the default GRUB_PC/10-setup script fails at root@thehost:~# $ROOTCMD grub-install --no-floppy (md0) /usr/sbin/grub-probe: Fehler: no such disk. Auto-detection of a

Re: grub-install fails on software RAID

2013-10-29 Diskussionsfäden Thomas Lange
I just installed a new webserver which uses RAID1 for / but I have no separate /boot on this machine. I've added two lines to GRUB_PC/10-setup: faiserver[.../scripts/GRUB_PC] ~/fai-4.1/examples/simple/scripts/GRUB_PC/ 15,17d14 # see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=606035

Re: grub-install fails on software RAID

2013-10-29 Diskussionsfäden Thomas Lange
On Tue, 29 Oct 2013 21:52:25 +0100, Thomas Lange la...@informatik.uni-koeln.de said: I've added two lines to GRUB_PC/10-setup: faiserver[.../scripts/GRUB_PC] ~/fai-4.1/examples/simple/scripts/GRUB_PC/ 15,17d14 # see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=606035

Re: grub-install fails on software RAID

2013-10-29 Diskussionsfäden Iordan Iordanov
Hello Thomas, On the topic of FAI installs on RAIDed devices, is configuring RAID onto whole-disk devices now supported? For example, our typical simple server is installed on a RAID1 mirror (/dev/md0) which sits on top of two unpartitioned devices /dev/sda and /dev/sdb. The partitions on