{"id":41,"date":"2009-02-24T21:07:16","date_gmt":"2009-02-25T03:07:16","guid":{"rendered":"http:\/\/www.ecimulti.org\/blog\/?p=41"},"modified":"2012-10-28T21:48:54","modified_gmt":"2012-10-29T03:48:54","slug":"dynamically-re-scan-luns-on-sles","status":"publish","type":"post","link":"https:\/\/www.ecimulti.org\/blog\/?p=41","title":{"rendered":"Dynamically rescan LUN&#8217;s on SLES"},"content":{"rendered":"<p>I&#8217;m sure this is kids play to most people, but I&#8217;ve just not done much SAN work with Linux.<\/p>\n<p>We bought a new EMC CLARiiON CX4-240, and I was just tossing it random LUN&#8217;s to do speed &amp; HA tests. When I added a LUN I&#8217;d see it in powermt, and I didn&#8217;t know what the equivalent of devfsadm was in Linux &#8230; SLES to be specific. What can I say, I worked with Solaris way too long.<\/p>\n<p>The first step is to run: powermt display<\/p>\n<p># powermt display<br \/>\nCLARiiON logical device count=3<br \/>\n================================================<br \/>\n&#8212;&#8211; Host Bus Adapters &#8212;&#8212;&#8212;     &#8212;&#8212; I\/O Paths &#8212;&#8211;  &#8212;&#8212; Stats &#8212;&#8212;<br \/>\n###  HW Path                Summary   Total   Dead  IO\/Sec Q-IOs Errors<br \/>\n================================================<br \/>\n<strong>3<\/strong> qla2xxx                       optimal       6      0       &#8211;     0      0<br \/>\n<strong>4 <\/strong>qla2xxx                       optimal       6      0       &#8211;     0      0<\/p>\n<p>Note the 3\/4 preceding the HBA&#8217;s.<\/p>\n<p>Now, execute this:<\/p>\n<p># echo &#8220;- &#8211; -&#8221; &gt; \/sys\/class\/scsi_host\/host<strong>3<\/strong>\/scan<br \/>\n# echo &#8220;- &#8211; -&#8221; &gt; \/sys\/class\/scsi_host\/host<strong>4<\/strong>\/scan<\/p>\n<p>Its my understand this also works on RHEL and others, but YMMV. This is all buried in the PowerPath manual too, but hopefully I&#8217;ve saved someone a bit of time.<\/p>\n<p>Till next time&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m sure this is kids play to most people, but I&#8217;ve just not done much SAN work with Linux. We bought a new EMC CLARiiON CX4-240, and I was just tossing it random LUN&#8217;s to do speed &amp; HA tests. When I added a LUN I&#8217;d see it in powermt, and I didn&#8217;t know what [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,17],"tags":[109,19,108,20],"class_list":["post-41","post","type-post","status-publish","format-standard","hentry","category-linux","category-san","tag-clariion","tag-powerpath","tag-san","tag-sles"],"_links":{"self":[{"href":"https:\/\/www.ecimulti.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/41","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ecimulti.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ecimulti.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ecimulti.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ecimulti.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=41"}],"version-history":[{"count":13,"href":"https:\/\/www.ecimulti.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/41\/revisions"}],"predecessor-version":[{"id":306,"href":"https:\/\/www.ecimulti.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/41\/revisions\/306"}],"wp:attachment":[{"href":"https:\/\/www.ecimulti.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=41"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ecimulti.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=41"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ecimulti.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}