Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

SCSI

Direct answer

SCSI is the command set behind SAS, Fibre Channel, iSCSI and USB storage, defining initiators, targets, LUNs and commands like READ, WRITE and UNMAP, even where parallel SCSI cabling is long gone.

When to use this

Use this to understand the SCSI command set behind SAS, FC, iSCSI and USB storage.

First 30 seconds

1. SCSI is the command set used by SAS, FC, iSCSI and USB storage.

2. Devices addressed as host:channel:target:LUN.

3. sg3_utils tools query devices.

4. Rescan after changes.

5. Persistent reservations for clusters.

Operational verification

initiator → SCSI commands over transport → target LUN

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Physical storage media and interfaces
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformPhysical storage media and interfaces
Scope / prerequisiteUse this to understand the SCSI command set behind SAS, FC, iSCSI and USB storage.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Addressing Narrow the fault

Linux SCSI addresses are host:channel:target:LUN ([2:0:1:0] in lsscsi). Rescan a host after adding LUNs: echo '- - -' > /sys/class/scsi_host/host2/scan.

Step 2 Common mistakes Narrow the fault
  • Rescanning the wrong SCSI host.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • SCSI defines initiators, targets and LUNs.
  • Commands include READ, WRITE, UNMAP and INQUIRY.
  • Sense codes explain errors.
Key checks
  • lsscsi — SCSI devices
  • sg_inq /dev/sdX — inquiry
  • sg_readcap /dev/sdX — capacity
ReferenceHow it works1 section · depth on demand

Commands

lsscsi
sg_inq /dev/sda
cat /sys/block/sda/device/vendor
ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

SCSI defines the command model used by SAS, FC (FCP), iSCSI, USB UAS and virtual controllers: an initiator sends a CDB (command descriptor block) to a logical unit on a target, which returns data and status, with sense data on errors.

Common commandPurpose
INQUIRYVendor, model, VPD pages (serial, device ID)
REPORT LUNSList logical units behind a target
READ/WRITE(10/16)Data transfer
TEST UNIT READYPath/device check
UNMAPRelease blocks (thin provisioning)
PERSISTENT RESERVECluster ownership
sg_inq /dev/sdb; sg_luns /dev/sdb; sg_vpd -p bl /dev/sdb   # block limits incl. UNMAP

Sense keys in logs (e.g. Sense Key : Medium Error, Not Ready, Unit Attention) tell you whether the problem is media, path or a state change.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docPhysical storage media and interfaces current

Authoritative/upstream documentation reviewed for bounded claims in Storage Interfaces → SCSI. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.t10.org/ · confidence 94%
Confirmation

Confirm action

Continue?