$linuxjunkies
>

lsscsi(8)

List SCSI devices and associated block devices on the system.

UbuntuDebianFedoraArch

Synopsis

lsscsi [OPTION]... [FILTER]...

Description

Lists SCSI devices in a human-readable format, showing host:channel:target:lun addresses and associated block device names. Useful for identifying and managing storage devices, especially in servers with multiple SCSI adapters.

By default, displays one SCSI device per line with its address tuple and device type. Can be filtered by device address or enhanced with additional details like size, device state, or verbose output.

Common options

FlagWhat it does
-dshow device file names (e.g., /dev/sda)
-kshow kernel device name (e.g., sda)
-sshow sizes of block devices
-Hshow host adapter names
-cshow more complete information (device state, size)
-Lshow LU device names (longer format)
-Nshow NVMe device names
-vverbose output with detailed attributes
--scsi-idshow SCSI inquiry data (vendor, model)
-gshow generic SCSI device names
-pshow device protection type (T10 DIF/DIX)
-tshow transport name (spi, sas, ata, etc.)

Examples

List all SCSI devices with their H:C:T:L addresses and type

lsscsi

List SCSI devices and show associated device file names like /dev/sda

lsscsi -d

List SCSI devices with their sizes

lsscsi -s

Show complete information including state and capacity

lsscsi -c

Show host adapter names and device file names

lsscsi -H -d

Show only the SCSI device at H:C:T:L address 2:0:0:0

lsscsi 2:0:0:0

Display vendor and model information from SCSI inquiry

lsscsi --scsi-id

Verbose output with extra attributes and detailed information

lsscsi -v

Related commands