1 |
On Friday 15 April 2011 20:46:47 Mark Shields wrote: |
2 |
> On Fri, Apr 15, 2011 at 2:47 PM, Florian Philipp |
3 |
<lists@×××××××××××.net>wrote: |
4 |
> > Am 15.04.2011 16:56, schrieb James: |
5 |
> > > Hello, |
6 |
> > > |
7 |
> > > New day, and a fresh approach to fixing the raid one install. |
8 |
> > > Following this doc (no lvm no intramfs): |
9 |
> > > http://www.gentoo.org/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml |
10 |
> > > |
11 |
> > > The disk were all resync'd (end of last thread). |
12 |
> > > Since this is a simple 3 partition 2 disk mirror |
13 |
> > > (identical drives & formatting) and I want to mirror |
14 |
> > > all three (/boot, /, swap) |
15 |
> > > |
16 |
> > > I used these commands: |
17 |
> > > mdadm --create /dev/md127 --level=1 --raid-devices=2 |
18 |
> > > --metadata=0.90 /dev/sda1 /dev/sdb1 |
19 |
> > > |
20 |
> > > mdadm --create /dev/md125 --level=1 --raid-devices=2 |
21 |
> > > --metadata=0.90 /dev/sda3 /dev/sdb3 |
22 |
> > > |
23 |
> > > mdadm --create /dev/md126 --level=1 --raid-devices=2 |
24 |
> > > --metadata=0.90 /dev/sda2 /dev/sdb2 |
25 |
> > |
26 |
> > If my theory holds, it should be sufficient if /boot has metadata=0.90 |
27 |
> > because that's what grub has to access. |
28 |
> > |
29 |
> > > So do I need to issue these commands? If so, |
30 |
> > > are they correct? A little unclear on mknod.... |
31 |
> > > |
32 |
> > > livecd ~ # mknod /dev/md127 b 9 1 |
33 |
> > > livecd ~ # mknod /dev/md125 b 9 3 |
34 |
> > > or |
35 |
> > > livecd ~ # mknod /dev/md127 b 9 127 |
36 |
> > > livecd ~ # mknod /dev/md125 b 9 125 |
37 |
> > > livecd ~ # mknod /dev/md126 b 9 126 |
38 |
> > > |
39 |
> > > ??? |
40 |
> > |
41 |
> > I doubt you need mknod. Udev should handle this. |
42 |
> > Maybe you should try it without and see whether udev really creates |
43 |
> > them. If so, you might still add them to the static /dev. Use something |
44 |
> > like this: |
45 |
> > mount --bind / /mnt |
46 |
> > mknod /mnt/dev/md127 b 9 1 |
47 |
> > |
48 |
> > This circumvents udev and writes directly to root. Of course, you have |
49 |
> > to replace / with whatever is the mount point of your root partition |
50 |
> > when you boot from a live-CD. |
51 |
> > |
52 |
> > Regards, |
53 |
> > Florian Philipp |
54 |
> |
55 |
> You need mknod during the creation process when booted from a minimal |
56 |
> install disc; when you finish building the system and boot it the first |
57 |
> time, udev handles it from there. |
58 |
|
59 |
I didn't need mknod when I did this last time. udev picked it up correctly |
60 |
from the start. |
61 |
|
62 |
> And yes, you're right; only boot needs the --metadata=0.90. |
63 |
|
64 |
-- |
65 |
Joost |