1 |
Am 15.04.2011 16:56, schrieb James: |
2 |
> Hello, |
3 |
> |
4 |
> New day, and a fresh approach to fixing the raid one install. |
5 |
> Following this doc (no lvm no intramfs): |
6 |
> http://www.gentoo.org/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml |
7 |
> |
8 |
> The disk were all resync'd (end of last thread). |
9 |
> Since this is a simple 3 partition 2 disk mirror |
10 |
> (identical drives & formatting) and I want to mirror |
11 |
> all three (/boot, /, swap) |
12 |
> |
13 |
> I used these commands: |
14 |
> mdadm --create /dev/md127 --level=1 --raid-devices=2 |
15 |
> --metadata=0.90 /dev/sda1 /dev/sdb1 |
16 |
> |
17 |
> mdadm --create /dev/md125 --level=1 --raid-devices=2 |
18 |
> --metadata=0.90 /dev/sda3 /dev/sdb3 |
19 |
> |
20 |
> mdadm --create /dev/md126 --level=1 --raid-devices=2 |
21 |
> --metadata=0.90 /dev/sda2 /dev/sdb2 |
22 |
> |
23 |
|
24 |
If my theory holds, it should be sufficient if /boot has metadata=0.90 |
25 |
because that's what grub has to access. |
26 |
|
27 |
> So do I need to issue these commands? If so, |
28 |
> are they correct? A little unclear on mknod.... |
29 |
> |
30 |
> livecd ~ # mknod /dev/md127 b 9 1 |
31 |
> livecd ~ # mknod /dev/md125 b 9 3 |
32 |
> or |
33 |
> livecd ~ # mknod /dev/md127 b 9 127 |
34 |
> livecd ~ # mknod /dev/md125 b 9 125 |
35 |
> livecd ~ # mknod /dev/md126 b 9 126 |
36 |
> |
37 |
> ??? |
38 |
> |
39 |
I doubt you need mknod. Udev should handle this. |
40 |
Maybe you should try it without and see whether udev really creates |
41 |
them. If so, you might still add them to the static /dev. Use something |
42 |
like this: |
43 |
mount --bind / /mnt |
44 |
mknod /mnt/dev/md127 b 9 1 |
45 |
|
46 |
This circumvents udev and writes directly to root. Of course, you have |
47 |
to replace / with whatever is the mount point of your root partition |
48 |
when you boot from a live-CD. |
49 |
|
50 |
Regards, |
51 |
Florian Philipp |