Difference between revisions of "Lsscsi"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
lsscsi<ref>https://linux.die.net/man/8/lsscsi</ref> - list SCSI devices (or hosts) and their attributes. http://sg.danny.cz/scsi/lsscsi.html
+
<code>lsscsi</code><ref>https://linux.die.net/man/8/lsscsi</ref> - list SCSI devices (or hosts) and their attributes. http://sg.danny.cz/scsi/lsscsi.html
  
 +
apt install lsscsi
  
<pre>
+
lsscsi
lsscsi
+
  [0:0:0:0]    disk    ATA      BHYVE SATA DISK 001   /dev/sda
[0:0:0:0]    disk    Generic- SD/MMC CRW      1.00 /dev/sda
+
  [6:0:0:0]    [[cd]]/dvd BHYVE   BHYVE DVD-ROM   001   /dev/sr0
[1:0:0:0]    disk    NETAPP  LUN C-Mode      9600  /dev/sdd
 
[1:0:0:1]    disk    NETAPP  LUN C-Mode      9600 /dev/sdl
 
[1:0:0:7]    disk    NETAPP   LUN C-Mode      9600  /dev/sde
 
[1:0:1:0]    disk    NETAPP  LUN C-Mode      9600 /dev/sdf
 
[1:0:1:1]    disk    NETAPP  LUN C-Mode      9600  /dev/sdm
 
[1:0:1:7]    disk    NETAPP  LUN C-Mode      9600  /dev/sdg
 
[2:0:0:0]    enclosu HPE      Smart Adapter    1.66  -
 
[2:1:0:0]    disk    HPE      LOGICAL VOLUME  1.66  /dev/sdb
 
[2:1:0:1]   disk    HPE      LOGICAL VOLUME  1.66  /dev/sdc
 
[2:2:0:0]    storage HPE      P408i-a SR Gen10 1.66  -
 
[3:0:0:0]    disk    NETAPP  LUN C-Mode      9600  /dev/sdh
 
[3:0:0:1]    disk    NETAPP  LUN C-Mode      9600  /dev/sdn
 
[3:0:0:7]   disk    NETAPP  LUN C-Mode      9600  /dev/sdi
 
[3:0:1:0]    disk    NETAPP  LUN C-Mode      9600 /dev/sdj
 
[3:0:1:1]    disk   NETAPP  LUN C-Mode      9600  /dev/sdo
 
[3:0:1:7]    disk   NETAPP   LUN C-Mode      9600  /dev/sdk
 
</pre>
 
  
<pre>
 
lsscsi -H
 
[0]    usb-storage
 
[1]    qla2xxx
 
[2]    smartpqi
 
[3]    qla2xxx
 
</pre>
 
  
Using <code>--transport</code> in [[FC]] devices includes port name and identifier.
+
lsscsi
 +
[0:0:0:0]    disk    Generic- SD/MMC CRW      1.00  /dev/sda
 +
[1:0:0:0]    disk    NETAPP  LUN C-Mode      9600  /dev/sdd
 +
[2:0:0:0]    enclosu HPE      Smart Adapter    1.66  -
 +
[2:1:0:0]    disk    HPE      LOGICAL VOLUME  1.66  /dev/sdb
 +
[2:1:0:1]    disk    HPE      LOGICAL VOLUME  1.66  /dev/sdc
 +
[2:2:0:0]    storage HPE      [[P408i]]-a SR Gen10 1.66  -
 +
[3:0:0:0]    disk    NETAPP  LUN C-Mode      9600  /dev/sdh
 +
 
 +
 
 +
 
 +
lsscsi -H
 +
[0]    [[usb-storage]]
 +
[1]    qla2xxx
 +
[2]    smartpqi
 +
[3]    qla2xxx
 +
 
 +
lsscsi -H
 +
[0]    [[ahci]]
 +
[1]    usb-storage
 +
 
 +
 
 +
Using <code>--transport</code> in [[FC]] devices includes port name ([[WWPN]]) and identifier.
 
<pre>
 
<pre>
 
lsscsi -g --transport
 
lsscsi -g --transport

Latest revision as of 13:17, 31 August 2020

lsscsi[1] - list SCSI devices (or hosts) and their attributes. http://sg.danny.cz/scsi/lsscsi.html

apt install lsscsi
lsscsi
[0:0:0:0]    disk    ATA      BHYVE SATA DISK  001   /dev/sda
[6:0:0:0]    cd/dvd  BHYVE    BHYVE DVD-ROM    001   /dev/sr0


lsscsi
[0:0:0:0]    disk    Generic- SD/MMC CRW       1.00  /dev/sda
[1:0:0:0]    disk    NETAPP   LUN C-Mode       9600  /dev/sdd
[2:0:0:0]    enclosu HPE      Smart Adapter    1.66  -
[2:1:0:0]    disk    HPE      LOGICAL VOLUME   1.66  /dev/sdb
[2:1:0:1]    disk    HPE      LOGICAL VOLUME   1.66  /dev/sdc
[2:2:0:0]    storage HPE      P408i-a SR Gen10 1.66  -
[3:0:0:0]    disk    NETAPP   LUN C-Mode       9600  /dev/sdh


lsscsi -H
[0]    usb-storage
[1]    qla2xxx
[2]    smartpqi
[3]    qla2xxx
lsscsi -H
[0]    ahci
[1]    usb-storage


Using --transport in FC devices includes port name (WWPN) and identifier.

lsscsi -g --transport
[0:0:0:0]    disk    usb:3-4:1.0                     /dev/sda   /dev/sg0
[1:0:0:0]    disk    fc:0x200fd039ea0646250x010102   /dev/sdd   /dev/sg5
[1:0:0:1]    disk    fc:0x200fd039ea0646250x010102   /dev/sdl   /dev/sg13
[1:0:0:7]    disk    fc:0x200fd039ea0646250x010102   /dev/sde   /dev/sg6

See also[edit]

  • https://linux.die.net/man/8/lsscsi
  • Advertising: