After some testing the placement of the -a was important.  when I put it after /dev/md12, similar to what Tim posted worked.<br><br>Thanks...Art<br><br><div><span class="gmail_quote">On 11/2/07, <b class="gmail_sendername">
James Olin Oden</b> <<a href="mailto:james.oden@gmail.com">james.oden@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 11/2/07, Tim Verhoeven <<a href="mailto:tim.verhoeven.be@gmail.com">tim.verhoeven.be@gmail.com</a>> wrote:<br>> On Nov 2, 2007 8:14 PM, Art Baldini <<a href="mailto:rootajb@gmail.com">rootajb@gmail.com</a>> wrote:
<br>> > Hi All,<br>> >     I am trying to create an MD device.  I am using the command:<br>> > /sbin/mdadm --create --a /dev/md12 --level=1 --run --raid-devices=2<br>> > /dev/sda12 /dev/sdb12<br>> > to create the device, and to dynamically create the device file if needed.
<br>> > What I want is the device file to be created as /dev/md12, but with the -a<br>> > flag it creates it as /dev/md<first unwsed minor number>.<br>> ><br>> > I have tried various options to the -a or --auto, but cannot seem to find
<br>> > the correct syntax.  From the man page it says:<br>> >        -a, --auto{=no,yes,md,mdp,part,p}{NN}<br>> >               Instruct mdadm to create the device file if needed, and to<br>> > allocate an unused
<br>> >               minor number.  "yes" or "md" causes a non-partitionable  array<br>> > to  be  used.<br>> >               "mdp", "part" or "p" causes a partitionable array (
2.6 and<br>> > later) to be used.<br>> >               The argumentment can also come immediately after "-a".  e.g.<br>> > "-ap".<br>> ><br>> > Am I doing something wrong, or is there no way to get mdadm to automatically
<br>> > create a specific device file.<br>><br>> I've done it like this :<br>><br>> mdadm --create /dev/md12 --auto=yes --level=1 --run --raid-devices=2 /dev/...<br>><br>The only difference is that he is doing -a rather than --auto=yes.  I
<br>get the same result as Art is getting when I do it your way.   You can<br>still access it as /dev/md12, but it shows up in /proc/mdstat as<br>/dev/md0 (which is, well, weird).<br><br>Cheers...james<br>_______________________________________________
<br>CentOS mailing list<br><a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br><a href="http://lists.centos.org/mailman/listinfo/centos">http://lists.centos.org/mailman/listinfo/centos</a><br></blockquote></div><br>