1、ANSI INCITS 306-1998 (R2003)(formerly ANSI NCITS 306-1998)for Information Technology SCSI-3 Block Commands (SBC)Copyright American National Standards Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,-,-Copyright American
2、 National Standards Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,-,-American National Standardfor Information Technology SCSI-3 Block Commands (SBC)ANSI NCITS 306-1998SecretariatInformation Technology Industry Counci
3、lApproved January 7, 1998American National 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 t
4、he definition for their use.Copyright American National Standards Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,-,-Approval of an American National Standard requires review by ANSI that therequirements for due process
5、, 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 by directly andmaterially affected interests. Substantial agreement means much more thana
6、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 is completely voluntary; theirexistence does not in any respect preclude anyone, whether h
7、e 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 develop standards andwill in no circumstances give interpretation on any American NationalStand
8、ard. 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 beaddressed to the secretariat or sponsor whose name appears on the titlepage of this sta
9、ndard.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, revise, orwithdraw this standard. Purchasers of American National Standards mayreceive curren
10、t 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 10036Copyright 1998 by Information Technology Industry CouncilAll rights reserved.No part o
11、f 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 this standard have requested that holders of patents that may berequired for the implemen
12、tation 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 standard.As of the date of publication of this standard and following calls for the identificat
13、ion 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-cesses. No representation is made or implied that licenses are not required to avoid infringe
14、mentin the use of this standard. Copyright American National Standards Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,-,-iContentsPageForeword . viiiIntroduction .xi1Scope. 12Normative references 32.1 Approved referenc
15、es . 32.2 References under development. 33Definitions, symbols, and abbreviations 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
16、exclusive-or 43.1.1.8 extent . 43.1.1.9 host 43.1.1.10 logical block . 43.1.1.11 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.
17、1.1.19 volatile medium 43.1.2 Definitions specific to optical memory block devices 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 5
18、3.3.3 may 53.3.4 obsolete . 53.3.5 optional 53.3.6 reserved. 53.3.7 shall . 53.3.8 should 53.3.9 vendor-specific. 53.4 Conventions. 5Copyright American National Standards Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,
19、-,-iiPage4General 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 Initialization 105.1.6 Medium defects . 115.1.7 Cache memory
20、 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 media. 165.1.15 Model for XOR commands 165.1.15.1
21、 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 Regenerate operation 185.1.15.2.3 Rebuild operation. 185
22、.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.2 Access to an inconsistent stripe 215.1.15.4.3 Er
23、ror 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. 225.1.15.4.4 XOR data retention requirements 235.
24、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. 26Copyright American National Standards Institute Provided by IHS under license with ANSI
25、Not for ResaleNo reproduction or networking permitted without license from IHS-,-,-iiiPage5.3.4 Error reporting 266Commands 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 L
26、OCK 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 CAPACITY 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(1
27、0) command 506.1.13 SET LIMITS(10) command 506.1.14 START STOP UNIT command 516.1.15 SYNCHRONIZE CACHE command. 536.1.16 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 com
28、mand . 606.1.23 XDWRITE command 606.1.24 XDWRITE EXTENDED command . 616.1.25 XPWRITE command 626.2 Commands for optical 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 GEN
29、ERATION command 716.2.7 READ UPDATED BLOCK(10) command. 726.2.8 SET LIMITS(12) command 736.2.9 UPDATE BLOCK command. 746.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) com
30、mand 796.3 Commands for write-once block devices . 797Parameters for block devices. 827.1 Parameters for direct-access block devices. 827.1.1 Diagnostic parameters . 82Copyright American National Standards Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or networking p
31、ermitted without license from IHS-,-,-ivPage7.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 status page 877
32、.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 page. 109
33、7.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 devices. 116Ta
34、bles1Commands 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 sector fo
35、rmat . 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 . 42Copyrig
36、ht American National Standards Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,-,-vPage19READ DEFECT DATA (10) defect list 4320READ LONG command 4421REASSIGN BLOCKS command. 4522REASSIGN BLOCKS defect list . 4623REBUILD
37、 COMMAND 4724PORTCONTROLfield . 4825REBUILD and REGENERATE parameter data 4826SOURCEDESCRIPTORformat 4927REGENERATE command 4928SEEK(10) command . 5029SET LIMITS(10) command . 5130START STOP UNIT command . 5231POWERCONDITIONS5232SYNCHRONIZE CACHE command . 5433VERIFY command 5534WRITE(6) command . 5
38、635WRITE(10) command . 5636WRITE AND VERIFY command. 5737WRITE LONG command 5838WRITE SAME command 5939XDREAD command 6040XDWRITE command 6041XDWRITE EXTENDED command 6142XPWRITE command. 6343Commands for optical memory block devices 6444ERASE(10) command 6645ERASE(12) command 6746MEDIUM SCAN comman
39、d . 6747MEDIUM SCAN parameter list . 6848READ(12) command. 7049READ DEFECT DATA(12) command. 7050READ DEFECT DATA(12) list header 7151READ GENERATION command 7152Maximum generation data block. 7253READ UPDATED BLOCK(10) command . 72Copyright American National Standards Institute Provided by IHS unde
40、r license with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,-,-viPage54SET LIMITS(12) command. 7355UPDATE BLOCK command. 7456VERIFY command 7557VERIFY(12) command . 7658WRITE(10) command. 7659WRITE(12) command. 7760WRITE AND VERIFY(10) command 7861WRITE AND VER
41、IFY(12) command 7962Commands for 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
42、 Log page codes 8670 Format status 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 9
43、679 pin 4 field 9680 pin 1 field 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 r
44、ecovery bit definitions. 105Copyright American National Standards Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,-,-viiPage89 Combined error recovery parameter descriptions 10690 Rigid disk device geometry page 10991 R
45、otational 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 block device specific parameter . 11498 Optical memory density codes 11599 Mode page codes . 115100
46、 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 Power conditions flowchart . 103AnnexesA XOR command examples. 117B Bibliography 126Copyright American
47、National Standards Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,-,-viiiForeword (This foreword is not part of American National Standard NCITS 306-1998.)This SCSI command set is designed to provide efficient peer-to-
48、peer operation of in-put/output logical units by an operating system using 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 mult
49、iple operating systems areassumed to properly coordinate their actions 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 defi