public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Raid1 (continued) mdadm
@ 2011-04-15 14:56 James
  2011-04-15 19:47 ` Florian Philipp
  0 siblings, 1 reply; 4+ messages in thread
From: James @ 2011-04-15 14:56 UTC (permalink / raw
  To: gentoo-user

Hello,

New day, and a fresh approach to fixing the raid one install.
Following this doc (no lvm no intramfs):
http://www.gentoo.org/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml

The disk were all resync'd  (end of last thread).
Since this is a simple 3 partition 2 disk mirror
(identical drives & formatting) and I want to mirror
all three (/boot, /, swap)

I used these commands:
mdadm --create /dev/md127 --level=1 --raid-devices=2 
--metadata=0.90 /dev/sda1 /dev/sdb1

mdadm --create /dev/md125 --level=1 --raid-devices=2 
--metadata=0.90 /dev/sda3 /dev/sdb3

mdadm --create /dev/md126 --level=1 --raid-devices=2 
--metadata=0.90 /dev/sda2 /dev/sdb2

So do I need to issue these commands? If so,
are they correct?  A little unclear on mknod....

livecd ~ # mknod /dev/md127 b 9 1
livecd ~ # mknod /dev/md125 b 9 3 
or 
livecd ~ # mknod /dev/md127 b 9 127
livecd ~ # mknod /dev/md125 b 9 125
livecd ~ # mknod /dev/md126 b 9 126

???





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Raid1 (continued) mdadm
  2011-04-15 14:56 [gentoo-user] Raid1 (continued) mdadm James
@ 2011-04-15 19:47 ` Florian Philipp
  2011-04-16  1:46   ` Mark Shields
  0 siblings, 1 reply; 4+ messages in thread
From: Florian Philipp @ 2011-04-15 19:47 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1649 bytes --]

Am 15.04.2011 16:56, schrieb James:
> Hello,
> 
> New day, and a fresh approach to fixing the raid one install.
> Following this doc (no lvm no intramfs):
> http://www.gentoo.org/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml
> 
> The disk were all resync'd  (end of last thread).
> Since this is a simple 3 partition 2 disk mirror
> (identical drives & formatting) and I want to mirror
> all three (/boot, /, swap)
> 
> I used these commands:
> mdadm --create /dev/md127 --level=1 --raid-devices=2 
> --metadata=0.90 /dev/sda1 /dev/sdb1
> 
> mdadm --create /dev/md125 --level=1 --raid-devices=2 
> --metadata=0.90 /dev/sda3 /dev/sdb3
> 
> mdadm --create /dev/md126 --level=1 --raid-devices=2 
> --metadata=0.90 /dev/sda2 /dev/sdb2
> 

If my theory holds, it should be sufficient if /boot has metadata=0.90
because that's what grub has to access.

> So do I need to issue these commands? If so,
> are they correct?  A little unclear on mknod....
> 
> livecd ~ # mknod /dev/md127 b 9 1
> livecd ~ # mknod /dev/md125 b 9 3 
> or 
> livecd ~ # mknod /dev/md127 b 9 127
> livecd ~ # mknod /dev/md125 b 9 125
> livecd ~ # mknod /dev/md126 b 9 126
> 
> ???
> 
I doubt you need mknod. Udev should handle this.
Maybe you should try it without and see whether udev really creates
them. If so, you might still add them to the static /dev. Use something
like this:
mount --bind / /mnt
mknod /mnt/dev/md127 b 9 1

This circumvents udev and writes directly to root. Of course, you have
to replace / with whatever is the mount point of your root partition
when you boot from a live-CD.

Regards,
Florian Philipp


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Raid1 (continued) mdadm
  2011-04-15 19:47 ` Florian Philipp
@ 2011-04-16  1:46   ` Mark Shields
  2011-04-18  7:37     ` Joost Roeleveld
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Shields @ 2011-04-16  1:46 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 2002 bytes --]

On Fri, Apr 15, 2011 at 2:47 PM, Florian Philipp <lists@binarywings.net>wrote:

