Hitachi DK32EJ Reference Manual

OEM MANUAL:K6602771
Revision: 2 / Date: 2002.12.19
Page: 1 / 313
HITACHI
3.5 INCH MAGNETIC DISK DRIVE Reference Manual
For DK32EJ
FC-AL Interface Specification
Document Number : K6602771
SCSI 2/3 SPECIFICATIONS Hitachi, Ltd. Tokyo, Japan
OEM MANUAL:K6602771
Revision: 2 / Date: 2002.12.19
Page: 2 / 313
NOTICE TO USERS
While every effort has been made to ensure that the information provided herein is correct please feel free to notify us in the event of an error of inconsistency.
Hitachi makes no representations or warranties with respect to the contents hereof and specifically disclaims any implied warranties or merchantability or fitness for any purpose.
Further, Hitachi reserves the right to revise this publication and to make changes from time to time in the content hereof without obligation to notify any person of such revisions or changes.
All Right Reserved, Copyright (C) 2002 Hitachi, Ltd.
OEM MANUAL:K6602771
Revision: 2 / Date: 2002.12.19
Page: 3 / 313
REVISION TABLE
Remarks AD : Addition, CH : Change, CR : Correction, DL : Deletion REV Date Signature Page Description Remarks
DWN : Shiino
CHK
: Watanabe
0 ’02.03.29
APPD
: Takayasu
All Initial Release
1
’02.06.13
DWN : Shiino 15 Change of revision number of related CH
CHK
: Watanabe
Document.
APPD : Takayasu 23 Correct the number of alternate CR
Cylinders.
26,27 Delete the description about error
recovery parameter.
DL
27,28,
204,208
Change of retry count. CH
120,122,
128
Addition of description about Device Control.
AD
154 Correct the about Byte. CR 168 Change of description about Recovery
Time Limit.
CH
183 Change of description about Queue
Algorithm Modifier.
CH
196 Correct the about MRIE=4. CR 210 Change the default value of Queue
Algorithm Modifier.
CH
227 Correct the about Reservation Key. CR 262 Correct the Self Test Code value. CR 250 Correct the Receive Diagnostic Result
Command.
CR
299,300
301
Addition of description about 0389,0904,0CFF,11FF
AD
310 Correct the about 4700. CR
2
’02.12.19
DWN : Shiino 110 Addition description about defect AD
CHK : Hida Specification range.
APPD : Takayasu 209 Change the default value of
DISC,FSW.
CH
210 Correct the about Byte0,Byte2. CR
307 Addition of description about 4483. AD
REVISION
OEM MANUAL:K6602771
Revision: 2 / Date: 2002.12.19
Page: 4 / 313
REV Date Signature Page Description Remarks
REVISION
OEM MANUAL:K6602771
Revision: 2 / Date: 2002.12.19
Page: 5 / 313
REV Date Signature Page Description Remarks
REVISION
OEM MANUAL:K6602771
Revision: 2 / Date: 2002.12.19
Page: 6 / 313
REV Date Signature Page Description Remarks
REVISION
OEM MANUAL:K6602771
Revision: 2 / Date: 2002.12.19
Page: 7 / 313
CONTENTS
1 GENERAL DESCRIPTION.................................................................................................15
1.1 APPLICATION.............................................................................................................15
1.2 RELATED DOCUMENT .............................................................................................. 15
1.3 FUNCTION OUTLINE.................................................................................................. 16
1.4 GLOSSARY................................................................................................................. 19
2 PRODUCT SPECIFICATION OUTLINE.............................................................................21
2.1 ADDRESSING ............................................................................................................. 21
2.2 DISK FORMAT ............................................................................................................ 21
2.2.1 CYLINDER ALLOCATION...................................................................................21
2.2.2 FORMAT PROCESSING......................................................................................22
2.3 ERROR RETRY........................................................................................................... 26
2.3.1 READ ERROR RETRY.........................................................................................26
2.3.2 WRITE ERROR RETRY .......................................................................................26
2.3.3 VERIFY ERROR RETRY......................................................................................27
2.3.4 SEEK ERROR RETRY.........................................................................................27
2.3.5 SPINDLE ERROR RETRY ................................................................................... 27
2.3.6 ERROR RETRY CONTROL.................................................................................27
2.4 SUPPORTED SCSI COMMANDS...............................................................................28
3 FIBRE CHANNEL INTERFACE .........................................................................................31
3.1 TOPOLOGY................................................................................................................. 31
3.2 FRAMES...................................................................................................................... 34
3.2.1 FRAME FORMAT .................................................................................................34
3.3 FIBRE CHANNEL ARBITRATED LOOP(FC-AL) ...................................................... 39
3.3.1 ARBITRATED LOOP PHYSICAL ADDRESS(AL_PA) .......................................39
3.3.2 LOOP INITIALIZATION........................................................................................ 41
3.3.3 ARBITRATED LOOP ACCESS ...........................................................................46
3.3.4 PUBLIC LOOP .....................................................................................................46
3.4 ORDERED SETS.........................................................................................................49
3.5 LINK SERVICE............................................................................................................ 52
3.5.1 ABORT SEQUENCE(ABTS)................................................................................53
3.5.2 BASIC ACCEPT(BA_ACC) .................................................................................53
3.5.3 BASIC REJECT(BA_RJT)................................................................................... 54
3.5.4 ACCEPT(ACC)..................................................................................................... 55
3.5.5 LINK SERVICE REJECT(LS_RJT) ..................................................................... 56
3.5.6 N_PORT LOGIN(PLOGI) .....................................................................................58
3.5.7 LOGOUT(LOGO).................................................................................................. 63
3.5.8 FABRIC LOGIN(FLOGI).......................................................................................64
3.5.9 READ LINK ERROR BLOCK(RLS)..................................................................... 69
3.5.10 REINSTATE RECOVERY QUALIFIER(RRQ)...................................................... 70
3.5.11 REQUEST NODE CAPABILITIES INFORMATION(RNC) (Not support) .......... 72
3.5.12 FABRIC ADDRESS NOTIFICATION(FAN)..........................................................74
3.5.13 PROCESS LOGIN(PRLI) .....................................................................................76
3.5.14 PROCESS LOGOUT(PRLO) ...............................................................................80
3.5.15 DISCOVER N_PORT SERVICE PARAMETERS(PDISC)...................................83
3.5.16 DISCOVER ADDRESS(ADISC)...........................................................................85
3.5.17 THIRD PARTY PROCESS LOGOUT(TPRLO) (Not support)............................ 86
OEM MANUAL:K6602771
Revision: 2 / Date: 2002.12.19
Page: 8 / 313
4 SCSI BUS............................................................................................................................88
4.1 SCSI BUS FUNCTIONS.............................................................................................. 88
4.1.1 COMMAND RECEPTION.....................................................................................88
4.1.2 COMMAND QUEUING.........................................................................................88
4.1.3 UNIT ATTENTION CONDITION...........................................................................89
4.1.4 RESET CONDITION.............................................................................................89
4.2 FCP INFORMATION UNIT.......................................................................................... 90
4.2.1 FCP_CMND..........................................................................................................90
4.2.2 FCP_XFER_READY.............................................................................................93
4.2.3 FCP_DATA ...........................................................................................................93
4.2.4 FCP_RSP..............................................................................................................94
4.3 FRAME SEQUENSE ................................................................................................... 97
4.4 ENCLOSURE SERVICE INTERFACE(ESI) SPECIFICATION .................................. 99
4.4.1 DISCOVERY PROCESS ...................................................................................... 99
4.4.2 COMMAND PROCESS......................................................................................101
4.4.3 WRITE PROCESS..............................................................................................102
4.4.4 READ PROCESS ............................................................................................... 102
5 SCSI COMMANDS............................................................................................................103
5.1 COMMAND STRUCTURE......................................................................................... 103
5.1.1 OPERATION CODE ...........................................................................................105
5.1.2 LOGICAL UNIT NUMBER ................................................................................. 106
5.1.3 RELATIVE ADDRESS........................................................................................106
5.1.4 LOGICAL BLOCK ADDRESS...........................................................................106
5.1.5 TRANSFER LENGTH ........................................................................................107
5.1.6 CONTROL BYTE................................................................................................108
5.1.7 RESERVED ........................................................................................................ 108
5.1.8 VENDOR UNIQUE..............................................................................................108
6 COMMAND DESCRIPTIONS........................................................................................... 109
6.1 FORMAT UNIT:(04H)................................................................................................. 109
6.2 INQUIRY:(12H)........................................................................................................... 118
6.3 LOG SELECT:(4CH) .................................................................................................. 129
6.4 LOG SENSE:(4DH) .................................................................................................... 155
6.5 MODE SELECT:(15H)................................................................................................ 157
6.6 MODE SELECT (10):(55H) ........................................................................................ 197
6.7 MODE SENSE:(1AH) ................................................................................................. 199
6.8 MODE SENSE (10):(5AH).......................................................................................... 217
6.9 PERSISTENT RESERVE IN:(5Eh) ........................................................................... 219
6.10 PERSISTENT RESERVE OUT:(5Fh) ....................................................................... 226
6.11 READ:(08H)................................................................................................................ 231
6.12 READ (EXTENDED):(28H)......................................................................................... 232
6.13 READ BUFFER:(3CH)................................................................................................ 234
6.14 READ CAPACITY:(25H) ............................................................................................ 238
6.15 READ DEFECT DATA:(37H) ..................................................................................... 240
6.16 READ DEFECT DATA(12) :(B7H)............................................................................. 243
6.17 READ LONG:(3EH).................................................................................................... 245
6.18 REASSIGN BLOCKS:(07H)....................................................................................... 247
6.19 RECEIVE DIAGNOSTIC RESULTS:(1CH) ................................................................ 250
6.20 RELEASE:(17H)......................................................................................................... 251
6.21 RELEASE(10):(57H)................................................................................................... 252
OEM MANUAL:K6602771
Revision: 2 / Date: 2002.12.19
Page: 9 / 313
6.22 REPORT LUNS:(A0h)............................................................................................... 253
6.23 REQUEST SENSE:(03H) ........................................................................................... 255
6.24 RESERVE:(16H)......................................................................................................... 256
6.25 RESERVE(10):(56H) .................................................................................................. 258
6.26 REZERO UNIT:(01H).................................................................................................. 259
6.27 SEEK:(0BH) ................................................................................................................ 260
6.28 SEEK (EXTENDED):(2BH) ........................................................................................ 261
6.29 SEND DIAGNOSTIC:(1DH)........................................................................................ 262
6.30 START / STOP UNIT:(1BH)....................................................................................... 276
6.31 SYNCHRONIZED CACHE:(35H)............................................................................... 277
6.32 TEST UNIT READY:(00H).......................................................................................... 278
6.33 VERIFY:(2FH)............................................................................................................. 279
6.34 WRITE:(0AH).............................................................................................................. 281
6.35 WRITE (EXTENDED):(2AH)....................................................................................... 282
6.36 WRITE AND VERIFY:(2EH)....................................................................................... 284
6.37 WRITE BUFFER:(3BH).............................................................................................. 286
6.38 WRITE LONG:(3FH) ................................................................................................... 289
6.39 WRITE SAME:(41H)................................................................................................... 290
6.40 XDREAD:(52H)........................................................................................................... 291
6.41 XDWRITE:(50H) ......................................................................................................... 292
6.42 XPWRITE:(51H).......................................................................................................... 294
7 SENSE DATA....................................................................................................................295
7.1 SENSE DATA FORMAT............................................................................................ 295
OEM MANUAL:K6602771
Revision: 2 / Date: 2002.12.19
Page: 10 / 313
Figures
Figure 2-1 Track Skew (Skew Factor n)........................................................................24
Figure 2-2 Cylinder Skew ( Skew Factor n )................................................................. 24
Figure 2-3 Sector Reallocation......................................................................................25
Figure 3-1 Fibre Channel Topology..............................................................................31
Figure 3-2 Topology of private loop ............................................................................. 32
Figure 3-3 Topology of public loop...............................................................................33
Figure 3-4 Multi Loop Figure 3-5 Redundant Loop.......................33
Figure 3-6 Frame Format ...............................................................................................34
Figure 3-7 Frame Header Format..................................................................................35
Figure 3-8 Structure of Loop Initialization frame........................................................ 42
Figure 3-9 Loop initialization flow diagram .................................................................43
Figure 3-10 Address Identifier.......................................................................................46
Figure 3-11 NL_Port Initialization Flow ........................................................................48
Figure 4-1 Discovery Flow Chart ................................................................................100
Figure 4-2 Phase in SFF-8067 enclosure ...................................................................101
Figure 4-3 Data transfer for Write...............................................................................102
Figure 4-4 Data transfer for Read................................................................................102
OEM MANUAL:K6602771
Revision: 2 / Date: 2002.12.19
Page: 11 / 313
Tables
Table 2-1 Commands Supported .................................................................................. 28
Table 2-2 Commands Not Supported ...........................................................................30
Table 3-1 Summary of Fibre Channel Topology..........................................................32
Table 3-2 Specification of R_CTL/TYPE field...............................................................37
Table 3-3 F_CTL field......................................................................................................38
Table 3-4 AL_PA addressing..........................................................................................39
Table 3-5 AL_PA value priorities...................................................................................39
Table 3-6 AL_PA mapped to bit maps ..........................................................................40
Table 3-7 Type of LIP ...................................................................................................... 41
Table 3-8 Private Loop Addressing and Public Loop Addressing............................47
Table 3-9 Ordered Sets...................................................................................................49
Table 3-10 SOF Delimiters..............................................................................................49
Table 3-11 EOF Delimiters.............................................................................................. 50
Table 3-12 Primitive Signals .......................................................................................... 50
Table 3-13 Primitive Sequences.................................................................................... 51
Table 3-14 Link Service Frames....................................................................................52
Table 3-15 BA_ACC payload for ABTS.........................................................................53
Table 3-16 BA_RJT payload...........................................................................................54
Table 3-17 ACC payload.................................................................................................55
Table 3-18 LS_RJT payload ...........................................................................................56
Table 3-19 PLOGI payload..............................................................................................58
Table 3-20 Common Service Parameters(PLOGI payload) ........................................59
Table 3-21 N_Port Name(PLOGI payload)....................................................................60
Table 3-22 Node_Name(PLOGI payload)......................................................................60
Table 3-23 Class 3 Service Parameters(PLOGI payload) ...........................................61
Table 3-24 Vendor Version Level(PLOGI Payload)...................................................... 62
Table 3-25 ACC payload for PLOGI...............................................................................62
Table 3-26 LOGO payload .............................................................................................. 63
Table 3-27 ACC payload for LOGO ...............................................................................63
Table 3-28 FLOGI payload..............................................................................................64
Table 3-29 Common Service Parameters(FLOGI payload).........................................65
Table 3-30 N_Port Name(FLOGI payload) .................................................................... 66
Table 3-31 Node_Name(FLOGI payload)......................................................................66
Table 3-32 Class 3 Service Parameters(FLOGI payload)............................................67
Table 3-33 Vendor Version Level(FLOGI Payload)......................................................68
Table 3-34 ACC payload for FLOGI...............................................................................68
Table 3-35 RLS payload.................................................................................................. 69
Table 3-36 ACC payload for RLS...................................................................................69
Table 3-37 RRQ payload.................................................................................................70
Table 3-38 ACC payload for RRQ..................................................................................71
Table 3-39 RNC payload................................................................................................. 72
Table 3-40 ACC payload for RNC..................................................................................73
Table 3-41 FAN Payload .................................................................................................74
Table 3-42 PRLI payload................................................................................................. 76
Table 3-43 ACC payload for PRLI..................................................................................78
Table 3-44 Response Code............................................................................................ 79
Table 3-45 PRLO payload...............................................................................................80
OEM MANUAL:K6602771
Revision: 2 / Date: 2002.12.19
Page: 12 / 313
Table 3-46 ACC payload for PRLO................................................................................81
Table 3-47 Response Code............................................................................................ 82
Table 3-48 PDISC payload..............................................................................................83
Table 3-49 ACC payload for PDISC............................................................................... 84
Table 3-50 ADISC payload..............................................................................................85
Table 3-51 ACC payload for ADISC...............................................................................85
Table 3-52 TPRLO payload.............................................................................................86
Table 3-53 ACC payload for TPRLO.............................................................................. 86
Table 4-1 Information Unit .............................................................................................90
Table 4-2 FCP_CMND Payload ...................................................................................... 90
Table 4-3 FCP_XFER_READY Payload.........................................................................93
Table 4-4 FCP_DATA Payload........................................................................................93
Table 4-5 FCP_RSP Payload..........................................................................................94
Table 4-6 Response Information...................................................................................96
Table 4-7 ESI command format...................................................................................101
Table 5-1 Standard Command Descriptor Block for 6-byte Commands ................ 104
Table 5-2 Standard Command Descriptor Block for 10-byte Commands .............. 104
Table 5-3 Standard Command Descriptor Block for 12-byte Commands .............. 105
Table 5-4 Operation Code............................................................................................105
Table 5-5 Control Byte Format .................................................................................... 108
Table 6-1 Format Unit Command Variations.............................................................. 111
Table 6-2 Defect List Header........................................................................................ 112
Table 6-3 Defect List --- Block Format................................................................... 114
Table 6-4 Defect List --- Byte from Index Format ................................................. 114
Table 6-5 Defect List --- Physical Sector Format.................................................. 115
Table 6-6 Initialization Pattern Descriptor..................................................................115
Table 6-7 IP Modifier..................................................................................................... 116
Table 6-8 Standard Inquiry Data.................................................................................. 119
Table 6-9 Data Transfer Speed .................................................................................... 122
Table 6-10 Supported Vital Product Data...................................................................123
Table 6-11 Unit Serial Number.....................................................................................124
Table 6-12 Implemented Operating Definition Page ................................................. 125
Table 6-13 Operating Definition...................................................................................126
Table 6-14 Device Identification..................................................................................126
Table 6-15 Jumper Information Page..........................................................................127
Table 6-16 PCR and Parameter List Length Fields ................................................... 129
Table 6-17 SP and DS Fields........................................................................................130
Table 6-18 Page Control Field (PC).............................................................................130
Table 6-19 Log Page Format........................................................................................132
Table 6-20 Log Page Codes.........................................................................................132
Table 6-21 Log Parameter............................................................................................133
Table 6-22 Threshold Met Criteria...............................................................................136
Table 6-23 Supported Log Pages................................................................................138
Table 6-24 Error Counter Read Page (Page Code = 3H)............................................139
Table 6-25 Parameter Codes for Error Counter Pages ............................................. 140
Table 6-26 Non-Medium Error Page (Page Code = 6H) .............................................. 141
Table 6-27 Non-Medium Error Event Parameter Codes............................................142
Table 6-28 Last n Error Events Page(Page Code = 7H).............................................142
Table 6-29 Temperature Page(Page Code = DH) ........................................................ 144
OEM MANUAL:K6602771
Revision: 2 / Date: 2002.12.19
Page: 13 / 313
Table 6-30 Start-Stop Cycle Counter Page(Page Code = 0EH)................................. 144
Table 6-31 Application Client Page(Page Code = 0FH)..............................................147
Table 6-32 General usage application client parameter data...................................148
Table 6-33 Self-Test Results Page(Page Code = 10H) ...............................................149
Table 6-34 Self-Test Results Log Parameter Format ................................................ 150
Table 6-35 Self-Test Results Values............................................................................151
Table 6-36 Informational Exceptions Page (Page Code = 2FH)................................152
Table 6-37 Factory Log Page (Page Code = 3EH)....................................................153
Table 6-38 Mode Select Parameter List......................................................................160
Table 6-39 Read - Write Error Recovery Page (Page Code = 1H).............................163
Table 6-40 Error Control Bit Combinations................................................................166
Table 6-41 Disconnect - Reconnect Page (Page Code = 2H ) ...................................169
Table 6-42 Format Device Page (Page Code = 3H).....................................................172
Table 6-43 Rigid Disk Geometry Page (Page Code = 4H)..........................................175
Table 6-44 Verify Error Recovery Page (Page Code = 7H).........................................178
Table 6-45 Caching Page (Page Code = 8H) ...............................................................179
Table 6-46 Control Mode Page (Page Code = AH)...................................................... 182
Table 6-47 Notch and Partition Page (Page Code = CH)............................................185
Table 6-48 XOR Control Page (Page Code = 10H)......................................................187
Table 6-49 Enclosure Service Management Page (Page Code = 14H).....................189
Table 6-50 Fibre Channel Specification Page (Page Code = 19H) ............................ 190
Table 6-51 Power Condition Control Page (Page Code = 1AH) ................................ 192
Table 6-52 Informational Exceptions Control Page (Page Code = 1CH)..................193
Table 6-53 Method of Reporting Informational Exceptions field.............................195
Table 6-54 MODE SELECT (10) Header ......................................................................198
Table 6-55 Mode Sense Data........................................................................................201
Table 6-56 Sense Data Length.....................................................................................202
Table 6-57 Mode Page 1H Descriptor Value ................................................................ 204
Table 6-58 Mode Page 2H Descriptor Value................................................................205
Table 6-59 Mode Page 3H Descriptor Value................................................................206
Table 6-60 Mode Page 4H Descriptor Value................................................................207
Table 6-61 Mode Page 7H Descriptor Value................................................................208
Table 6-62 Mode Page 8H Descriptor Value................................................................209
Table 6-63 Mode Page AH Descriptor Value ............................................................... 210
Table 6-64 Mode Page CH Descriptor Value ............................................................... 211
Table 6-65 Mode Page 10H Descriptor Value..............................................................212
Table 6-66 Mode Page 10H Descriptor Value..............................................................213
Table 6-67 Mode Page 19H Descriptor Value..............................................................214
Table 6-68 Mode Page 1AH Descriptor Value ............................................................. 215
Table 6-69 Mode Page 1CH Descriptor Value ............................................................. 216
Table 6-70 MODE SENSE (10) Header.........................................................................218
Table 6-71 PERSISTENT RESERVE IN Service Action Code...................................220
Table 6-72 READ KEYS Parameter Data.....................................................................220
Table 6-73 READ RESERVATION Parameter Data..................................................... 221
Table 6-74 PERSISTENT RESERVE IN reservation descriptor................................222
Table 6-75 Persistent reservation scope codes ........................................................ 224
Table 6-76 Persistent Reservation Type Code...........................................................225
Table 6-77 PERSISTENT RESERVE OUT Service Action Code...............................227
Table 6-78 PERSISTENT RESERVATION OUT Parameter List................................. 228
OEM MANUAL:K6602771
Revision: 2 / Date: 2002.12.19
Page: 14 / 313
Table 6-79 PERSISTENT RESERVE OUT Service Actions and Valid Parameters..230
Table 6-80 Read Buffer Mode ...................................................................................... 234
Table 6-81 Read Buffer Header....................................................................................236
Table 6-82 Read Buffer Descriptor.............................................................................. 237
Table 6-83 Echo Buffer Descriptor.............................................................................. 237
Table 6-84 Read Capacity Data....................................................................................239
Table 6-85 Defect List Format......................................................................................240
Table 6-86 Read Defect Header ................................................................................... 241
Table 6-87 Read Defect Header ................................................................................... 244
Table 6-88 Reassign Blocks Defect List.....................................................................248
Table 6-89 REPORT LUNS Parameter List Format....................................................254
Table 6-90 Self-Test Code Field Values ...................................................................... 262
Table 6-91 Diagnostic Page Format............................................................................265
Table 6-92 Supported Diagnostic Page (Code = 00H)................................................266
Table 6-93 Enclosure Configuration page..................................................................267
Table 6-94 Enclosure Control page ............................................................................267
Table 6-95 Enclosure Status page .............................................................................. 268
Table 6-96 Enclosure Help Text page .........................................................................268
Table 6-97 Enclosure String Out page........................................................................268
Table 6-98 Enclosure String In page...........................................................................269
Table 6-99 Enclosure Threshold Out/In page............................................................269
Table 6-100 Enclosure Array Control page................................................................ 270
Table 6-101 Enclosure Array Status page..................................................................270
Table 6-102 Enclosure Element Description page.................................................... 271
Table 6-103 Short Enclosure Status page.................................................................. 271
Table 6-104 Translate Address Page (Code = 40H)....................................................272
Table 6-105 Translation Format...................................................................................272
Table 6-106 Read Alternate Page (Code = 40H).......................................................... 273
Table 6-107 Diagnostic Parameter List....................................................................... 274
Table 6-108 Sub Command Codes.............................................................................. 275
Table 6-109 Write Buffer Mode....................................................................................287
Table 6-110 Write Buffer Header..................................................................................288
Table 7-1 Extended Sense Data Format.....................................................................295
Table 7-2 Sense Keys ................................................................................................... 297
Table 7-3 Additional Sense Codes & Qualifiers.........................................................299
Table 7-4 Field Pointer..................................................................................................312
Table 7-5 Actual Retry Count.......................................................................................312
Table 7-6 Progress Indication......................................................................................313
OEM MANUAL:K6602771
1 GENERAL DESCRIPTION
Revision: 2 / Date: 2002.12.19
Page: 15 / 313
Preface
This manual describes the specifications of the Small Computer System Interface (SCSI) functions supported by the HITACHI 3 1/2 model magnetic disk drives.
1 GENERAL DESCRIPTION
1.1 APPLICATION
This manual applies to the SCSI logical interface specification and Fibre Channel logical interface of the magnetic disk drive. Refer to the individual Product Specifications for the physical specification of the product.
1.2 RELATED DOCUMENT
·Product Specification; DK32EJ Product Specifications K6602762
·ANSI Specification;
(1) Fibre Channel Protocol for SCSI (FCP) X3.269-199X Revision 012 (2) Fibre Channel Arbitrated Loop (FC-AL) X3T11/Project 960D/Rev 4.5 (3) Fibre Channel Arbitrated Loop (FC-AL-2) X3T11/Project 1133D/Rev 7.0 (4) Fibre Channel Private Loop SCSI Direct Attach (FC-PLDA) X3T11/Project 1162DT/Rev. 2.1 (5) Fibre Channel Fabric Loop Attachment (FC-FLA) T11/Project 1235-DT/Rev. 2.7 (6) Fibre Channel Physical and Signaling Interface (FC-PH) X3T11/Project 755D/Rev.4.3 (7) Fibre Channel Physical and Signaling Interface-2 (FC-PH-2) X3T11/Project 901D/Rev.7.4 (8) Fibre Channel Physical and Signaling Interface-3 (FC-PH-3) X3T11/Project 1119D/Rev.9.4 (9) Small Computer Systems Interface-2 (SCSI-2) X3.301-1997 (10) SCSI-3 Primary Commands (SPC) X3T10/Project 955D/Rev 11a (11) SCSI-3 Block Commands (SBC) X3T10/Project 996D/Rev 8c (12) SCSI-3 Primary Commands-2 (SPC-2) X3T10/Project 1236D/Rev 20 (13) SCSI-3 Primary Commands-3 (SPC-3) X3T10/Project 1416D/Rev 5 (14) SCSI-3 Controller Commands (SCC) X3T10/Project 1047D/Rev 6c (15) SFF-8045 Specification for 40-pin SCA-2 Connector w/Parallel Section Rev 4.5 (16) SFF-8067 Specification for 40-pin SCA-2 Connector w/Bidirectional ESI Rev 2.8 (17) SCSI-3 Enclosure Service Command set (SES) X3T10/Project 1212D/Rev 8b (18) Fibre Channel Physical Interface (FC-PI) NCITS/Project 1235D/Rev 13
OEM MANUAL:K6602771
1 GENERAL DESCRIPTION
Revision: 2 / Date: 2002.12.19
Page: 16 / 313
1.3 FUNCTION OUTLINE
The disk drive is connected to the host computer through the Fibre Channel Interface. The word “Controller” may be substituted for the disk drive since this manual describes only Fibre Channel interface functions which are implemented by the controller in the disk drive. It’s features are listed below.
(1) ANSI STANDARD COMPLIANCE
The disk drive implements the SCSI-2 and some SCSI-3 specifications and Fibre Channel Interface specifications which conform to the ANSI standard listed in article 1.2.
(2) AUTOMATIC ALTERNATE ASSIGNMENT/ACCESS
By the FORMAT UNIT or REASSIGN BLOCKS command, alternate sectors are
automatically assigned in place of defective sectors. An alternate sector is allocated next to the defective sector on FORMAT UNIT, so, extra rotational latency may be avoided. The access to an alternate sector is done automatically on the read or write operation.
(3) AUTOMATIC ERROR CORRECTION
The automatic error correction scheme with ECC is capable for an error correction
of the medium defect. The On the Fly error correction is also capable for the
medium defect and does not require the extra rotational delay.
Refer to the Product Specifications for details.
(4) AUTOMATIC ERROR RETRY
The error recovery function is automatically initiated in case that an error
occurred during access to the disk drive.
(5) AUTOMATIC POWER-SAVING CONTROL
The automatic power-saving function is supported to reduce the power
consumption and increase the life time of the magnetic heads and the electronic
circuits. This is automatically initiated in an idle condition whenever there are
no pending process by the host command.
(6) AUTOMATIC READ/WRITE REALLOCATION
The automatic read/ write reallocation function is supported. When an error is
detected on reading the data(assuming a data field recoverable error) or writing
the data(assuming a servo field error), this function automatically assigns an
alternate sector in place of the defective sector and stores the data on the
alternated sector prior to sending the completion status.
OEM MANUAL:K6602771
1 GENERAL DESCRIPTION
Revision: 2 / Date: 2002.12.19
Page: 17 / 313
(7) COMMAND QUEUING
One command per initiator(host computer) is enqueued(Untagged Command
Queuing) and/or maximum 128 commands as total number of commands from all host computers are enqueued(Tagged Command Queuing).
(8) COMMAND RE-ORDERING
The disk drive executes the multiple tagged commands with the advanced
command re-ordering algorithm. It can optimize the execution time of enqueued
commands and provide the high performance for a random or multi-threading
access environment.
(9) COMPACT DRIVE w/EMBEDDED CONTROLLER
The disk drive with fully embedded SCSI controller has the 3 1/2 inch industrial
standard form factor.
(10) DEFERRED ERROR REPORTING
The deferred error function reports an error to the subsequent command received
from the host computer if an error occurs after the completion with the GOOD
status returned.
(11) DOWN-LOADABLE FIRMWARE
The firmware can be changed by the multi-WRITE BUFFER commands.
(12) HIGH-SPEED DATA TRANSFER
High-Speed Data Transfer modes are available as follows.
· Max. 200MB/S
· Max. 100MB/S
(13) MULTI-HOST/MULTI-TARGET CONNECTION
Based on the Fibre Channel Arbitrated Loop (FC-AL), maximum 126
devices(including host computers) and one fabric can be connected on the same
loop. Therefore, a flexible system configurations can be available.
However, the number of connectable host computers is a maximum of 32.
(14) MULTI-SEGMENTED BUFFER
The large capacity data buffer is equipped and this is maintained as a multi-
segmented buffer. A multi-segmented buffer scheme provides a high performance
for a read/write from the host computer which has the multi-tasking feature.
Refer to the Product Specifications for the data buffer size.
(15) READ AHEAD CACHE
The read ahead cache function provides a high performance for a sequential read
access. Reading data which the host computer has not yet requested into data
buffer is done in advance and directly transferring data to the host computer is
done without any latency at sequential access.
OEM MANUAL:K6602771
1 GENERAL DESCRIPTION
Revision: 2 / Date: 2002.12.19
Page: 18 / 313
(16) SECTOR INTERLEAVE
A 1 : 1 interleave is supported.
(17) SELECTABLE BLOCK LENGTH
A 512 bytes block length is supported as a default and other block length is also
available after the disk re-format.
Refer to the Product Specification for details.
(18) SMART(Self-Monitoring Analysis and Reporting)
The SMART(Self-Monitoring Analysis and Reporting) function is supported. This
function enables to perform an analysis, logging and reporting the error to the host
computer by the disk drive itself .
(19) TRACK/CYLINDER SKEW
In order to avoid a rotational latency for the seek to the adjacent head or cylinder,
Head/ Cylinder Skew function which shifts the sector configuration at the head/
cylinder boundary (between the last sector of the head/ cylinder and the first sector
of the next head/ cylinder) is supported, so that the read write head can be
positioned to the first sector of the next head/ cylinder. Therefore, reading/
writing of contiguous blocks is done without an extra rotational delay, even if an
access is done over the physical track/cylinder boundary.
(20) WRITE CACHE
The write cache function provides a high performance for a sequential write access.
It may return the completion with the GOOD status for a WRITE command after
successfully receiving the data from the host computer and prior to having
successfully stored the data on the disk medium.
(21) DUPLEX FUNCTION
During the data transferring , the disk Drive can queue commands received in
same port.
OEM MANUAL:K6602771
1 GENERAL DESCRIPTION
Revision: 2 / Date: 2002.12.19
Page: 19 / 313
1.4 GLOSSARY
Bit number A number that represents the weighted position of one byte.
Bit n represents a value of 2n.
Command Descriptor Block A command block that is used to communicate requests
from
(CDB) : an initiator to a target. XXH , XXh A hexadecimal representation of a number (XX with a
subscript H/h represents a hexadecimal number).
Initiator A SCSI device (usually a host computer) that requests
another SCSI device to perform an operation. Logical unit A physical device that is addressable throug h a target. Logical unit number (LUN) An encoded 6 - bit identifier for a logical unit. Reserved (or R) A term used for a bits, bytes, fields, or code values that are
set aside for future standardization. Target An SCSI device (usually a disk drive w/ SCSI controller)
that performs an operation that is requested by an
initiator. Vendor unique (VU) A bit, byte, field, or code value that can be uniquely
specified by each vendor. Fibre Channel Arbitrated Loop One form of the topology in a fiber channel.
(FC-AL) An Arbitration is performed, in case it consists of Node/Fabric of a maximum of 127 and a circuit is built on a loop.Topology in a fiber channel One form.
Arbitrated Loop Physical Address Address information assigned to a meaning for (AL_PA) every port in FC-AL. Each port gains AL_PA
through loop initialization processing (the port
which has not gained AL_PA shifts to non-
participating mode). Private Loop FC-AL which is not connected to Fabric (it is Public Loop
when connecting with Fabric).
OEM MANUAL:K6602771
1 GENERAL DESCRIPTION
Revision: 2 / Date: 2002.12.19
Page: 20 / 313
L_Port A port connectable with FC-AL. (In Node, it is NL_Port.
In Fabric,it is FL_Port) Circuit It is built by two arbitrary ports on FC-AL. Transmission of
a frame is possible only among 2 ports which built the
circuit. Node The device which has a Fiber Channel Interface. Fabric An entity that interconnects various N_Ports attached to
it and is capable of routing frames by using only the D_ID
information in a frame header. Frame An indivisible unit of information used by Signaling
Protocol. Data Frame A frame containing information meant for FC-4/ULP(SCSI)
or the Link application. Sequence A set of one or more Data Frames with a common identifier
transmitted unidirectionally from one N_Port to another
N_Port. Exchange The basic mechanism which transfers information
consisting of one or more related non-concurrent
Sequences which may flow in the same or opposite
directions.
OEM MANUAL:K6602771
2 PRODUCT SPECIFICATION OUTLINE
Revision: 2 / Date: 2002.12.19
Page: 21 / 313
2 PRODUCT SPECIFICATION OUTLINE
This chapter describes the logical subjects of Product Specification. Refer to the Product Specification for physical information which are not included herein.
2.1 ADDRESSING
The host computer addresses the target logical unit (controller and drive) using the methods described below.
(1) AL_PA The device connected to FC-AL acquires address information (AL_PA) through loop
initialization processing. AL_PA is uniquely assigned to every which is connected on the same loop device (an
initiator or target). (2) Logical unit number The host computer can address a logical unit in one of the following ways :
· Specifying the logical unit in the logical unit number field of the FCP_CMND
Payload.
Note : The controller supports only the logical unit number 0.
2.2 DISK FORMAT
2.2.1 CYLINDER ALLOCATION
All cylinders on disks are assigned for the system area and the user area. The system area is preserved for the controller’s use and may not be accessible from the host computer.
The system area is allocated on both outermost cylinders, and it contains the following types of data ;
OEM MANUAL:K6602771
2 PRODUCT SPECIFICATION OUTLINE
Revision: 2 / Date: 2002.12.19
Page: 22 / 313
· Control parameters (MODE SELECT, INQUIRY and LOG)
· Defect list (manufacture and grown)
· Control program (Downloadable Firmware) etc.
The data in system area is duplicated for data integrity. The user area consists of the diagnostic cylinder, the data area. The user area,
except the data area, may not be accessible from the host computer. The diagnostic cylinder is allocated for the diagnostic use when the SEND
DIAGNOSTIC command is executed and is called "CE Cylinder". The user data is stored in the data area.
2.2.2 FORMAT PROCESSING
The host computer can format the data area by using FORMAT UNIT and MODE SELECT command. It can also reallocate each defective block by using REASSIGN BLOCKS command.
Note : This SCSI controller formats the diagnostic cylinder as well as the data
area when a Format Unit command is executed.
The outline of the format process is given below. The detail of format processing is shown in the description of ;
·FORMAT UNIT command ( Refer to 6.1 ),
·REASSIGN BLOCKS command ( Refer to 6.18 )
·MODE SELECT command ( Refer to 6.5 ). (1) Block Length
The Block Length indicates the byte length which is the minimum unit of data that can be accessed from the host computer. The default value of block length is 512 bytes. The block length can be changed by specifying the necessary values of MODE SELECT command in fields given below.
·Block Descriptor Byte 5,6,7 Block Length
·Format parameter Byte 12, 13 Data Bytes per physical sector
The value specified in both of these fields should be the same. If the values differ , the value entered in the Block Descriptor will be used.
OEM MANUAL:K6602771
2 PRODUCT SPECIFICATION OUTLINE
Revision: 2 / Date: 2002.12.19
Page: 23 / 313
(2) Alternate Spare Area
The controller allocates 14 local alternate cylinders per notch as an Alternate
Spare Area for the defective sector.
(3) Defect Management
Defect management is the assignment of alternate spare sectors for defective sectors caused by media flaws. The host computer may access the data block as defect-free media by the defect management. The defect management consists of four schemes based on four defect sources as shown below.
P scheme --- Defects identified by manufacturing process.
These defects are recorded in the system area as P list.
( Primary Defect list ) C scheme --- Defects detected by medium verification. D scheme --- Defects specified by defect list of FORMAT UNIT command from the
host computer. G scheme --- Defects grown after manufactured.
These defects are detected by previous C and D scheme, and recorded
in the system area as G list. ( Grown Defect list ) The host computer may specify any combination of defect management schemes
with CDB ( Command Descriptor Block ) of FORMAT UNIT command and defect list.
The controller uses P, C and G schemes as a default mode if the defect management scheme is not specified ( i.e., CDB byte 1, Bit 4, FmtData = 0).
(4) Sector Interleave
In order to facilitate speed matching between host bus transfer rate and the disk drive transfer rate, the sector interleave function allows formatting " Physical Block ( sector ) " and "Logical Block " with a specified interval. The Interleave value is specified by the CDB of the FORMAT UNIT command, this controller supports sector Interleave factor (n=1) only.
(5) Track Skew In order to avoid a rotational latency on the head switching, the controller implements Track Skew which shifts the sector arrangement from each other among tracks in the same cylinder.
OEM MANUAL:K6602771
2 PRODUCT SPECIFICATION OUTLINE
Revision: 2 / Date: 2002.12.19
Page: 24 / 313
Figure 2-1 explains the details of Track Skew.
Sector Sector Number Head 0 Head 1
n sectors
Figure 2-1 Track Skew (Skew Factor n)
(6) Cylinder Skew
The controller implements Cylinder Skew which shifts the sector array between cylinders ( i.e., between the last track of a cylinder and the first track of the next cylinder) to avoid a rotational latency when a 1 track seek is performed.
Cyl m Last Head
Cyl (m+1) Head 0
n sectors
Figure 2-2 Cylinder Skew ( Skew Factor n )
When the skew factor n (the physical sector number between the last logical block of a certain cylinder and the first logical block of the next cylinder) corresponds to the 1 track seeking time, the continuous blocks over two cylinders can be accessed with minimum rotational latency.
(7) Format Processing
The controller formats all data area and makes logical blocks accessible from the host computer by FORMAT UNIT command in accordance with specified block length, alternate spare area, defect management, sector interleave and skew factor(s). All data in the Data Area is deleted by executing the FORMAT UNIT command. The controller identifies a sector which was specified by defect schemes ( P, D and G schemes ) as defective, and assigns an alternate spare sector for the defective sector.
012
N-1N23401
0--N-01
-
OEM MANUAL:K6602771
2 PRODUCT SPECIFICATION OUTLINE
Revision: 2 / Date: 2002.12.19
Page: 25 / 313
The replacement sector is assigned to the next defective sector, to reduce rotational latency.
The controller executes a verification after formatting if C scheme is specified. If an error is found, the controller identifies the error sector as defective and reformats the track and the cylinder. The controller adds defects identified by D and C schemes to the current G list and saves the new G list in the system area.
(8) Block Reassignment
Unrecoverable error blocks caused by growing defects may be reassigned by the REASSIGN BLOCKS command. By REASSIGN BLOCKS command, the controller identifies one or more sectors of the specified logical block as defective, and reassigns them as alternate spare sectors. The error block address ( logical block address ) is informed to the host computer by information bytes of sense data. An example of reallocating an alternate spare sector is shown in Figure 2-3.
Error sector Sector number
Before
Defective sector (Bad Sector)
After
Reallocated (with sector skipping)
Figure 2-3 Sector Reallocation
(9) Suggestion for Format Processing
· It is required to reformat medium by the FORMAT UNIT command if the block length and/or the number of alternate spare area was changed by the MODE SELECT command.
A command to access the medium is reported the CHECK CONDITION
status with the NOT READY sense key and Medium Format Corrupted sense code if the FORMAT UNIT command is not executed after the change with the related Mode parameter.
· This sense key is also reported when the Format command is terminated during a format.
0123N
Alternate
Spare Sector
(Reserved
023
N
1
OEM MANUAL:K6602771
2 PRODUCT SPECIFICATION OUTLINE
Revision: 2 / Date: 2002.12.19
Page: 26 / 313
· It is suggested to specify P, G and C schemes ( i.e., to use Primary and Grown lists, and to execute verify processing ) when specifying defect management.
· The D scheme of defect management is not necessary for normal operation. Since the controller automatically reads P and G lists in system area and formats medium, the host computer does not need to specify the defect.
The D scheme is convenient for simulating defective sectors for evaluation purpose.
· It is suggested to set TB(Transfer Block) bit in Error Recovery Parameter of the MODE SELECT command and to issue the READ command for an error block if error data is needed for the data recovery of the block which the REASSIGN BLOCKS command is applied to. The controller transfers the error block data to the host computer.
2.3 ERROR RETRY
The controller performs the following retry procedures when an error is detected. The following explanation describes only typical retry method.
The controller may use the retry method which is not described in this manual
when an actual retry procedure is taken.
2.3.1 READ ERROR RETRY
The controller retries up to 255 times for read error while utilizing Track offset and/or Slice Level function etc. An error count is made per each sector. The host computer can change the error management of the controller with the read-write error recovery parameter (Page Code 1H) of the MODE SELECT
command.
2.3.2 WRITE ERROR RETRY
The controller retries up to 255 times with the Slice Level etc. The host computer can change the error management of the controller with the read-write error recovery parameter (Page Code 1H) of the MODE SELECT
command.
OEM MANUAL:K6602771
2 PRODUCT SPECIFICATION OUTLINE
Revision: 2 / Date: 2002.12.19
Page: 27 / 313
2.3.3 VERIFY ERROR RETRY
The controller performs the same retry as the read error retry mentioned in section 2.3.1 READ ERROR RETRY for the verify error during the verify operation. The host computer can change the error management of the controller with the verify error recovery parameter (Page Code 7H) of the MODE SELECT command.
2.3.4 SEEK ERROR RETRY
The controller performs the same retry as the read error retry or write error retry mentioned in section 2.3.1 READ ERROR RETRY and 2.3.2 WRITE ERROR RETRY for seek error during the seek action.
2.3.5 SPINDLE ERROR RETRY
The controller retries the spin up operation 4 times when a start spindle error occurs during execution of the Start Unit command or the Auto Start operation. The controller also retries the spin up operation once when an unexpected spin down error occurs during execution of the medium access command.
2.3.6 ERROR RETRY CONTROL
The host computer can change the number of retries of the controller with the error recovery parameter of MODE SELECT command. The error recovery parameter may be specified to the controller by each host computer independently.
The summary of error control is explained below. Refer to the description of 6.5 MODE SELECT command.
(1) Default Mode
The controller specifies the processing given below as Default Mode.
·Executing the following number of retries until error is recovered.
Read Error 128 retries Write Error 128 retries
OEM MANUAL:K6602771
2 PRODUCT SPECIFICATION OUTLINE
Revision: 2 / Date: 2002.12.19
Page: 28 / 313
·However, if the error in the data field is correctable by ECC the controller
corrects the error using ECC, and terminates the recovery procedure (this is applicable when EER=1).
(2) Retry Count
The host computer can select the retry count by specifying the counts to the retry count field of the error recovery parameter.
Notes for Retry Count
·It is recommended to specify the retry count value at more than 128 times in
normal operation.
·The controller performs the internal retry before the execution of retries
specified by the host computer. If an error is correctable, the controller corrects the error using ECC during the internal retry. When the error is recovered by the internal retry, the controller may not report the recovered error to the host computer even if the PER of MODE Parameter page 01H is set.
2.4 SUPPORTED SCSI COMMANDS
This controller supports the group 0,1,2 and 5 commands listed in Table 2-1 based on SCSI-2 command set and additionally some SCSI-3 command set.
Table 2-1 Commands Supported
Operation
Code
Group 0 Command Name Reference
00
H
TEST UNIT READY 6.32
01
H
REZERO UNIT 6.26
03
H
REQUEST SENSE 6.23
04
H
FORMAT UNIT 6.1
07
H
REASSIGN BLOCKS 6.18
08
H
READ 6.11
0A
H
WRITE 6.34
0B
H
SEEK 6.27
12
H
INQUIRY 6.2
15
H
MODE SELECT 6.5
16
H
RESERVE 6.24
17
H
RELEASE 6.20
1A
H
MODE SENSE 6.7
1B
H
START/STOP UNIT 6.30
1C
H
RECEIVE DIAGNOSTIC RESULTS
6.19
1D
H
SEND DIAGNOSTIC 6.29
OEM MANUAL:K6602771
2 PRODUCT SPECIFICATION OUTLINE
Revision: 2 / Date: 2002.12.19
Page: 29 / 313
Operation
Code
Group 1 Command Name Reference
25
H
READ CAPACITY 6.14
28
H
READ (EXTENDED) 6.12
2A
H
WRITE (EXTENDED) 6.35
2B
H
SEEK (EXTENDED) 6.28
2E
H
WRITE AND VERIFY 6.36
2F
H
VERIFY 6.33
35
H
SYNCHRONIZED CACHE 6.31
37
H
READ DEFECT DATA 6.15
3B
H
WRITE BUFFER 6.37
3C
H
READ BUFFER 6.13
3E
H
READ LONG 6.17
3F
H
WRITE LONG 6.38
Operation
Code
Group 2 Command Name Reference
41
H
WRITE SAME 6.39
4C
H
LOG SELECT 6.3
4D
H
LOG SENSE 6.4
50
H
XDWRITE 6.41
51
H
XPWRITE 6.42
52
H
XDREAD 6.40
55
H
MODE SELECT (10) 6.6
56
H
RESERVE(10) 6.25
57
H
RELEASE(10) 6.21
5A
H
MODE SENSE (10) 6.8
5E
H
PERSISTENT RESERVE IN 6.9
5F
H
PERSISTENT RESERVE OUT 6.10
Operation
Code
Group 5 Command Name Reference
A0
H
REPORT LUNS 6.22
B7
H
READ DEFECT DATA(12) 6.16
This controller does not support the group 0, 1 and 2 commands listed in Table 2-2 based on SCSI-2 command set.
OEM MANUAL:K6602771
2 PRODUCT SPECIFICATION OUTLINE
Revision: 2 / Date: 2002.12.19
Page: 30 / 313
Table 2-2 Commands Not Supported
Operation Code Group 0 Command Name
18
H
COPY
1E
H
PREVENT/ALLOW MEDIUM REMOVAL
Operation Code Group 1 Command Name
30
H
SEARCH DATA HIGH
31
H
SEARCH DATA EQUAL
32
H
SEARCH DATA LOW
33
H
SET LIMITS
34
H
PRE-FETCH
36
H
LOCK/UNLOCK CACHE
39
H
COMPARE
3A
H
COPY AND VERIFY
Operation Code Group 2 Command Name
40
H
CHANGE DEFINITION
Loading...
+ 283 hidden pages