J Jes Sorensen #
Message details and related content
Jes Sorensen [off-list ref] writes:
NeilBrown [off-list ref] writes:quoted
On Mon, 02 Mar 2015 11:32:16 -0500 Jes Sorensen [off-list ref]quoted
Neil, Finally had time to go back and look at this - I don't quite understand your request here. As far as I can see, the above code isn't run at all during device creation, so I don't get how modifying it as you suggest will make /dev/md/111 appear if I create /dev/md111? Cheers, JesWheels within wheels of deception and indirection.... mdadm doesn't create the devices directly, udev does that. IMPORT{program}="BINDIR/mdadm --detail --export $devnode" ENV{DEVTYPE}=="disk", ENV{MD_DEVNAME}=="?*", SYMLINK+="md/$env{MD_DEVNAME}" So the symlink from /dev/md gets created iff "mdadm --detail --export" reports an MD_DEVNAME. Hence the change suggested. mdadm *can* create the devices itself, but only if udev isn't running, or mdamd has been explicitly told to ignore udev. Normally that doesn't happen.Ahhh, I didn't see anything happening on my system, but it may be the RHEL/Fedora udev rules file is missing something. I'll have to take a closer look there!
Actually I remember why I didn't get that far - I added some debug code
to the place you suggested I modify, and it never triggered during
Create.
Cheers,
Jes