> Am 15.04.2011 16:56, schrieb James:
> > Hello,
> >
> > New day, and a fresh approach to fixing the raid one install.
> > Following this doc (no lvm no intramfs):
> > http://www.gentoo.org/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml
> >
> > The disk were all resync'd  (end of last thread).
> > Since this is a simple 3 partition 2 disk mirror
> > (identical drives & formatting) and I want to mirror
> > all three (/boot, /, swap)
> >
> > I used these commands:
> > mdadm --create /dev/md127 --level=1 --raid-devices=2
> > --metadata=0.90 /dev/sda1 /dev/sdb1
> >
> > mdadm --create /dev/md125 --level=1 --raid-devices=2
> > --metadata=0.90 /dev/sda3 /dev/sdb3
> >
> > mdadm --create /dev/md126 --level=1 --raid-devices=2
> > --metadata=0.90 /dev/sda2 /dev/sdb2
> >
>
> If my theory holds, it should be sufficient if /boot has metadata=0.90
> because that's what grub has to access.
>
> > So do I need to issue these commands? If so,
> > are they correct?  A little unclear on mknod....
> >
> > livecd ~ # mknod /dev/md127 b 9 1
> > livecd ~ # mknod /dev/md125 b 9 3
> > or
> > livecd ~ # mknod /dev/md127 b 9 127
> > livecd ~ # mknod /dev/md125 b 9 125
> > livecd ~ # mknod /dev/md126 b 9 126
> >
> > ???
> >
> I doubt you need mknod. Udev should handle this.
> Maybe you should try it without and see whether udev really creates
> them. If so, you might still add them to the static /dev. Use something
> like this:
> mount --bind / /mnt
> mknod /mnt/dev/md127 b 9 1
>
> This circumvents udev and writes directly to root. Of course, you have
> to replace / with whatever is the mount point of your root partition
> when you boot from a live-CD.
>
> Regards,
> Florian Philipp
>
>

You need mknod during the creation process when booted from a minimal
install disc; when you finish building the system and boot it the first
time, udev handles it from there.

And yes, you're right; only boot needs the --metadata=0.90.

[-- Attachment #2: Type: text/html, Size: 2730 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Raid1 (continued) mdadm
  2011-04-16  1:46   ` Mark Shields
@ 2011-04-18  7:37     ` Joost Roeleveld
  0 siblings, 0 replies; 4+ messages in thread
From: Joost Roeleveld @ 2011-04-18  7:37 UTC (permalink / raw
  To: gentoo-user

On Friday 15 April 2011 20:46:47 Mark Shields wrote:
> On Fri, Apr 15, 2011 at 2:47 PM, Florian Philipp 
<lists@binarywings.net>wrote:
> > Am 15.04.2011 16:56, schrieb James:
> > > Hello,
> > > 
> > > New day, and a fresh approach to fixing the raid one install.
> > > Following this doc (no lvm no intramfs):
> > > http://www.gentoo.org/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml
> > > 
> > > The disk were all resync'd  (end of last thread).
> > > Since this is a simple 3 partition 2 disk mirror
> > > (identical drives & formatting) and I want to mirror
> > > all three (/boot, /, swap)
> > > 
> > > I used these commands:
> > > mdadm --create /dev/md127 --level=1 --raid-devices=2
> > > --metadata=0.90 /dev/sda1 /dev/sdb1
> > > 
> > > mdadm --create /dev/md125 --level=1 --raid-devices=2
> > > --metadata=0.90 /dev/sda3 /dev/sdb3
> > > 
> > > mdadm --create /dev/md126 --level=1 --raid-devices=2
> > > --metadata=0.90 /dev/sda2 /dev/sdb2
> > 
> > If my theory holds, it should be sufficient if /boot has metadata=0.90
> > because that's what grub has to access.
> > 
> > > So do I need to issue these commands? If so,
> > > are they correct?  A little unclear on mknod....
> > > 
> > > livecd ~ # mknod /dev/md127 b 9 1
> > > livecd ~ # mknod /dev/md125 b 9 3
> > > or
> > > livecd ~ # mknod /dev/md127 b 9 127
> > > livecd ~ # mknod /dev/md125 b 9 125
> > > livecd ~ # mknod /dev/md126 b 9 126
> > > 
> > > ???
> > 
> > I doubt you need mknod. Udev should handle this.
> > Maybe you should try it without and see whether udev really creates
> > them. If so, you might still add them to the static /dev. Use something
> > like this:
> > mount --bind / /mnt
> > mknod /mnt/dev/md127 b 9 1
> > 
> > This circumvents udev and writes directly to root. Of course, you have
> > to replace / with whatever is the mount point of your root partition
> > when you boot from a live-CD.
> > 
> > Regards,
> > Florian Philipp
> 
> You need mknod during the creation process when booted from a minimal
> install disc; when you finish building the system and boot it the first
> time, udev handles it from there.

I didn't need mknod when I did this last time. udev picked it up correctly 
from the start.

> And yes, you're right; only boot needs the --metadata=0.90.

--
Joost



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-04-18  8:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-15 14:56 [gentoo-user] Raid1 (continued) mdadm James
2011-04-15 19:47 ` Florian Philipp
2011-04-16  1:46   ` Mark Shields
2011-04-18  7:37     ` Joost Roeleveld

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox