{"id":48,"date":"2008-01-17T10:12:57","date_gmt":"2008-01-17T08:12:57","guid":{"rendered":"http:\/\/bussink.ch\/erik\/usenet-groups\/iscsi-targets-ordering\/"},"modified":"2008-01-17T10:12:57","modified_gmt":"2008-01-17T08:12:57","slug":"iscsi-targets-ordering","status":"publish","type":"post","link":"https:\/\/www.bussink.ch\/?p=48","title":{"rendered":"iSCSI targets ordering"},"content":{"rendered":"<p><a name=\"msg_206122de0dac53d2\" title=\"msg_206122de0dac53d2\"><\/a><font face=\"Courier, Monospaced\" class=\"fixed_width\"><\/p>\n<p style=\"display: block\" id=\"qhide_98180\" class=\"qt\">On Thu, 2008-01-17 at 15:18 +0100, Klemens Kittan wrote:<br \/>\n<em>&gt; My question is\u00a0will this be the order even if i reboot?\u00a0Obviously the order of the nodes defines the order of the session. Will allways it be the same order?<\/em><br \/>\nI don&#8217;t think you can get a guarantee to always have the same ordering. It is much easier to create a custom udev rules.<\/p>\n<p>\/etc\/udev\/rules.d\/75-custom.rules:<br \/>\n<pre style=&#8221;margin: 0px; overflow: auto; width: 580px; height: 138px; text-align: left; border: 1px inset; padding: 6px&#8221; dir=&#8221;ltr&#8221; class=&#8221;alt2&#8243; class=\"preserve-code-formatting\">KERNEL==&quot;sd[b-z][1-9]&quot; BUS==&quot;scsi&quot; SYSFS{serial}==&quot;00000000014defbe2755&quot; \nNAME=&quot;iscsi1&quot; SYMLINK+=&quot;some_name1&quot; \nKERNEL==&quot;sd[b-z][1-9]&quot; BUS==&quot;scsi&quot; SYSFS{serial}==&quot;00000000014defbe2756&quot; \nNAME=&quot;iscsi2&quot; SYMLINK+=&quot;some_name2&quot; \nKERNEL==&quot;sd[b-z][1-9]&quot; BUS==&quot;scsi&quot; SYSFS{serial}==&quot;00000000014defbe2757&quot; \nNAME=&quot;iscsi3&quot; SYMLINK+=&quot;some_name3&quot; \nKERNEL==&quot;sd[b-z][1-9]&quot; BUS==&quot;scsi&quot; SYSFS{serial}==&quot;00000000014defbe2758&quot; \nNAME=&quot;iscsi4&quot; SYMLINK+=&quot;some_name4&quot;<\/pre><br \/>\nAnd get the SYSFS number from you&#8217;re iSCSI disk using the udevinfo command.<br \/>\n<pre style=&#8221;margin: 0px; overflow: auto; width: 580px; height: 40px; text-align: left; border: 1px inset; padding: 6px&#8221; dir=&#8221;ltr&#8221; class=&#8221;alt2&#8243; class=\"preserve-code-formatting\">udevinfo -a -p $(udevinfo -q path -n \/dev\/sdd)<\/pre><br \/>\nudev gives you a lot of flexibility. Give it a try.<\/p>\n<p><a target=\"_blank\" href=\"http:\/\/groups.google.ch\/group\/open-iscsi\/browse_thread\/thread\/5e7e372e7f463e08\/206122de0dac53d2?hl=en&amp;lnk=st&amp;q=%22Erik+Bussink%22#206122de0dac53d2\" title=\"show original\">show original<\/a><\/p>\n<p><\/font><\/p>\n","protected":false},"excerpt":{"rendered":"<p>On Thu, 2008-01-17 at 15:18 +0100, Klemens Kittan wrote: &gt; My question is\u00a0will this be the order even if i reboot?\u00a0Obviously the order of the nodes defines the order of the session. Will allways it be the same order? I don&#8217;t think you can get a guarantee to always have the same ordering. It is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[10,8],"tags":[],"_links":{"self":[{"href":"https:\/\/www.bussink.ch\/index.php?rest_route=\/wp\/v2\/posts\/48"}],"collection":[{"href":"https:\/\/www.bussink.ch\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bussink.ch\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bussink.ch\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bussink.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=48"}],"version-history":[{"count":0,"href":"https:\/\/www.bussink.ch\/index.php?rest_route=\/wp\/v2\/posts\/48\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.bussink.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=48"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bussink.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=48"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bussink.ch\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=48"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}