<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic command for detecting scsi LUNs in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/command-for-detecting-scsi-luns/m-p/3395288#M14307</link>
    <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;Is there a command to detect SCSI luns in linux without rebooting the machine?&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;chakri</description>
    <pubDate>Thu, 07 Oct 2004 05:09:50 GMT</pubDate>
    <dc:creator>Chakravarthi</dc:creator>
    <dc:date>2004-10-07T05:09:50Z</dc:date>
    <item>
      <title>command for detecting scsi LUNs</title>
      <link>https://community.hpe.com/t5/operating-system-linux/command-for-detecting-scsi-luns/m-p/3395288#M14307</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;Is there a command to detect SCSI luns in linux without rebooting the machine?&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;chakri</description>
      <pubDate>Thu, 07 Oct 2004 05:09:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/command-for-detecting-scsi-luns/m-p/3395288#M14307</guid>
      <dc:creator>Chakravarthi</dc:creator>
      <dc:date>2004-10-07T05:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: command for detecting scsi LUNs</title>
      <link>https://community.hpe.com/t5/operating-system-linux/command-for-detecting-scsi-luns/m-p/3395289#M14308</link>
      <description>try this command&lt;BR /&gt;ezix.sourceforge.net/software/lshw.html&lt;BR /&gt;Bye</description>
      <pubDate>Thu, 07 Oct 2004 05:18:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/command-for-detecting-scsi-luns/m-p/3395289#M14308</guid>
      <dc:creator>Marco_113</dc:creator>
      <dc:date>2004-10-07T05:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: command for detecting scsi LUNs</title>
      <link>https://community.hpe.com/t5/operating-system-linux/command-for-detecting-scsi-luns/m-p/3395290#M14309</link>
      <description>there is no command</description>
      <pubDate>Thu, 07 Oct 2004 06:06:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/command-for-detecting-scsi-luns/m-p/3395290#M14309</guid>
      <dc:creator>Chakravarthi</dc:creator>
      <dc:date>2004-10-07T06:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: command for detecting scsi LUNs</title>
      <link>https://community.hpe.com/t5/operating-system-linux/command-for-detecting-scsi-luns/m-p/3395291#M14310</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you don't need reboot all server.&lt;BR /&gt;&lt;BR /&gt;You just have to modprobe -r xxxx (or rmmod xxxx) and after modprobe xxxx,&lt;BR /&gt;&lt;BR /&gt;where xxxx is the module (driver) that supports your scsi device.&lt;BR /&gt;&lt;BR /&gt;But remember that you have to unmount all scsi devices that are supported by the xxxx module.&lt;BR /&gt;&lt;BR /&gt;To see if the module is in use or not, before you can remove it, you have to list all modules using lsmod and verify if the use count is zero.&lt;BR /&gt;&lt;BR /&gt;Hope it helps.&lt;BR /&gt;regards,&lt;BR /&gt;Xyko</description>
      <pubDate>Thu, 07 Oct 2004 07:24:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/command-for-detecting-scsi-luns/m-p/3395291#M14310</guid>
      <dc:creator>xyko_1</dc:creator>
      <dc:date>2004-10-07T07:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: command for detecting scsi LUNs</title>
      <link>https://community.hpe.com/t5/operating-system-linux/command-for-detecting-scsi-luns/m-p/3395292#M14311</link>
      <description>Depends on your distro.&lt;BR /&gt;&lt;BR /&gt;On SuSE, you can use:&lt;BR /&gt;hwinfo  (output too large to include here)&lt;BR /&gt;&lt;BR /&gt;sginfo -l&lt;BR /&gt;/dev/sda /dev/sdb /dev/scd0 /dev/sr0&lt;BR /&gt;/dev/sg0 [=/dev/sda  scsi0 ch=0 id=0 lun=0]&lt;BR /&gt;/dev/sg1 [=/dev/sdb  scsi0 ch=0 id=1 lun=0]&lt;BR /&gt;/dev/sg2 [=/dev/scd0  scsi4 ch=0 id=0 lun=0]&lt;BR /&gt;&lt;BR /&gt;sg_scan&lt;BR /&gt;/dev/sg0: scsi0 channel=0 id=0 lun=0 [em]&lt;BR /&gt;/dev/sg1: scsi0 channel=0 id=1 lun=0 [em]&lt;BR /&gt;/dev/sg2: scsi4 channel=0 id=0 lun=0 [em]&lt;BR /&gt;&lt;BR /&gt;sg_map&lt;BR /&gt;/dev/sg0  /dev/sda&lt;BR /&gt;/dev/sg1  /dev/sdb&lt;BR /&gt;/dev/sg2  /dev/scd0&lt;BR /&gt;&lt;BR /&gt;If you are trying to force a rescan of a SCSI bus (after hot-plugging a disk) - well, that isn't supported under kernel 2.4 - I'd have to check into 2.6. But you can add/remove devices on the fly:&lt;BR /&gt;&lt;BR /&gt;Existing devices can be removed using  echo "scsi remove-single-device &lt;H&gt; &lt;B&gt; &lt;T&gt;" &amp;gt; /proc/scsi/scsi where the variables are host, bus (channel), target (scsi id) and lun. The success (or otherwise) of this command can be determined by sending a subsequent cat /proc/scsi/scsi command. The removal will fail if the device is busy (e.g. if a file system on the device is mounted).&lt;BR /&gt;&lt;BR /&gt;New devices can be added using echo "scsi add-single-device &lt;H&gt; &lt;B&gt; &lt;T&gt; &lt;L&gt;" &amp;gt; /proc/scsi/scsi where the variables are host, bus (channel), target (scsi id) and lun. The success (or otherwise) of this command can be determined by sending a subsequent cat /proc/scsi/scsi command.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Col.&lt;/L&gt;&lt;/T&gt;&lt;/B&gt;&lt;/H&gt;&lt;/T&gt;&lt;/B&gt;&lt;/H&gt;</description>
      <pubDate>Thu, 07 Oct 2004 14:59:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/command-for-detecting-scsi-luns/m-p/3395292#M14311</guid>
      <dc:creator>Colin Topliss</dc:creator>
      <dc:date>2004-10-07T14:59:29Z</dc:date>
    </item>
  </channel>
</rss>

