linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* udev and mdadm -- I'm lost
@ 2005-11-08 23:21 AndyLiebman
  2005-11-08 23:39 ` Sandro Dentella
  2005-11-08 23:40 ` Dave Jiang
  0 siblings, 2 replies; 6+ messages in thread
From: AndyLiebman @ 2005-11-08 23:21 UTC (permalink / raw)
  To: linux-raid


Sorry to pose this question but a  search through "man mdadm" the linux-raid 
archives and google didn't really get  me a very satisfactory answer. 

I guess I'm accustomed to working on  Linux systems with devfs. But now I had 
to upgrade to a distribution with udev.  I didn't notice any issues with 
mdadm until today, when I was working on a  server that was going to have two 
separate Software RAID-0 arrays (each striping  two 3ware Hardware RAID-5s). 

Lo and behold, I got the "/dev/md1 doesn't  exist" error when I tried to 
assemble /dev/md1. 

I see there is an mdadm  --auto option now, but I don't feel confident I know 
how to use it. Can someone  tell me the correct way to create or assemble an 
array with the --auto option?  

I don't want to do anything fancy. I don't need partitionable RAIDS. Do  I 
HAVE to specify a device number? 

It would just be nice to have a  couple of concrete examples of the proper 
syntax in "man mdadm"

If you  see this, Neil, I think you do a fantastic job. I'm sorry to ask this 
basic  question, but just one example in the manual would be welcome. I am 
using mdadm  1.9.0 and don't see one. 

i.e, 

mdadm -Av -a1 --uuid=xxxxx  /dev/sd*
or 
mdadm -Av -a /dev/md1 --uuid=xxxxx /dev/sd*

I'm not in  the mood to guess... 

Thanks. 

Andy Liebman  


^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: udev and mdadm -- I'm lost
@ 2005-11-08 23:50 AndyLiebman
  0 siblings, 0 replies; 6+ messages in thread
From: AndyLiebman @ 2005-11-08 23:50 UTC (permalink / raw)
  To: djiang; +Cc: linux-raid

>Just use --auto or --auto=yes and it should  take care of the device node 
> creations. I have a /etc/mdadm.conf  so I just do:
>mdadm -As --auto=yes and it brings everything up over  udev.
>
>Although if you want to use the scan option with auto you  may want to 
>use mdadm 1.12.0 or later as on some of the earlier version  the 
>combination doesn't work.  

Thank you Dave for your suggestion. Before you wrote back, I went ahead and  
tried out: 
 
mdadm -Av -amd 1 --uuid=xxxxx /dev/sd*
 
and that seemed to work. Is that okay. Unfortunately, "man mdadm" doesn't  
explain in much detail what the "yes" and "no" options do, unless I missed  
something. But the "md" option seems to make mdadm behave like it used to under  
devfs -- right? Only rather than specifing a device with the syntax "/dev/mdXX" 
 you just use "XX" or "X". 
 
It's not complicated, but it would be good to just know I'm doing it right. 
 
Andy

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

end of thread, other threads:[~2005-11-16 17:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-08 23:21 udev and mdadm -- I'm lost AndyLiebman
2005-11-08 23:39 ` Sandro Dentella
2005-11-08 23:40 ` Dave Jiang
2005-11-09  7:57   ` Konstantin Olchanski
2005-11-16 17:38     ` Bill Davidsen
  -- strict thread matches above, loose matches on Subject: below --
2005-11-08 23:50 AndyLiebman

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).