linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to initialize "composite" RAID
@ 2010-09-10 22:14 Mike Hartman
  2010-09-10 22:28 ` Wolfgang Denk
  0 siblings, 1 reply; 14+ messages in thread
From: Mike Hartman @ 2010-09-10 22:14 UTC (permalink / raw)
  To: linux-raid

This is unrelated to my other RAID thread, but I discovered this issue
when I was forced to hard restart due to the other one.

My main raid (md0) is a RAID 5 composite that looks like this:

- partition on hard drive A (1.5TB)
- partition on hard drive B (1.5TB)
- partition on hard drive C (1.5TB)
- partition on RAID 1 (md1) (1.5TB)

md1 is a RAID 0 used to combine two 750GB drives I already had so that
they could be fit into the larger RAID 5 (since all the RAID 5
components need to be the same size).

This seems to be a fairly standard approach that is more or less
endorsed by the various RAID tutorials I've read through, and it works
fine when I start all my arrays manually, with md1 started before md0.

But when the system boots up it tries to start all my arrays
automatically and the timeline looks like:

Detecting md0. Can't start md0 because it's missing a component (md1)
and thus wouldn't be in a clean state.
Detecting md1. md1 started.
Then I use mdadm to stop md0 and restart it (mdadm --assemble md0),
which works fine at that point because md1 is up.

But aside from the fact that I don't want to do that manually every
time I reboot, since md0 was started without the md1 component and
then had it re-added it decides the array needs to go through a
resync, which takes 10 hours. And that will only get worse as I
continue to add more drives.

Is there any way to exercise more control over the array
initialization order while still having everything start automatically
at bootup? Right now I've done no setup like that at all - it all just
works. I've been keeping /etc/mdadm.conf updated, but as I understand
it that's more for my own reference than the system's.

Mike

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

end of thread, other threads:[~2010-09-11 22:13 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-10 22:14 How to initialize "composite" RAID Mike Hartman
2010-09-10 22:28 ` Wolfgang Denk
2010-09-10 22:33   ` Mike Hartman
2010-09-10 22:37   ` Neil Brown
2010-09-10 22:45     ` Mike Hartman
2010-09-10 23:07       ` Neil Brown
2010-09-10 23:36         ` Mike Hartman
2010-09-11  0:23           ` Neil Brown
2010-09-11  2:30             ` Mike Hartman
2010-09-11  4:42               ` Neil Brown
2010-09-11  4:58                 ` Mike Hartman
2010-09-11  5:09                   ` Neil Brown
2010-09-11  5:15                     ` Mike Hartman
2010-09-11 22:13                   ` John Robinson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).