Linux RAID subsystem development
 help / color / mirror / Atom feed
* Auto-assembling arrays using mdadm
@ 2006-03-09  8:54 Sean Puttergill
  2006-03-09 17:41 ` dean gaudet
  0 siblings, 1 reply; 7+ messages in thread
From: Sean Puttergill @ 2006-03-09  8:54 UTC (permalink / raw)
  To: linux-raid

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 

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

end of thread, other threads:[~2006-03-10  9:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-09  8:54 Auto-assembling arrays using mdadm Sean Puttergill
2006-03-09 17:41 ` 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

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