improving networks worldwide. unh interoperability lab scsi commands overview
TRANSCRIPT
![Page 1: Improving Networks Worldwide. UNH InterOperability Lab SCSI Commands Overview](https://reader036.vdocuments.us/reader036/viewer/2022062409/56649ecf5503460f94bdd872/html5/thumbnails/1.jpg)
Improving Networks Worldwide.
UNH InterOperability Lab
SCSI Commands Overview
![Page 2: Improving Networks Worldwide. UNH InterOperability Lab SCSI Commands Overview](https://reader036.vdocuments.us/reader036/viewer/2022062409/56649ecf5503460f94bdd872/html5/thumbnails/2.jpg)
Improving Networks Worldwide.
![Page 3: Improving Networks Worldwide. UNH InterOperability Lab SCSI Commands Overview](https://reader036.vdocuments.us/reader036/viewer/2022062409/56649ecf5503460f94bdd872/html5/thumbnails/3.jpg)
3
SCSI Overview
Presentation Topics
• Command Summary• Select Command Explanations• Additional Sense Codes and
Qualifiers
![Page 4: Improving Networks Worldwide. UNH InterOperability Lab SCSI Commands Overview](https://reader036.vdocuments.us/reader036/viewer/2022062409/56649ecf5503460f94bdd872/html5/thumbnails/4.jpg)
4
SCSI Overview
CDB• Command Data Block
– Commands are defined with CDBs• Each command has its own CDB
– CDBs defined by various SCSI Standards
– Fixed and variable length variations– In SAS:
• Encapsulated in a command frame
![Page 5: Improving Networks Worldwide. UNH InterOperability Lab SCSI Commands Overview](https://reader036.vdocuments.us/reader036/viewer/2022062409/56649ecf5503460f94bdd872/html5/thumbnails/5.jpg)
5
SCSI Overview
SCSI Command Sets• SPC-4
– SCSI Primary Commands Version 4– Commands universal to all device types
• SBC-3– SCSI Block Command Version 3– Commands specific to block devices (hard disks)
• SSC-2– SCSI Streaming Commands Version 2– Commands specific to streaming devices (tape
drives)• MMC-4
– SCSI Multi Media Commands Version 4– Commands specific to multimedia devices (CD/DVD)
![Page 6: Improving Networks Worldwide. UNH InterOperability Lab SCSI Commands Overview](https://reader036.vdocuments.us/reader036/viewer/2022062409/56649ecf5503460f94bdd872/html5/thumbnails/6.jpg)
6
SCSI Overview
Common SCSI Commands in SAS
• Read Commands– READ (6) (SSC and SBC)*– READ (10) (SBC)– READ (12) (SBC)– READ (16) (SBC)– READ (32) (SBC)
*Different field definitions, same CDB Length
![Page 7: Improving Networks Worldwide. UNH InterOperability Lab SCSI Commands Overview](https://reader036.vdocuments.us/reader036/viewer/2022062409/56649ecf5503460f94bdd872/html5/thumbnails/7.jpg)
7
SCSI Overview
Command SCSI Commands in SAS• Write Commands
– WRITE (6) (SSC and SBC)*– WRITE (10) (SBC)– WRITE (12) (SBC)– WRITE (16) (SBC)– WRITE (32) (SBC)
*Different Field Definitions, same CDB Length
![Page 8: Improving Networks Worldwide. UNH InterOperability Lab SCSI Commands Overview](https://reader036.vdocuments.us/reader036/viewer/2022062409/56649ecf5503460f94bdd872/html5/thumbnails/8.jpg)
8
SCSI Overview
Diagnostic and Initialization Commands
• READ BUFFER (SPC)• WRITE BUFFER (SPC)• INQUIRY (SPC)• TEST UNIT READY (SPC)• MODE SENSE (SPC)• MODE SELECT (SPC)• LOG SENSE (SPC)• LOG SELECT (SPC)• READ ATTRIUBUTE (SPC)• REPORT LUNS (SPC)
![Page 9: Improving Networks Worldwide. UNH InterOperability Lab SCSI Commands Overview](https://reader036.vdocuments.us/reader036/viewer/2022062409/56649ecf5503460f94bdd872/html5/thumbnails/9.jpg)
9
SCSI Overview
Block Specific Commands
• READ CAPACITY• VERIFY• WRITE AND VERIFY• READ LONG• WRITE LONG• Many more…
![Page 10: Improving Networks Worldwide. UNH InterOperability Lab SCSI Commands Overview](https://reader036.vdocuments.us/reader036/viewer/2022062409/56649ecf5503460f94bdd872/html5/thumbnails/10.jpg)
10
SCSI Overview
Streaming Specific Commands• LOAD UNLOAD• LOCATE (16)• PREVENT ALLOW MEDIUM REMOVAL• READ BLOCK LIMITS• READ POSITION• REWIND• SET CAPACITY• SPACE (16)
![Page 11: Improving Networks Worldwide. UNH InterOperability Lab SCSI Commands Overview](https://reader036.vdocuments.us/reader036/viewer/2022062409/56649ecf5503460f94bdd872/html5/thumbnails/11.jpg)
11
SCSI Overview
READ (16) Command
• OP Code: 88h Specifies the command
• RD Protect: Various settings regarding the write protection checking
![Page 12: Improving Networks Worldwide. UNH InterOperability Lab SCSI Commands Overview](https://reader036.vdocuments.us/reader036/viewer/2022062409/56649ecf5503460f94bdd872/html5/thumbnails/12.jpg)
12
SCSI Overview
READ (16) Command
• DPO – Disable Page Out Bit– Used to optimize caching onboard the target device – Set to 1 tells the target that data at this Logical Block Address is
not likely to be accessed again in the near future and that the target can remove it from its local cache
![Page 13: Improving Networks Worldwide. UNH InterOperability Lab SCSI Commands Overview](https://reader036.vdocuments.us/reader036/viewer/2022062409/56649ecf5503460f94bdd872/html5/thumbnails/13.jpg)
13
SCSI Overview
READ (16) Command
• FUA and FUA_NV – Force Unit Access (Non-Volatile)– Used to override the targets internal
caching and force it to access the media
![Page 14: Improving Networks Worldwide. UNH InterOperability Lab SCSI Commands Overview](https://reader036.vdocuments.us/reader036/viewer/2022062409/56649ecf5503460f94bdd872/html5/thumbnails/14.jpg)
14
SCSI Overview
READ (16) Command
• Logical Block Address (LBA)– The address on the medium that the initiator would like to
read– Internally, the target converts the LBA to a (Cylinder,
Sector, Head) address – Transparent to the computer system and user
![Page 15: Improving Networks Worldwide. UNH InterOperability Lab SCSI Commands Overview](https://reader036.vdocuments.us/reader036/viewer/2022062409/56649ecf5503460f94bdd872/html5/thumbnails/15.jpg)
15
SCSI Overview
READ (16) Command
• Transfer Length– Specifies the length in contiguous logical units to be
transferred in this command– Logical unit is typically 512-bytes (1 Block)
![Page 16: Improving Networks Worldwide. UNH InterOperability Lab SCSI Commands Overview](https://reader036.vdocuments.us/reader036/viewer/2022062409/56649ecf5503460f94bdd872/html5/thumbnails/16.jpg)
16
SCSI Overview
READ (16) Command
• Restricted for MMC-4– Used for the MMC-4 Version of this command
![Page 17: Improving Networks Worldwide. UNH InterOperability Lab SCSI Commands Overview](https://reader036.vdocuments.us/reader036/viewer/2022062409/56649ecf5503460f94bdd872/html5/thumbnails/17.jpg)
17
SCSI Overview
READ (16) Command
• Group Number– Used to collect performance statistics of different groups of
commands– Application A’s performance vs. Applications B’s
performance
![Page 18: Improving Networks Worldwide. UNH InterOperability Lab SCSI Commands Overview](https://reader036.vdocuments.us/reader036/viewer/2022062409/56649ecf5503460f94bdd872/html5/thumbnails/18.jpg)
18
SCSI Overview
READ (16) Command
• Control– Standard SCSI Control Bytes– Defined in SAM-4– Has a consistently defined meaning across all commands\– Found only on fixed-length CDB commands
![Page 19: Improving Networks Worldwide. UNH InterOperability Lab SCSI Commands Overview](https://reader036.vdocuments.us/reader036/viewer/2022062409/56649ecf5503460f94bdd872/html5/thumbnails/19.jpg)
19
SCSI Overview
WRITE (16) Command
• OP Code: 8Ah Specifies the command
• WD Protect: Various settings regarding the write protection checking
![Page 20: Improving Networks Worldwide. UNH InterOperability Lab SCSI Commands Overview](https://reader036.vdocuments.us/reader036/viewer/2022062409/56649ecf5503460f94bdd872/html5/thumbnails/20.jpg)
20
SCSI Overview
WRITE (16) Command
• DPO – Disable Page Out Bit– Used to optimize caching onboard the target device – Set to 1 tells the target that data at this Logical Block Address is
not likely to be accessed again in the near future and that the target can remove it from its local cache
![Page 21: Improving Networks Worldwide. UNH InterOperability Lab SCSI Commands Overview](https://reader036.vdocuments.us/reader036/viewer/2022062409/56649ecf5503460f94bdd872/html5/thumbnails/21.jpg)
21
SCSI Overview
WRITE (16) Command
• FUA and FUA_NV – Force Unit Access (Non-Volatile)– Used to override the targets internal
caching and force it to access the media
![Page 22: Improving Networks Worldwide. UNH InterOperability Lab SCSI Commands Overview](https://reader036.vdocuments.us/reader036/viewer/2022062409/56649ecf5503460f94bdd872/html5/thumbnails/22.jpg)
22
SCSI Overview
WRITE (16) Command
• Logical Block Address (LBA)– The address on the medium that the initiator would like to
read– Internally, the target converts the LBA to a (Cylinder,
Sector, Head) address – Transparent to the computer system and user
![Page 23: Improving Networks Worldwide. UNH InterOperability Lab SCSI Commands Overview](https://reader036.vdocuments.us/reader036/viewer/2022062409/56649ecf5503460f94bdd872/html5/thumbnails/23.jpg)
23
SCSI Overview
WRITE (16) Command
• Transfer Length– Specifies the length in contiguous logical units to be
transferred in this command– Logical unit is typically 512-bytes (1 Block)
![Page 24: Improving Networks Worldwide. UNH InterOperability Lab SCSI Commands Overview](https://reader036.vdocuments.us/reader036/viewer/2022062409/56649ecf5503460f94bdd872/html5/thumbnails/24.jpg)
24
SCSI Overview
WRITE (16) Command
• Restricted for MMC-4– Used for the MMC-4 Version of this command
![Page 25: Improving Networks Worldwide. UNH InterOperability Lab SCSI Commands Overview](https://reader036.vdocuments.us/reader036/viewer/2022062409/56649ecf5503460f94bdd872/html5/thumbnails/25.jpg)
25
SCSI Overview
WRITE (16) Command
• Group Number– Used to collect performance statistics of different groups of
commands– Application A’s performance vs. Applications B’s
performance
![Page 26: Improving Networks Worldwide. UNH InterOperability Lab SCSI Commands Overview](https://reader036.vdocuments.us/reader036/viewer/2022062409/56649ecf5503460f94bdd872/html5/thumbnails/26.jpg)
26
SCSI Overview
WRITE (16) Command
• Control– Standard SCSI Control Bytes– Defined in SAM-4– Has a consistently defined meaning across all commands\– Found only on fixed-length CDB commands
![Page 27: Improving Networks Worldwide. UNH InterOperability Lab SCSI Commands Overview](https://reader036.vdocuments.us/reader036/viewer/2022062409/56649ecf5503460f94bdd872/html5/thumbnails/27.jpg)
27
SCSI Overview
TEST UNIT READY Command
• OP Code: 00h Specifies the command• Control Bits are typically zero
– Defined in SAM-4
• Result: 6 Byte CDB consisting of entirely 0s
![Page 28: Improving Networks Worldwide. UNH InterOperability Lab SCSI Commands Overview](https://reader036.vdocuments.us/reader036/viewer/2022062409/56649ecf5503460f94bdd872/html5/thumbnails/28.jpg)
28
SCSI Overview
TEST UNIT READY Command
Also:CHECK CONDITION – NOT READY – POWER ON OCCURED
![Page 29: Improving Networks Worldwide. UNH InterOperability Lab SCSI Commands Overview](https://reader036.vdocuments.us/reader036/viewer/2022062409/56649ecf5503460f94bdd872/html5/thumbnails/29.jpg)
29
SCSI Overview
INQUIRY Command
• OP Code: 12h Specifies the Command• EVPD: Enable Vital Product Data
– Set to zero, the device returns standard inquiry data– Set to one, enables the page code field
![Page 30: Improving Networks Worldwide. UNH InterOperability Lab SCSI Commands Overview](https://reader036.vdocuments.us/reader036/viewer/2022062409/56649ecf5503460f94bdd872/html5/thumbnails/30.jpg)
30
SCSI Overview
INQUIRY Command
• Page Code: Specifies the page code to return. Pages are defined in SAM-4, SPC-4, and technology specific standards
• Allocation Length specifies the length of inquiry data the initiator is prepared to accept in bytes
![Page 31: Improving Networks Worldwide. UNH InterOperability Lab SCSI Commands Overview](https://reader036.vdocuments.us/reader036/viewer/2022062409/56649ecf5503460f94bdd872/html5/thumbnails/31.jpg)
31
SCSI Overview
REPORT LUNS Command
• OP Code: A0h Specifies the command• Select Report:
![Page 32: Improving Networks Worldwide. UNH InterOperability Lab SCSI Commands Overview](https://reader036.vdocuments.us/reader036/viewer/2022062409/56649ecf5503460f94bdd872/html5/thumbnails/32.jpg)
32
SCSI Overview
REPORT LUNS Command
• Allocation Length should be at least 16 bytes• If the allocation length is insufficient to report all the
LUNs on the device, the device shall report only what it is able to report
![Page 33: Improving Networks Worldwide. UNH InterOperability Lab SCSI Commands Overview](https://reader036.vdocuments.us/reader036/viewer/2022062409/56649ecf5503460f94bdd872/html5/thumbnails/33.jpg)
33
SCSI Overview
Additional Sense Codes
• Values returned in a Response Frame (SAS) in the event that a command could not be completed
• So many possible problems that a qualifier is used to expand the pool of possible returns
![Page 34: Improving Networks Worldwide. UNH InterOperability Lab SCSI Commands Overview](https://reader036.vdocuments.us/reader036/viewer/2022062409/56649ecf5503460f94bdd872/html5/thumbnails/34.jpg)
34
SCSI Overview
Additional Sense Codes Examples• ASC: 0x00 ASCQ: 0x06
– I/O Process Terminated
• ASC: 0x04 ASCQ: 0x11– Logical Unit Not Ready, Notify
(Enable Spinup) Required
• ASC: 0x4B ASCQ: 0x03– ACK/NAK Timeout