Storage · Storage Interfaces
SCSI
Cheat sheet · https://pcornel.dk/topic.php?topic=3903
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.
Remember
- SCSI defines initiators, targets and LUNs.
- Commands include READ, WRITE, UNMAP and INQUIRY.
- Sense codes explain errors.
First checks
lsscsi— SCSI devicessg_inq /dev/sdX— inquirysg_readcap /dev/sdX— capacity
Verify in this order
initiator → SCSI commands over transport → target LUN
Where it usually breaks
First mismatch in media/firmware → device controller → interface/link → host driver → block device → upper storage layer; preserve identity/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3903