Skip to contentSkip to conversation

udev and mdX where X > 0

DISCUSSION Phil Dibowitz 2 participants 5 messages May 13, 2005 – May 14, 2005

lore
Share & tools
lore
#0 lore raw

This has been discussed previously on the list:

http://sourceforge.net/mailarchive/message.php?msg_id=8778276

But I'm not really clear on a solution here - how do I get udev to create /dev/md1 for my second raid array.

I found a page that mentioned adding (in debian) the following to /etc/udev/links.conf:

M md1 b 9 1

Which appears to work, but given the text at the top of the file:

# This file does not exist. Please do not ask the debian maintainer
about it.
# You may use it to do strange and wonderful things, at your risk.

This is probably not the "right" way to do it - not only is that file Debian-specific (best I can tell), it's, I'm guessing, interpreted by a script that writes out proper udev rules.

So what's the "right" way to tell udev "hey, I need md1, always" ?

Thanks,
--

Phil Dibowitz                             [email protected]
Freeware and Technical Pages              Insanity Palace of Metallica
http://www.phildev.net/                   http://www.ipom.com/

"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety."
- Benjamin Franklin, 1759

#1 lore raw
Quoted 1 line · Phil Dibowitz

So what's the "right" way to tell udev "hey, I need md1, always" ?

Either use RAID devices autostart or fix the kernel driver.

Signature · 2 lines
ciao,
Marco
#2 lore raw
In reply to Phil Dibowitz
Quoted 6 lines · Marco d'Itri
Quoted 1 line · Phil Dibowitz

So what's the "right" way to tell udev "hey, I need md1, always" ?

Either use RAID devices autostart or fix the kernel driver.

What do you mean by "RAID devices autostart"? I'm using the in-kernel autodetection... it finds my RAID devices just fine... but without the aforementioned hack, it errors on /dev/md1 not existing.

--

Phil Dibowitz                             [email protected]
Freeware and Technical Pages              Insanity Palace of Metallica
http://www.phildev.net/                   http://www.ipom.com/

"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety."
- Benjamin Franklin, 1759

#3 lore raw
In reply to Phil Dibowitz
Quoted 2 lines · Phil Dibowitz

What do you mean by "RAID devices autostart"? I'm using the in-kernel autodetection... it finds my RAID devices just fine... but without the

I don't think so, or the devices would be created.

Signature · 2 lines
ciao,
Marco
#4 lore raw
In reply to Phil Dibowitz
Quoted 5 lines · Marco d'Itri
Quoted 3 lines

What do you mean by "RAID devices autostart"? I"m using the in-kernel autodetection... it finds my RAID devices just fine... but without the

I don"t think so, or the devices would be created.

Oh, I stand corrected - the raid-tools init scripts were doing it.

I started using auto-detection and the devices are created. Excellent.

Thanks.

Signature · 7 lines
Phil Dibowitz                             [email protected]
Freeware and Technical Pages              Insanity Palace of Metallica
http://www.phildev.net/                   http://www.ipom.com/

"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
 - Benjamin Franklin, 1759