I have to agree - the udev way is the way to go (I fought it a long time too...)
I did have problems getting a unique UUID from it, though, especially when using multipathd. But if you add a custom getuid_callout (this is defined in multipath.conf) script that calls udevinfo, you can get multipathd to assign sensible names of multipath devices under /dev/mapper. The two seem to work very well together for me, and has solved my issues with reordering on reboots. If it helps anyone, my getuid_callout is a script called 'get_iqn.sh' that looks like this: #!/bin/sh DEVICE=$1 udevinfo -q env -n /dev/$DEVICE | grep iqn 2>&1 > /dev/null if [ $? == 0 ]; then udevinfo -q env -n /dev/$DEVICE | grep ID_PATH | sed 's/.*XYZ\.//' | sed 's/-lun-/:/' else /sbin/scsi_id -g -u -s /block/$DEVICE fi Where XYZ is the prefix for all of our iscsi host names. You'll have to tweak this if you are looking to do the same thing. Cheers, -Ty! Erik Bussink wrote: > On Thu, 2008-01-17 at 15:18 +0100, Klemens Kittan wrote: > >> My question is -- will this be the order even if i reboot? >> Obviously the order of the nodes defines the order of the session. Will >> allways it be the same order? >> > > I don't think you can get a guarantee to always have the same ordering. > > It is much easier to create a custom udev rules. > > /etc/udev/rules.d/75-custom.rules > > KERNEL=="sd[b-z][1-9]" BUS=="scsi" SYSFS{serial}=="00000000014defbe2755" > NAME="iscsi1" SYMLINK+="some_name1" > KERNEL=="sd[b-z][1-9]" BUS=="scsi" SYSFS{serial}=="00000000014defbe2756" > NAME="iscsi2" SYMLINK+="some_name2" > KERNEL=="sd[b-z][1-9]" BUS=="scsi" SYSFS{serial}=="00000000014defbe2757" > NAME="iscsi3" SYMLINK+="some_name3" > KERNEL=="sd[b-z][1-9]" BUS=="scsi" SYSFS{serial}=="00000000014defbe2758" > NAME="iscsi4" SYMLINK+="some_name4" > > And get the SYSFS number from you're iSCSI disk using the udevinfo > command. > > udevinfo -a -p $(udevinfo -q path -n /dev/sdd) > > udev gives you a lot of flexibility. Give it a try. > > Regards, > Erik > > > > > > > -- -===========================- Ty! Boyack NREL Unix Network Manager [EMAIL PROTECTED] (970) 491-1186 -===========================- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "open-iscsi" group. To post to this group, send email to open-iscsi@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/open-iscsi -~----------~----~----~----~------~----~------~--~---