linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matthew Bloch <matthew@bytemark.co.uk>
To: linux-raid@vger.kernel.org
Subject: Nearest mdadm equivalent of kernel RAID autostart code?
Date: Fri, 21 Jan 2005 16:22:21 +0000	[thread overview]
Message-ID: <csra7t$21h$1@sea.gmane.org> (raw)

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


             reply	other threads:[~2005-01-21 16:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-21 16:22 Matthew Bloch [this message]
2005-01-21 17:01 ` Nearest mdadm equivalent of kernel RAID autostart code? David Dougall

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='csra7t$21h$1@sea.gmane.org' \
    --to=matthew@bytemark.co.uk \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).