RAID controller, create custom sdX symlinks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I've a couple of SATA controllers, say with driver 'sata_sil24'. What i would need is to have symlinks for the SATA drives to appear like:

/dev/disk/controller0/sdf -> /dev/sdf
/dev/disk/controller0/sdf1 -> /dev/sdf1
/dev/disk/controller0/sdad -> /dev/sdad
/dev/disk/controller0/sdad1 -> /dev/sdad1
...

Very simple. For starters I tried to do even just the single SATA controller card thing i.e. not 'controller[0-9]' just 'controller'.

/dev/disk/controller/sdf -> /dev/sdf
/dev/disk/controller/sdf1 -> /dev/sdf1
/dev/disk/controller/sdad -> /dev/sdad
/dev/disk/controller/sdad1 -> /dev/sdad1

Very very similar to /dev/disk/by-id/ really.

But I've tried this for the best part of an hour to do this, my udev rules just don't work fully, either they can match that it is SATA/sd or that the module is 'sata_sil24', etc, but then for figuring out the symlink target i always hit the limit of only one parent device allowed.

Can anyone throw in a quick incantation for this?

(the point is to have this grouping mainly for operator aid, when once again re-creating one of the several raids on the test system, and then discerning which disks are behind on-board sata and which are behind one or several same/different pcie sata controllers)

 - Jan
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux