1、ANSI INCITS 318-1998 (R2003)(formerly ANSI NCITS 318-1998)for Information Technology SCSI Controller Commands-2 (SCC-2)ANSINCITS 318-1998American National Standardfor Information Technology SCSI Controller Commands-2 (SCC-2)SecretariatInformation Technology Industry CouncilApproved June 9, 1998Ameri
2、can National Standards Institute, Inc.AbstractThis standard defines commands for SCSI storage array devices; commonly known as RAID devices.This standard is principally intended to be used in conjunction with, not as an alternate to, any of theSCSI command standards and the SCSI-3 Architecture Model
3、 Standard. The commands described inthis standard facilitate the control and configuration of SCSI storage arrays and thus provide a commoncommand specification for both system integrators and suppliers of SCSI storage array devices. Approval of an American National Standard requires review by ANSI
4、that therequirements for due process, consensus, and other criteria for approval havebeen 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. Substant
5、ial 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 is completely voluntary; theirexistence does not in an
6、y 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 develop standards andwill in no circumstances give an inter
7、pretation of 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 beaddressed to the secretariat or sponsor whose na
8、me 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, revise, orwithdraw this standard. Purchasers of Ameri
9、can 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 10036Copyright 1999 by Information Technology Indus
10、try Council (ITI)All rights reserved.No part of this publication may be reproduced in anyform, in an electronic retrieval system or otherwise,without prior written permission of ITI, 1250 Eye Street NW, Washington, DC 20005. Printed in the United States of AmericaCAUTION: The developers of this stan
11、dard have requested that holders of patents that may be re-quired for the implementation of the standard disclose such patents to the publisher. However, nei-ther the developers nor the publisher have undertaken a patent search in order to identify which, ifany, patents may apply to this standard. A
12、s of the date of publication of this standard, followingcalls for the identification of patents that may be required for the implementation of the standard,notice of one or more such claims has been received. By publication of this standard, no positionis taken with respect to the validity of this c
13、laim or of any rights in connection therewith. The knownpatent holder(s) has (have), however, filed a statement of willingness to grant a license underthese rights on reasonable and nondiscriminatory terms and conditions to applicants desiring to ob-tain such a license. Details may be obtained from
14、the publisher. No further patent search is con-ducted by the developer or publisher in respect to any standard it processes. No representation ismade or implied that this is the only license that may be required to avoid infringement in the use ofthis standard.iContentsPageForeword xiiIntroduction x
15、v1 Scope. 12 Normative references 22.1 Approved references . 33 Definitions, symbols, abbreviations, and conventions . 33.1 Definitions 33.2 Symbols and abbreviations 63.3 Keywords. 63.4 Conventions. 74 General 85 Models for systems containing arrays of devices 95.1 System layering model 95.1.1 SACL
16、 functions 95.1.2 Protocol conversion layer 105.1.3 Storage array conversion layer (SACL) . 115.1.4 Examples of system layering variations. 125.1.5 Branch of generic layers 135.1.6 Software SACL with a branch of SCSI disks . 145.1.7 Branch with HBA SACL . 155.1.8 Branch with bridge controller SACL.
17、165.1.9 Branch with SACLs in multiple layers 175.2 Model for SCSI storage arrays 185.2.1 SCSI storage array addressing 185.2.1.1 SCSI storage array LUN_Z address 185.2.1.2 Direct addressing. 195.2.1.2.1 Eight-byte LUN structure . 195.2.1.2.2 Logical unit address method 205.2.1.2.3 Peripheral device
18、address method 215.2.1.2.4 Volume set address method 225.2.1.3 Indirect addressing 225.2.1.3.1 Component device address method 225.2.1.3.2 Logical unit address method 235.2.1.3.3 Peripheral device address method 235.2.1.3.4 Redundancy group address method 235.2.1.3.5 Spare address method 235.2.1.3.6
19、 Volume set address method 245.2.2 SCSI storage array objects 245.2.2.1 Adding objects . 245.2.2.2 Association of objects 245.2.2.3 Attachment of objects 255.2.2.4 Covering of objects 255.2.2.5 Exchanging objects 265.2.2.6 Protected objects. 265.2.2.7 Removing objects 265.2.2.8 Component device. 26i
20、iPage5.2.2.9 Peripheral device. 265.2.2.10 P_extent 265.2.2.11 Ps_extent. 275.2.2.12 Redundancy group 275.2.2.12.1 No redundancy method of check data mapping 315.2.2.12.2 Copy redundancy method of check data mapping 315.2.2.12.3 XOR or P+Q redundancy method of check data mapping 315.2.2.12.4 S redun
21、dancy method of check data mapping 315.2.2.12.5 P+S redundancy method of check data mapping 325.2.2.12.6 Vendor specific redundancy method of check data mapping 325.2.2.13 Spares . 325.2.2.14 Volume sets. 335.2.3 SCSI storage array operations 395.2.3.1 Deassign LUN_V operation . 395.2.3.2 Rebuild op
22、eration 395.2.3.3 Recalculate operation 395.2.3.4 Regenerate operation 395.2.3.5 Verify operation . 395.2.4 SCSI storage array states . 395.2.5 SCSI storage array configuration options 405.2.5.1 Simple configuration method . 405.2.5.2 Basic configuration method . 405.2.5.3 General configuration meth
23、od . 415.2.6 SCSI storage array exception conditions 426 Commands for SCSI storage array devices 446.1 Op codes for SCSI storage array commands 446.2 Glossary of SCSI storage array service actions 456.2.1 MAINTENANCE (IN) command service actions 456.2.1.1 REPORT ASSIGNED/UNASSIGNED P_EXTENT (6.3.1.1
24、) . 456.2.1.2 REPORT COMPONENT DEVICE (6.3.1.2). 456.2.1.3 REPORT COMPONENT DEVICE ATTACHMENTS (6.3.1.3). 456.2.1.4 REPORT DEVICE IDENTIFICATION (6.3.1.4) . 456.2.1.5 REPORT PERIPHERAL DEVICE (6.3.1.5) . 456.2.1.6 REPORT PERIPHERAL DEVICE ASSOCIATIONS (6.3.1.6) . 456.2.1.7 REPORT PERIPHERAL DEVICE/C
25、OMPONENT DEVICE IDENTIFIER (6.3.1.7) 456.2.1.8 REPORT STATES (6.3.1.8) 456.2.1.9 REPORT SUPPORTED CONFIGURATION METHOD (6.3.1.9) 456.2.1.10 REPORT UNCONFIGURED CAPACITY (6.3.1.10) 456.2.1.11 MAINTENANCE (OUT) command service actions 456.2.1.12 ADD PERIPHERAL DEVICE/COMPONENT DEVICE (6.4.1.1) 456.2.1
26、.13 ATTACH TO COMPONENT DEVICE (6.4.1.2) . 456.2.1.14 BREAK PERIPHERAL DEVICE/COMPONENT DEVICE (6.4.1.3) . 456.2.1.15 EXCHANGE P_EXTENT (6.4.1.4). 456.2.1.16 EXCHANGE PERIPHERAL DEVICE/COMPONENT DEVICE (6.4.1.5). 456.2.1.17 INSTRUCT COMPONENT DEVICE (6.4.1.6) . 456.2.1.18 REMOVE PERIPHERAL DEVICE/CO
27、MPONENT DEVICE (6.4.1.7). 456.2.1.19 SET PERIPHERAL DEVICE/COMPONENT DEVICE IDENTIFIER (6.4.1.8) 46iiiPage6.2.1.20 REDUNDANCY GROUP (IN) command service actions. 466.2.1.21 REPORT BASIC REDUNDANCY GROUP (6.5.1.1) . 466.2.1.22 REPORT REDUNDANCY GROUPS (6.5.1.2). 466.2.1.23 REPORT UNASSIGNED REDUNDANC
28、Y GROUP SPACE (6.5.1.3) 466.2.1.24 REDUNDANCY GROUP (OUT) command service actions. 466.2.1.25 CONTROL GENERATION OF CHECK DATA (6.6.1.1) 466.2.1.26 CREATE/MODIFY BASIC REDUNDANCY GROUP (6.6.1.2). 466.2.1.27 CREATE/MODIFY REDUNDANCY GROUP (6.6.1.3) 466.2.1.28 DELETE REDUNDANCY GROUP (6.6.1.4) 466.2.1
29、.29 REBUILD P_EXTENT (6.6.1.5) . 466.2.1.30 REBUILD PERIPHERAL DEVICE (6.6.1.6). 466.2.1.31 RECALCULATE CHECK DATA (6.6.1.7) 466.2.1.32 VERIFY CHECK DATA (6.6.1.8) 466.2.1.33 SPARE (IN) command service actions. 466.2.1.34 REPORT P_EXTENT SPARE (6.9.1.1). 466.2.1.35 REPORT PERIPHERAL DEVICE/COMPONENT
30、 DEVICE SPARE (6.9.1.2). 466.2.1.36 SPARE (OUT) command service actions 466.2.1.37 CREATE/MODIFY P_EXTENT SPARE (6.10.1.1) 466.2.1.38 CREATE/MODIFY PERIPHERAL DEVICE/COMPONENT DEVICE SPARE (6.10.1.2) 466.2.1.39 DELETE SPARE (6.10.1.3) . 466.2.1.40 VOLUME SET (IN) command service actions . 476.2.1.41
31、 REPORT BASIC VOLUME SET (6.7.1.1) 476.2.1.42 REPORT STORAGE ARRAY CONFIGURATION (6.7.1.2) 476.2.1.43 REPORT UNASSIGNED VOLUME SETS (6.7.1.3) 476.2.1.44 REPORT VOLUME SETS (6.7.1.4) . 476.2.1.45 VOLUME SET (OUT) command service actions . 476.2.1.46 ASSIGN LUN_V (6.8.1.1) 476.2.1.47 CONTROL GENERATIO
32、N OF CHECK DATA (6.8.1.2) 476.2.1.48 CONTROL WRITE OPERATIONS (6.8.1.3) 476.2.1.49 CREATE/MODIFY BASIC VOLUME SET (6.8.1.4) . 476.2.1.50 CREATE/MODIFY STORAGE ARRAY CONFIGURATION (6.8.1.5) 476.2.1.51 CREATE/MODIFY VOLUME SET (6.8.1.6). 476.2.1.52 DEASSIGN LUN_V (6.8.1.7) . 476.2.1.53 DELETE VOLUME S
33、ET (6.8.1.8) 476.2.1.54 RECALCULATE VOLUME SET CHECK DATA (6.8.1.9) 476.2.1.55 VERIFIY VOLUME SET CHECK DATA (6.8.1.10) 476.3 MAINTENANCE(IN) command 496.3.1 MAINTENANCE(IN) command service actions . 496.3.1.1 REPORT ASSIGNED/UNASSIGNED P_EXTENT service action . 496.3.1.2 REPORT COMPONENT DEVICE ser
34、vice action 526.3.1.3 REPORT COMPONENT DEVICE ATTACHMENTS service. 556.3.1.4 REPORT DEVICE IDENTIFICATION service action . 596.3.1.5 REPORT PERIPHERAL DEVICE service action. 606.3.1.6 REPORT PERIPHERAL DEVICE ASSOCIATIONS service action . 626.3.1.7 REPORT PERIPHERAL DEVICE/COMPONENT DEVICE IDENTIFIE
35、R service action 65ivPage6.3.1.8 REPORT STATES service action 676.3.1.9 REPORT SUPPORTED CONFIGURATION METHOD service action. 756.3.1.10 REPORT UNCONFIGURED CAPACITY service action . 786.4 MAINTENANCE (OUT) commands. 806.4.1 MAINTENANCE (OUT) command service actions 806.4.1.1 ADD PERIPHERAL DEVICE/C
36、OMPONENT DEVICE service action. 806.4.1.2 ATTACH TO COMPONENT DEVICE service action. 816.4.1.3 BREAK PERIPHERIAL DEVICE/COMPONENT DEVICE service action. 836.4.1.4 EXCHANGE P_EXTENT service action 846.4.1.5 EXCHANGE PERIPHERAL DEVICE/COMPONENT DEVICE service action. 866.4.1.6 INSTRUCT COMPONENT DEVIC
37、E service action. 876.4.1.7 REMOVE PERIPHERAL DEVICE/COMPONENT DEVICEservice action 886.4.1.8 SET PERIPHERAL DEVICE/COMPONENT DEVICE IDENTIFIER service action. 896.5 REDUNDANCY GROUP (IN) command . 926.5.1 REDUNDANCY GROUP (IN) command service actions. 926.5.1.1 REPORT BASIC REDUNDANCY GROUP service
38、 action 926.5.1.2 REPORT REDUNDANCY GROUPS service action 956.5.1.3 REPORT UNASSIGNED REDUNDANCY GROUP SPACE service action. 996.6 REDUNDANCY GROUP (OUT) command . 1026.6.1 REDUNDANCY GROUP (OUT) command service actions. 1026.6.1.1 CONTROL GENERATION OF CHECK DATA service action . 1036.6.1.2 CREATE/
39、MODIFY BASIC REDUNDANCY GROUP service action . 1046.6.1.3 CREATE/MODIFY REDUNDANCY GROUP service action 1096.6.1.4 DELETE REDUNDANCY GROUP service action . 1136.6.1.5 REBUILD P_EXTENT service action. 1146.6.1.6 REBUILD PERIPHERAL DEVICE service action 1176.6.1.7 RECALCULATE CHECK DATA service action
40、 . 1206.6.1.8 VERIFY CHECK DATA service action. 1216.7 VOLUME SET (IN) command 1256.7.1 VOLUME SET (IN) command service actions. 1256.7.1.1 REPORT BASIC VOLUME SET service action. 1256.7.1.2 REPORT STORAGE ARRAY CONFIGURATION service action 1296.7.1.3 REPORT UNASSIGNED VOLUME SETS service action . 1
41、336.7.1.4 REPORT VOLUME SETS service action 1346.8 VOLUME SET (OUT) command 1396.8.1 VOLUME SET (OUT) command service actions. 1396.8.1.1 ASSIGN LUN_V service action . 1396.8.1.2 CONTROL GENERATION OF CHECK DATA service action . 1416.8.1.3 CONTROL WRITE OPERATIONS service action. 1426.8.1.4 CREATE/M
42、ODIFY BASIC VOLUME SET service action 1446.8.1.5 CREATE/MODIFY STORAGE ARRAY CONFIGURATIONservice action 1496.8.1.6 CREATE/MODIFY VOLUME SET service action 1546.8.1.7 DEASSIGN LUN_V service action. 158vPage6.8.1.8 DELETE VOLUME SET service action 1596.8.1.9 RECALCULATE VOLUME SET CHECK DATA service
43、action . 1606.8.1.10 VERIFY VOLUME SET CHECK DATA service action. 1626.9 SPARE (IN) command . 1666.9.1 SPARE (IN) command service actions 1666.9.1.1 REPORT P_EXTENT SPARE service action 1666.9.1.2 REPORT PERIPHERAL DEVICE/COMPONENT DEVICE SPARE service action 1696.10 SPARE (OUT) command . 1736.10.1
44、SPARE (OUT) command service actions 1736.10.1.1 CREATE/MODIFY P_EXTENT SPARE service action 1746.10.1.2 CREATE/MODIFY PERIPHERAL DEVICE/COMPONENT DEVICE SPARE service action . 1786.10.1.3 DELETE SPARE service action. 1816.11 Parameters for storage array devices 1836.11.1 Mode parameters. 1836.11.1.1
45、 LUN mapping page 183Tables1 Addressing methods within an SCSI storage array 182 Eight-byte LUN structure adjustments 193 Eight-byte LUN structure 194 FIRST LEVEL ADDRESSING field, SECOND LEVEL ADDRESSING field, THIRD LEVEL ADDRESSING field, and FOURTH LEVEL ADDRESSING field . 205 ADDRESS METHOD 206
46、 Logical unit addressing . 217 Peripheral device addressing . 218 Volume set addressing . 229 Component device address 2310 Redundancy group address 2311 Spare address 2412 Commands for SCSI storage array devices . 4413 Service actions for MAINTENANCE(IN) command 4914 REPORT ASSIGNED/UNASSIGNED P_EX
47、TENT service action 5015 REPORT ASSIGNED/UNASSIGNED P_EXTENT parameter list 5116 Data format of ASSIGNED/UNASSIGNED P_EXTENT DESCRIPTOR . 5117 Data format of P_EXTENT DESCRIPTOR. 5218 REPORT COMPONENT DEVICE service action . 5319 REPORT COMPONENT DEVICE parameter list . 5420 Data format of COMPONENT
48、 DEVICE DESCRIPTOR 5421 COMPONENT DEVICE TYPES 55viPage22 REPORT COMPONENT DEVICE ATTACHMENTS service action. 5623 REPORT COMPONENT DEVICE ATTACHMENTS parameter list. 5724 Format of COMPONENT DEVICE ATTACHMENT DESCRIPTOR 5825 Data format of LOGICAL UNIT DESCRIPTOR 5826 LOGICAL UNIT types 5927 REPORT
49、 DEVICE IDENTIFICATION service action 5928 REPORT PERIPHERAL DEVICE service action . 6029 SELECT REPORT . 6130 REPORT PERIPHERAL DEVICE parameter list 6131 Format of PERIPHERAL DEVICE DESCRIPTOR . 6232 REPORT PERIPHERAL DEVICE ASSOCIATIONS service action . 6333 REPORT PERIPHERAL DEVICE ASSOCIATIONS parameter list 6434 Format of PERIPHERAL DEVICE ASSOCIATIONS DESCRIPTOR. 6535 REPORT PERIPHERAL DEVICE/COMPONENT DEVICE IDENTIFIER service action . 6636 REPORT PERIPHERAL DEVICE/COMPONENT DEVICE IDENTIFIER parameter list 6737 REPORT STATES service action 6838 REPORT STATES . 6839 REPORT STATES