1 |
Mark Knecht <markknecht@×××××.com> wrote: |
2 |
|
3 |
>Hi, |
4 |
> I don't think this is likely to be a Gentoo issue but I figured I'd |
5 |
>ask here first before going elsewhere. (LKML, linux-raid, elsewhere) |
6 |
>Additionally it's not a critical problem at all but rather something |
7 |
>I'd like to try and understand and then report if appropriate. |
8 |
> |
9 |
> On my main i7-980x machine I've been wanting to move root away from |
10 |
>an old 3-disk 50GB RAID1 that I built first built the machine with to |
11 |
>a newer 150GB RAID6. Toward this end the machine has two complete |
12 |
>Gentoo builds on it: |
13 |
> |
14 |
>c2stable ~ # cat /proc/mdstat |
15 |
><SNIP> |
16 |
> |
17 |
>md3 : active raid6 sdc3[1] sdd3[2] sdb3[0] sde3[3] sdf3[5] |
18 |
>157305168 blocks super 1.2 level 6, 16k chunk, algorithm 2 [5/5] |
19 |
>[UUUUU] |
20 |
> |
21 |
>md126 : active raid1 sdd5[2] sdc5[1] sdb5[0] |
22 |
> 52436032 blocks [3/3] [UUU] |
23 |
> |
24 |
>unused devices: <none> |
25 |
>c2stable ~ # |
26 |
> |
27 |
>md126 is the older RAID1, md3 is the newer RAID6. The are both built |
28 |
>on parts of the 5 hard drives in the box. |
29 |
> |
30 |
>The two builds are intended to be identical. Same packages installed, |
31 |
>same kernel with the only exception being the RAID6 uses an initramfs |
32 |
>built into it. A diff of the two kernel configs shows only that |
33 |
>difference: |
34 |
> |
35 |
>c2stable ~ # diff /usr/src/linux/.config |
36 |
>/mnt/newRAID6/usr/src/linux/.config |
37 |
>137c137,139 |
38 |
>< CONFIG_INITRAMFS_SOURCE="" |
39 |
>--- |
40 |
>> CONFIG_INITRAMFS_SOURCE="/usr/src/initramfs.config" |
41 |
>> CONFIG_INITRAMFS_ROOT_UID=0 |
42 |
>> CONFIG_INITRAMFS_ROOT_GID=0 |
43 |
>142a145,146 |
44 |
>> CONFIG_INITRAMFS_COMPRESSION_NONE=y |
45 |
>> # CONFIG_INITRAMFS_COMPRESSION_GZIP is not set |
46 |
>c2stable ~ # |
47 |
> |
48 |
> In my grub.conf file I have three methods of booting the machine. |
49 |
>There are two methods of booting the RAID1 config, using the device |
50 |
>name and using the label. For the RAID6 I have only the label method: |
51 |
> |
52 |
>(NOTE: Snipped out backup kernels just to clarify) |
53 |
> |
54 |
>c2stable ~ # cat /boot/grub/grub.conf |
55 |
>default 0 |
56 |
>timeout 15 |
57 |
>splashimage=(hd0,0)/boot/grub/splash.xpm.gz |
58 |
> |
59 |
>title RAID1 3.6.11-gentoo |
60 |
>root (hd0,0) |
61 |
>kernel (hd0,0)/boot/bzImage-3.6.11-gentoo root=/dev/md126 |
62 |
> |
63 |
>title RAID1 3.6.11-gentoo using LABEL |
64 |
>root (hd0,0) |
65 |
>kernel (hd0,0)/boot/bzImage-3.6.11-gentoo root=LABEL=RAID1root |
66 |
> |
67 |
>title RAID6 3.6.11-gentoo using LABEL |
68 |
>root (hd0,0) |
69 |
>kernel (hd0,0)/boot/bzImage-RAID6-3.6.11-gentoo root=LABEL=RAID6root |
70 |
> |
71 |
>c2stable ~ # |
72 |
> |
73 |
>c2stable ~ # e2label /dev/md126 |
74 |
>RAID1root |
75 |
>c2stable ~ # e2label /dev/md3 |
76 |
>RAID6root |
77 |
>c2stable ~ # |
78 |
> |
79 |
> |
80 |
>The results are: |
81 |
> |
82 |
>1) RAID1 using md126 boots fine |
83 |
>2) RAID1 using label of RAID1root fails |
84 |
>3) RAID6 using label of RAID6root boots fine |
85 |
> |
86 |
> The failure is a kernel crash before the machine gets very far so |
87 |
>the only capture I might be able to try is with a camera and then post |
88 |
>that on line, but the screen is 80x25 and it's just a kernel crash so |
89 |
>there's very little data on the screen when the machine dies. |
90 |
> |
91 |
> I've been Googling around for a couple of days but haven't found |
92 |
>anything very interesting. I figured I'd ask here first just to see |
93 |
>what ideas come up. |
94 |
> |
95 |
>Thanks, |
96 |
>Mark |
97 |
|
98 |
Mark. |
99 |
|
100 |
I seem to remember that to be able to use LABEL for the root= line requires an init* as you need userspace utilities to read the labels. |
101 |
|
102 |
You could try the UUIDs instead. But I am not sure if that might work. |
103 |
|
104 |
HTH |
105 |
|
106 |
Joost |
107 |
|
108 |
PS. All the best for 2013! |
109 |
-- |
110 |
Sent from my Android phone with K-9 Mail. Please excuse my brevity. |