linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Nearest mdadm equivalent of kernel RAID autostart code?
@ 2005-01-21 16:22 Matthew Bloch
  2005-01-21 17:01 ` David Dougall
  0 siblings, 1 reply; 2+ messages in thread
From: Matthew Bloch @ 2005-01-21 16:22 UTC (permalink / raw)
  To: linux-raid

Hi there,

After a lot of compiling static kernels, I'm building a generic one for our
particular mix of servers, so the md code is now modular.  I didn't realise
that I'd lose the automatic array assembly functionality, though I
appreciate reasons for trying to deprecate it.

Can anyone suggest a better shell equivalent of the array assembly
functionality that I can use with a modular md?  So far I've got:

for DEV in 0 1 2 3 4 5 6 7 ; do
  mdadm -Ac partitions -m $DEV /dev/md$DEV
done

But this seems a bit slow as it tears through every device in /dev on each
call (about 30 seconds per mdadm call).  I don't want to have RAID
configuration files on each server if I can avoid it, as I know that all
the info I need will be in the relevant discs' superblocks.

Any better ideas for doing the job?

-- 
Matthew Bloch                             Bytemark Hosting
                                http://www.bytemark.co.uk/
                phone UK: 0845 004 3 004 US: 1-877 BYTEMAR
          Dedicated Linux hosts from 15ukp ($26) per month


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

end of thread, other threads:[~2005-01-21 17:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-21 16:22 Nearest mdadm equivalent of kernel RAID autostart code? Matthew Bloch
2005-01-21 17:01 ` David Dougall

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).