lsscsi(8)
List SCSI devices and associated block devices on the system.
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
| Flag | What it does |
|---|---|
-d | show device file names (e.g., /dev/sda) |
-k | show kernel device name (e.g., sda) |
-s | show sizes of block devices |
-H | show host adapter names |
-c | show more complete information (device state, size) |
-L | show LU device names (longer format) |
-N | show NVMe device names |
-v | verbose output with detailed attributes |
--scsi-id | show SCSI inquiry data (vendor, model) |
-g | show generic SCSI device names |
-p | show device protection type (T10 DIF/DIX) |
-t | show transport name (spi, sas, ata, etc.) |
Examples
List all SCSI devices with their H:C:T:L addresses and type
lsscsiList SCSI devices and show associated device file names like /dev/sda
lsscsi -dList SCSI devices with their sizes
lsscsi -sShow complete information including state and capacity
lsscsi -cShow host adapter names and device file names
lsscsi -H -dShow only the SCSI device at H:C:T:L address 2:0:0:0
lsscsi 2:0:0:0Display vendor and model information from SCSI inquiry
lsscsi --scsi-idVerbose output with extra attributes and detailed information
lsscsi -v