I have a server which may or may not have a USB storage device connected when it boots. It also attaches to a disk array with a number of logical disks using ISCSI.
When booted with the USB device present, that is attached to /dev/sdb and the ISCSI disks are attached to /dev/sdc up. If the USB device is not present, then the ISCSI disks are attached to /dev/sdb onwards.
Is there a way to force the USB device not to be attached at all, or to delay it until after the ISCSI disks have been attached so that I get a predictable assignment of device names to the ISCSI disks?
James
On 27/03/07, James Fidell james@cloud9.co.uk wrote:
I have a server which may or may not have a USB storage device connected when it boots. It also attaches to a disk array with a number of logical disks using ISCSI.
When booted with the USB device present, that is attached to /dev/sdb and the ISCSI disks are attached to /dev/sdc up. If the USB device is not present, then the ISCSI disks are attached to /dev/sdb onwards.
Is there a way to force the USB device not to be attached at all, or to delay it until after the ISCSI disks have been attached so that I get a predictable assignment of device names to the ISCSI disks?
You can assign specific drive naming/lettering conventions using UDev rules.
http://www.linuxjournal.com/article/7316
http://www.google.co.uk/search?hl=en&q=udev+device+naming&meta=
Will.
Will McDonald wrote:
You can assign specific drive naming/lettering conventions using UDev rules.
http://www.linuxjournal.com/article/7316
http://www.google.co.uk/search?hl=en&q=udev+device+naming&meta=
I am in a twisty-turny maze of configuration data, all alike :(
Need more clues, I think. I am totally unable to work out how to do this and the documentation doesn't seem to leave me any wiser. I don't seem to be able to find anything that relates to assigning names, just code that handles the device setup after the name has been selected.
Are there any recommended dummies guides to udev (on CentOS 5b2, if that makes a difference)?
James