Gentoo Archives: gentoo-user

From: "Ciprian Dorin
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: initramfs & RAID at boot time
Date: Mon, 19 Apr 2010 12:04:16
Message-Id: u2k8e04b5821004190416k626d1001m88cf945ec4fff3bd@mail.gmail.com
In Reply to: Re: [gentoo-user] Re: initramfs & RAID at boot time by Jarry
1 On Sun, Apr 18, 2010 at 10:42, Jarry <mr.jarry@×××××.com> wrote:
2 > On 18. 4. 2010 8:57, Ciprian Dorin, Craciun wrote:
3 >
4 >>     * there is an option for the kernel that must be enabled at
5 >> compile time that enables automatic RAID detection and assembly by the
6 >> kernel before mounting /, but it works only for MD metadata 0.96 (see
7 >> [1]);
8 >>     * the default metadata for `mdadm` is 1.2 (see `man mdadm`, and
9 >> search for `--metadata`), so when creating the RAID you must
10 >> explicitly select the metadata you want;
11 >
12 >> [1]
13 >> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=Documentation/md.txt;h=188f4768f1d58c013d962f993ae36483195fd288;hb=HEAD
14 >
15 >
16 > Which version of mdadm are you using? I have 3.0, and defalut metadata
17 > is 0.90:
18 >
19 >  -e ,  --metadata=
20 >        Declare the style of RAID metadata (superblock) to be used.  The
21 >        default is 0.90 for --create, and to guess for other operations.
22 >        The  default can be overridden by setting the metadata value for
23 >        the CREATE keyword in mdadm.conf.
24 >
25 > BTW [1] says about kernel 2.6.9, things might have changed since then...
26 >
27 > Jarry
28
29
30 On my laptop on which I've made the experiments I have ArchLinux
31 (which always has the bleeding edge packages), I have 3.1.2. So maybe
32 between 3.0 and 3.1 there was this switch from 0.90 to 1.2 default
33 metadata.
34
35 About the autodetection stuff I'm absolutely positive that it only
36 handles 0.90 format as I've tried it and didn't work with the 1.x
37 version of superblock format.
38
39 Ciprian.