Gentoo Archives: gentoo-user

From: Mark Shields <laebshade@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Raid1 (continued) mdadm
Date: Sat, 16 Apr 2011 01:48:55
Message-Id: BANLkTi=7Gz9KJRpEUGHMgZ0z0YJ+smmrfg@mail.gmail.com
In Reply to: Re: [gentoo-user] Raid1 (continued) mdadm by Florian Philipp
1 On Fri, Apr 15, 2011 at 2:47 PM, Florian Philipp <lists@×××××××××××.net>wrote:
2
3 > Am 15.04.2011 16:56, schrieb James:
4 > > Hello,
5 > >
6 > > New day, and a fresh approach to fixing the raid one install.
7 > > Following this doc (no lvm no intramfs):
8 > > http://www.gentoo.org/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml
9 > >
10 > > The disk were all resync'd (end of last thread).
11 > > Since this is a simple 3 partition 2 disk mirror
12 > > (identical drives & formatting) and I want to mirror
13 > > all three (/boot, /, swap)
14 > >
15 > > I used these commands:
16 > > mdadm --create /dev/md127 --level=1 --raid-devices=2
17 > > --metadata=0.90 /dev/sda1 /dev/sdb1
18 > >
19 > > mdadm --create /dev/md125 --level=1 --raid-devices=2
20 > > --metadata=0.90 /dev/sda3 /dev/sdb3
21 > >
22 > > mdadm --create /dev/md126 --level=1 --raid-devices=2
23 > > --metadata=0.90 /dev/sda2 /dev/sdb2
24 > >
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 >
56
57 You need mknod during the creation process when booted from a minimal
58 install disc; when you finish building the system and boot it the first
59 time, udev handles it from there.
60
61 And yes, you're right; only boot needs the --metadata=0.90.

Replies

Subject Author
Re: [gentoo-user] Raid1 (continued) mdadm Joost Roeleveld <joost@××××××××.org>