Gentoo Archives: gentoo-user

From: Mark Knecht <markknecht@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: How does grub assemble a RAID1 for / ??
Date: Mon, 05 Apr 2010 01:05:48
Message-Id: s2o5bdc1c8b1004041734z52bbd500o98e38fd0ec7159b7@mail.gmail.com
In Reply to: Re: [gentoo-user] Re: How does grub assemble a RAID1 for / ?? by Mark Knecht
1 On Sun, Apr 4, 2010 at 4:58 PM, Mark Knecht <markknecht@×××××.com> wrote:
2 > On Sun, Apr 4, 2010 at 4:51 PM, Kerin Millar <kerframil@×××××.com> wrote:
3 >> On 05/04/2010 00:12, Mark Knecht wrote:
4 >>>
5 >>> 1) If you don't specify metadata then you get the newest - I think
6 >>> that's currently ver. 1.2 or something.
7 >>
8 >> Interesting. I suppose that might be a change in mdadm-3.0 (a version which
9 >> I have yet to use to create any new arrays). However, that would contradict
10 >> the man page which still says:
11 >>
12 >> "0, 0.90, default"
13 >>
14 >>> 2) I tried 1.0 this morning (shown below) which didn't fix it.
15 >>
16 >> Right. Any version above in the 1 series (1, 1.0, 1.1, 1.2) will not work.
17 >> I'm certain that reverting to the original format is going to resolve the
18 >> issue and that we've just been barking up the wrong tree(s) hitherto.
19 >>
20 >> --Kerin
21 >
22 > I'm emerging gentoo-sources in the chroot now.
23 >
24 > One thing about this that still confuses me is where /dev/md3, or
25 > whatever, comes from when I boot if the the mknod command is never
26 > executed within the chrrot. (As per the install guide.) Not a big deal
27 > to proceed and see what happens. Maybe the kernel just creates it
28 > based on discovering the RAID? Or it makes it because I explicitly
29 > define it at the command line?
30 >
31 > As I say, no big deal to just push forward but that's still a question
32 > for me at this point.
33 >
34 > Cheers,
35 > Mark
36 >
37
38 OK, I'm up and running now.
39
40 Using --metadata=0.90 when first creating the RAID was the solution.
41
42 It seems that md0 is (I guess) there by default and then md3 gets
43 created by the kernel extra command line stuff I guess:
44
45 k2 ~ # ls /dev/md*
46 /dev/md0 /dev/md3
47
48 /dev/md:
49 0 3 3_0
50 k2 ~ #
51
52 localhost ~ # df
53 Filesystem 1K-blocks Used Available Use% Mounted on
54 /dev/md3 41294780 2258892 36938208 6% /
55 udev 10240 232 10008 3% /dev
56 shm 3053480 0 3053480 0% /dev/shm
57
58 Thanks for all the help today Kerin. I really appreciate it!
59
60 Cheers,
61 Mark