Linux RAID subsystem development
 help / color / mirror / Atom feed
From: Sean Puttergill <puttergi@yahoo.ca>
To: linux-raid@vger.kernel.org
Subject: Auto-assembling arrays using mdadm
Date: Thu, 9 Mar 2006 03:54:06 -0500 (EST)	[thread overview]
Message-ID: <20060309085406.54370.qmail@web35312.mail.mud.yahoo.com> (raw)

Hi.

I am looking to script auto-assembly of all arrays
detected on an arbitrary set of drives using mdadm.

The way I am thinking of doing this is as follows:

mdadm.conf =

DEVICE /dev/sd*

----

1. Use "mdadm -E" on each drive in turn to get the
UUID for the array to which it belongs and assemble a
list of unique UUIDs.

2. Run "mdadm -A --uuid=<UUID> --auto=md --scan" for
each unique UUID.


My question is, is it currently possible for me to get
mdadm to do this automatically?  Ideally I would
invoke  mdadm once to discover all RAID arrays that
exist on the devices listed in the mdadm.conf file and
assemble them, automatically creating the require md
devices.

I know that I could use kernel RAID autodetect, but I
hear that this is to be deprecated soon.  Also, the
RAID arrays I am using live on bare drives, not
partitions (i.e. no partition to set to type 0xFD).


Thanks,
Sean


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

             reply	other threads:[~2006-03-09  8:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-09  8:54 Sean Puttergill [this message]
2006-03-09 17:41 ` Auto-assembling arrays using mdadm dean gaudet
2006-03-09 19:23   ` Sean Puttergill
2006-03-09 21:51     ` dean gaudet
2006-03-10  4:58       ` Sean Puttergill
2006-03-10  5:28         ` Neil Brown
2006-03-10  9:34           ` Sean Puttergill

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=20060309085406.54370.qmail@web35312.mail.mud.yahoo.com \
    --to=puttergi@yahoo.ca \
    --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