Using mdadm.conf to create arrays

2 messages, 2 authors, 2003-03-07 · open the first message on its own page

Using mdadm.conf to create arrays

From: Rechenberg, Andrew <hidden>
Date: 2003-03-07 15:06:41

Is there any way to use mdadm.conf to create arrays in addition to being
able to assemble them?  I'm creating a large number of arrays and I
would like to use mdadm to create them as well as start them at boot
time.  I've created a couple of arrays on my test system, but I want to
semi-automate the creation of arrays.  

With raidtools I can create the conf file and then do an 'mkraid
/dev/md[0-9]' and that will create those ten arrays.  Is there a way to
accomplish something similar with mdadm and mdadm.conf?

Thanks in advance for your help,
Andy.

Regards,
Andrew Rechenberg
Infrastructure Team, Sherman Financial Group

Re: Using mdadm.conf to create arrays

From: Derek Vadala <hidden>
Date: 2003-03-07 16:14:34

On Fri, 7 Mar 2003, Rechenberg, Andrew wrote:
With raidtools I can create the conf file and then do an 'mkraid
/dev/md[0-9]' and that will create those ten arrays.  Is there a way to
accomplish something similar with mdadm and mdadm.conf?
I don't think mdadm has the functionality you're looking for. Maybe I'm
missing something, but why not just create a shell script to create the
arrays? Surely some substitutions and regex's in vi to build mdadm -C
commands would be simpler than creating a config file. Perhaps if you
explained what you're trying to do a little bit more...

--
Derek Vadala, derek@cynicism.com, http://www.cynicism.com/~derek

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help