<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 11/03/2011 10:35 AM, Julian Decker wrote:
<blockquote cite="mid:20111103093515.214760@gmx.com" type="cite"><span
style="font-family: Verdana;"><span style="font-size: 12px;">Hi and
thanks to all,<br>
<br>
unfortunately the "-e 1.0" option did not solve the problem.<br>
<br>
I now tried the following config:<br>
<br>
---------------------------------------------------------------------------------<br>
disk_config sda<br>
primary - 10000 - -<br>
primary - 10000 - -<br>
<br>
disk_config sdb<br>
primary - 10000 - -<br>
primary - 10000 - -<br>
<br>
disk_config raid<br>
raid1 / sda1,sdb1 ext3 rw mdcreateopts="-e 1.0"<br>
raid1 swap sda2,sdb2 swap sw mdcreateopts="-e 1.0"<br>
---------------------------------------------------------------------------------<br>
<br>
mdadm is now called whith the -e option:<br>
<br>
...<br>
Executing: yes | mdadm --create -e 1.0 /dev/md0 --level=raid1 --force
--run --id-devices=2 /dev/sda1 /dev/sdb1<br>
[ 54.028489] raid1: md0 is not clean -- starting background
reconstruction<br>
Executing: mdfs.ext3 /dev/md0<br>
Executing: yes | mdadm --create -e 1.0 /dev/md1 --level=raid1 --force
--run --id-devices=2 /dev/sda2 /dev/sdb2<br>
[ 54.028489] raid1: md1 is not clean -- starting background
reconstruction<br>
Executing: mkswap /dev/md1<br>
Executing: fai-vol_id -u /dev/md1<br>
Executing: fai-vol_id -u /dev/md1<br>
Executing: fai-vol_id -u /dev/md0<br>
Executing: fai-vol_id -u /dev/md0<br>
...<br>
<br>
Creation of raid devices does work, after FAI installation I was able
to mount them, fstab looks good too.<br>
<br>
I use Debian 6.0.3 and Grub2 1.98 at the moment.<br>
<br>
<br>
regards<br>
<br>
<br>
<p style="margin: 0px; padding: 0px;"> </p>
<blockquote
style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 5px; padding-left: 5px;"
type="cite">
<p style="margin: 0px; padding: 0px;"> <span
style="font-family: Verdana;"><span style="font-size: 12px;">-----
Original Message -----</span></span></p>
<p style="margin: 0px; padding: 0px;"> <span
style="font-family: Verdana;"><span style="font-size: 12px;">From:
Michael Tautschnig</span></span></p>
<p style="margin: 0px; padding: 0px;"> <span
style="font-family: Verdana;"><span style="font-size: 12px;">Sent:
10/31/11 08:09 PM</span></span></p>
<p style="margin: 0px; padding: 0px;"> <span
style="font-family: Verdana;"><span style="font-size: 12px;">To:
<a class="moz-txt-link-abbreviated" href="mailto:linux-fai@uni-koeln.de">linux-fai@uni-koeln.de</a></span></span></p>
<p style="margin: 0px; padding: 0px;"> <span
style="font-family: Verdana;"><span style="font-size: 12px;">Subject:
Re: RAID Konfiguration FAI</span></span></p>
<br>
<div>
<div>
<pre
style="white-space: pre-wrap; word-wrap: break-word; font-size: 11px;">
Hi all,
I hope sticking with English is ok with everyone. Otherwise please just drop a
brief note here.
> On 10/28/2011 12:46 PM, Julian Decker wrote:
> > Hallo,
> >
> > ich versuche mich derzeit an der Konfiguration eines softRAIDs und
> > habe damit leider Schwierigkeiten.
> > Zunächst habe ich offensichtlich den Fehler gemacht, die boot
> > Partition (Kernel) in das RAID zu legen, was anscheinend nicht möglich
> > ist, da der Kernel (und in Folge mdadm) zuerst geladen werden muss um
> > überhaupt das softRAID ansprechen zu können - das leuchtet mir ja
> > soweit ein.
> > Ich habe nun die boot Partition außerhalb des RAIDs angelegt und nun
> > kann das System zwar den MBR finden und den Bootloader (Grub) laden,
> > allerdings findet dieser die root Partition nicht.
> > Braucht Grub für die Verwendung des RAIDs eine spezielle Konfiguration?
> >
Which version of Grub is that (and which Debian release is it)?
[...]
>
> The problem is superblock version 1.2
>
> having superbloc v1.0 solves the problem with grub and raid1
>
> I have added metadata=1.0 to the mdadm.conf in the nfsroot
> and that solved the problem with bootable raid1
>
> cat /srv/fai/nfsroot/live/filesystem.dir/etc/mdadm/mdadm.conf | grep
> metadata
> CREATE owner=root group=disk mode=0660 auto=yes metadata=1.0
>
This thus seems to be a recurrence (which new metadata versions) of
<a class="moz-txt-link-freetext" href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=570117">http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=570117</a>
Note that fiddling with mdadm.conf shouldn't be necessary - just use
mdcreatopts="-e 1.0" in the raid1 ... line of the disk_config file.
Best,
Michael</pre>
</div>
</div>
</blockquote>
<p style="margin: 0px; padding: 0px;"> <br>
</p>
</span></span></blockquote>
<br>
Could it be that the problem is the missing bootable option ? <br>
<br>
Also note that you need <span style="font-family: Verdana;"><span
style="font-size: 12px;">mdcreateopts="-e 1.0" only for the "/"
partition ...<br>
</span></span>other partitions can have superblock 1.2 imho .<br>
<br>
here is my config which worked for me :<br>
<br>
disk_config sda bootable:1<br>
primary - 25G - -<br>
primary - 10G - -<br>
logical - 20G- - -<br>
<br>
disk_config sdb bootable:1<br>
primary - 25G - -<br>
primary - 10G - -<br>
logical - 20G- - -<br>
<br>
<br>
disk_config raid<br>
<br>
raid1 / sda1,sdb1 ext3 rw,errors=remount-ro<br>
raid1 swap sda2,sdb2 swap sw<br>
raid1 /data_local sda5,sdb5 xfs rw,noatime<br>
<br>
<br>
Best regards , <br>
Alex <br>
</body>
</html>