1、ANSI INCITS 306-1998 (R2003)(formerly ANSI NCITS 306-1998)for Information Technology SCSI-3 Block Commands (SBC)American National Standardfor Information Technology SCSI-3 Block Commands (SBC)ANSI NCITS 306-1998SecretariatInformation Technology Industry CouncilApproved January 7, 1998American Nation
2、al Standards Institute, Inc.AbstractThis standard specifies the functional requirements for the SCSI-3 Block Command set (SBC). SBC per-mits SCSI block logical units such as flexible disks, rigid disks, optical disks, etc., to attach to computersand provides the definition for their use.Approval of
3、an American National Standard requires review by ANSI that therequirements for due process, consensus, and other criteria for approvalhave been met by the standards developer.Consensus is established when, in the judgement of the ANSI Board ofStandards Review, substantial agreement has been reached
4、by directly andmaterially affected interests. Substantial agreement means much more thana simple majority, but not necessarily unanimity. Consensus requires that allviews and objections be considered, and that a concerted effort be madetowards their resolution.The use of American National Standards
5、is completely voluntary; theirexistence does not in any respect preclude anyone, whether he has approvedthe standards or not, from manufacturing, marketing, purchasing, or usingproducts, processes, or procedures not conforming to the standards.The American National Standards Institute does not devel
6、op standards andwill in no circumstances give interpretation on any American NationalStandard. Moreover, no person shall have the right or authority to issue aninterpretation of an American National Standard in the name of the AmericanNational Standards Institute. Requests for interpretations should
7、 beaddressed to the secretariat or sponsor whose name appears on the titlepage of this standard.CAUTION NOTICE:This American National Standard may be revised orwithdrawn at any time. The procedures of the American National StandardsInstitute require that action be taken periodically to reaffirm, rev
8、ise, orwithdraw this standard. Purchasers of American National Standards mayreceive current information on all standards by calling or writing the AmericanNational Standards Institute.American National StandardPublished byAmerican National Standards Institute, Inc.11 West 42nd Street, New York, NY 1
9、0036Copyright 1998 by Information Technology Industry CouncilAll rights reserved.No part of this publication may be reproduced in anyform, in an electronic retrieval system or otherwise,without prior written permission of the publisher.Printed in the United States of AmericaCAUTION:The developers of
10、 this standard have requested that holders of patents that may berequired for the implementation of the standard disclose such patents to the publisher. However,neither the developers nor the publisher have undertaken a patent search in order to identifywhich, if any, patents may apply to this stand
11、ard.As of the date of publication of this standard and following calls for the identification of patentsthat may be required for the implementation of the standard, no such claims have been made. Nofurther patent search is conducted by the developer or publisher in respect to any standard it pro-ces
12、ses. No representation is made or implied that licenses are not required to avoid infringementin the use of this standard. iContentsPageForeword . viiiIntroduction .xi1Scope. 12Normative references 32.1 Approved references . 32.2 References under development. 33Definitions, symbols, and abbreviation
13、s 33.1 Definitions 33.1.1 Definitions specific to direct access devices 33.1.1.1 block device . 33.1.1.2 cache memory . 33.1.1.3 check data . 33.1.1.4 data-in buffer 33.1.1.5 data-out buffer . 33.1.1.6 domain . 43.1.1.7 exclusive-or 43.1.1.8 extent . 43.1.1.9 host 43.1.1.10 logical block . 43.1.1.11
14、 non-volatile medium. 43.1.1.12 notch 43.1.1.13 redundancy group 43.1.1.14 storage array controller 43.1.1.15 storage array conversion layer (SACL) 43.1.1.16 third party. 43.1.1.17 user-accessible 43.1.1.18 user data 43.1.1.19 volatile medium 43.1.2 Definitions specific to optical memory block devic
15、es and to write-once block devices 43.1.2.1 blank 43.1.2.2 generation 43.1.2.3 read-only medium 43.1.2.4 update 43.1.2.5 write-once medium 53.2 Symbols and abbreviations 53.3 Keywords . 53.3.1 expected 53.3.2 mandatory 53.3.3 may 53.3.4 obsolete . 53.3.5 optional 53.3.6 reserved. 53.3.7 shall . 53.3
16、.8 should 53.3.9 vendor-specific. 53.4 Conventions. 5iiPage4General 65SCSI block device models. 75.1 Direct-access device type model 75.1.1 Removable medium. 75.1.1.1 Removable medium with an attached medium changer 75.1.2 Logical blocks 85.1.3 Ready state 85.1.4 Power conditions . 85.1.5 Initializa
17、tion 105.1.6 Medium defects . 115.1.7 Cache memory 115.1.8 Reservations 125.1.9 Seek(10) 135.1.10 Notched devices 145.1.11 Rotational position locking. 145.1.12 Relative addressing . 145.1.13 Error reporting 145.1.14 Examples. 155.1.14.1 Rotating media. 155.1.14.2 Sequential media. 155.1.14.3 Memory
18、 media. 165.1.15 Model for XOR commands 165.1.15.1 Storage array controller supervised XOR operations 165.1.15.1.1 Update write operation. 165.1.15.1.2 Regenerate operation 175.1.15.1.3 Rebuild operation. 175.1.15.2 Third party XOR operations. 175.1.15.2.1 Update write operation. 185.1.15.2.2 Regene
19、rate operation 185.1.15.2.3 Rebuild operation. 185.1.15.3 Hybrid subsystem XOR operations 195.1.15.3.1 Update write operation. 195.1.15.3.2 Regenerate operation 195.1.15.3.3 Rebuild operation. 205.1.15.4 Additional array subsystem considerations . 215.1.15.4.1 Buffer full status handling 215.1.15.4.
20、2 Access to an inconsistent stripe 215.1.15.4.3 Error handling considerations 225.1.15.4.3.1 Errors during third party XOR operations 225.1.15.4.3.1.1 Primary errors - errors resulting directly from the primary command. 225.1.15.4.3.1.2 Secondary errors - errors resulting from the secondary command.
21、 225.1.15.4.4 XOR data retention requirements 235.2 Model for optical memory block devices 245.2.1 Defect management 255.2.2 Error reporting 255.3 Model for write-once block devices 255.3.1 Logical blocks 265.3.2 Initialization 265.3.3 Physical medium defects. 26iiiPage5.3.4 Error reporting 266Comma
22、nds for block devices. 286.1 Commands for direct-access block devices. 286.1.1 FORMAT UNIT command 296.1.1.1 Defect list formats 346.1.1.2 Initialization pattern option . 356.1.2 LOCK UNLOCK CACHE command. 376.1.3 PRE-FETCH command 386.1.4 READ(6) command 396.1.5 READ(10) command 406.1.6 READ CAPACI
23、TY command . 416.1.7 READ DEFECT DATA (10) command. 426.1.8 READ LONG command . 446.1.9 REASSIGN BLOCKS command 456.1.10 REBUILD Command 476.1.11 REGENERATE command 496.1.12 SEEK(10) command 506.1.13 SET LIMITS(10) command 506.1.14 START STOP UNIT command 516.1.15 SYNCHRONIZE CACHE command. 536.1.16
24、 VERIFY command . 546.1.17 WRITE(6) command 556.1.18 WRITE(10) command 566.1.19 WRITE AND VERIFY command 576.1.20 WRITE LONG command 586.1.21 WRITE SAME command 596.1.22 XDREAD command . 606.1.23 XDWRITE command 606.1.24 XDWRITE EXTENDED command . 616.1.25 XPWRITE command 626.2 Commands for optical
25、memory block devices 636.2.1 ERASE(10) command 656.2.2 ERASE(12) command 666.2.3 MEDIUM SCAN command. 676.2.4 READ(12) command 696.2.5 READ DEFECT DATA(12) command 706.2.6 READ GENERATION command 716.2.7 READ UPDATED BLOCK(10) command. 726.2.8 SET LIMITS(12) command 736.2.9 UPDATE BLOCK command. 746
26、.2.10 VERIFY(10) command. 756.2.11 VERIFY(12) command. 766.2.12 WRITE(10) command 766.2.13 WRITE(12) command 776.2.14 WRITE AND VERIFY(10) command 786.2.15 WRITE AND VERIFY(12) command 796.3 Commands for write-once block devices . 797Parameters for block devices. 827.1 Parameters for direct-access b
27、lock devices. 827.1.1 Diagnostic parameters . 82ivPage7.1.1.1 Translate address page - SEND DIAGNOSTIC 827.1.1.2 Translate address page - RECEIVE DIAGNOSTIC. 837.1.1.3 Device status page - SEND DIAGNOSTIC 847.1.1.4 Device status page - RECEIVE DIAGNOSTIC 857.1.2 Log parameters 867.1.2.1 Format statu
28、s page 877.1.3 Mode parameters. 887.1.3.1 Caching page. 907.1.3.2 Flexible disk page 937.1.3.3 Format device page. 977.1.3.4 Medium types supported page 997.1.3.5 Notch and partition page 1007.1.3.6 Power condition page 1017.1.3.7 Read-write error recovery page. 1037.1.3.8 Rigid disk device geometry
29、 page. 1097.1.3.9 Verify error recovery page . 1117.1.3.10 XOR control mode page 1127.1.4 Parameters for optical memory block devices. 1137.1.4.1 Diagnostic parameters. 1137.1.4.2 Log parameters 1137.1.4.3 Mode parameters. 1137.1.4.4 Optical memory page. 1157.1.5 Parameters for write-once block devi
30、ces. 116Tables1Commands for direct-access block devices . 282FORMAT UNIT command 293FORMAT UNIT parameter list 314DEFECTLISTHEADER315FORMAT UNIT defect descriptor format and requirements . 326defect descriptor - Block format 347DEFECTDESCRIPTOR- Bytes from index format. 348DEFECTDESCRIPTOR- Physical
31、 sector format . 359INITIALIZATIONPATTERNDESCRIPTOR3510Initialization pattern modifier. 3611Initialization pattern type. 3612LOCK UNLOCK CACHE command . 3713PRE-FETCH command 3814READ(6) command 3915READ(10) command 4016READ CAPACITY command 4117READ CAPACITY data 4218READ DEFECT DATA (10) command .
32、 42vPage19READ DEFECT DATA (10) defect list 4320READ LONG command 4421REASSIGN BLOCKS command. 4522REASSIGN BLOCKS defect list . 4623REBUILD COMMAND 4724PORTCONTROLfield . 4825REBUILD and REGENERATE parameter data 4826SOURCEDESCRIPTORformat 4927REGENERATE command 4928SEEK(10) command . 5029SET LIMIT
33、S(10) command . 5130START STOP UNIT command . 5231POWERCONDITIONS5232SYNCHRONIZE CACHE command . 5433VERIFY command 5534WRITE(6) command . 5635WRITE(10) command . 5636WRITE AND VERIFY command. 5737WRITE LONG command 5838WRITE SAME command 5939XDREAD command 6040XDWRITE command 6041XDWRITE EXTENDED c
34、ommand 6142XPWRITE command. 6343Commands for optical memory block devices 6444ERASE(10) command 6645ERASE(12) command 6746MEDIUM SCAN command . 6747MEDIUM SCAN parameter list . 6848READ(12) command. 7049READ DEFECT DATA(12) command. 7050READ DEFECT DATA(12) list header 7151READ GENERATION command 71
35、52Maximum generation data block. 7253READ UPDATED BLOCK(10) command . 72viPage54SET LIMITS(12) command. 7355UPDATE BLOCK command. 7456VERIFY command 7557VERIFY(12) command . 7658WRITE(10) command. 7659WRITE(12) command. 7760WRITE AND VERIFY(10) command 7861WRITE AND VERIFY(12) command 7962Commands f
36、or write-once block devices 8063Diagnostic page codes . 8264Translate address page - SEND DIAGNOSTIC . 8265Translate address page - RECEIVE DIAGNOSTIC . 8366Device status page - SEND DIAGNOSTIC 8467Device status page - RECEIVE DIAGNOSTIC 8568 synchronization field. 8569 Log page codes 8670 Format st
37、atus log page. 8771 Direct-access medium-type codes . 8872 Device specific parameter 8873 Mode page codes. 8974 Caching page . 9075 Demand read retention priority and write retention priority 9176 Flexible disk page. 9477 Examples of transfer rates . 9578 pin 34 field 9679 pin 4 field 9680 pin 1 fie
38、ld 9781 Format device page 9782 Reporting of default sector formatting support . 9983 Reporting of changeable sector formatting support . 9984 Medium types supported page . 10085 Notch page . 10086 Power condition page. 10287 Read-write error recovery page 10388 Error recovery bit definitions. 105vi
39、iPage89 Combined error recovery parameter descriptions 10690 Rigid disk device geometry page 10991 Rotational position locking 11092 Verify error recovery page 11193 XOR control mode page . 11294 Diagnostic page codes . 11395 Log page codes 11396 Optical memory medium-type codes 11497 Optical memory
40、 block device specific parameter . 11498 Optical memory density codes 11599 Mode page codes . 115100 Optical memory page 116Figures1 SCSI standards - general structure 12 SCSI power conditions flow control (automatic switching) . 93 SCSI power conditions flow control (controlled switching) . 104 Pow
41、er conditions flowchart . 103AnnexesA XOR command examples. 117B Bibliography 126viiiForeword (This foreword is not part of American National Standard NCITS 306-1998.)This SCSI command set is designed to provide efficient peer-to-peer operation of in-put/output logical units by an operating system u
42、sing block transfers. The SCSI com-mand set assumes an underlying command-response protocol.This SCSI command set provides multiple operating systems concurrent control overone or more input/output logical units. However, the multiple operating systems areassumed to properly coordinate their actions
43、 to prevent data corruption. This SCSIstandard provides commands that assist with coordination between multiple operat-ing systems. However, details of the coordination are beyond the scope of the SCSIcommand set.This standard defines a logical unit model for SCSI block logical units. Also definedar
44、e SCSI commands that apply to SCSI block logical units.This standard was developed by T10 during 1990 through 1996. Most of its featureshave been tested in products implementing extensions of prior SCSI standards.This standard contains two informative annexes that are not considered part of thisstan
45、dard.Requests for interpretation, suggestions for improvement or addenda, or defect re-ports are welcome. They should be sent to the National Committee for InformationTechnology Standards (NCITS), ITI, 1250 Eye Street, NW, Suite 200, Washington,DC 20005.This standard was processed and approved for s
46、ubmittal to ANSI by NCITS. Com-mittee approval of this standard does not necessarily imply that all committee mem-bers voted for its approval. At the time it approved this standard, NCITS had thefollowing members:Karen Higgenbottom, ChairKaren Higgenbottom, Vice-ChairMonica Vago, SecretaryOrganizati
47、on Represented Name of RepresentativeAMP, IncJohn HillCharles Brill (Alt.)Apple Computer, IncDavid K. MichaelJerry Kellenbenz (Alt.)ATb) Define commands unique to the type of SCSI block devices;c) Define commands to manage the operation of SCSI block devices;d) Define the differences between types o
48、f SCSI block devices.Figure 1 - SCSI standards - general structureANSI NCITS 306-19982Figure 1 is intended to show the general structure of SCSI standards. The figure is not intended to imply arelationship such as a hierarchy, protocol stack, or system architecture. It indicates the applicability of
49、 astandard to the implementation of a given transport.At the time this standard was generated examples of the SCSI general structure included:Physical Interconnects:Fibre Channel Arbitrated Loop ANSI X3.272-1996Fibre Channel - Physical and Signaling Interface ANSI X3.230-1994High Performance Serial Bus IEEE 1394-1995SCSI-3 Parallel Interface ANSI X3.253-1995SCSI-3 Fast-20 Parallel Interface ANSI X3.277.1996SCSI Parallel Interface -2 ANSI NCITS 302-199XSerial Storage Architecture Physical Layer 1 ANSI X3.293-1996Serial Storage Architecture Physical Layer 2 ANSI NCITS 307-199