I send this posting with an apology first; as I am probably being a complete numpty over this issue, but I cannot get my head around the nightmare that is udev.
I have a server, with 4 internal IcyBox drive caddies which is running Centos 6.2, and has several virtual machines running under Virtualbox. The plan is that I will plug in a drive into a caddy - and depending on the physical position of the caddy, the system will map the drive to /dev/sd[c-f]. The problem is that when a drive is plug into a caddy, it allocates a random drive letter. I need a static drive letter allocated depending on the internal drive caddy location.
e.g. top caddy - should be /dev/sdc
middle caddy - should be /dev/sdd
bottom caddy - should be /dev/sde
I cannot lock down udev rules by UUID [because I have 30,000 drives to read the data off] or by drive name either, so I have been using udevadm info to try and find some constants in terms of drive positioning data.
The reason why I need the persistence is that I plan to map /mnt/drive1 to /dev/sdc1 [as an example], and then perform a 'fake' smb share across to the Virtualbox VM, so that the Windows software can directly read the information on the drive.
The GOOD NEWS is that I've found the constant from udevadm, but I'm not sure show to map it in udev. I'm not expecting an answer, just some pointers please.
I'm in an environment where we are using semi-skilled operators here, so some pointers should be useful.