HP Q153090901 Technical Reference Manual

HP Ultr ium tape dr i v es T ec hni cal r ef er ence man ual G ene r at ion 3 d r i v es V olume 3—the S C S I interf ace <Bold Header> P ar t Number: Q15 30–909 01 V olume 3 E d ition 6, December 200 4
<Bold Header> Leg al and n otice in formatio n © Copy righ t 2000–2004—Hewlett-P ack ard De v elopment Compan y , L.P . The infor ma ti on contained in this document is subject to change without noti ce . Hewlet t-P ackard makes no wa rr ant y of any kind w ith rega r d to t his mat erial, incl uding, bu t not limi ted to, the im plied warran ti es o f merch a n ta b ilit y and fit ness for a pa r tic ular purp ose. Hewlett - Pack ard shall not be liable for error s co ntained herein or direct, indirec t, spec ia l, inci dental or consequential damag es in connection w ith the furnishing, performance , or use of this document . This document contains proprietary information which is pr ote cted by copyr ight. All r ights reserved. No par t of this document m ay be ph otocopied, r epr od uced or translate d to another language wi thout the prior wr it ten consent of Hew lett-P ackar d. Re visi on hist ory This docum ent is frequently rev ised and updated. T o find out i f there is a later versi on , please a sk your HP OEM Re pr esentativ e . Ve r si o n Date Cha nges Ed ition 1 Nov . 2000 All Edi tion 2 Mar . 2001 Addition of R ead and W rite attr i bute commands and Dri ve Err or Codes Edition 3 M ay 2 00 2 Inclusion of the Request Block Address comma nd and the Control mode pag e , together with numerou s small changes Edition 5 J u ly 2003 Many sma ll chan ges Edi tion 6 De ce mbe r 2004 Generati on 3 v e rsion
Cont ents Con ten ts 3 Related docume nts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Documents specific to HP Ultrium drive s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Documentati on map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 General docu ments and standardization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 1 Inter face Implem entation The S C SI interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1 Supported me ssages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Supported c ommands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 SCSI fe atures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Design approach . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Power-on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Reset s trate gy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Abort handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 LUN identification (parallel S CS I on ly) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Bus pari ty or CRC errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Disconnect strategy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Multi-initiato r support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Fibre Channe l operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Fibre Channel addressi ng . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Field re placeable units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 CD-ROM e mulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 2M e s s a g e s Messag e Out support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Messag e In support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Extended Me ssage support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 3 Com mands— introduc tion Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Command details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Pre-exe cution c hecks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Bad LUN check . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Defer red Erro r check . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Diagnos tic Status check . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Fixed B it check . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Flag Li nk che ck . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Co nt e nt s
4C o n t e n t s Illegal C ommand check . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1 Illegal F ield/Request check . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Media Acce ss check . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 Media Informati on check . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 Media Write c heck . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 Parameter Lis t check . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Reservation check . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Unit Attenti on check . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Command descriptor block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 4C o m m a n d s ERASE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19h 38 INQUIRY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12h 3 9 INQUIRY data pages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 0 Vital Produ ct Data pages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 Supported Vital Product Data Pages page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 Unit Serial Number pag e 45 Device Identification page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 Defined ide ntifiers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 Extended IN QUIRY Data VPD page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 Sequential Access Device Capabilities page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 Drive Component Revision L evels pag e s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 LOAD/UN L OAD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1Bh 50 LOCATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2Bh 5 3 LOG SEL ECT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4Ch 55 LOG SEN SE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4Dh 5 7 Log page format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 8 Supported L og Pages page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 Write Error Counters log pag e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 Read Error C ounters log page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 Sequential A ccess Device log page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 Temperature log page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 DTD S tatus log page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 Very Hi g h Frequency D ata (VHF) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 Very H igh Freque ncy Polling Delay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 DTD P rimary Port Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 TapeAlert log page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 Tape Usage log page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 Tape Capacity log page. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 Data Compr e ssion log page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 Performance Data log page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 Device Status log page. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 MODE S ELECT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15h /55h 71 Mode paramet e r pages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 Mode page re presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 Mode data form a t . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 Mode block descriptor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Cont ents Con ten ts 5 Read-Write Error Recovery mode page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 Disconnect- Reconnect page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 SCSI drive s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 Control mo de page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 Data Compr e ssion Characteristic s page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 Device Configuration page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 Medium Parti tions mode page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 Fibre Channe l Logical Unit Control mode page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 SCSI L UN Control mode page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 Fibre Channe l Port Control mode pag e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 SCSI Port Control Mode page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 Normal page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 Sub-pages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 Information Exceptions mode page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 Device Time mode page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 CD-ROM E mulation/Disast e r Recovery mode pag e . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 MODE S ENSE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1Ah/5 Ah 96 PERSIST E NT RESERVE IN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5Eh 98 PERSIST E NT RESERVE OUT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5Fh 101 Additional paramet e r data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 PREVENT / ALLOW MEDIUM RE MOVAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Eh 105 READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 08h 1 06 READ 6 (CD-R OM m ode) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 08h 10 9 READ 10 (CD-R OM mod e) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28h 1 10 READ ATT RIBUTE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8Ch 111 MAM attribut e data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 Att r i b ute ID va l u es 116 Standard devic e type attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 Standard medium type attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 8 Standard host ty pe attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118 READ BL OCK LIMITS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 0 5h 120 READ BUFFE R . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3Ch 121 READ CAPACITY (CD-R O M mode) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25h 12 4 Read Capacity data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 READ MED IA SERIAL NUMBER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .ABh 125 READ POSIT ION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34h 12 7 READ TOC (CD-R OM mod e) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43h 131 Read TOC data 132 RECEI VE DIAGNOSTICS RESULTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1Ch 133 RELEASE UNIT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17h/57h 135 REPORT DE NSITY SUPPO RT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44h 13 7 REPORT DE VICE IDEN TIFIER. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A3h 1 40 REPORT LU NS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A0h 141 REPORT SUPP ORT ED OPCODES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A0h 14 3 REPORT SUPP ORT ED TASK MA NAGEMENT FUNCT IONS . . . . . . . . . . . . . . . . . . . . . A3h 145 REQUEST SENSE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 0 3h 147 Request Se nse data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
6C o n t e n t s Fixed fo rmat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148 Descriptor format 152 Sense data mana geme nt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154 Current se nse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154 UNIT AT T EN T ION sense . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155 DEFERRED E RROR sense . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156 Sense ke ys . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 Additional Se nse codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159 Error code s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163 RESERVE UN IT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16h/56h 164 REWIND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 01h 1 66 SEEK (CD-R OM m od e) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2Bh 167 SEND DIAGNOSTIC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1Dh 1 68 Standard sel f-test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169 SET C A PAC ITY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 0Bh 170 SET DEVI CE IDENTIF IER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A 4h 171 SPACE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11h 17 2 START/S TOP (CD-ROM mo de) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1Bh 175 TEST UN IT READY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 00h 176 VERIFY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 3h 1 77 WRITE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0Ah 1 78 WRITE AT TR IBUTE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8Dh 18 0 WRITE BU FFER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3Bh 183 WRITE FILE MARKS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10h 186 Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187 Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
Related docume nts 7 R elated doc ume n ts Thi s is one of six vo lumes that doc ument HP Ultr ium dri ves . T his volume pr ov ides bac kg round inf ormation for dr iv er and appli cation de velo pers . The fo llo wing doc uments pr o v ide additional inf ormati on: Doc u ments s pec ifi c to H P Ultr ium dr i ves • Hardw are Integration Guide , volume 1 of the HP Ultri um T echni cal Ref erenc e M anual • Software In tegration Guide , v olume 2 of the HP Ultr ium T echnical Ref ere nce Manual • Specifications , v olume 4 of the HP Ultr ium T echni cal R efer ence M an ual • HP Ultrium Configuration Guide , volume 5 of the HP Ultriu m T echni ca l Ref er ence Manual • Backgr ound to Ultrium Dri ves , volume 6 o f the HP Ultr ium T echni cal Re fer ence Manual • HP Ultrium T echnology White P aper , whi ch desc ribes the featur es and benef its of HP Ultr ium d ri v es P lease contact y o ur HP s uppli er for copi es. Doc u mentati on m ap The f ollo wing w ill help y ou locate i nformatio n in the 6 -vo lume T echnic al Ref erenc e Man u al: Driv es— general l Insta llat ion and con fi g ur ation SCSI Drives FC Drives Con n ec tor s 1 HW Inte gr ation: ch. 7 1 HW In tegr at i on: ch. 4 Co nt rol l er arc hi te c tu re 6 Back gro und: ch. 4 Fro n t P a n e l L E D s 1 HW Inte gr ation: ch. 6 1 HW In tegr at i on: ch. 3 Mechanism and har dware 6 Back gro u n d : ch. 3 Specifications 4 Specs SCS I D ri ves FC Drives Con n ec tor s 1 HW Inte gra tion : ch. 7 1 HW In tegr ati o n: ch. 4 Deter mining the conf igur ati on 2 SW I n te g rat io n : ch. 2 2 SW I n t e g ra t i o n : ch. 2 External dr iv es (SCSI only) 1 HW In tegr atio n: ch. 5n / a In L ibrari es 1 HW Inte gr at i on: ch. 1 In Serv ers (S CS I onl y) 1 HW In tegr atio n: ch. 4n / a In T ape A rra ys (S CS I only ) 1 HW In tegr ati on: ch. 3n / a Modes of Usage (S C SI onl y) 1 HW In tegr atio n: ch. 8n / a
8 Oper ation Car tri dges Inte rface Opti mizi ng perf orma nce (SCS I only) 1 HW In tegr atio n: ch. 8n / a 2 SW I n t e g ra t i o n : ch. 4 UNIX configurati on 5 UNIX Confi g SCS I D rive s FC Driv es External dr iv es (SCSI only) 1 HW Integration: ch. 5n / a In L ibrari es 1 HW Integ ration: ch. 1 In Serv ers (S CS I onl y) 1 HW Integration: ch. 4n / a In T ape A rra ys (S CS I only ) 1 HW Integ ration: ch. 3n / a SCS I D rive s FC Driv es Ca rtr idg e Me mory (L T O-C M) 2 SW I n te g rat io n : ch. 5 6 HW Integ ration: ch. 5 Car tridges 1 HW Integ ration: ch. 9 1 HW Integration: ch. 5 Fe a t ur e s 6 HW Integ ration: ch. 5 Man aging th e use of car tridges 2 SW I n te g rat io n : ch. 1 Use o f cartr idges 2 SW I n te g rat io n : ch. 3 SCS I D ri ves FC Drives SC S I G u i d e 3 SC SI Commands 3 SC SI : ch. 4 Err or codes 1 HW Inte gr ation: ch. 10 1 HW Int egr atio n : ch. 6 Implement ation 3 SC SI : ch. 1 Inte rpreti ng sen se d ata 2 SW I n t e g ra t i o n : ch. 3 Messages 3 SC SI : ch. 2 Mode pages —see the MO D E SEN SE command 3 SC SI : ch. 4 Pre -ex ecution c h ecks 3 SC SI : ch. 3 Re spondi ng to Sense K ey s and AS C/Q 2 SW I n t e g ra t i o n : ch. 6 Sense Key s a nd ASC/Q —see RE QUE S T SENSE command 3 SC SI : ch. 4 SCS I D ri ves FC Drives
Related docume nts 9 Maint enance and tr ou bleshooting Dealing w ith err or s Ultrium f eature s SCS I D ri ves FC Drives Cleani ng 2 SW I n t e g ra t i o n : ch. 5 2 SW I n t e g ra t i o n : ch. 7 External dr iv es (SCSI only) 1 HW In tegr atio n: ch. 5n / a In L ibrari es 1 HW Inte gr at i on: ch. 1 In Serv ers (S CS I onl y) 1 HW In tegr atio n: ch. 4n / a In T ape A rra ys (S CS I only ) 1 HW In tegr ati on: ch. 3n / a Monitoring dri ve and tape condit i on 2 SW I n t e g ra t i o n : ch. 7 Softwar e tr oubleshooting technique s 2 SW I n t e g ra t i o n : ch. 1 SCS I D ri ves FC Drives Err or Codes 1 HW Inte gr ation: ch. 10 1 HW Int egr atio n : ch. 6 Handl i ng er ror s 2 SW I n t e g r a t i o n : ch. 5 Ho w err or corr ecti on work s 6 Bac k gr ound : ch . 4 L ogs—see the L OG SEN SE command 3 SC SI : ch. 4 Reco ver in g fr om wr ite and read err ors 2 SW I n t e g ra t i o n : ch. 7 So ft wa re res po n se t o e rro r c o rre ct io n 2 SW I n t e g ra t i o n : ch. 3 So ft wa re res po n se t o l o gs 2 SW I n t e g ra t i o n : ch. 3 T apeAlert log 2 SW I n t e g ra t i o n : ch. 7 SCS I D ri ves FC Drives Adapti ve T ape Speed (A TS) 6 Back g r ound: ch. 1 Auto lo ad 1 HW Inte gr at i on: ch. 2 Aut omation C ontrol Inte r f a ce ( A CI) 1 HW Inte gr at i on: ch. 2 6 Back g r ound: ch. 1 Ca rtr idg e Me mory (L T O-C M) 1 HW Inte gr at i on: ch. 2 2 SW I n t e g ra t i o n : ch. 5 6 HW Inte gr at i on: ch. 5 Dat a Compression, how it works 6 Back g r ound: ch. 5 Dat a Compression , manag ing 2 SW I n t e g ra t i o n : ch. 5 Design princ iples 6 Back g r ound: ch. 1 OBDR an d CD-ROM emulatio n 6 Back g r ound: ch. 1 2 SW I n t e g ra t i o n : ch. 7 P erformance opti m iz atio n 1 HW In tegr atio n: ch. 8n / a 2 SW I n t e g ra t i o n : ch. 1 P erformance, factors affecti ng 2 SW I n t e g ra t i o n : ch. 4
10 Gener al doc uments an d standar di z ation • Enhanced Small Compute r S ys tem Interface (S CSI - 2) , ANS I X3T9 .2 -199 3 Re v . 10L , av ailable thr ough ANSI • See http: //www .t10. or g/t1 0_m ain .htm for AN S I SC S I -3 and other spec ific ati ons Copi es of doc uments of other standards bodi es can be obtained fr om: Soft ware des i gn 2 SW I n t e g ra t i o n : ch. 1 Supporting Ultri u m fe a tur es 2 SW I n t e g ra t i o n : ch. 5 Ultr i um F ormat 6 Back g r ound: ch. 2 SCS I D ri ves FC Drives ANS I 11 W est 4 2nd Str eet Ne w Y ork , N Y 1 0036 - 8 002 USA IS O CP 5 6 CH-1211 Genev a 2 0 Swi t ze rl a n d ECMA 114 Rue du Rhône CH-1204 Genev a Swi t ze rl a n d Te l : 41 2 2 84 9 6000 We b U R L : htt p:// www .ec ma. ch Global E ngineering Document s 2 805 Mc G aw Irvine , CA 9 2 714 USA Te l : 80 0 8 5 4 717 9 or 71 4 2 61 14 5 5
The SCSI interface Interface Impl ementation 11 1 Inter face I mp lem enta tion HP Ultrium dri ves use SCSI-3 a s the i nterfac e to c onne ct to th e hos t sy st em. This chap ter gives an o vervi ew of ho w the inte r face oper ates. F ul l det a ils of the messages ar e g i ven in Chapter 2 and of commands in Chapter 3 and Chap ter 4 . T he S C SI int erface The Small Computer S ystem Interf ace (SCSI) is an industry standard , appr ov ed by the Amer ican National St a ndar ds Insti tu te (ANSI). Y ou are r ec ommended to r ead the ANSI standar d document in conjunctio n w i th this manual . The ANSI spec i f icatio n def in es th e interf ace in gener al while thi s documen t desc ribes the HP Ultrium implementati on. The S CSI implementa tion pr ov ides a dri ve with a standar d set of featur es and functio n s. T hese include the follo wing: • S ync hrono us data transf ers • As ynchr onous dat a tr ansfers • Implement ation of all mandato r y and mo st optional commands of the Seq uential Access command s et • L VD (L ow- V oltage diff erenti al) S CSI connecti on • Ultr a -3 20 wi de S CS I • Conf ormance to the foll ow ing S CSI s tandards: • S AM- 2 ANSI INCIT S. 3 6 6:2003 • SP I- 4 ANS I INCIT S. 3 6 2 :200 2 •S P C 3 • S S C - 2 ANSI INCIT S. 3 80:200 3 Su pp or ted me ssag es The fo l lo wing messages ar e supported b y th e dr ives: • ABOR T • BUS DEVICE RE SET • CO MMAND C OMPLE TE
Interface Implementation 12 • DIS CONNE CT • IDENT IF Y • IGN O RE WIDE RE S I D UE • INI TIA T OR DE TE CTED ERRO R • M ESSAGE P AR I T Y E R R O R • M ESSAGE RE J EC T • NO-OP (no oper ation) • P ARALLEL PR O T OCOL REQUE S T (PP R ) • RE ST ORE PO INTERS • SA V E DAT A PO I NT E R • S YNCHRON OU S D A T A TR AN SFER RE QUE S T • WIDE D A T A TRANSFER RE QUES T F or implem entation details o n these messages, s ee Chap ter 2 , “Mes sages” Su pp or ted command s Th e fo llo w ing co mman ds ar e sup por ted b y t he dr iv es . T he y inc lude all Mand at ory and E xte nded co mmand s and m os t Op tio nal c omma nds . 19h ERASE 03h RE Q UE S T SEN SE 12h INQU IR Y 44h RE PORT D EN SITY SUPPORT 1Bh LOA D / U N LO A D A3h (05h ) REP ORT DE VIC E IDENTIFIER 2Bh LO C AT E A0h REP OR T L UNS 4Ch LO G S E L E C T A3h (0C h) RE PORT SU PPORT ED OP CO DES 4Dh LO G S E N S E A3h ( 0Dh) R EPORT SUPPO RT ED T AS K M NGM NT FU NC T NS 15h/ 5 5h MODE S ELE CT 56 h /1 6 h RE S ER VE UNIT 1Ah/5Ah MODE SENSE 01h REWIND 5Eh PERS ISTEN T RESE RVE IN 1Dh SEND DIAGNOS T I C 5Fh PE RSISTE NT R E S ERV E O UT 0Bh SET CAP A CITY 1Eh PR EVENT/ ALL O W MEDIUM REMO V AL A4h ( 06h) SET DEVI CE I DENT IFIER 08h READ 11h SP A C E 8Ch READ A TTRIBUT E 00h TES T UN I T READ Y 05h READ BL OCK LIMI T S 13h VERIFY 3Ch READ BUFFER 0Ah WRITE ABh (01h ) READ MEDIA SERI AL NUMBER 8Dh WRIT E A TTRIBUTE 34h READ P OS ITION 3Bh WRITE BUFFER 1Ch RECEI VE DIA GNOS TI C RES UL TS 10h WRITE FI LEMAR K S 57 h / 1 7 h RELEASE UNIT
SCSI features Interface Impl ementation 13 The fo l lo wing additional commands ar e su pp orted fo r CD -ROM mode: F or implem entation details on these c ommands, se e Chapte r 3, “Comman ds—intr oductio n” and Cha pter 4, “Co mmands ” . SC S I f e a t u re s Desi gn app r oac h The fe atures suppo rted by the dr iv e ar e based on standar ds, both off ic ial and de fac to. T he dri v e is full y complian t with the c urr ent S CSI standar ds: SP C3 , S SC2 , SAM2 , and the r ele vant tr ansport pr otocol (e.g . SPI4 for t he pa r allel SCSI dr iv e) . All ma ndato r y commands and features ar e supported , as well as some that a r e optio n al . In ad dition , some featur es fr om olde r st anda r ds ar e still supported fo r backwar ds c ompatib ili ty . Po w e r - o n The d r i ve will r espond to INQUI R Y , TES T UNI T READ Y , REPOR T L UNS and REQ UE S T SENS E comman ds withi n 250 m s of power on. The first com mand r eceived from an i nit iator ( other than INQU IR Y and RE QUE S T SENS E ) will r esul t in CHECK C ONDITION status, with UNIT A TTENTION sense data r eported fo r the po wer on . O nce the dr iv e ha s complet e d its self-t est and set-up pr oce dur es, it will attempt to r eload any tape th at is a lr eady pr esent in the dri ve . I t ma y take so m e time to r ec o ver t he tape , especi all y if it w as positioned near EO M when pow er w as cy cled. Dur ing tape re co v ery , m edium acc ess com mands wil l r esult i n a se nse k e y of NO T READ Y , w ith additional sense of 0401h (dri ve in pr oc ess o f b ecoming re ady) . Reset st rate gy The dr iv e su pp or ts r eset as fo llow s: • The c urr ent I/O pr ocess is a bor ted • An y queued I/O pr o cesses fr om other initi ators ar e r emoved • All negotiat e d settings ar e clear ed (parallel S CS I dr iv es only) • Mode par ameters ar e clear ed to their def ault v alues • An y res ervations ar e clear ed (but no t persistent r eservati ons) • An y buffer ed wr ites ar e flu s hed to t ape • The logi c al position becomes undef ined, unless R e w i nd- On -Reset h as been configur ed in whi ch case the dr i ve will re wind to BOM 08h READ 6 43h READ T OC 28 h READ 10 2Bh SEEK 25h READ CAP A CITY 1B h ST A RT / STO P U N IT
Interface Implementation 14 • A UNIT A T TENTION conditi on is set , based on the type of r eset The d r ive will respond to INQU IR Y , TES T UNIT READ Y , REPOR T L UNS and REQUE S T SENSE wi th in 25 0 ms of the r eset line be ing r eleased . The f irst co mmand fr om an y initiato r (other than INQ UIR Y , RE Q UE S T SENSE and REPORT LUNS ) w ill r es ult in CHE CK CONDI TION st atus with UNIT A T TENT ION sen se da ta for th e reset. Note that all com mand s wil l r eceive BUS Y status until the dr ive has completed its inter n al r eset . The Reset but ton on the fr ont panel and th e A CI _RESET_ L line on the Automation Contr ol ler Inte r f ace are both con ne ct ed to the P ow er - Up R eset int err upt on the p roces sor . The e ffect is equi valent t o p o wer - cy cling the dr iv e. T he contents of t he tape and ca rtr idge mem or y ma y not be consistent after the acti on and a n y data in the dri ve buffer will be los t. Abo r t handling If an abort condition is detected befor e a command phase completes, the bus is set to bus f ree and the comm and is not e xec uted . If an abort cond iti on is detected bet ween the end of the command phase and the start of the status phase , the bus is set to bu s fr ee and the processing belo w is ca r ried ou t . If an abort condition is detected during st atus phase , t he bus is set t o bu s fr e e . If a c omma nd ( other than INQU IR Y for st a ndar d data or RE QUE S T SENSE ) is r ecei v ed afte r th e abort but bef o r e the dri ve is r eady to pr ocess the comm and , the behavi or depe nds on whether Disc onnect s ar e a llow e d . • If disconnec ts are allo w ed , the dr i ve w ill disc onnect and w ait until the a bort processing ha s complet ed befor e e xec uting the command . • If disconnects ar e not allo we d , a BUS Y respo nse will be r eturn ed. Command Abort Processin g ERASE Lo n g er ase is abor t ed as qui ckly as possi b le w ithout corrupting the tape for m at . Shor t er ase completes . INQ UIR Y None LOA D/ U NLOA D Load completes and logicall y positi ons the tape at B O T . Unload is abor ted lea ving the logical positio n at BO T unless the oper ation is past the “ point of no r eturn ” in w h ich ca se th e tape is ejec ted. LOC ATE The logi c al p o sition is set bac k to that at the st ar t of the oper ation. LOG S E LE C T If data transfer is complete , the comman d is completed, otherw ise no action is tak en LOG S E NS E None MODE SE LE CT If data transfer is complete , the comman d is completed, otherw ise no action is tak en . MODE SENSE No ne
SCSI features Interface Impl ementation 15 L UN i dentif i cation (par allel SC SI only) Identify messages are u sed to i dentify the LUN being addr essed by the initiato r , and to identify whi ch L U N is r eselecting the initia tor . The old L UN fi eld in the CDB fr om the SC SI- 2 standar ds is obso lete and should not be used (set t o 0 ). Bus par i t y or CRC err ors If the dri ve detects a bus par it y err o r in a message out o r command phase , it will still ac cept th e command , whic h w ill then r eturn CHECK CONDITION . A dditi on al sen se is 4 7 00h (SC SI p ar ity er r or ) . Detectio n of a parity err or during the data out phas e also causes the dr i ve to r eturn CHECK CONDITION . Additio nal sense is set to 4 7 01h (data phase CRC e rr or detected) if th e bu s is in D T m o d e o r 470 0 h i f n o t . PREVENT/A LL OW MEDIUM REM OV AL The command completes. READ The logica l po sition is set to th at at the st ar t of the oper ation . READ B LOC K LIM IT S None READ B UFFER None READ P OSI TION None RECEIVE D IA GN O ST I CS RESU L TS None RELEA S E UNI T The command completes. REQUE S T SENSE Sense data is discarded . RESER VE UNIT The command completes. REWIND T he comm and completes. SEND DIA GNOS TIC If data transfer is complete , the comman d is completed, otherw ise no action is tak en SP ACE T he lo gi c al p o sition is set bac k to that at the st ar t of the oper ation. TES T UNI T RE AD Y None WRITE The logica l po sition is set bac k to th at at the st ar t of the oper ation . WRITE BUFF E R If da t a tr ansfer is complete , the c ommand is completed, otherwis e no action is tak en . WRITE FILE MA R KS The logi c al p o sition is set bac k to that at the st ar t of the oper ation VERIFY The logi c al p o sition is set bac k to that at the st ar t of the oper ation Command Abort Processin g
Interface Implementation 16 If Infor mati on Units is enabled (parallel S C SI only), the dri v e will dr op the bus on detecting a CR C er ror dur ing a LQ_IU. If the CR C err or occurs dur ing the Infor mation Units com mand phase or data out phase , the dr iv e will return CHECK CON DIT IO N with a CR C er r or . Additi onal se n se is set t o 4 7 03h (Infor mation Unit CR C err or detec ted). On dete cting an I nit iator Detecte d error , t he d r ive will return CHE CK CON DIT ION w ith additional sense o f 4800h (initator detect ed err o r mes sage r ecei ved) . T h e e xception is when In f ormation Units mode is en abled (parallel S CSI on ly), when one of the f ollowing occ u r s: • If an I DE message is r eceiv ed during a LQ_IU , the dri ve dr ops the bus and r etri es t he LQ_IU pair . • If the message is r ecei ved duri ng St atu s IU , the dri ve r etr i es the LQ_Statu s pair . • If the message is r ecei ved d uring Data IU , the dr iv e sends a LQ_Statu s with CHE CK CONDITION and additional sense of 480 0h. Dis conne ct s tr ateg y Th e disconn ect str ateg y us ed by the dr iv e is ba sed on max imi zing t he use o f the b us fo r lar ge sequential data tr ansfers f rom a lar ge data buff er . The dr ive w i ll disconnect whenev er i t belie ves that it will pr ov ide better bus use . This may be between co mmand and data phases, between bursts o f da ta or befor e sending statu s. How ev er , the dr iv e will guar a n tee that it sends the confi gu r ed maxim u m burst si z e or the remaining data in the tr a nsfer in an y single da ta phase burst if t h e max imum bur s t si z e has been set to a value othe r th a n z er o. The fo l lo wing di agram giv es an ov er v iew of the dr iv e’s disconnect str ategy:
SCSI features Interface Impl ementation 17 Multi-initiator suppor t All dri ves are design to operate w i thin a m u lti-i nitiato r en vironment . The ma x i m u m number of concur r ently connected initiat ors is as f ollow s: • P arallel S CSI dr iv es: up to 15 initi ators • F ibr e Ch anne l dri v es: up to 3 2 initiat or s shar ed a c r oss b oth ports REQUEST SENSE from an initiato r in CA or INQU IR Y w it h EVP D= 0 Discon nect priv gr ante d Dat a transf er req u ire d ? Pr evio us cmd still in pr ogr ess? T r ans f er da ta & execut e c md Res el ec t Ex ecu t e cmd Discon nect Send data Send BUS Y sta tus Res ele ct Sen d st atu s Cmd co m p lete CD B a rrive s Sen d st atu s Cmd co m p lete Cmd co m p lete No Ye s Ye s Ye s No No No Ye s
Interface Implementation 18 Sense Data , U nit Atten tion a nd Def err ed Err ors ar e maintained f or each initiator . M ode P ar amet ers ar e common to all initia tors . The untagged queuing model implemented by the dri ves guar antees that all commands are ex ecuted in str ict or der of re c e i pt . Certain non-media access t ype commands, such as TE ST UNIT READ Y , INQU IR Y , REQU E ST SE NSE and REPORT L UNS , are impli citly allo wed to queue-jump other media access t y p e commands, such a s REWIND . The parallel S CSI dri ve supports the full command queu ing model with a queue depth of 1 (nec essar y fo r connect iv it y purposes) . The FC dri ve s u pp orts the b asic queuing model with a queue depth of 4. See “Standard Inquiry Data for mat (L UN0)” on page 40 for details of the BQue and CmdQ ue bits whi ch de fine this support. F ibr e Channel oper atio n NO TE : Th is applie s only to F ibre Channel dr iv es. The follow i ng sectio ns h ave in f ormat ion specific to F ib r e Chan nel operation : • “F ibr e C hannel Logical Uni t Contr ol mode page ” on page 84 • “F ibr e C hannel P ort C o ntro l mode page ” on page 8 5 • “V ital Pr oduct Data pages ” on page 44 F ib r e Channel addr essing Bef o r e descr ibing HP’s implementation of F ibr e Chan nel addr essing, the concepts of Na mes and Addresses need to be clar if ied . Names Names are 64 -bit iden tifier s assigned permanentl y to the tape dr iv e during manufac tu r e . The y are commonl y re fer red to as W orld W ide Names since they m ust be guar a n teed unique . The names are typi cal ly used f or iden ti fying the de vice to operating sy stems, sinc e addr esses a r e assigne d dy nam i c all y . Ther e at least ei ght di ffer ent na me f ormats distinguished by the Net w ork Addr ess Au thor ity ( N A A ) . Only on e is us e d on HP Ultr ium dri ves . This is the IEEE Registe red Name (NNA=5) and has the follo wing fo rmat: This name is made up o f thr ee fi elds: • NAA Identif ier ( 4 bits) . “5” indi cates a IEEE Register ed Name.
Fibre Channel op eration Interface Impl ementation 19 • IEEE C o mpany ID (2 4 b i ts) . Ass igned by IEEE to th e co mp any . • V endor Specif ied ID (3 6 bits) . Assigned by the compan y . Addresse s Ea ch Fibr e Channel port also has a P ort Address wh i ch is assigned dur ing loop initiali zati on and/or Fa bri c Login. This is a 2 4 -bit v alu e in the f o llo wing f orm at: The AL_P A is the Arb i tr ated Loop Ph ysical Ad d r ess. T his is normally a ssigned dynami c ally during loop initiali za tion . If the loop is not attach e d to a f abr ic (in other wo rds, w hen it is pri vate ,) the top two b ytes will be zer o. If the lo op i s at tached to a fa bric, the ta pe d r ive is assig ned the top t wo bytes when i t logs into the fab r ic. T o gether , the t hree b ytes pr ovi de a un i que addr ess on the F ibre Channel fabr ic that is used for fr ame addressing . It forms the equiv alent of the T ar get ID or Initiator ID in S CSI. HP’s i mplementat i o n of names and ad dr esses The HP implem entation uses three adjacent I EEE Register e d Nam es: • The fir st (last bits = 00) is used as the P ort A W orld Wide Name . • The s econd (last bits = 01) is used as the P or t B W or ld W i de Name . • The thir d name (last bits = 10) is us ed for the De vice W orld W ide Name . (These a r e assigne d durin g manufactu r e fr om H P’s pool of names, althoug h only t he first will ac tuall y be s tor ed in th e dr iv e NV -RAM). The port addr esses will be assigned using the ‘ standard’ AL_P A in itiali z ation mechanisms. The ‘F ibre Channel P or t Co ntrol mode page ’ c ontr o ls this. T he dri ve has the ab i lity to support har d addr esses as part of this scheme.
Interface Implementation 20 The values of the na mes can be obtained using the Dev ice Identification Vital Pr o duct Infor mation P age ( part of the INQU IR Y com mand) . Implica tions for libraries • Normall y a standalone dr iv e wil l operate us ing its ow n ‘hard’ name s. • The dr iv e kno ws it is in a li b r ar y or other ‘ managed’ env ir o nment since one of the signal lines on the A CI (Aut omation Con tr ol Inte r fac e) w ill be ti ed do wn . In this case , the dri ve w ill not go on the FC loop until it is told t o. T h e libr ary can opti onally dow nload a ne w , so ft base name (P ort A/Devi ce N ame) into the dr iv e at this poin t. T he dr iv e will th e n u se this as the or igin of its names. T he library manufactur er would be r esponsible f or obtaining this IEEE Register e d Name. It w ould be a pr opert y of the libr ar y , not th e drive . • If the library wan ts to ‘ w ar m s wap ’ dr iv e s, it can. It j u st ‘tur ns off ’ the dr iv e with the soft name using the A CI and then turns on the spare dr iv e , dow nloading the same name to it . • If a dr iv e is r emov ed fr om the libr ar y , it will not hav e the A CI signal tied lo w and so wi ll r ev er t to its or iginal har d name . It shou ld for get the so ft name in this case . • If the library contr oller br eaks, the dr iv e w ill time out the A C I int erface in ~10 seconds. The dr ive still kno ws it is in a libr ary since the A CI signal is stil l tied lo w , so in this cas e it w ill use the soft name la st dow nloaded. T his will allo w dr iv e access w ithout co nfusing the host . F iel d r eplacea ble units An FRU code identif ies w hich part of the har dw a r e is consider e d t o hav e f ailed. T hese codes turn up in sense dat a byt e 14 and as th e sense code qualif ier f or sense codes 4400h (i nte rnal tar get failure) and 40 XX (di agn ost ic f ailur e).
CD- ROM emu latio n Interface Impl ementation 21 Althou gh ther e are no actual Fie l d Replaceable Units on HP Ultr ium dr iv es, the follo wing sub- assemblies can be replac e d at R epair Centr es: CD-R OM emulati on The One B utton Di saster Reco very (OBDR ) functionali ty in H P Ultrium dri ves enables them to emulate CD-ROM de vices in spec ific c irc umstances (a lso kno wn as being in “Di sast er R ecov er y” mode) . The dr iv e ca n then act as a boot de vice f or PCs that support booting off CD-ROM. A CD-ROM capable dri ve can be switc hed in to CD- RO M mode b y powe r i ng on wit h the ejec t button held do wn . The dri ve t h en alte rs its behavi or as fo l lo ws: • The f ro nt panel lights f lash a “ war bling” s equence . • CD-RO M commands ar e ex ecut ed (as opposed to tape dr i ve mode w hen they would be r ej ect ed). C omma nds s pec if ic to C D-R OM mode ar e READ 10 , READ T OC and READ CAP A CITY . In the ca se of S CSI commands 08h ( READ ), 1B h ( LOA D / U N LOA D ) and 2Bh ( LO C AT E ) , these ar e inter pret ed as CD-ROM commands 0 8h ( READ 6 ), 1 Bh ( ST ART / ST OP ) and 2Bh ( SEEK ) r especti vel y . • W riting is disa ble d . • Nor mal INQU IR Y data is modif ied to add a field i nd i cating that the dri ve s upports CD emulatio n and to s witc h the peripher al de vi ce t y pe f ield to indicate a CD-ROM dr iv e. • The mo de header and mode bl ock des cri p tor are modif ied. • A CD-Emulation mo de page is added. • Mode data c h anges to re flect CD-RO M medium type and bloc k si ze . • Statu s reporting b y the media acces s c heck is alter ed. • The dr i ve ’s sense data w hen the media is not r eady f or access al w ays indicate s “loading” . If a tape is inserted while the dr iv e is in CD -R OM mode, t h e dr iv e assumes that it wil l cont a in an image of a CD offs et 20 blocks into the t ape. It r eads the fir st 250 kilob y te s of this image into buffer space r eserved for CD-caching. It then l ooks for a speci a l message (“ EL TORITO SPECIFICATION ”) at t he 8th byte of the 1 8th r e cord of th e im age. I f the dri ve fa ils to find this message , it ejects the t ape and w ai ts in CD-ROM mode fo r a pr operl y- written CD-image tape to be inserted. The driv e w i ll remain i n CD -emulation mode unt il on e of the f ol lo win g occurs: • A MOD E SE LECT command sw itc hes it back to ta pe dr iv e mode using the CD-emulati on mode page . • Dr iv e PCA • Head A ss e mbly • Mechanism • Fro n t P a n e l
Interface Implementation 22 • A S CS I bus r e set occ ur s f ollo wi ng the r eading o f at leas t 100 bloc ks of CD-R OM data b y a hos t. • The u ser pow er - cyc les the dri ve or r esets it u sing the for ced-eject mec hanism. NO TE : If the dr iv e ex its CD-RO M mode thro u gh either of the f irst tw o of thes e, the t ape will r emain at the last logi cal position when in CD-R OM mode .
Mes sages 23 2M e s s a g e s This ch apter incl udes all SCS I messages , both supported and unsupported. P arts of this chapter come fr om Section 5, Logical Char acter istics, of the S CSI standar ds ( see page 1 1). The message s y stem pr o vi des an initiator and a tar get on the S CS I bus w ith a means of ma naging communicatio n. The av ailable messages ar e listed in this cha pter . Mess age Out support Name Code Suppor t Abort 06h An abort co ndition is gener ated (see “ Abort handling” on page 14). Bus Devic e Rese t 0Ch A r es et conditi on is ge ner ated (s ee “Res et str ateg y” on pa ge 13). Exten ded Message 01h See “Extended Mess ag e Su pport” belo w . Ide nt ify 80h Th e I denti fy Out me ssage is sent b y the initiator to ide ntif y the L ogical Unit to be accessed and to set Disconnect Pri vilege . Initiator Detected Err or 05h The initiat or has detect ed an err or in the data being se nt in a C ommand, Data or Status phase . The dri ve w ill send a rest ore data pointer s message to r etry th e data tr ansfer . (See “Message In support ” below f or details) . If the message i s r e cei ved immediate l y after an Identify message o r after the C o mmand Comple te message ha s b e en s ent , the dri ve w ill go Bus Fre e. Mes sa ge P ar ity Er ro r 09h The initiat or has det ected a par ity err or in a mess age. The dri v e w ill r etry the mess age. (S ee “Me s sage In support ” below f or details) . If the message i s r e cei ved immediate l y after an Identify message o r after the C o mmand Comple te message ha s b e en s ent , the dri ve w ill go Bus Fre e. Mes sa ge R ej ect 07 h This messag e is sent when the i nitiat or do es not supp ort a messa ge se nt by the dr iv e or that th e mess a ge is inappr opr iate . If th e mess a ge being r eject ed is Disconnect , S y nc hr onous Data T ransf er R equest or W i de Data T r ansfer Reque st, the oper ation conti n u es w ithout tho se featur es. F or all other mes sages, the mes sage is treat ed a s a n Abort mes sage. If the message is rece ived dur ing a C om mand , D ata or S t a tu s phase , immediately after an Identif y mes s age or after the Command Complete mes sag e has been sent , the dri ve w ill go Bus F ree . No Oper ation 08h This message has no effect and is ignor ed.
Messages 24 Mes sage In su ppor t Name Code Suppor t Command Compl et e 00h This me ssage is sent b y the dri ve at the en d o f th e status phase to indicate that a command is complete . Once the mess age is sent , th e dri ve r eleases the bus and goes to Bus F ree . Disc onnect 04h This me ssage is sent b y the dri ve to indi cate that it is about to disconnect from the bus and go to Bus F ree . During a Data phase , it is alw ay s pr e -ceded b y a S a ve Data P ointers message . If a Mes sage Re ject messa g e is r ecei ved in re sponse to this message , then the disconnect is p r ev ented. Exten ded Message 01h See “Extended Mess ag e Su p port” belo w . Ide nt ify 8 X h The Identify In messa ge is se nt to the initiator dur i ng r econnect t o indi cate whi ch L ogic al Unit is r econnec ting. Ign o r e Wi de Resi d ue 23h This mess ag e is sent b y the dr i ve t o the host to indicate that a byte on a wi de bus i s not v alid. This is supported w h eneve r a w ide tran sfer is activ e . It sho u ld be sen t at the end of the data phase. T h e standard action o f the dri v e i s to send this message betw een th e data phase and the status phase w i th no dis connect. Mes sa ge R ej ect 07 h This me ssage is sent to the initi ator w hen th e messa ge rece i v ed b y the dri ve is unsupported or inappr opriate . Res to re P o inte rs 03h This message cau ses the initiato r to res et its data transfe r pointers t o the values th ey held w h en the la st sav e da ta po inters mes s age was sent . It w ill be sent w hen a par ity err or is det ected on the bus o r w he n an Initiator Detec ted Err or message is r ecei ved in or der to retry the data phase. Sav e Da ta P ointer s 02h This me ssage instruc ts the initiato r to save i t s c urr ent data tr a nsf er pointe rs f or use w ith a subsequent R estor e pointers messa g e . This message w i ll al wa y s be sent befor e a Disconnect mess ag e duri n g data phases .
Mes sages 25 Extended M e ssag e support S y nc hr ono us Data T r ansf er R e q ues t Wide D ata T r ans fer Request Name Code Suppor t S ynchr onous Data T ran sfer R equest 01h The dri ve can initiat e a S y nc hrono us data transf er negotiati on. If the message is r eceiv ed after selectio n and befo re the command phase , it wi ll then go to message -in phase and re s pond w ith a v ali d r es ponse to comple te the negotiation . Wid e Dat a Tran sf er 03h The dri ve can initiate a Wi de data transfer negoti ation. If the message is re c ei ved after selec tion and befor e th e command phase , it will then go to message -in phase and respond w ith a valid r esponse to complete the negotiatio n. Note that SD TR negotiated par ameter s w ill become asy nc hro nous after a WD TR. P arallel Pr otocol Requ est 04h The dri ve will nev er initiate a P arallel Pr otocol R equest tr ansfer negotiati on but will e xpect the initiat or to do s o . If the message is rece ived afte r selection and befor e the command phase , it w ill then g o to mess ag e- in phase and r e spond w ith a valid r esponse to complet e th e negotiati on. 7 6 5 4 3 2 1 0 0 Extended M essage (01h) 1 Extended Message Leng th (03h) 2 SD TR (01h) 3 Tra n s f e r Pe r i o d Fa c t o r 4 Req /A ck O ffs et 7 6 5 4 3 2 1 0 0 Extended M essage (01h) 1 Ex tended Messa ge Len gth (02h) 2 WD TR (01h) 3 T rans f er Wi dth Exponen t
Messages 26 P ar allel Pr otocol Re quest Fi e l d s : St a t u s A Status b yte is sent fr om the dri ve to the host during the S tatus phase at the end of each com mand a s spec if ie d in th e S CSI s pec ifi catio n, unle ss the comman d ha s been c lear ed b y an ABOR T message , b y a BUS DEVICE RE S ET message , or by a har d re set . 7 6 5 4 3 2 1 0 0 Exten ded M essage (01 h) 1 Extended Message Le ngth (06h) 2 P arallel Protocol Request (04h) 3 T ransfer P eriod F actor 4 Res e r ved (0 ) 5 Re q/ Ack Of fse t 6 T ran sfer W idt h Expone nt 7 PComp_En RTI Rd_ Str m WR _F low Hold _MCS QAS_Req D T_R e q IU_Req Tra n s f e r Per i o d Fact or 08h T ransfer per iod of 6.2 5 ns, P aced Infor m ati on Unit tr an sf ers 09h T r ansfer peri od of 12 .5 ns (F AS T- 80) . Only vali d when D T transf ers hav e be en requ ested 0Ch T ransfer per iod of 50 ns (F AS T- 20) — L VD/SE dr ives on l y 19h T ransfer p eriod o f 100 ns (F AS T-10) 32 h T ransfer p eri od of 200 n s (F AS T-5) Req/A c k Offs et Th is has a max imum v alue of 2 5 5 . Tra n s f e r Wi d t h Expo nent F or S T transfer s, this can be e ither 0 (Nar ro w) or 1 (Wide). F or D T transf ers, it mu st be set to 1. PCo m p_E n Pr ecompensation enable bit . Suppor t e d . RTI Re tain T rai ning Inf orm atio n bit . Su pported . Rd_St rm 0 Read str e aming and read flo w control enable bit . Not suppor ted , so the dr ive w ill alw ay s return z er o. Wr_ F l ow 0 W rite flo w contr ol enable bit. Not supported; the dr ive w ill alw ay s return ze r o. Hold_MC S 0 Hold Ma r gin Contr ol Settings bit . Not supported; the dri v e w ill alw ay s r eturn ze r o. QAS_R eq 0 QAS enable r eq uest bit . N o t supported; the dr ive w ill alw ay s return z er o. DT_ R e q T his bit determines w hether D T mode has been requeste d, in other w ords, pack eti zed data transfe rs. Supported. IU-Req Inf ormation units enabled request b it. Supported.
Status Mes sages 27 The St atus b y tes t hat the dri ve r eturns ar e as follo ws: 00h GOOD: This status indicates that the dri ve has succes sfull y completed the command. 02 h CHECK CONDIT I ON: An y err or , ex ception, or abnormal condition that causes sense data to be set r eturns CHECK CONDIT ION. The REQUE S T SENSE command should be sent f ollow ing this status to det ermine the natur e of the err or . 04h CONDIT I ON MET : This status w ill neve r b e r eturned by an HP Ultr ium tape dri v e. 08h BUS Y : The dri ve is unable to e x ec ute the command at th is time . T r y again later . The dr i v e tr ie s to av oid using this status code during normal oper ation. It can sometime s be us ed after command s hav e been abor ted , during pow er -on and if there ar e multiple selecting initiators . 10h INTE RMED IA TE: T his status w i ll ne ver be r eturned by an HP Ultr ium tape dri ve . 14h INTE RMED IA TE CN D: T his status will ne ver be r eturned by an HP Ultr ium tape driv e . 18h RESER V A TION CONFLICT : R eturned if the dri ve is r eserved b y another part y . See the Res er va ti on ch e ck. 22 h COMAND TERMINA TED: T his status will ne ver be r eturned by an HP Ultr ium tape dri ve . 28h QUEU E FULL
Messages 28
Summary Co mm ands—int rodu ction 29 3 C ommands—intr oduc tion This chapter contains notes r e lati ng to the S CSI co mmands listed in Chapter . Summar y The foll o win g tabl e is a summ ar y of th e SCSI com mand s for se quentia l acc ess devices, s howing the operation code: C omm and deta ils The command desc r ip tions in Chap ter 4 a r e listed in al pha beti cal or der o f command name. E ach command is desc ribed br iefl y . T his is follow ed by a list of pr e -ex ecution c he c k s whi ch ar e descr ibed below . The Command Descr iptor Block (CDB) is then giv en, w ith details of the var ious par a meter b its a nd f ields. Opc od e Command Name Opcod e Command Name 00h 01h 03h 05h 08h 08h 0A h 0Bh 10h 11h 12h 13h 15h 16h 17h 19h 1A h 1Bh 1Bh 1Ch 1Dh 1Eh 25h 28 h TE S T UN I T RE AD Y REWIND RE QUE S T SENSE READ B L OCK LIMI T S READ READ 6 (CD -RO M) WRI TE SET CAP A CITY WRIT E FILEM A RK S SP A CE INQUIR Y VERIFY MODE SELEC T RE SER VE UNI T RELE ASE UNI T ERASE MODE SENSE LOA D / U N LOA D ST A RT/ ST O P U N IT (CD -RO M) RE CEIVE DIA G RE SUL T S SEND DIA GNO S TIC PREVENT MEDIUM REMO V AL READ C AP A CITY (C D-RO M) READ 1 0 (CD-ROM ) 2Bh 2Bh 34h 3Bh 3Ch 43h 44 h 4Ch 4Dh 55 h 56 h 57h 5Ah 5Eh 5Fh 8Ch 8Dh A0h A3h (05 h) A3h (0 Ch) A3h (0Dh ) A4h (06h ) ABh (01h ) LO C AT E SEEK (CD- RO M ) READ PO SI TION WRIT E BUFFER READ BUFFE R READ T OC (CD-R OM) R EPO RT D E NSIT Y SU PPO R T LO G S E L E C T LO G S E N S E MODE SELECT (10) RE SERVE UNIT (10) RELEASE UNI T ( 10) MODE SENSE (10) PERSIS TEN T RESERVE I N PERSIS TEN T RESERVE O UT RE AD A TTRIB UTE WRIT E A TTRIBUTE REP ORT L U N S REPO RT DEVICE IDENTIFIER R EPO RT SU PPORT ED O PCOD ES R EPO RT SU PPORT ED T AS K MGM N T F NS SET DEVI CE I D READ ME DIA SERIAL NUMBER
Command s—introducti on 30 Pr e -e x ec uti on chec ks NO TE : In com pliance w ith the S CS I specif icati on, the dr iv e terminate s a command w ith a CHECK CONDITIO N status and sets the s ense k ey to ILLEG AL R E QUE ST w hen a re served bit , b yte , f ield or c ode is rece iv ed whic h is not z ero . Bef or e ex ecuting a command , the dr ive makes a number of checks. T hey f all int o t h r ee categor ies: • Checks on the command sent by the hos t. T hese ensure that no r eserved or fi x e d f ields hav e been set to illegal values. They c heck the s yntax o f commands, in other wor ds the cr oss dependency of f ields . F or ex ample , the F lag bit mu st not be se t if the L ink bit is not se t. • Checks to ensure that ther e are no outst anding UNIT A T TENTION or D EFERRED ER R OR ev ent s posted f or the host that has sent the command . • Chec k s on media access abiliti es. T hese ar e performed f or commands r e quir ing access t o the cartri d ge. A c o mmand is re jected if it attempts to acces s the cartr idge when no cartridge is pr esent or the car tr idge is unloade d. The checks ar e descr ibed below in alph abeti cal order . T he usual order o f ex ecuti on is Illegal F i eld , F ix ed Bi t , F lag Link , Bad L UN, Rese r v ation, Def err ed Err or , Unit Attention , Me dia Access , M edia W rite , Diagnosti c Status , Hu midity , P ar ameter Lis t. Bad L U N c hec k F or all c ommands ex cept INQUI R Y 12h, this c hecks that the L UN specif ied b y the host is z er o. T h e L UN is taken f ro m t h e lo we st 5 b its of the host ’s IDENT IF Y mess age. • If no IDENT I FY message is supplied , the L UN is tak en fr om the ho st’s Command Desc riptor Block . • If an IDE NT IFY message is s uppli ed , the L UN in the host’s Command Desc riptor Bloc k is ignored • If the L UN is unsupported , and the hos t command is not RE QUE ST SENSE , CHE CK COND IT ION is r eported to the host with a sense k ey of ILLE GAL RE QUE ST , and additional sense o f 25 00h (logi c al unit not supported) . • If the L UN is unsupported , and the hos t command is REQUE ST SENSE , the o r igin al se n se data is r eplaced wi th a sense k e y of ILLE GAL RE QUE S T , a n d additio nal se nse of 2 500h (logical uni t not supported). This ne w sense data is r eturned t o the host . Once the command has comple t ed succes sf ull y , the sens e data is c leare d . Def er r ed Err or chec k A defer re d er r or is gener ated when a c ommand with immediate r eport fails after the r eport has been r etur ned . T he chec k loo ks to see i f a def er r e d er r or ex ists f or the h ost wh ic h sen t the c om m an d, in o th er wo rd s , a d efe rred e rror for w hic h CHECK CON DIT ION statu s has not y et been
Pre-execution checks Co mm ands—int rodu ction 31 r eported. If suc h an er r or ex ists, then the dr iv e reports CHE CK CONDITION . The sense data f or the comman d is se t to DEFERRED ERR OR (w hich w as gener ated when some pr ev iou s command failed). No te that if a UNIT A TTENTION condition and a DEFERRED ERROR co nd iti on both ex ist f or an initiato r , t he DEF ER RED ER R OR condition will be r eported f irst . This is becau se the operati on leading to the defe rr ed err or must have been older than that leading to the u nit attention . The dr i v e repo rts the conditions in the or der in whi ch th ey ar ose . Diag nos t ic St atus c heck This ensur es that the dri ve is in a fit st ate t o access the media . It does this b y checking that ther e is no DIA GNOS TI C F AIL status wit h in the dr iv e. If th e dri v e has f ailed di agno stic s, CHE CK C ONDIT ION is r e po rted wit h a sense k ey o f HARDW ARE ERRO R and additional sense of 400 X h ( diag nostic fail ure on c ompone nt X ). Fix e d B i t c h e c k Fo r t h e READ , VERIFY an d WRITE c ommands, a F ixe d bit set to 1 indicates that the length par a meter of the command is for f ix e d bloc k mode . If fi xed block mode is selected then the block si ze in the Mode S elect block desc ript or mu st no t be z e r o . Otherwis e CHE C K C ONDI TI ON i s r eported and the sense data is se t as descr ibed f o r t h e ILL E G AL FIEL D check. Fl a g L i n k c h e c k This c he ck e nsur es th at t he ho s t ha s not se t t he F lag bit in the con tr ol byt e of th e co mman d w ithout setting the L ink bit as w ell. If the te st fails then CHECK CON DITION is reported with a sense key of ILLEG AL RE QUES T and add itio na l sense of 2 400h ( in valid f ield in CD B). The F lag field is iden ti f ied as the bad f ield . Illegal C ommand c hec k If the dri ve does not r ecogniz e the opcode of the com mand that it ha s been sent , it will do one of the fo l l ow in g: • Rep ort CHE CK CONDI TION status . The sense k ey w ill be set to ILLEG AL REQUE ST and the additional se nse code w ill be set to 2000h (inv alid command opcode) . • Repo r t an inv alid f ield in the command desc riptor bloc k. T he sense k e y will be set to ILLEG AL RE QUE S T , the additional sens e code will be set to 2 400h (inv alid f ield in CDB) and the f ie ld pointer in the sense data w ill be z er o . Illegal F ield/R eq ue st c hec k Checks a r e performed to ens ur e the host has not set a n y of the follo wing in the command descr iptor block: • a fi xed f ield
Command s—introducti on 32 • a r eser ved f ield • the contr ol fi eld • two or mor e fie lds to logically conf licting v alues If a field has been set to an illegal value: • C HECK CONDITION status i s reported to the host w ith a sense k ey of IL LE G AL REQUE S T and additional s ense of 2 400h “inv alid f ield in CDB” . • The s ense ke y spec ific bit is set and the sens e ke y spec ific b ytes w ill be a fi eld pointer . • The command/data b it is set , indicating that the ill e gal parameter was in the command . NO TE : Command desc ript or bl oc ks are scanned fr om left (bit 7) to right (bit 0), and do wn ( from by te 0 t o by te n ) . The f ield po int er w i ll be s et t o point to the f irs t b it o f the f ir st illegal f ield encounter ed using this s c anning route . In some cases, wher e multiple f ix ed fi elds are contigu o us, the f ield poin ter might be s et to point to the f irst b it of the f irst f ix ed fi eld in the gr oup of f ix ed fields , whe reas the ac tual illegalit y ma y lie in a later bit. Media Access c heck This chec ks if the dr iv e is ab le to perfor m me di a access commands. If the media is inaccessible then CHECK CONDITION status is r eported with a se nse ke y of NO T RE AD Y . The additional sense will be se t to one o f the codes a ssoci ated with t he NO T READ Y key .
Pre-execution checks Co mm ands—int rodu ction 33 Media Inf or mati on c heck During pow er -on a nd f ollowing a S CSI r eset, kno wledge of the wher e abou ts o f the cartr idge is unav ailable . It is not possible to e xec ute commands which as sume that this know ledge is av ailable un til the dri ve h as rec ov er ed fr om t he po wer -on o r r eset . The test ch e c k s whether the dr iv e knows if a cartr idge is phy sically pr esent in the dri ve . If inform ation abo ut the tape car tridge i s not avail able, the test fail s wit h CHE CK CON DIT ION , a sense k e y of NO T READ Y , and additio n al sense of 3E00 (logical un it has not s e lf - conf igured y et) . Media W r ite c hec k This ch ecks whether the media is wr ite-pro tected. If it is, CHE CK COND IT ION i s r eported wit h a sense k e y of DA T A P ROT EC T and add iti ona l sense of 2 7 00h (wr ite -pr otected) .
Command s—introducti on 34 P a ra m e t e r Li s t c h e c k Fo r LO G S E L E C T , MODE S ELECT a nd so me d iagnost ic c omma nds, t he asso c ia ted d ata se nt to the dri ve is in the form of par a meter lists. These are descr ib ed under the comm and names in the next chapt er . Checks ar e perfo r m ed to test the f ollo wing: • F i xed and r eserved f ields ha ve not been modif ied. Fi x ed fields ar e indic ated by a number in r ound br ack ets follo w ing the field name. • A fi eld has been set to an invali d value . • The s y ntax o f the page of parameter s has been v iolated—f or ex ample, wher e a par ti cular value i n one fi eld impose s limit a tions on the v a lid r ange for another f ield . If a field has been set to an illegal value , CHE CK CON DIT ION is report e d to the hos t with a sense key o f ILLE GA L REQUE ST and additional sense of 2 600h (inv alid fi eld in par am eter list). The dr iv e scans the data in the Command Desc r i pti on Block fr om “ left ” ( bit 7) to “ ri ght” , and “ down ” (fr o m byte 0 to byte n ). It sets t h e f ield pointer s t o the f i r st bit of the f i r st bad f ield encounter ed. If the bad field is contained in a contiguous gr oup of fi xed f ields, the pointer s indicat e the f irst b it of the f irst f iel d in the gr oup , e ven th ough the er r or may be in a lat er fi eld in the gr oup . NO TE: With MODE SELE CT , the dri v e chec ks the integri t y of the w h o le p ar ameter list bef ore ac ting on any par ameters , so all th e mode par ameters need to be cor rect be f ore an y of them ar e implemented . Re se r v a t io n ch e ck Th is c hec ks t o s ee if t h e dr i v e ha s been r e se rv ed f o r u se b y a ho st , and if i t ha s, wh et he r t he ho s t is the same host that sent the command being ex e c uted. If the dri ve has be en r eser v ed fo r some other host then RE SERV A TI ON CONFLICT s tatus is repo r ted . See the RESERVE UNIT ( page 164) and RE LEASE U N IT (page 135) commands. Unit Attenti on chec k This ch e c k s if a UNI T A TTENT ION conditi on ex ists for the hos t which sent t h e comm and. If it does, the dr iv e r epo rts CHE CK CON DIT ION status w ith a sense ke y of UNIT A T TENTION . The r emaining sense data will be set accor ding to the un it atten tion condition which e xists . S ee Unit Attenti on Sens e in the d esc rip tio n of th e RE QUES T SENSE command on page 15 5.
Command descri ptor block Co mm ands—int rodu ction 35 C ommand d esc r ipto r bloc k A SCS I command descr iptor block (CDB) is a sequence of 6 , 10, 12 or 16 b ytes sent b y a host to a SC SI target w ith the bus in command phase . The CDB tells the dri ve what action should be pe r for me d. Th e fi n al by te is k n own as th e Control byt e . Ther e ar e a n u mber of fields in a CDB wh ich are common to all commands . T hes e are sho wn in the fo l l ow in g tab le. 7 6 5 4 3 2 1 0 0 Grou p Code Operation Code 1 Re s er v e d ( 0) 2 (MSB) Multi-B yte P ar ameter n − 1 (LSB) n V endor Unique (0) R eserved (0) N A CA(0) F lag (0 ) Li nk (0 ) Gr oup Co de and Oper ation Code T h e oper ation code uni quely i d entifi es the command. T he top three b its of the operati on code are kno wn as the grou p co de and these def i ne the length o f the command desc riptor block: Grou p 0 Grou p 1 Grou p 2 Grou p 3 Grou p 4 Grou p 5 Grou p 6 Grou p 7 Six -by te commands Te n - b y t e c o m m a n d s Te n - b y t e c o m m a n d s Six -by te commands Six teen-byte co mmands T welv e -b yte commands not supported not supported Rese rve d A r eserved fi eld should alw ays be set to z ero . T h e dr iv e chec ks r eserv ed f ields, and if one is no n - z ero then it will r eject th e command with CHE CK CO NDIT ION . Multi-B yte Pa r a m e t e r A multi -byte parame ter field in a comm and is “big-en dian ” , tha t is, bit 7 of th e first b yte of this fi eld is the most sig n if icant . Control T he contr ol fi eld is main l y conce r ned w ith the use of link ed comm ands. T hese ar e not supported b y the L T O SC SI Command Set, s o a CHE C K CO NDI T ION w ill be generated if this f ield is set to an y thing other than z er o. Ve n d o r - U n i q u e T his f ield is ig nore d by the f irm war e NACA 0 The Nor mal A CA f lag is 0, in dicati ng that it is not s upported . Flag 0 Link 0 L inked commands are not supported.
Command s—introducti on 36
Co mm ands 37 4C o m m a n d s This chap ter descr ibes a ll S CSI command s. P arts of the chapter ar e b ased on sectio n s of the S CSI sp ecificat ion ( see page 11 ). F or general notes on the comm and descr iptions, see Chapte r 3 .
Comm ands 38 ER A SE 19h The ERA SE command is used to er ase data on tape fr om the cu rr ent logical position . The Long bit is used to dec ide whether the ‘ old’ data is ph ysi cally ov erwritten or not . E RA SE comm ands (short or long) to a dri ve containing a WORM cartr idge will not o verwr ite or eras e u s er dat a on tape . Pr e -e xec uti on chec ks: Co mma nd de s c r ipto r b loc k: CDB f ields: NO TE : Short er ase is onl y used to tr uncate data at the c u rr ent logical po sition. It cannot be used t o cr eate a “h ole ” in the ta pe into w hic h dat a can subseq uentl y be wr itten “in plac e” . This w ill merel y cause the d r iv e to str eamfail. The logical tape positi on is unaffected b y this command . A CHE CK C ONDI TI ON for Early W arn ing EO M (drive error c ode 2C98h) w i ll o nly b e gi ven if the tape is logicall y positioned pas t EO T immediatel y befor e the er ase . Erase Specific stat us : Illegal F ield Res er v a ti on Defer r ed Err or Unit A t ten ti on Media Access Media W rite Diagnostic S tatus 7 6 5 4 3 2 1 0 0 Operation Code (1 9h) 1 Reserved ( 0) Imm ed Long 2–4 Re se r ve d ( 0 ) 5 Contr ol Immed 0 T he dr i ve re ports statu s aft er th e comm and h a s com ple t ed . 1 T he dri v e re p orts st a tu s when it starts the command (after an y pre -e xec ution c hecks and pr erequisite unloa ds h a ve complet ed) . Lon g The L ong b i t contr ols the distance to be er ased. 0 T he curr ent position becomes the end of logical data. 1 End of Data is w ritten , follo wed by Data S et Separator s t o the end of the tape. Eve nt Status Key Addit ional Sense Th e er ase fa ils CHE CK CONDI TION HARD W ARE ERROR 5100h (eras e failur e) W OR M media: Er ase would r esult in user data being ov er- wri t te n. C HEC K CON D ITI ON DA TA PROTEC T 30 0 Ch ( WO R M m ed i um —o verwri te at tempted)
INQUIRY 12h Co mm ands 39 INQUIR Y 12h I NQUIR Y tells the dri v e to r etur n i nf orma tion about th e basi c opera ti ng par ameter s to the hos t. Th es e par amet er s cann ot be c hang ed . Th e dr iv e r etur ns In q uiry data t o t he ho st in a data -in phase . NO TE : Th is command is immu ne fr om most of the pr e -ex ecu ti o n c hecks that other commands must pa ss (for e x a mple, it can be ex ec uted while the u nit is res er ved f o r another hos t) . U nit atten tion and deferr ed err or conditions ar e pr eserv ed and re ported on subs equen t commands . Pr e -e xec uti on chec ks: Only the I llegal F ield Check is p erf ormed bef ore the comm and is ex ecuted. If the EVPD bit is cle a r , th e page code must be z er o, o therwise illega l request is r e ported . If the EVPD bit is set , the page code must be one of the support e d page codes for Inquiry data. Othe r w ise ille gal request is r epo rt ed. Co mma nd de s c r ipto r b loc k: CDB f ields: 7 6 5 4 3 2 1 0 0 Operation Code (1 2h) 1 LUN Reserved (0) EVPD 2 Pa g e C o d e 3 Alloc ation Leng th 4 5 Contr ol LUN This field is ign or ed. EVPD Enable Vi tal Produc t Data 0 1 Normal inquiry data i s r eturned. A page of vital pr oduct data is r eturned.
Comm ands 40 INQUIR Y data pages R eturned data: I NQUIR Y return s its standard dat a if the EVPD bit is zer o, or r etur ns a page of dat a as specif i ed by the P age Code f ield when EVPD is one . Standard Inquiry Data for mat (LUN0) This is the data r etur ned by the dr iv e in r esponse to an Inquiry command with its EVP D bit s et to z er o . T h e dat a a lso depe nd s on t he v alue of th e L UN fi e ld i n t he I nqui ry CDB , t he L UN v alu e i n th e identify message a nd the configura t ion of the dri ve. Note that the data belo w is for the standar d distributi on firm war e . Pa g e C o d e If the EVP D bit is ze ro the P age Code fi eld must be z er o. If the EVP D bit is set to 1, the dr iv e retur n s the Inq u iry page in this P ag e C ode field: 00h 80h 83 h 86 h C0h C1h C2h C3h C4h C5h C6h Supported Vital Pr oduct P ages page Unit Ser ial Number page Device Id entifica tion pag e Extended Inquiry Da ta p age Firmw a re Revision Lev e ls pag e H ard wa re Revi s io n L eve ls p ag e PC A Revi sio n Level s p ag e Mechanism Re visi on Lev els page Head Assembly Re visio n Le vels page A CI page AR M Firm war e Rev i sion Le v e ls p ag e Allocation Length The max imum amount of data (in byt es ) that should be r eturned. If mor e than this is av ailable, the amoun t r eturned is trun cated to allocation length . No er ror is r eported. 7 6 5 4 3 2 1 0 0 P eripheral Quali fier (000b) P eripheral Dev ic e T ype (01h) 1 RMB (1) Reserved ( 0) 2 Ve r s i o n N u m b e r ( 5 ) 3 Obso lete Obsolet e NA CA(0) HiSup(0) R esponse Dat a F ormat (2 ) 4 Ad d it io n a l Le ng th (5 Bh ) 5 S CCS (0) A CC (0) TP GS (01b) 3P C (0) R ese r ved (0) Pro tect(0) 6 BQue(0) EncSvr(0) VS(0) MultiP(0) MChngr(0) Obso lete Adr16 7 Obsolete WBus16 S ync Link ed(0) Obsolete Cmd Que(1 ) VS(0 ) 8 (MSB) V endor Identif ica ti o n (“ HP “) 15 (LSB) 16 (MSB) Pr oduct Identif ica tion 31 (LSB)
INQUIRY 12h Co mm ands 41 The St anda r d In q u iry Data is based on the S C S I 3 standar d for S tandard Inquiry Data. F o r th e L U N to which the drive is atta ched, the P er i ph er a l Qu ali fier field i s set to 00 0b, the P er i pher al D e vi c e T ype fi eld is set t o 0 1h , the R emov able Med ium (RMB) flag is set to 1 and the De v ice-typ e modif i er is s et to 0. Inquir y Data fields 32 (MSB) P ro d u ct Revi s io n Le ve l 35 (LSB) 36 Res e r ved (0 ) 39 40 WO R M Ver s io n WO R M 41 Res e r ved (0 ) 42 43 (MS B) OBDR str ing (“ $DR-10 ”) or Reserved (0 ) if not supp orted 48 (LSB) 49 Res e r ved (0 ) 55 56 R ese rved (0) Clo cking QAS (0) IUS 57 Res e r ved (0 ) 58 (MS B) V ers io n Des criptor 1 59 (LSB) - - - - - - - - 72 (MSB) V ers io n Des criptor 8 73 (LSB) 74 (MSB) Res e r ved (0 ) 95 (LSB) P eriphe ral Qualifi er 000b 011b Th er e is a de vice on the logical unit selec ted, so the L UN field in th e identi f y mes sage was 0. The L U N f ield in the id en tif y me ss age has spec ified an unsupported logical unit . T h is means any L UN other than 0. P eriphe ral Dev i c e T ype 01h 05h 1Fh Sequ ential A ccess De v ice CD Dev ice (r eported when in OBDR mode) No Dev ice (the P eripher al Q ualif ier will be 011b in this case) RMB 1 The R emovable Mediu m b i t is one , indi cating that the tape can be re move d. Device - T ype Mo di f ier 0 This is a six -bit user def i ned code , set to z ero . V ersion Number 5 The d ri ve co mplies wit h the SPC-3 st anda r d. 7 6 5 4 3 2 1 0
Comm ands 42 NACA 0 The Normal A CA flag is 0, indicating that it is not supported. HiSu p 0 The Hier arc h i cal Suppor t flag is 0, indicating that the hier arc hical addres si ng model is not supported. Respon se Data F ormat 2 The Inquiry D ata f ormat complies w ith the SCS I-3 standard . Additi onal L engt h The length in by tes of the length of the r est of th e Inq uir y data . SCCS 0 No stor a ge ar r ay contr oller component is embedd ed in the dri ve . ACC 0 No Access Contr ols Coordi n ator may be addr essed through this L UN. TPG S 01 b Ta r g e t Po r t G r o u p S u p p o r t . On ly implicit as ymmetric logical un it access is supported. 3PC 0 Third-P art y Cop y comma nds ar e not supported. Protec t 0 P r otecti on inf ormation is not supported. BQue Basi c Queuing f lag 0 The f lag is z er o for S CSI dr ive s, wi th CmdQue = 1. 1 The flag is 1 fo r F i br e Channe l dr iv es, with CmdQue = 0. EncS vr 0 The drive do es not supp or t En closu r e Ser v ic es c omma nd. VS 0 V e nd or-Sp ecifi c fie ld —n ot curren tly use d MultiP 1 The dr ive s has multiple ports. MChn gr 0 The dri ve is not embedded within or attached to a medium transport elem ent. Adr16 1 16 -Bit Addre s ses are supported . The flag is only v alid for para llel S CSI. WBus16 1 Wide Bus 16 is supported. T he flag is onl y valid for par a lle l S CS I. Syn c 1 S ynchr onous data tr an sfe r is suppor ted . The flag is onl y valid f or parallel SCSI . Linke d 0 The dr ive does not support linked commands. CmdQue 0 For FC d r iv es, w ith B Que = 1. 1 F or SC SI dri ves, w ith BQue = 0 . Ve n d o r Identification A vendor -specif ic, 8-byte s tring of AS CII char a c ter s, left jus t if ied an d padded with space c h ar acters “ HP ”. Produc t Id e ntifi ca tion A left-ju stif ied , ven d o r-s peci fi c , 16-byt e str ing f ield of A S CII char act ers w ith space char acter padding on th e r ight. T he string consists o f two parts: • F irst half ( b ytes 16–2 3) : “ Ultrium ” • Second half (b ytes 2 4–31): “ <generation> -<inte rface t ype> ” The f ollow ing str ings hav e been def ined: Gen 1 SC SI dr i ve: “ Ultrium 1- SCSI ” All Gen 2 dri ves : “ Ul trium 2-SCSI” All Gen 3 dri ves : “ Ultrium 3-SCSI ”
INQUIRY 12h Co mm ands 43 V endor Spec i f ic data ma y be sent after t he Pr oduct R ev ision Le vel . Produc t Revisio n L evel A vendor -spec if ic stri n g of f o ur AS CII character s: “ CNNV ”: • C is the codename ( G for a Ge n 3 SCSI dr ive, L for G en 3 F C d rive) • NN ar e t w o digits that indic a te the build of the var iant. • V is an A S CII char act er r epres enting the OEM var iant o f the code. “ D ” is the standard distr ibution vari ant. WO R M Ver s i o n The v ersion of WORM supported . WO R M 1 The dr ive su ppo r ts the L T O WORM spec ificati on. OBD R strin g “ $DR- 10 ” if the dr ive supports T ape Disaster Reco very . Clockin g 0F o r F C d r i v e s . 3 For S CSI dr iv es, indicating that the dri ve supports both S T and D T tr an sf ers. QAS 0 The dri ve does not support Qu i ck Arbitr ation and Selecti on. IUS Info rmati on Units 0 Not suppor ted f or all d r iv es other tha n S CS I . 1 Sup por ted for S C SI driv es. V ers i on Desc riptor Thes e fields can be u sed to identify up to e ight standar ds to whi ch the dr i ve conforms. T he values supported ar e lis ted below . F or S CS I dr i v es, it is r ecommended that the first v ersion des cr iptor is used f or the SC SI ar chitectur e standard , f ollow ed by the ph ysical standar d, if any , follo wed by the S CSI pr otocol , follow ed b y the appr opriate S PC ver sion, f o llow ed by the dev ice t y pe com mand set , follo wed by the se c ondary command set , if any . The f ollow ing ar e the SC SI v er sion desc riptor s: Va l u e St andar d 1 2 3 4 5–8 005Ch 0B56h 0300h 03 7Dh 0000h SAM 2 AN SI IN C ITS.366. 20 03 SPI4 AN SI INCI TS .3 6 2:200 2 SP C3 SSC 2 A N SI I N C I TS not used The f ollow ing ar e the FC versi on desc riptors: Va l u e St andar d 1 2 3 4 5 6 7 8 0054h 0917h 0D7Ch 0D A0h 131Bh 13 20h 02 77h 02 1 Ch S AM- 2 T10/115 7 -D re v 2 3 F CP- 2 A NSI N CITS.332:1 999 FC-AL - 2 ANSI NCIT S. 3 50:200x FC-F S (no version c lai med) FC- T ape T1 1/1315 r evis i on 1 .17 FC-FL A (no versi on c lai med) SPC- 2 A N S I NC I TS .3 51:2001 S SC ANS I NCIT S .3 35:2000
Comm ands 44 V ital Pr oduc t D ata pages The fo l lo wing tab l es descr i be the vital pr oduct data pages. Th ese pages are r eturned by the INQU IR Y command when the EVPD b it is set and the appr opri ate P age Code is set in the Command Descr iptor Block . T hey contain v endor -spec ific pr oduct info rmation . Suppor ted V ital Pr o duct D a ta P ages page This is the data r etur ned by the dr iv e in r esponse to an Inquiry command with its EVP D bit s et to one and its P age Code f ield set to 0. This page contains a list of all the VPD page-codes supported b y the dr iv e. 7 6 5 4 3 2 1 0 0 P er ipher al Qualif ie r (0) P er ipher al Dev ice T y pe (1) 1 Pa g e C o d e ( 0 0 h ) 2 Re s er v e d ( 0) 3 Pa g e L e n g t h ( XX h) 4 Suppor ted P ages Code ( 00h) 5 Unit Se ri al Numbe r page (8 0h) 6 De vi ce Ide ntif ication page(8 3h) 7 Extended Inquiry D ata page ( 86h) 8 Seq u ential Dev ice Acce ss Ca pabiliti es page (B0h) 9 F i rmwa re Revi s io n Le ve l s pa g e ( C 0h ) 10 H ard wa re R evi s io n Lev el s p ag e ( C 1h ) 11 PCA Revis ion Level s pa ge (C2 h) 12 M e c ha n is m Revi s io n Le ve l s pa g e ( C 3h ) 13 He ad As s emb ly Revi s ion Level s p a ge (C 4 h) 14 Aut o -Changer In terface R evisi o n L evels page (C 5h) 15 AR M F i rmware Revi s ion Levels pa ge ( C6 h)
INQUIRY 12h Co mm ands 45 Unit S er ial Number page The Unit Seri al Number page contain s a single value which is a 10 -b yte ASCII string . T he str ing, with the V endor Identif ication a nd Pr oduct Identif icati on f ields in the standar d Inquir y dat a, un iquely iden tifies the d riv e. De v ice Identif icat ion page The De vice Identifi cation page contains informati on t hat identif ies the tape dr iv e uniq u el y . Fo r SC SI, a comb in a tion of the V endor ID and Ser ial Number is r eturned. F or F ibr e Channel , the P ort and Dev ice N ames ar e r etur n ed as we l l Identif ication Descr iptors ar e construct e d as f o llows: 7 6 5 4 3 2 1 0 0 P er ipher al Qualif ie r (0) P er ipher al Dev ice T y pe (1) 1 Pa g e C o d e ( 8 0 h ) 2 Re s er v e d ( 0) 3 Pa g e L e n g t h ( 0 A h ) 4 (MSB) Se r ia l Numb e r 13 (LSB) 7 6 5 4 3 2 1 0 0 P er ipher al Qualif ie r (0) P er ipher al Dev ice T y pe (1) 1 Pa g e C o d e ( 8 3 h ) 2 Re s er v e d ( 0) 3 Pa g e L e n g t h ( n − 3) 4 (MSB) Iden tificati on Desc rip tors n (LSB) 7 6 5 4 3 2 1 0 0 Pro t ocol I dentifier C o de Set 1 P I V Rs v d (0) Ass oc iat i on Identif ier T ype 2 Re s er v e d ( 0) 3 Identifier Length ( n − 3) 4 (MSB) Identifier n (LSB) Protocol Id entif ier 0h Fibr e Chann el 1h P arallel S CS I Code S et 1 T h e Identif ication Des cr i ptor is a b i nary fi eld. 2 T h e Identifi cation Desc r iptor contains only A SCII data .
Comm ands 46 Def in ed identif iers The f ollo wing identif ie rs will be r eturned in the gi ven or der . What P ort Name is retur ned depends on whic h port the Inquiry is sent to . Logical Unit Identifier Po r t N a m e ( F C o n l y ) PIV 1 T h e Pr otocol Identifi er field is v alid. Th i s is se t for an Assoc iation value of 1. Associatio n 0 The Identifi er field is assoc iated w ith the a ddr essed logical unit . 1 T he Identifi er field is as soci ated w ith the port that r ecei ved the r equest . 2 T h e Identifi er field is as sociated w ith the SC SI targe t de v ice that contains the addre ssed logical unit . 3 R eserved Id entif ier T ype 1 V endor ID follo wed by the pr oduct identif ication fie l d fr om the standard inquiry data and the seri al num ber f ield fr om the S er ial Number Inquir y page. 3 All de vic e s w ith a F i br e Channel interface support an Identifier type 3 . In this case the Identif i cation Desc riptor is the F ibr e Channel 64 -bit N a me Iden tif ier . 7 6 5 4 3 2 1 0 0 P r otocol Id enti fier (0) Code Set ( 1) 1 PI V (0) Rs vd (0) Ass oci ation (0) I dentif ier T ype (3) 2 Re s er v e d ( 0) 3 Identif i er Length (8 ) 4 (MSB) S SC De vi c e Logical Unit Name (IEEE Regis ter e d Name) 11 (LSB) 7 6 5 4 3 2 1 0 0 P r otocol Id enti fier (0) Code Set ( 1) 1 PI V (1) Rs vd (0) Ass oci ation (1) I dentif ier T ype (3) 2 Re s er v e d ( 0) 3 Identif i er Length (8 ) 4 (MSB) Po r t N a m e (IEEE R egister ed Name) 11 (LSB)
INQUIRY 12h Co mm ands 47 Po r t I d e n t i f i e r ( F C o n l y ) The P ort Identifi er w ill be set t o 1 if the addr essed port is port A, and s et t o 2 if the addr essed port is P ort B. Ta r g e t N a m e Ta r g e t N a m e 7 6 5 4 3 2 1 0 0 P r otocol Id enti fier (0) Code Set ( 1) 1 PI V (1) Rsv d (0) Assoc iati o n (1) Iden tifi e r T ype ( 4) 2 Re s er v e d ( 0) 3 Identifier Length ( 4) 4 (MSB) P ort Ident i f ier 7 (LSB) 7 6 5 4 3 2 1 0 0 Pro to c ol Identifier Code Set ( 1) 1 PI V (1) Rs vd (0) Ass oci ation (2) Identif ie r T ype ( 3) 2 Re s er v e d ( 0) 3 Identif i er Length (8 ) 4 (MSB) Device Nam e (IEEE R egister ed Name) 11 (LSB) 7 6 5 4 3 2 1 0 0 Pro t ocol I dentifier Code Set (2) 1 PIV (1 ) R svd (0 ) Asso ci at ion (2) Identifier T ype ( 1) 2 Re s er v e d ( 0) 3 Identif ie r Length (34) 4 (MSB) Ve n d o r I D 11 (LSB) 12 (M S B) Pr oduct Iden tifi cation 27 (LSB) 28 (MSB) Se r ia l Numb e r 37 (LSB)
Comm ands 48 Extended INQUIR Y Data VP D page This page pr ov ides an applicati o n client with a means of obtaining infor mation about the dr iv e. Sequential Ac c ess De vi ce C apabilities page This page pr ov ides the applicati o n clie nt with a mean s of det ermining w h i ch featur es ar e supported b y the D e vice S erver . 7 6 5 4 3 2 1 0 0 P er ipher al Qual ifie r (0) P er ipher al De vi ce T ype (1) 1 P age Co de (86h) 2 Res er ved ( 0) 3 Pa g e L e n g t h ( 3 C h ) 4 R e serve d (0) R T O (0) GRD_ CH K(0 ) APP_CHK( 0) REF_CHK(0 ) 5 R eserv e d (0) HEADS UP(0) ORDS UP(0) SI M S UP(1) 6 NV_SUP(0) V _SUP (0) 7 Res e r ved (0 ) 63 SIM SUP 1 Th e driv e supports th e Simple T ask at tr i but e. 7 6 5 4 3 2 1 0 0 P er ipher al Qual ifie r (0) P eri pher al De vice T y pe (1) 1 P age Co de (B 0h) 2 Res er ve d ( 0) 3 P age Le ngth ( 4h) Res e r ved (0 ) WOR M Re s er v e d ( 0) WO R M 1 T he Dev ice Server supports W rite Once Read Many (W ORM) operation .
INQUIRY 12h Co mm ands 49 Dr iv e Component R ev ision Le vels pages The Driv e Compon ent Re vi sion Levels pa ges co ntain d etails of the revisions of each of the m ajor sub a ss embli e s o f the dr i v e. F or an y gi v en pr oduct , if the s e pa g e s ar e the same the n t h e dr i v e has been built with th e s ame com p o nents an d w ith the same manuf acturing pr ocess. Each entry is a null-terminated AS CI I str i ng . 7 6 5 4 3 2 1 0 0 P er ipher al Qual ifie r (0) P eri pher al De vice T y pe (1) 1 Pa g e C o d e 2 Res er ve d ( 0) 3 P age Le ngth (5Ch) 4 (MSB) Component ( “ CCCC CCCCCCC C ”) 29 (LSB) 30 (M S B) Ve r s i o n ( “ RRR . VVV ”) 48 (LSB) 49 (M S B) Dat e (“ YYYY/ MM/DD hh:mm ”) 72 (LSB) 73 (MSB) Va r i a n t ( “ XXXX XXXXXXX X ”) 95 (LSB) Pa g e C o d e Pa g e C o d e Component Name C0h - Firm w are C1 h - Ha rdwa re C2h - PCA C3h - Mecha nism C4 h - He ad Ass embl y C5h - A C I C6h - ARM “ Firmwa re ” “ Hardwa re ” “ PCA ” “ Mecha nism ” “ Head Ass y” “ ACI ” “ IO Firmwa re ” Component A 12 -char a c ter entry to identify the component that the r ev ision is fo r . Ve r s i o n A 7 - c h ar acter v er sion code with a three- digit major r ev ision number , a per iod and a th r ee - digit mi nor version number . Date The date of the v ersio n. Va r i a n t An identif ier indicating w h at versio n of the product th is is.
Comm ands 50 LO A D / U N LOA D 1 B h The LOA D / UNL O AD c ommand allow s t he host to spec ify that a tape c artr idge pr esent in the driv e is either made r eady for data tr ansfer (“loaded”) or disabled f or data transfer (if Pr ev ent Media R emo val is s et). It can also ca use t he cartr idge t o be e ject ed fr om the d ri v e (“ unloa ded”). Pr e -e xec uti on chec ks: If an unl oad is to be perfo rmed, the dr iv e checks if t he tape is c urr ently being loaded . I f it is, CHE CK C ONDIT ION is r e po rted w ith a sense ke y of NO T READ Y and additional sense of 0401h (becom ing r eady). If a load is t o be perf ormed , th e dr iv e checks to ensur e that a tape cartr idge is pr esent . If not , it rep o r ts CHECK CON DIT ION w ith a s ense k ey o f NO T READ Y and addi ti onal sense of 3A00h (mediu m not present). If the media is cur ren t l y b eing unloaded or ejected , it r e ports CHE CK CONDITION wit h s en se key of NO T READ Y and additional sense of 0400h ( cau se not r ep ort able) . Co mma nd de s c r ipto r b loc k: CDB f ields: Illegal F ield Res er v ation Defe rred Er ror Unit Attention Diagno sti c Status Media Infor mation 7 6 5 4 3 2 1 0 0 Operation Code (1Bh) 1 Res e r ved (0 ) Im me d 2 Re s er v e d ( 0) 3 Re s er v e d ( 0) 4 R e s erved (0) Ho l d EO T (0 ) Re T en Load 5 Contr ol Immed 0 The dr iv e reports status after the comman d has completed . 1 The dr ive r eport s st a tus w hen it starts the command (a fter an y pre -e xecuti on c hecks and pr er equisite unloads h a ve completed). Hold 0 A normal load/un load w ill be performed . 1 A load will caus e the car tr idge to be pulled in and seated in the dri ve , but the tape will not be threaded . An unload w ill cause the ta p e to b e unthr eaded , b ut the cartr idge w i ll not be e jected . In Hold position , the Cartridg e Memor y is acces si ble . Re Ten This field is ignored. Loa d 0 T he d r ive perf orms an unload operati on. 1 The dr iv e performs a load oper atio n.
LOAD/UNLOAD 1Bh Co mm ands 51 Load/ Unlo ad sp ecif ic stat us: F ollowing a succ essful LOA D command , CHE CK C ONDIT ION is posted to all initiators o ther than the initiato r of the LOA D com man d . The sen se ke y is set to UNIT A T TENTION , w i th additi onal se n se of 2 800h (not r eady to r eady tr ansiti on). Ther e is an e x cepti on to t his: if a load occu rs when t he tape is alread y loaded, no UNIT A T TENTION sense is generat ed. Once UNIT A TTENTION is cl eared , unsoli ci ted positi onal sense is set . The sens e ke y will be NO SENSE wit h additional sense of 0004h (BO T detected). If an un f ormatted ta p e is inserted , the d r iv e loads it and it behav es as if it is a bla nk tape . If a cartridg e with no Cartri dge M emory or a failed Cartr idge Memory is loade d , CHECK CONDITION i s re t u rne d wi th a s en s e ke y o f MEDIU M ERROR , wit h additional sense of 5 20 0h (cartri dge fa u lt). L o ading a car tr idg e The dr i v e loads a tape automati call y when it is inserted , w it hout an y host inter action. If the load is successful , me dia access commands ar e per m issible (see the Me dia Ac cess check). If the tape is alread y loaded w hen a Load r equest is rece iv e d , the tape is positioned at the beginn ing of the ta pe (as though a REWIND had been sent). Unlike a “ f ull” lo ad , UNIT A T TENT ION with additio na l sense of 2 8 00h (not r eady to r eady transition) is not g e ner ated for o ther hosts. If the tape is in the proc e ss o f being loaded when the Load r e qu est is recei ved , the dr iv e will wait fo r the load t o complete and, as su ming the load wa s suc cessf ul, tak e one of the f ollow ing actions: • If the L oad wa s issued b y the c urr ent h ost (that i s , a pr e v iou s immediat e -r eported load) and completed successfull y , GOOD status is r eported. N o further acti on is tak en. • If the Lo ad was issued b y some other host ( or was an aut oload) and completed successf ully , CHE CK CO NDIT ION is reported , w ith a s ense k e y of UNIT A TTENTION and additi onal sense o f 2 800h (not ready to r e ad y transiti on) . • If the L o ad was issued b y the c urr ent host and f ailed, CHECK CON DITION is r eported, s ince a def err ed err or condition w ill e xist for the c urr ent host . • If the L oad was issued b y some o ther host and f ailed, the load w ill be r e -at tempted on behalf of the c urr ent host . Unlo ad ing a car tridge If an un l o ad is r equested and there is a tape pr esent in the dri ve (either loaded, loading or unloading) : 1. An y buffer ed data is w ritten to tape. 2. T he tape is re wound to the phy sical B OM (beginning of media) . 3. If medium r emov al is pr e vent ed, CHECK CON DITION is r epo rted w ith a se nse k ey o f ILLEG AL RE QUES T and additi onal s ense of 5 30 2h (medium r emo val pr ev ented) .
Comm ands 52 4. G OOD status is reported if the tape unloaded su ccessfull y . Otherwis e, ano ther unload oper ation is initiat ed on behalf of the host that issued the u n load reque st . F ollow ing an unload, an y medi a access commands will be re jected b y the Med ia A cc ess c heck. • If an unload r equest is r e ce iv ed while the tape is in the pr ocess of unloading (fo r e xam ple , as a r esult of pr essing the e ject button), it w ill be queued until the u nload is complete . • If an unload req u e st is r ecei ved w hile ther e is no tape pre sent, or if a tape is pr esent but not loaded and medium r emov al is pr ev ented, GOOD statu s is re ported. It is possible to un load and ej e ct t h e cartr idge by pr essing the Ej e ct bu t ton on the f ront panel .
LOCATE 2Bh Co mm ands 53 LO C A T E 2 B h The LO C AT E co mma nd moves th e curr e nt lo gical p osi tion to the p osi tion sp ecified by th e command. T he ne w position is spec ifi ed by the off set fr om start of the media in terms o f blocks . The f irst block (that is , BO T) i s bloc k add r ess 0. Any unwr i tten data is wr it ten to tap e be f or e the com mand is executed. Pr e -e xec uti on chec ks: Comma n d descriptor block (1 0 -byte v ersion ): (16 -b yte v ersi on): CDB f ields: Illegal F ield Res er v ation Defer red Er ror Unit At tention Media Access Diag nostic Status 7 6 5 4 3 2 1 0 0 Operation Code (2Bh) 1 R ese rved (0) B T (0) C P (0) Immed 2 Re s er v e d ( 0) 3 (MSB) Block A ddre s s 6 (LSB) 7 Re s er v e d ( 0) 8 Pa r t i t i o n ( 0 ) 9 Contr ol 7 6 5 4 3 2 1 0 0 Op er at ion Code (92h) 1 Reserved (0 ) D est T y p e Rsvd ( 0 ) C P (0) Imme d 2 Res e r ved (0 ) BAM (0 ) 3 Pa r t i t i o n ( 0 ) 4 (MSB) Logical I dentifier 11 (LSB) 12 Re s er v e d ( 0) 14 15 Control BT Block addre ss T ype. T his f ield is not suppor ted and should alw ays be set to z er o indicatin g that the Block Addr ess fie ld repre s ents the count of a ll bloc ks a nd f i lemar k s betwee n th e beginning of the media and the curr ent logical positi on .
Comm ands 54 Locate specific status: CP Chang e P a rt ition. This f ield is not suppor ted and should be set to z er o. Immed 0 The dri ve only r eports status af t er the L ocate command h as complet ed. 1 The dr iv e r epor ts st atus when it s tar ts the command and continues w ith the positi oning in the back gro u nd . BA M 0 This f ield is not suppo r ted . Bloc k Address The Bloc k Addr ess spec ifie s the number of blocks and f ilemarks betw een BO M and the positio n to be located . P artit ion Not supported. Dest t ype 00b Specifies th at t he Logic al I denti fier field i s a l ogica l object ident ifier . 01b Specifies t hat t he Log ical Ident ifier fiel d is a log ical fi le ident ifier . Other value s ar e not supported . Log ica l Identifier The spec ifi c block on tape to locate. It can be a gener i c block, ei th er a r ecord or a file m ar k (Dest T ype = 00b) or a spec i f ic filemark on t ape (Dest T ype = 01b) . Eve nt Status Key Addi tional S ense EO D enc ounter ed CHECK CONDN BL ANK CHECK 0005h (E OD enco unter ed) . E O M encountered CHECK C O NDN MED IUM ERRO R 000 2h (EO T encount ered). E OM bit set . F ailed to read data— media err or or non -f a tal dr ive er r or CHECK CONDN HARDW AR E E RROR 3B00h ( sequential p ositionin g err or) E arly W arn in g EOM enc ounte red E a rly warn in g end of m edi um i nform atio n is not re por te d for Lo cate co mma nds Data for ma t cor r upt CHECK CONDN MED IUM ERROR 3001h (can ’t read media, unkno w n format)
LOG SELECT 4Ch Co mm ands 55 LO G S E L E C T 4 C h The Log Select com mand cau ses log data on the dr ive t o be r eset to its default v alue or t o be set t o an initiator spec ifi c v alue. Pr e -e xec uti on chec ks: Co mma nd de s c r ipto r b loc k: CDB f ields: The follo w ing ar e v a lid combinations of values for the PCR (P ar am eter Code Reset), P a r am eter L ist Length and PC (P age Co ntrol) f ields: Othe r w ise CHE CK C ONDIT ION stat us is return ed , the sense key is s et to ILLEG AL RE QUES T wi th additional sense of 2 400h (In valid F iel d i n CDB) . Illegal F ield Res er v ation Defer red Er ror Un it A tte ntion 7 6 5 4 3 2 1 0 0 Oper ation Cod e (4Ch) 1 Res erved (0) P CR S P (0) 2 PC Re s er v e d ( 0 ) 3 Re s er v e d ( 0) 6 7 (MSB) Pa r a m e t e r L i s t L e n g t h 8 (LSB) 9 Contr ol PCR P ara meter Li st Len gth PC Result 1 0 01b or 11b All the logs o n the dr iv e that can be res et are r eset to the ir default v alu es . 1 0 00b or 10b No action is tak en an d GOOD statu s is r eturned . 0 >0 01b or 11b Data is sent f rom the host and is w r itten to the indicated logs, pr ov ided those logs ar e writable . PCR 0 P aramet er C ode Reset . The functi on pe rf ormed is defined b y the P C f ield. SP 0 The Sav e P age (SP) flag is not suppor ted and must be set to 0.
Comm ands 56 PC The Pa g e C o n t r o l field de fines the type of paramete r values to be selected: 00b or 10b N o o p era t io n i s pe r fo rm ed . Th e P ara m et er Li st Le ng t h m u st be zero. If i t i s n ot, ch eck cond ition i n va lid field in CDB is set. 01b T he dri ve w ill clear logs as specif ied by the par ameter dat a. 11b T he dri ve w ill clear all of its in ternal logs. Pa r a m e t e r List Len g th 0 No data is to be transfer red . This is not consider ed an er ror . >0 Spec ifi es how man y b ytes of p ar ameter data ar e to be s ent. T he data tr ansferr ed w ill consist o f ze ro or mor e 4 -byte log page headers w ith the page length in thos e headers set to ze r o . F or each log page header r ecei v ed, the dr iv e clears the assoc iated log.
LOG SENSE 4Dh Co mm ands 57 LO G S E N S E 4 D h LO G S E N S E allo w s the h ost t o r ead the d ri v e ’s log s. A si ngle l og is r etur ned wit h eac h in voca tio n of LO G S E N S E . Pr e -e xec uti on chec ks: The P age Code must matc h one of the su pp ort e d log page codes. If it does not , then CHECK CONDITION statu s is r eported. Sense data w ill b e as des cribed in the Ille gal F ield Checks. Co mma nd de s c r ipto r b loc k: CDB f ields: Illegal F ield Def err ed Er ror Unit Attenti on 7 6 5 4 3 2 1 0 0 Operation Code ( 4D h) 1 Rese rv e d (0) PP C (0) S P (0) 2 PC Page C o de 3 Re s er v e d ( 0) 4 5 Pa r a m e t e r Po i n t e r 6 7 (MSB) Allo cation Le ngth 8 (LSB) 9 Contr ol PC Th e Pa g e C o n t r o l field def ines the t ype o f log par am e te r to be r eturned: 00b Cu rren t Thresh old V alues—any par ameters in the log that ar e counters cont a in the max imum value that the y can count to . 01b Cu rren t Cumulati v e V alues—an y paramete rs in the log that ar e counter s cont a in their c urr ent counts . NO TE: Counts ar e r ese t to their defau lt cum ulativ e v alues (see belo w) follo wing a po wer -on, r eset o r bus dev ice r eset . Media r elated counts are also r eset f ollow ing a load. 10b Def au lt T hreshold V alues—same as the Curr ent T h r eshold V alues 11b Def a ult C umulativ e V alues—any par am eter s in th e log that ar e c o u nter s contain the initial value s of those counters (set at pow er -on, r eset , bus de vic e rese t and, in th e cas e of m edia l ogs , loa d ). The P C fi eld has no eff ect on the data r eturned w hen the select ed log contains e vent or tr ace codes rather than co u nts . Pa g e C o d e The Pa g e C o d e field iden tifies w hic h log pag e is being req uested by the host . See page 5 9 fo r the list o f v a li d page codes .
Comm ands 58 L og page f or mat All log pages e xcept P age 0 consist of a page code header follo wed b y a number of par ameters. The page header has the follo wing for mat: The P age Code specif ies whi c h L og page is being r eturned . T he P age Length indicates the nu mber of additional b ytes in the parameter s. Fo r t h e Log Se le ct command only , the f our b ytes sho wn abov e are sent f or each log page to be clea r e d . The P ag e Leng th field s hould be set to zero . Fo r t h e Log Sen se command one or more par ameters is sent . See the actua l page desc riptions abov e f or mor e info rmati on. Note that all the parameter s for a particular page must be sent . E ac h pa r a mete r has the fol low i ng f o r m at: Pa r a m e t e r Po i n t e r 0 All par ameters ar e r et urned. n P ar ameter data of a s pecif ied log page is r eturned in ascending or der beginning f rom this code . If this code is lar ger than the lar gest par ameter i n the page , the dri ve w ill retur n CHE CK C ONDIT ION wi t h additi onal sens e o f 2 400h (Inv alid F ield In CDB) . Allocation Length The A llocation Length f ield spec ifie s the maximu m n u m be r of b ytes of data that should be r eturned to the host . The dr iv e will r eturn the e ntire log or A llocati on Length b ytes, whiche v e r is t he le sser . 7 6 5 4 3 2 1 0 0 Pa g e C o d e 1 Re s er v e d ( 0) 2 (MSB) Pa g e L e n g t h 3 (LSB) 7 6 5 4 3 2 1 0 0 (MSB) Pa r a m e t e r C o d e 1 (LSB) 2 DU (0) DS (1) T S D (0 ) ET C (0) TMC(0) Rsv d (0) LP (0) 3 Pa r a m e t e r L e n g t h ( n − 3) 4 (MSB) P arame ter By tes n (LSB) Pa r a m e t e r C o d e A tw o -byte v a lue th a t uni quely iden tifies the par am eter with in the log. DU, TSD , ET C, TMC and LP 0 Mu st be ze ro . Fo r a f u ll desc riptio n of these fi elds ref er to the SCS I- 2 standard . DS 1 Mu s t be 1, indicating that dri ve w ill maintain the sav ing o f data itself . N ote that the host m u st s e t the SP bi t to 1 in a LO G S E L E C T comman d , oth erw ise a CHECK CON DIT ION w i ll r esult .
LOG SENSE 4Dh Co mm ands 59 Su pp or ted L og P ages page This S CSI log may be r ecov er ed using a Lo g Sens e com mand wit h the PC f ield set to an ything and the P age Code f i eld set to 00h. T he page lists the page co des of other logs su pported b y the dr i ve . It ca n neithe r be r eset nor wr itten. The page h as the follo wing form at : Pa r a m e t e r L e n g t h Th e length of P a r ameter B ytes in b ytes. Pa r a m e t e r B y t e s The actual par ameter data. 7 6 5 4 3 2 1 0 0 Reserved ( 0 ) P ag e Code (00h) 1 Re s er v e d ( 0) 2 (MSB) Pa g e L e n g t h ( 0 D h ) 3 (LSB) 4 Su pported P ages (00 h) 5 W rite Err or Counters (0 2h) 6 R ead Err or Coun t e r s (03h) 7 Sequential Access De vice Log (0Ch) 8 Te m p e r a t u r e ( 0 D h ) 9 D TD Statu s ( 11h) 10 Pr otocol Specifi c (18 h) 11 T apeAlert L o g (2Eh ) 12 Ta p e U s a g e L o g ( 3 0 h ) 13 T ape Cap ac it y Log (31h) 14 Data Com pre ssion Log (3 2 h) 15 P erformance Log (34h) 16 Dev ice S tatus Log (3Eh)
Comm ands 60 W r ite Err or C ounte rs log page The W rite Err or Cou n ter s log is page 0 2h . T he P age Len gth is 38h. Ther e are sev en p ar ameter s, 0 thr o ugh 6. All fi eld s are f our b y tes long . All these counters ar e updated when the data set is phy sically wr it ten. T hey r elate to the cur rent tape and ar e clear ed when the tape is unloaded. This dat a can be r eset to z er o , but not wr itten . R ead Err or C ounter s log page The R ead Err or Counter s log is page 03h. T he P age L ength is 38h. Ther e are se ven par ameters , 0 thr o ugh 6. All fi eld s are f our b y tes long . All these counte rs ar e updated when the data set is phy si cally read . The y relat e to the c urr ent tape and are clear ed w h en the tape is un loaded. This dat a can be r eset to z er o , but not wr itten . Pa r m . Defi nition Descr iption 0 Err ors cor recte d w ithout subst a nti a l delay T otal number o f e rror s corr e cted wi th o u t dela y 1 Err ors cor recte d w ith possible dela ys T otal number of e rror s corr e cted using r etrie s 2 T otal Sum of parameters 3 and 6 3 T otal err ors corr ected The num b er of dat a set s th at needed to be r ew ritten 4 T otal times er ror cor rec tion proces sed Number of CC Q sets r ewr itten 5 T otal da ta se ts proce ssed The total num ber of dat a set s wr itte n 6 T ota l un correcte d errors The numb er of data sets th at c oul d not be w ri tte n Pa r m . Definiti on Des c riptio n 0 Err ors corr ected w ithout subst an ti a l de lay T otal number of er ror s co rrec ted withou t d ela y 1 Err ors corr ected w ith possible dela ys T otal number of er ror s corr ected using r etri es 2 T otal Sum of parameter s 3 a nd 6 3 T otal err ors cor rect ed The number of data sets that w ere cor rect e d after a re a d re t r y 4 T otal times e rror co rr ection pr ocessed N umbe r of times C2 corr ectio n is i nvok ed 5 T otal by tes proce ssed The tot a l num ber of d at a s ets r ead 6 T otal uncorr ected err ors The number of data sets that could not be r ead after re tri es
LOG SENSE 4Dh Co mm ands 61 Sequentia l A ccess Dev ice log page The Sequential Access De v ice L og page is page 0Ch . T he P age Length is 40h . F i v e par ameters ar e supported , all eigh t bytes lo n g . With the e xce ption of 0100h (cleaning r equired), the y are updated when a data set is logically wr itten and clea r ed at the start of tape load; the values o f ea ch pa r a meter r el ate to the current tape. A non- zer o value of par a met er 0100 H (cl e aning r equir e d) r elates to t he dri ve It indica tes that a condition requir ing c leaning has been detected and a subsequent cleaning cycle has not y et been completed. T he parameter is updat e d as ynchr onou s l y . I t persists ac ro ss hard r esets and p ow er cycles, and is clear e d when a cleani ng cyc le is p erformed. Pa r m . De scrip tion 0001h The number of data bytes r ecei ved fr om application cli e nts dur i ng wr ite command operations. T h is is the number of bytes tr ansferr ed ov er S C SI, bef ore com p r essio n. 0002h T h e number of data b y t es w ritten to the media as a r esult of wri te c ommand oper ations, not counting the ov er head from E C C and formatting. T his is the number of data byt es transfe rr ed to media, after compr ession . 0003h T he number of data b yte s r ead fr om the media dur ing r ead command operati ons, not c ounting the o ve rhead fr om E C C and for matting. T his is the number of data b ytes t ransfer r ed fr om media wi t h c o m p re s s io n. 0004h The number of data b y tes tr ansferr ed to the initiator or initiat ors d ur ing read command oper ations. T his is th e n u mber of bytes tr ansferr ed ov er S CSI, after decompr essi on. 0100h Clea ning r e quir e d, a non -volatil e cleani ng indica tion.
Comm ands 62 T emper atur e log page The T emperatur e Log page is page 0D h . The follo wing par ameters ar e supported: D TD Statu s log page The Data T ransf er D e vice (D TD) Statu s L o g page is page 11h. The f ollowing par ameters ar e supported: Pa r m . De scrip tion 0h The c urr ent temper atur e of the dri ve in ºC (b inar y v alue) . If the temp eratur e is less than 0, 0 is r eported. If the t emper atu re sens or is not fu nctioning pr op er ly , FFh is r eported. 1h The m ax imum te mperatur e in ºC (bin ar y value) a t w hic h the dri ve can oper ate contin uously w ithout deg r ading r eliability and operation . This parameter is not supported so FFh is r e tur n ed . 7 6 5 4 3 2 1 0 0 Pa g e C o d e ( 0 D h ) 1 Re s er v e d ( 0) 2 (MSB) Pa g e L e n g t h ( 0 C h ) 3 (LSB) 4 (MSB) P a rameter Code (0000h) 5 (LSB) 6 DU (0) DS (1) TSD (0) ET C (0) TMC (0) LBIN (1) LP (1) 7 P ara m eter Length (2 h) 8 Re s er v e d ( 0) 9 T em pe r atu r e (ºC) 10 (M S B) P a rameter Code (0001h) 11 (LSB) 12 DU (0) DS (1) TSD (0 ) E T C (0) TMC (0) LBIN (1) L P (1) 13 P aramet er Length ( 2h) 14 Re s er v e d ( 0) 15 R eference T emp erature (ºC) Pa r m . Des c riptio n 0000h V ery High F requency data 0001h V ery Hi gh Fr equency polling dela y 0100h–01FFh D TD Primar y P ort status
LOG SENSE 4Dh Co mm ands 63 Ve r y H i g h F r e q u e n c y D a t a ( V H F ) 7 6 5 4 3 2 1 0 0 (MSB) P a rameter Code (0000h) 1 (LSB) 2 DU (0) DS (1) TSD (0) ET C (0) TMC (0) LBIN (1) LP (1) 3 P aramete r Length ( 4h) 4 Rs vd (0) HIU MA cc Cmp r W rtP CRqst CRqr d DInit 5 InXtm Rsvd (0) R AA MPrsnt Rsvd (0) MStd MThr d D Acc 6 T ape Moti o n St atus 7 Res e r ved (0 ) RRqst Intf C T AFC HIU Hos t In iti a ted Unload bit MAc c If set, the MAM is acc essi ble. MPrs nt must be set as w ell. Cmpr Compr ess bit . If set , the D T D c urre ntly has data compres s ion enabled . W rtP W rite Pr otec t bit . If se t , the media in the D T D is ph y sicall y w r ite -prot ec ted . Only v ali d if MPrs nt is set. CRqst Clean Reques ted bit CRqrd Cleaning Requir ed. If set , hea d c leaning mus t be perfor med bef ore normal data oper ations are pos sible . This tak es pri ority ov er CRqst , and both ma y be set at the same t ime. DInit D TD Ini ti a li z ed. When set , the data retur n ed b y the VH F par am eter data is v alid. InXtn In T ransiti o n. If 0, the D TD is in the state r eflec ted by the r est of b yte 5 and is not attempting to leav e this state . This bit m ust be 0 if RRqs t is set. RAA R obotic Access Allo wed . If set, r obotic media access to the D TD is allow ed. MPrs nt Media Pr esent bit (h ardw are sensor) MStd Medi a Seated. If set , the tape is mechanically seat ed, that it phy sical loading is comple te . Otherwi se t h e ta p e is s till threadi n g . MThrd Medi a Threaded DAc c Data Accessible . If set , the D T D has f inished process i ng a load oper ation. T he bit is clear ed to 0 at the beginning of the ne xt unload oper ation. Ta p e M o t i o n Status 00h 01h 02 h 03h 04h 05h 06h 07 h 08h 09h–7Fh 80h–FFh No tape motion Cleaning oper ation in p r ogre ss T ape being loaded T ape being unloaded T ape in motion Reading W ritin g Lo ca t in g Rewin d in g Rese r ved Ve n d o r u n i q u e
Comm ands 64 V er y Hi gh F r equen cy P olling Del ay The VHF P olling Dela y is 16 milliseconds. D TD Pr imary P ort St atus P aral l el SCSI RRqst R ecov er y R e quest ed. Set to 1 as long as a r ecov er y proc edu r e is available . In these circ umsta nces, InXtn mus t be 0. IntfC Interf ace Changed . If set , the interf ace statu s has changed since the las t time this page w as retr iev ed. It is cle a r ed to 0 when th e p age is r etri ev ed f or the initiator . TA F C If set , a t least one T apeAlert Flag had Changed since the last time the T apeAlert flags we re re tr ieve d. 7 6 5 4 3 2 1 0 0 (MSB) P a rameter Code (0001h) 1 (LSB) 2 DU (0) DS (1) TSD (0) ET C (0) TMC (0) LBIN (1) L P (1) 3 P ara m eter Length (2 h) 4 (MSB) VHF P olling Delay 5 (LSB) 7 6 5 4 3 2 1 0 0 (MSB) P a rameter Code (0101h) 1 (LSB) 2 DU (0) DS (1) TSD (0) ET C (0) TMC (0) LBIN (1) L P (1) 3 P aramete r Length ( 4h) 4 Res e r ved (0 ) C u rrent Bus Mo d e Rsvd (0) 5 Re s er v e d ( 0) 6 Most R ecent T ransf er P er iod F actor 7 Cu rren t SC SI Ad d res s
LOG SENSE 4Dh Co mm ands 65 Fibr e Chann el Po r t 0 Po r t 1 T apeAler t log page The T apeAlert log page is page 2 Eh. Ther e a r e 64 p ar am eter s numb er ed fr om 1 thro ugh 64. Only par a mete rs 1 thr ough 1 8 , 20 throu gh 2 3, 29 thr ough 3 9 a nd 5 5 hav e def in iti ons for ta pe dri ves witho ut attached loaders. T he rem a ining par a meter s are alw ay s ze ro . NO TE : P arameter s 2 4–2 8, 5 0–5 4, 5 6–5 8 hav e r ecently been added t o the list and ma y or ma y not be supported. The P arameter C o n t r ol Byte v alu e fo r e ac h par a meter is 40h . All parame ters are o ne byte l ong. Each pa rameter i s eith er zero to ind icate the c orr esp ond ing condition has not occur red or one to i ndicate that the corr esponding c ondition has occur red. All log paramet ers are c leare d w h en the log is r ead. T he Log is also cleared at po wer on , on a r eset 7 6 5 4 3 2 1 0 0 (MSB) P a rameter Code (0101h) 1 (LSB) 2 DU (0) DS (1) TSD (0) ET C (0) TMC (0) LBIN (1) LP (1) 3 Pa r a m e t e r L e n g t h ( 8 h ) 4 Crr T op C u r rent S p eed L C Conflict Signal PIC 5 (MSB) Cu rre nt N _ P o r _I D 7 (LSB) 8–10 Re s e r ve d ( 0 ) 11 R s v d Cu rre nt F C_ A L Lo op I D 7 6 5 4 3 2 1 0 0 (MSB) P a r ameter Code ( 0102h) 1 (LSB) 2 DU (0) DS (1) TSD (0) ET C (0) TMC (0) LBIN (1) LP (1) 3 Pa r a m e t e r L e n g t h ( 8 h ) 4 Crr T op C u r rent S p eed L C Conflict Signal PIC 5 (MSB) Cu rre nt N _ P o r _I D 7 (LSB) 8–10 Re s e r ve d ( 0 ) 11 R s v d Cu rre nt F C_ A L Lo op I D
Comm ands 66 co n dit i on a n d b y a Log Sele ct command. Specif i c fl ags ma y be clear e d when corr ecti v e acti on has r emov e d the condition that cau sed the flag t o be set . The support e d par am et ers are as f ollow s: Pa r a m e t e r Des cripti on Ty p e 1 Rea d Warn in g Wa r n i n g 2 W rit e W arn ing Wa r n i n g 3 Ha rd E rro r Wa r n i n g 4 Media Critical 5 Rea d Fai l ure Critical 6 Wr i t e F a i l u r e Critical 7 Media L i f e Wa r n i n g 8 Not Data Grade Wa r n i n g 9 Wr i t e - P r o t e c t Critical 10 No R e mov al Information 11 Clea ning M edia Infor mation 12 Unsuppor ted F ormat Information 13 Reco verable Snapped T ape Cr itical 14 Unreco ver able Snapped T ape Criti cal 15 Memo ry in C artr id ge F ail ure Wa r n i n g 16 F orced E ject Critical 17 Re ad - O nly Form at Wa r n i n g 18 T ape Direct or y Cor rupted Wa r n i n g 19 Nearing Media Life Information 20 Cl e an N ow Critical 21 Cl e an P e rio dic Wa r n i n g 22 Exp ired Cleaning Media Critical 23 Invalid Cl eanin g Car tridge Critical 24 R etensi on Re ques ted Wa r n i n g 25 Dual-port Interface Err or Wa r n i n g 26 C oo l i n g Fa n Fa i l u re Wa r n i n g 27 Po w e r S u p p l y F a i l u r e Wa r n i n g 28 Po w e r C o n s u m p t i o n Wa r n i n g 29 Dri ve M ainte nance Wa r n i n g 30 H a rdwa re A Critical 31 H a rdwa re B Critical 32 In terfa ce Wa r n i n g 33 Ej e c t Me d i a Critical 34 Download F au lt Wa r n i n g 35 Driv e Hum idit y Wa r n i n g
LOG SENSE 4Dh Co mm ands 67 T ape Usage log page The T ap e U sage log page code is 30h. Ther e ar e nine pa r ameters. T hese ar e all r ead directly fr om the L T O-CM T ape Usage Log. This data r elates to the cur rent tape and can be ne it her r eset nor wr i tten . 36 Dr iv e T emper atu r e Wa r n i n g 37 Drive V olt age Wa r n i n g 38 Predictiv e Failure Critical 39 Diagnosti cs R e quir ed Wa r n i n g 50 Los t Sta ti s ti cs Wa r n i n g 51 T ape Direct or y Inv alid at Unload Wa r n i n g 52 T ape S ys tem Area W rite F ailure Critical 53 T ape S ys tem Area Read F ailure Critical 54 No Start of Data Critical 55 Loading Failu r e Critical 56 Unr ecove rable load F ailure Critical 57 Auto mat ion I nterfa ce F ai lure Critical 58 Fi rm wa re Fa i l u re Wa r n i n g 5 9 W ORM medium — integr it y c heck f ailed Wa r n i n g 60 W ORM m edium — o verwr ite attempted Wa r n i n g Pa r a m e t e r Des cripti on Ty p e Pa r m . De scrip tion Length Up dated Wh en 1 Thr ead Count 4 T ape threaded 2 T otal Data Se ts W ritten 8 Data set ph y si cally wr itten 3 T otal W rite R etri es 4 Data set ph y si cally wr itten 4 Tot al Un re co vere d W ri t e E rro rs 2 Data set phy sicall y w ritten 5 T otal Suspended W rites 2 Data set phy sically w ritten 6 T ot al Fatal Suspen ded W rit es 2 Data set ph ysic a ll y wr it t en 7 T ot al D ata Sets Rea d 8 Data set ph y si cally wr itten 8 Tota l Re ad Ret ries 4 Data set ph y si cally wr itten 9 Tot al Un re co vere d Re ad E rror s 2 Data set ph y si cally wr itten
Comm ands 68 T ape Capac it y log page The T ape Capacity log page code is 31h. The P age Length is 20h. T h er e are f our parameter s, 1 thr ough 4. P aramet ers 2 and 4 ar e not supported and ar e r etur n ed as z er o . All par ameters a r e 4 b yte s lon g . All paramet e r s are in megab ytes (1, 048,5 7 6 b yt e s) and assume no com pr ession . This data r elates to the cur ren t tape and can be neither r eset nor wr it te n. The support e d par am et ers are as f ollow s: Data C ompr essi on log page The Data Co mpr ession log page code is 3 2h and the p age l e ngth is 4Ch . Ther e ar e t en par a met ers , 0 thr ough 9 . P a r ameter s 0 and 1 ar e t w o byt es long . P ar ameter s 2 thr ough 9 ar e eac h 4 byt es long . The supported f ields ar e list ed below . P ar amete rs 2 t hr ough 9 occ ur as pairs that r epr esent a lar ge number of b y tes tr ansferr ed. The firs t four -byte parameter repr e sents the numb er of whole me gabytes trans f err ed, round ed to the nea rest me gabyte. The s eco nd four - byte p aramete r r epresen ts the differ enc e between this number of megab ytes and the actual number of byte s. T h is ma y be a sign ed qu anti ty . This dat a r el a tes to the curr ent ta p e and is clear ed at the start of tape load. It ma y not be written . Pa r m . Desc ription Length Update d Wh e n 1 Main P ar tition R e maining Capacity 4 Data s et phy sically w ritten 2 Altern a te P arti ti on R emaining Capac ity 4 n/a 3 Main P ar tition Maximum Capac it y 4 If Set C apacity succeed s 4 Al ter nate P artiti on Ma xi m um Ca pac ity 4 n/a Pa r a m e t e r Desc riptio n Length Updated Whe n 0 Rea d co m pre ss io n ra t io X 10 0 2 D ata set log ically r ead 1 W ri te c om pre s sio n ra ti o X 1 00 2 D ata set log icall y wr it ten 2 Megab ytes tr ansfer red to hos t 4 D ata set log ically r ead 3 B ytes tr ansferr ed to hos t 4 D ata set logi cally r ead 4 Mega b y tes read from ta pe 4 D ata s et logically r ead 5 B y tes r ea d from tape 4 D ata set logi cally r ead 6 Megab ytes tr ansfer r ed fr om host 4 D ata se t logically w ritten 7 B ytes tr ansferr ed fr om host 4 Data se t logica lly wr itten 8 Mega b y tes wr i tte n to tape 4 D ata se t logically w ritten 9 B y tes w ri tte n to t ape 4 Data se t logically w ritten
LOG SENSE 4Dh Co mm ands 69 P erf ormance Data log page The P erf or m ance Data log page is 34h. This log is inte nde d to r eport data of int er est to a user/ applicati on on how effi cientl y the d r iv e is being used. The P a r ameter C ontr ol B yte is 60h for all the par ameter s. All the parameter s r elate to the cu rr ent tape. T hey ar e a ll clear ed at the star t of t ape load, e x c ept P arameter 4 , which is neve r clea r ed. All data will be r eset when the log page is r eset . T he par a meter s ar e as f ollow s. Pa r a m e t e r Desc riptio n Length Upda ted 0 Repositi o ns per 100 MB 2 After each 100 MB has been ph ysicall y written 1 Data rate into bu ff er 2 After each data set ha s b een logic a ll y w ritten 2 Maximum data rate 2 After each data set has been logic a ll y w ritten 3 Curr ent data r ate 2 After eac h data s et ha s b een logic a ll y w ritten 4 Nativ e data rate 2 Fixe d Reposit i ons per 1 00 MB Number of tape dir ection c hanges per 100 MB wr itten. T he higher the figur e the mor e we ar oc cur s. Data r ate i nto buff er Rate at w hi c h data is enter ing the buf f er ( after data com p ressi on ), giv en in units of 100 KB/s . This is the true ‘tape ’ data rate . Maximum d ata rate Giv en the compr essib ili t y of the data that has bee n s e nt to th e driv e , this is the max i mum d ata r ate that could be achie ved , g i ven in units of 100 KB/s . T he fig u r e is calculated bas ed on the compr essibility of each dataset r eceiv ed, and datasets that hav e a compr essibility gr eater than the c ompr ession bandw idth of the dri v e will be ‘ capp ed’ . Cur r ent data r ate Rate at whi ch data is being accepted by the d r ive befo re com pr essi on , gi ve n in u nits of 100 KB/s. Nati v e data r a te T he nativ e rate (that is , withou t u sing compr ession ) at w hich th e dr iv e wr i tes data to tape, giv en in unit s of 10 0 K B/s: Drive Va l u e Nativ e Data Ra te Gene r at ion 1 ful l-hei ght Generation 1 half -height Generation 2 Generation 3 96 h 4Bh 12Ch 23 0 h 15 M B/s 7. 5 M B / s 30 M B/s 80 M B/s NO TE: The se figur es are f or nativ e media types and will vary when earlier for mat medi a is l oaded
Comm ands 70 De v ice S tatus log page The De vice S tatus log page is 3Eh, w ith a page length o f 28h. P CB = P ar ameter Con t r ol B yte. Dev ice Status Bits The parameter ha s the follo wing fo rmat: Pa r a m e t e r Desc riptio n Length Upda ted PC B 0 Dev ice T ype 4 Obso lete. Se t to all z eros . 40h 1 Dev ice Status Bits 4 Used to pr ov ide remot e status of selected monit or ing poin ts on the dr iv e. S ee belo w fo r the form a t. 40h 2 T otal Number of L oads 4 Number of loads/unloads ov er the life of the dev ice. 60 h 3 Cleaning Cartri dge Stat us 4 Acc umul ated number of uses of th e last clea n in g cartridge . Updated af ter the tape is loaded and a cleaning e vent attemp ted . If ther e is no value , FFFFFFFFh is r etur n ed. 40h 4 Produc t N u mber 4 Unique number that id e ntifie s the pr oduct 40h 7 6 5 4 3 2 1 0 0 Res er ve d ( 0 ) C RQ C R ECT 1 Reserved (0 ) T em p er atu r e D e v ice Status 2 Reser ved ( 0) Med ium Status 5 Re s er v e d ( 0) CRQ Clea ning Requ ir e d flag CR Cl eaning Requested flag ECT Ex hau sted Cleani ng T ape flag T emperature 00b 01b 10b 11b F ield not supported Te m p e r a t u r e O K T emperatur e degraded T empe ratur e failed Device Status The o ver all status o f the dr iv e: 00b 01b 10b 11b F ield not supported De vice s tatus OK Dev ice status degr a ded De vice s tatus fa iled Me d i um S ta t u s The o v erall s tatus of the tape car tr idge: 00b 01b 10b 11b F ield not supported Medium status OK Medium status degraded Medium status failed
MODE SELECT 15h/55h Co mm ands 71 M ODE SELE CT 15h/5 5h M ODE SELECT is us ed to send confi gur ation data to the dr i v e. Bot h 6 -b yte and 10 -b yte v er sions of the comma n d ar e supported. The Mode Sele ct par am et er list is tr ansfer r ed fr om the host to the dr i ve during the data-ou t phase . It contains z er o or mor e bytes o f infor mation . If any info rmatio n is sent , it should consist of a Mo de P arameter Header follo wed b y zer o or mor e mode select pages. Int ernal parameter s are set accor d ing to the v alues spe c ifi ed in the header and pages. F ields in the parameter list ar e checked and the opera t i on will ter m inate if an err or is found . NO TE : Th e dr iv e does not c heck that the par ameter list is corr ect bef ore modify ing inter nal par ameters . The lis t is check ed as the oper ation pr oceeds, so if there is an err o r in the list , all par ameter s up to that poin t w ill be set to the ir ne w v alues , but the par ameter in er r o r and later par amet er s w ill not be updated. Pr e -e xec uti on chec ks: NO TE : F ailure t o flush w rite-behind data w ill be reported as a De ferr ed Err or . The par am eter list length mu st be such that o n l y “ entir e” parts of a parameter list ar e sent. It is illegal to send a partial mode parameter header , a partial mo de bloc k desc r i pt or or a partial mode page. If this happens, t h en CHE CK CON DIT ION sta tus is re ported . The sense k ey is se t to ILLEG AL RE QUES T . The additional sense is set to 1A00h (p ar ameter list le ngth er ro r). Extra c he c k s ma y be perfo rmed on the data , see the desc riptions f or the parameter list f or mor e details. Co mma nd de s cr iptor bloc k 6-B yt e v ers io n Illegal F ield Reserv ation Def err ed Err o r Unit Atte ntion 7 6 5 4 3 2 1 0 0 Operation Code (1 5h) 1 Reserved (0 ) PF Reserved (0) S P (0) 2 Re s er v e d ( 0) 3 Re s er v e d ( 0) 4 Pa r a m e t e r L i s t L e n g t h 5 Contr ol
Comm ands 72 10 -b yte version CDB f ields: Specific s tatus : F ollow ing a succ es sful Mode Select command, Unit Attention statu s is posted to a ll initiato r s other than the initiator o f the Mode Selec t command . The sense k e y is set to UNI T A TTEN TI ON . Additional sense is set to 2A01h (mode p ar ameters changed) . Mode pa r ameter pages Mode data is r ecov e r ed fr om t he dr iv e by means o f a MODE SE NSE comman d. A fter mod if ic ation , it is r etu r ned to th e dr ive v ia a MODE SELE CT command. In r e al-life , many hosts do not u se MODE SENSE and r etu r n whatev er MOD E SEL ECT data suits them into the dri ve . 7 6 5 4 3 2 1 0 0 Operation Code (5 5h) 1 Reserved (0 ) PF Reserved (0) S P (0) 2 (MSB) Res e r ved (0 ) 6 (LSB) 7 (MSB) Pa r a m e t e r L i s t L e n g t h 8 (LSB) 9 Contr ol PF Pa g e F o r m a t 0T h e MODE SELECT parameter data is not SC SI- 2 mode page co mpatible . On ly the paramete r h eader and block desc riptor may be sent . 1 The paramet er da ta is S CSI- 2 mode - page compatible. SP Save P ages 0 This bit is not supported and must be z er o. Pa r a m e t e r L i s t Length 0 N o data i s tr ansf er re d. >0 Th e length in byte s of the MODE SELECT par ameter list to be trans ferr ed.
MODE SELECT 15h/55h Co mm ands 73 Mode pa ge r epr es ent ati on Certain con venti ons a r e used in the follow ing M ode P arameter pages in or der to descr ibe the natur e o f th e p ar amete r s. Mo st par amet e r s ar e giv e n b y na me , f o ll o w ed b y a n umb er in br ack e ts . The br ack ets have the f o llo wing mean ings: Mod e da ta f or mat Mode data consi sts o f a 4 -b yte h eader , optionall y follo wed b y block descr iptor and Mode P arameter pages: Mode par ameter page s HP Ultrium dri ves support t h e f ollowing pages: • 01h “Read- W r ite Er ror R ecov ery mode page ” on page 7 6 • 0 2h “Disconnect-Reconnec t page ” on page 7 8 • 0Ah “Contr ol mode page ” on page 7 9 • 0Fh “Data Co mpr ession log page” on page 6 8 • 10h “D ev ice Co nf igur ati o n page ” on pa ge 81 • 11h “Medium P ar titi ons mode page” o n pag e 8 3 Square brac kets [ ] Squar e br ack ets indi cate that the paramet er may be modif ied. T he numbe r insi de the br acke ts is the default v alue for the f ield—in other w ords, the po we r-up or r eset val u e. • M ODE SELEC T ma y modify this valu e by sending the pag e w ith a new v alue in the f ield. • M ODE SENSE (c urre nt values) w ill re turn the c urre nt value of the par ameter . • M ODE SENSE (defa ult values) w ill re tu r n the value in br acke ts [ ]. • M ODE SENSE (chan g ea ble v alues) w i ll r eturn a va lue of all o n e s . Round brackets ( ) R ound brac kets indicate that the par a met er is fi xed. T he n u mber inside the brac kets is the f ix ed v alue for the f ield. • M ODE SELEC T mu st set the param eter to this value , otherw ise CHE CK CO ND ITION wi ll be r eported with a sense k e y of IL LE G AL REQUE S T . • M ODE SENSE (defa ult values) w ill re tu rn the fi xed value . • M ODE SENSE (chan g ea ble v alues) w i ll r eturn a va lue of all z eros . 7 6 5 4 3 2 1 0 1 (MSB) Mo de P arameter He ader 3 (LSB) 4 (MSB) Mo de Bl ock Descriptor 11 (LSB) 12 (M S B) Mode P ara mete r P ages n (LSB)
Comm ands 74 • 18h (FC dr iv es o nly) 18h (S CSI dr i ve s onl y) “SC SI L UN Contr ol mode page” on page 84 • 19h (FC dr i ve s onl y) 19h (SC SI driv es only) “S CSI P ort Contr ol Mode page ” on page 8 7 • 1Ch “Inf ormatio n E xcepti ons mode page ” on page 91 • 3Ch “Dev ice T ime M ode P age” on page 9 2 • 3Fh OBDR FW var ian ts only: “CD-R O M Emulati on/Disaster R ecov ery mode page ” o n page 9 4 • Re turn all pages (page 3Fh) — f or MOD E S ENSE only Mode par ameter h eader The Mode P a r ameter header must al way s be sent at t he start of M ode Select data . It is alw ay s r eturned at the start of Mode Sense data . 6-b yt e he a der The 6- b yte M ode P aramete r header has the fo l lo wing f o r mat: 10 -b y te header The 10 -b y te Mode P a r am et er he ader has the f ollowing fo rmat: 7 6 5 4 3 2 1 0 0 Mod e Data Length 1 Medium T ype [ 0 0h or 01 h if W ORM medi a is lo aded or 8 0h if in CD -ROM m ode] 2 WP Buffe red Mode [001 b] Spe ed (0) 3 Bloc k De sc r i p to r Len gt h 7 6 5 4 3 2 1 0 0 (MSB) Mode Data Le ng th 1 (LSB) 2 Medium T ype [ 0 0h or 01 h if W ORM medi a is lo aded or 8 0h if in CD -ROM m ode] 3 WP Buffe red Mode [001 b] Spe ed (0) 4 Res e r ved (0 ) 5 6 (MSB) Block Des crip tor Length 7 (LSB)
MODE SELECT 15h/55h Co mm ands 75 Header fields Mod e D ata Len gth MODE SELECT : Mode Data Length fi eld must be z ero . MODE SENSE: Mode D ata L ength field is set to the number of b ytes of data av ailable to r eturn e xc luding itself (in other wo r ds , the number of actual b ytes av ailable is mode data length 1 f or 6 - b yte MO DE S ENSE or 2 for 10 -byte MODE SENSE ). NO TE: The ac tual amount r eturned ma y be truncated to the allocation length for th e c om man d. Me dium T ype 00h T he usual medium type w hen the dri ve is i n normal tape dr iv e mode. 01h W O RM media is loaded 80h The tape dr ive is in CD-R OM emulati on mode for OBDR. WP W rit e Protec t. Ig nor ed for MODE SELECT . 0M ODE SENSE : The tape is w rite- enabled 1M ODE SENSE : The tape is w rite- pr otected Buf f ered Mode 0 The dri ve w ill not r eport GOOD st atus on Wr i t e and Wr i t e F i l e m a r k s commands until all data (blocks and f ilemarks) has been succ essfull y wr itten to tape . 1 T he dr i v e w i ll r epo rt GOOD st atus for Wr i t e and Wr i t e F i l e m a r k s commands as soon as all the data or marks spec ified in the command hav e been transfer red to the data buffer . Data for multiple commands from differ ent initiators may be buff ered . This is the default v alu e . NO TE: It is str ongly r ecommended that this fi e ld is s et to 1, other w ise ther e will be signifi c ant perfo rmance penalties. A method of flushing the buffer t o tape w ithout changing logical position is a vailable with the Wr i t e F i l e m a r k s command . 2 T he dr i v e w i ll r epo rt GOOD st atus for Wr i t e and Wr i t e F i l e m a r k s commands as soon as all the data or marks spec ified in the command hav e been transfer red to the data buffer and all buffered data f rom differ ent initiators has been successfull y wri t ten to the tape . Spee d 0 The Speed f ield is not used and sh ou ld b e z er o. Block Descriptor Leng th Only the v alues 0 and 8 are valid. A ny v alue other than 0 or 8 , CHECK CO NDITION sta tus i s r ep orted . See the P arameter L ist c heck for de tails o f the sense data gene rated . 0 No block descr iptor is being transf erred . 8 The Mode P ar ameter header must be follo wed b y th e 8-b yte block descr iptor desc ribed in the next section .
Comm ands 76 Mode blo c k descr iptor The fo rmat of the Mode P ar ameter block desc ripto r is as f ollows : Mod e P arame ter block de sc rip tor fields: Re a d -W ri t e E rro r Re c ove r y m o d e p a g e The R ead- W rite Er ror R ecov er y mode page has the follo wing f ormat: Re a d-W ri t e Er ro r Re cove r y p a g e fi e l ds : 7 6 5 4 3 2 1 0 0 Den sit y Code 1 (MSB) Numbe r of Bloc ks (0) 3 (LSB) 4 Re s er v e d ( 0) 5 (MSB) Block Length [0 or 800h] 7 (LSB) Densit y Code Th is s pecif ies the f ormat of the medi a loaded in the dr iv e. Se e “ REP OR T DENS ITY SU P POR T 44h” on page 1 3 7 for details. Bloc k Lengt h This indicates the si z e of fi xed blocks f o r f i x ed mode Re ad and Wr i t e commands. It is also used in the dec isi on pr ocess on w hether to r eport an illegal length r ecor d on r eads. 00h The default v a lue w hen the driv e is in normal tape dri ve mode . 800h The tape dr ive is in CD-R OM emulation mode for OBDR. 7 6 5 4 3 2 1 0 0 PS (0) R svd (0) P age Code {0 1h } 1 Additiona l P age Le ngth {0Ah} 2 Re served (0 ) TB (0) Res (0) EER (1) PER [0] D TE (0) DCR (0) 3 Rea d Ret r y Cou nt 4–7 Rese r v e d ( 0) 8 Wr i t e R e t r y C o u n t 9–1 1 Res e r ved (0 ) TB Tr a n s f e r B l o c k 0 Alw ay s set to 0, meanin g that an unreco ver able data block will not be tr an sf erred t o the host . EER Enable E arl y Reco very 1 The dri ve should attempt err or corr ection befo r e performing re tries .
MODE SELECT 15h/55h Co mm ands 77 PER P ost Err or . Althoug h this bit is c h angeable , the driv e’s inter na l beha vior al way s corr esponds to P ER =0. 0 The d ri ve d oes not r e por t CHE CK C ONDIT ION fo r rec ove red e rror s. Th e D T E bit must al so be z ero. 1T h e d r i v e r e p o r t s CHECK C ONDIT ION fo r re c overe d e rro rs. DT E D isable T ransf er on Error 0 Alw a ys s et to 0, meaning that the dr iv e w ill not te rminate the tr ansfe r for er ror s r e co ver ed within the limits established by the re a d-wr ite err or parameter s. DCR Disable C orr ection 0 Alw ay s set to 0, meaning that the us e of err or corr ection codes f or err or r ecov er y is allo wed . Read Ret ry C oun t T he number of times the dri v e will attempt its re covery algorithm during a r e ad o pe ra ti on b efo re rep or t i n g a n un re co vera b le e rror. 0 Th e driv e wi l l n ot u se i ts rec ove r y a lg ori t hm d u ri ng rea d op e rat i on s. 15h The dr ive will attempt 21 retr ies. W rite Retry Count Th e number of times the dri ve will attem pt its reco very algor ith m dur ing a wr ite o pe ra ti on b efo re rep or t i n g a n un re co vera b le e rror. 0 Th e driv e wi l l n ot u se i ts rec ove r y a lg ori t hm d u ri ng rea d op e rat i on s. 0Ah The v alue for all Ultri u m dr iv es, giv ing 10 re tr ies .
Comm ands 78 Di scon nect - R e con ne ct p age SC S I d riv e s Th e Discon nec t-R econnect page h as the f oll ow ing f or mat f or S CSI dr iv es: Disco nnect-Reconnec t page f ields: NO TE : If the host does not gr ant disco nnec t pr iv ilege in its IDEN TIF Y message these par amet er s be come meaningless . The dri ve w i ll s ta y connected on the bus f or the dur ation of an oper ation or un til the host sends a m id-oper ation IDENT IF Y gran ting disconnect pr iv ilege . 7 6 5 4 3 2 1 0 0 PS (0) R svd (0) P age Code {02h} 1 A ddition al P age Length {0 Eh} 2 Buf f er Full R atio (0) 3 Buffer Em pt y R atio (0) 4 (MSB) Bus I nacti vity Lim it (0) 5 (LS B) 6 (MSB) Disconnect Time L imit [0] 7 (LS B) 8 (MSB) Co nnec t Tim e L imit (0) 9 (LS B) 10 (M SB) Ma x im um B ur st Si z e [0] 11 (LS B) 12 R ese rved (0) D TDC (0) 13–15 Re ser ve d ( 0) Buffe r Full R atio 0 Buffer management is controlled b y the dri ve, s o thi s should alw ay s be ze ro . Connect Time Limit 0 B uffer management is contr olled by the dri ve , so this should alwa ys be z er o. Bus In activ ity Limit 0 This paramete r is not supported and should be z ero . Disconnec t Time Limit 0 This par ameter is not suppor ted and should be z ero . Connect Time Limit 0 This parameter is not supported and should be z ero . Maximum Burst Size >0 The max imum am ount of data that w i ll be tr ansferr ed during a data- in or dat a -out ph ase bef or e disco nnecting . Th is fie ld is in un its of 512 by tes. T he maximu m burst si z e that the dr iv e s upports is 12 7 (7Fh) blocks of 512 b ytes, that is, 64 KB les s 51 2 b ytes. 0 The dr ive m ay send bursts of an y si ze . This is the defa u lt v alue. DT D C 0 The Data T r an sf er Disconnect Contr ol field is not supported and should be ze ro.
MODE SELECT 15h/55h Co mm ands 79 Co n t rol m o d e pa g e The Contr ol Mo de page is defined as f ollows: C ontr ol mode page fi elds: Da ta Compr ession Ch ar acter istic s pag e The Data Com pressi on Chara cteristi c s Mode page is defined as f ollow s : 7 6 5 4 3 2 1 0 0 PS (0) R s vd (0 ) P age Code {0Ah} 1 Pa g e L e n g t h { 0 A h } 2 T S T (0) R e s e rv ed (0) GL TSD(0) RE CL (0) 3 Queue Algo rith m Modif ier (0) Rsvd (0) QEr r (0) DQue (0) 4 Rsvd (0) R A C [0] Re served (0 ) S WP (0) RAERP(0) U AAERP(0) EAERP(0) 5 Reserved (0) Autoload M od e 6 (MS B) R eady AER Ho l d-o ff P er i od (0) 7 (LSB) 8 (MS B) Busy Time out P e rio d (0 ) 9 (LSB) 10 (MSB ) Extend ed Self - T est Com p le ti on Timeou t (0) 11 (LSB) Aut oload Mo de 0 I f a cartri d ge is inserted, the dr iv e pulls i t in and thre a ds the tape . 1 or 2 When a cartridge is inserted , th e dr i ve pulls it in but does not thre ad the tape . In this positi on, onl y the Cartri dge Mem or y is acces sible. All othe r v alues are i nvalid . 7 6 5 4 3 2 1 0 0 Pa g e C o d e { 0 F h } 1 Pa g e L e n g t h { 0 E h } 2 DCE [1 ] DCC (1) R eser ved (0) 3 DDE (1) RED (0) Re served (0 ) 4 (MSB) Co mp res s io n Al g ori t hm ( 1 ) 7 (LSB) 8 (MSB) Decomp res sion A l gor ithm (1) 11 (LSB) 12 Re s er v e d ( 0) 15
Comm ands 80 Data C ompr ess ion Char act eri stics mode page f ields: DCE Data Compre ssion Enable. T h is b it contr ols whethe r the dr iv e uses com pres sion w h e n w r iting. T h e v alue has no meaning when r eadi ng , that i s , if the tape c ontains c om pre ss ed d a ta, d e co mp re ss io n wi l l o c cu r re g ard l es s o f th e se t ti n g of th i s bi t. The bi t is analogous to the Select Data Co mpre ssion Algor ithm fie ld on the De vi ce Conf igurati on mode page (see page 81). 0 1 Compr ession is disabled Compr essi on is enabled DCC Data Compr ession Capable Read onl y . It w ill have the v alue of 1, indicating that compr e s si on is supported. DDE Data Decompr essio n Enable Read onl y . It will hav e the value of 1, indicating that comp r essi on is ena bled. RED Report Ex c epti on on Decompre ssion Read onl y . It will ha v e the v alue 0, meaning that the dri v e re turns CHECK CONDITION status w h en it encounter s data th at cannot be decompr e ss ed. This applies w hen da t a has been compres sed with an unknown or unsupported compres sion algorithm. Compression Algori thm This indicates w hich compr ession algor i thm w ill be used to process data fr om the host w hen the DCE bit is set to on e . If the host s elects an algor ithm w hic h the dr i v e does not support, CHECK COND IT ION is return ed , with a se n se k ey of ILLEG AL REQUE S T . Only the def ault algorithm (ID 1) is supported . Decomp r ession Algori thm This w ill also alw ays be 1, indic a ting that the defa ult decompr ession algor ithm should be used .
MODE SELECT 15h/55h Co mm ands 81 De v i ce C onf igur ation page The dri ve supports the Dev ice Configur ation page, which has the f o llo wing format: Pr e -e xec uti on chec ks: The onl y check made when this page is sent in Mode Select data is P aramet er List . Chang eable parameters: 7 6 5 4 3 2 1 0 0 PS (0) Rsvd (0) P age Co de {10h} 1 Add itional P age Leng th {0Eh} 2 Rsvd(0) Obs olete CAF (0) Acti ve F orma t (0) 3 Active P ar tit ion (0) 4 W rit e B uff er F ull Ra tio (0) 5 Read Buf fer Empt y Ratio (0) 6 (MSB) W rite Delay T ime: 012 Ch 7 (LSB) 8 DBR (0 ) BIS (1) RSmk(0) A V C (0) SOC F (00) RBO(0 ) REW (0) 9 Gap Siz e (0) 10 E OD Def ined (000) EEG (1) SEW (1 ) R eserv e d (0) 11 (MSB) Bu ffer Size at Early W arn ing (0 ) 12 13 (LSB) 14 S el e ct D a ta C om pre s si on A lg ori t h m [1 ] 15 Res er ved (0) WT RE O IR R e w in d o n R e se t [0 ] ASOC W P (0) PE RSWP (0) PRMW P (0) Wri t e D e l ay Time T h is fi eld c an be modified b y a MODE SELE CT c ommand , an d this change w ill b e r ef lected in a subsequent MOD E SE NSE comm and. Ho w e v er the actual v alue used as the dela y ti me w ill remain a s z e r o , a nd so th e dat a in the buffe r w ill nev er be flushed. T he def ault value is ze ro . 0 The dri ve wi ll n e ver flush buffer ed data to tape as a re sult of a time- out . >0 The time in 100 ms incr ements that the dri ve sho uld wait w ith unw ritten data in the buffer and no activ ity on the inte rf a ce bef ore fo rc ing da ta to tape . The dela y is timed fr om the completi on of the prece d ing Wri t e or Wr i t e F i l e m a r k s comm a nd . Sele ct D ata Compression Algori thm 0 Use Scheme 2 of the L T O-DC algorith m ( pass-thr ough mode) . No te that clearing this parameter is not ad vised . 1 Use th e defaul t compress i on scheme. Thi s is th e defau lt .
Comm ands 82 Unchan geable parameters: WTR E W ORM T amper R ead Enable. C ontrols th e behavi or of the dri ve w hen r eading W ORM media if it appears that the integrity of the tape has been compromised by tamper ing. WTRE has no effect on r eads of normal (non-W ORM) media. 0 Def au lt: If no tampering has been detec t ed, data is re tu r n ed as n o rmal. If tamper ing has been detec ted, no data is r eturned in r esponse to a READ command or after the positio n o f tamper . CHECK C OND I TION is r eturned w ith sense k ey of Medium Err or and add itional sense of 3 00 Dh (W ORM medi um— integr ity check f ailed) . T apeA l ert flag 3Bh (me d ium er ro r —in tegrity chec k failed) is set . The Er r or Code f ield in the Er ror Usage pa ge w ill be filled w ith the A S C/Q of 300Dh. 1 D ata is r eturned r egardles s of whether tamper ing has been detec ted on the WO R M cartri dg e . T h e b it should onl y be s et as a las t resort w h er e data reco very ov er ri des conce rns abo ut W ORM int e gr ity . Rewind o n Rese t 00b A Logical Unit R eset does not alter the logic a l po sition. 01b A Logical Unit R eset w ill cause the ta p e to be r ew ound to BO T . 10b A Logical Unit R eset does not alter the logic a l po sition. 11b Reserved PS 0 CAF 0 The Change Ac tiv e F orm at f lag should be z ero since ch a nging f ormats is not supported. Ac tive Format 0 Changing formats is not supported. Activ e P artiti on 0 Multiple partitions ar e not supported. Wr it e Buf fer Full Rati o 0 Bu ffer man agement is done by the driv e. Re ad Buffer Empty Ratio 0 Bu ffer man agement is done by the driv e. DBR 0 The Data Buffer R ecov er y flag sh ou ld be c lear since this featur e is not supported. BIS 1 The Bloc k Identifi ers Supported flag should be set si nce block iden tifier s a r e supported. Rsmk 0 The R epo rt Set Mar k s flag should be clear since this featur e i s not su ppor ted . AVC 0 The A utomatic V elocity Con trol f lag should be clear since veloc ity contr ol is managed by the dri ve . SOC F 0 The Stop On Conse cuti ve F ilemar ks flag should be c lear since this featur e is not supported. RBO 0 The R ecov er Buff er Order f la g shou ld be c lear since this featur e is not supported . REW 0 The R ep o rt E arly W arning on re ad flag sh ou ld be c lear since this featur e is not supported. Gap Size 0 Ther e is no concept of inter -block gaps in the for mat. EOC D efine d 0
MODE SELECT 15h/55h Co mm ands 83 Medium P artitions mode page The Medium P artitions mode page has t h e f ollow ing for mat . Note that none of the f ields ar e changeable . The P artition Siz e will be patroni z e d . None of the fields in this mode page a r e changeable. EEG 0 The Enable E OD Gener ation flag should be set si nc e EOD gener ation is alw ay s enabled. SEW 1 The S ync hr o niz e at E arl y W ar ning fla g sh o uld be se t since this featur e is supported. Buffe r Siz e at Early W a rning 0 The Buffe r Si z e a t E arl y W arning field sh ould be z er o as this cannot be set . 7 6 5 4 3 2 1 0 0 Pa g e C o d e ( 1 1 h ) 1 Pa g e L e n g t h ( 0 8 h ) 2 Ma x im um A ddi tio na l P arti ti on s (0) 3 Additi onal P artitions De fin e d (0) 4 FDP (0 ) SDP (0) IDP (0) PS UM (11b) POF M (0) CLEAR (0) ADDP (0) 5 Medium F orma t Recogniti on (3 ) 6 Rese r v ed (0) P artiti on Units (9) 7 Re s e r ve d ( 0 ) 8 (MSB) Pa r t i t i o n S i z e 9 (LSB) Maximum Additiona l P artit ions 0 Z er o is r eturned , i ndicati n g that no additional partitions ar e pr esent or supported . Ad dit ional P artition s Defin ed 0 Z er o must be r eturned, indi catin g that no addition a l partitions ar e pres ent or supported. FDP 0 The F ix ed Data P artitions bit is not su ppor ted and mu s t b e se t to zer o. SDP 0 The S elect Data P artitions bit is not su ppor ted and must be s et to ze ro . IDP 0 The Initiato r Def i ned P arti tio n s bit is not su pported and must be set to z er o. PO FM 0 The P artitions on F ormat bi t is s et to ze ro since the dr ive d oe s not support the FOR MA T M ED IU M command th r ough whic h the t ape c ould be partitioned . CLEAR 0 Set to zero indica ting SCSI- 2 comp atibili ty . ADDP 0 Se t to zer o indica ting SCSI- 2 comp atibili ty . Me d i um F or ma t recognit ion 3 This indic a te s that th e dr iv e is capable of format and partition recognitio n.
Comm ands 84 F ibr e Channel L ogi cal Unit Con tr ol mode page This page is supported f o r F ibr e Channel only: S CS I L UN Contr ol mo de page NO TE : Th is page i s suppo r ted f or S CSI dr i v es only , fr om Gen 3 on w ards. PSU M 3 P artition Si z e Unit of Measur e: The value of 11b indicates that the units of measur e for the P artition Si ze desc riptor ar e defined b y the P art iti on s Units fiel d: 1 0 (P ar tition Units) by te s. P artit ion Units 9 This def ines th e units of the P ar titi on Si z e fi eld a s 10 9 byte s, in o th er words in gigaby tes. P artit ion Siz e The P a rtition Si ze f ield will be updated f ollow i ng successful e xec ution of the Set Capacity com mand. 100 Gen 1 tape loaded 200 Gen 2 tape loaded 400 D e f ault value . N o data cartridge pr esent or Gen 3 tape loaded. 7 6 5 4 3 2 1 0 0 PS (0) R s v d (0) P age Co de {18 h} 1 Pa g e L e n g t h { 0 6 h ) 2 Res e r ved (0 ) 3 R eser ved (0) EPDC[1] 4–7 Reser ve d ( 0) EPDC 0 The tar get does not us e the prec ise de liv ery funct ion and ignor es the con tents of the CR N fi eld in the F ibre Channe l Ext ended L ink Serv ice FCP_CNT L . HP Ultrium dri ves support th is fea t ure by de fau lt. 1 The logical unit uses the prec ise deli v ery functi on def ined in the FCP - 2 standar d. It mak e s use o f the CRN fi eld. 7 6 5 4 3 2 1 0 0 PS (0) R s v d (0) P age Co de {18 h} 1 Pa g e L e n g t h { 0 6 h ) 2 Reserved (0) Protocol Identifier (1h ) 3–7 Reser ve d ( 0) Protoc ol I dentifier 1 The pr otocol to whic h this mode page applies is SP I SCS I.
MODE SELECT 15h/55h Co mm ands 85 F ibr e Channel P or t C ontr ol mode page NO TE : Th is page is suppor ted for F ibre Channel onl y . The F ibre Channel P ort Contr ol page a llo ws you to set the initializ ation and addressing behav ior of the F ibre Channel interface . 7 6 5 4 3 2 1 0 0 P S (0) Rsvd (0) P age C ode {19h} 1 Pa g e L e n g t h { 0 6 h ) 2 Reserved (0) P rotocol Identi fier (FCP =0) 3 D TFD (0) PLPB(0) DD I S (0) DLM(1) RHA(0) AL WLI(0) D TIP E(0 ) DT OLI(0) 4 Res e r ved (0 ) 5 6 R ese r v ed (0) RR_T O V Units (3) 7 R eso ur ce R ecov ery Time-Out V alue—RR_ T O V (F0h , that is, 2 4s) DT F D Disable T arge t Fa b r ic Disco ve r y . If the dr ive is no t attac h ed t o an arb i tr ated loop, the DT F D b i t i s i g n o r e d . 0 When attached b y an ar bitrated loop, the dr iv e will disco ver a fabr ic loop port i f one is pre se nt o n the loop and perform public loop f u nctio ns. 1 When attached b y an arb itr ated loop , the dr i v e w ill n ot r ecogni z e the pr es ence o f a fabr ic loop port on the loop. Th e dri ve perform s onl y the pri vate loop functi ons. PLP B Pre ve nt Loop P or t B ypass 0 The dr iv e allo w s the L oop P ort B yp a ss (LPB ) and L oop P ort Ena ble (PBE ) pr im itiv e sequences to contr ol the por t b ypass c irc uit. 1 The dr ive ignor es any L oop P ort Bypas s ( LPB) and Loop P ort Enable (LP E) pr imitive sequen ce s. The loop port r emains enabled . When the PLPB b it is z ero , the dri ve allo ws the LPB and P BE pr i miti ve seque nces t o contr ol the port bypass c ir cuit . NO TE: If the PLPB bi t is set to 1, the D TIP E bi t must be set to 0. DDIS Disable Di s cov ery 0 The dr iv e must wa it t o recei ve an Addr ess Disco very Link Serv i ce (ADIS C) or P or t Disco very L ink Service (PDIS C) befor e it r esumes pr ocessing ta sks for the initi a to r . 1 The dr ive does not r equire r eceipt of Addr ess or P ort Disco very follo wing loop initiali z ation . The dr iv e resume s proce ssing of tasks on comple tion of loop initia li z ation . DLM Disable L oop Maste r . 0 The dr iv e ma y become loop mas ter dur ing the loop i nitiali z ation pr oc e ss. 1 The dr iv e w ill nev er attempt to be a loop master ; it onl y repeats LISM fr ames it r e ce iv es. This allo ws the initiator to be loop mas ter during loop initiali z a ti on.
Comm ands 86 RHA Require Har d A ddress . If the dr iv e is not attached to an arb itrated loop , the RHA bit is ignored. 0 The dr ive f o llows the normal initi a li z ation procedur e, inc lu ding the possibi li ty of obtaining a soft addres s du r ing the loop initiali z a ti on pr ocess. 1 When attach ed to an arbitr ated loop , the dr iv e w ill onl y attempt to obtain its har d addre ss (available v ia the dev ice addre ss jumpers) duri n g loop initiali z ation. T he dri ve w ill not at tempt to obtain an addre ss during the LIS A phase of initiali zati on. If there is a conflic t fo r the har d ad dr ess selec tion during loop initializ ation or it does not hav e a valid hard addr ess av ailable, the dr i ve w ill enter the non- partic i pating state . If the dr iv e detects loop initiali zati on while in the non - partic ipati ng state , it w ill ag ain attempt to get its hard addr ess. If the har d address has not ch a nged f r om the addres s obtai ned in a pr ev ious successf u l loop initiali z ation , the dri ve w ill attempt to obtain the addre ss in the LIF A phase if a valid Fabric Login ex ists or in the L IP A phase of loop initia liz ation. If the h ard addre ss has changed, the t a rget w ill at tempt to obtain the new addr ess in the LIHA phase . AL WLI Allo w Login Without L oop Ini ti a li z ation 0 The d ri ve is r e quired to verify its a ddress th r o ugh th e lo op ini tial i zation proc ess befor e a logi n is accep ted . 1 The dr i v e uses the har d addr ess av ailable in the S CA connect or or dev i ce addre ss jumpers and accepts logins w ithout ver if y ing th e addr ess w ith loop initiali z ation . DT I P E Disable T arget Initiated P ort Enable 0 The dr iv e enables its port into the loop wi th o ut waiting f o r a L oop P or t Enable primitive. 1 The dr i v e w aits fo r an initi ator to se nd the L oop P ort Enable pr imiti ve bef ore inserting itself into the loop. T he dr i ve us es the har d addr es s a v ailable in the S CA connector or de v ic e addres s j umpers t o determine if primiti v es ar e addr ess ed to it . A Loop P ort Enable pr imi ti ve w ith th e br oadcast addres s w ill also cause the dri ve to in ser t itsel f i nto the loop. NO TE: If the D TIP E bit is s et to 1, th e P LPB bit must be se t to 0. DTO L I Disab le T arget Origina ted Loop Init ializ ation 0 The dr ive gener ates the Initiali zing LI P after it enables a port into a loop . 1 The dr iv e does not gener ate the Initiali zing LI P f ollow ing insertion into a loop . It w i ll respond to an Initi a li zing LIP when it is r ecei ved . It will gener ate the Loop F ailur e LI P at its inpu t and the In itiali zing LIP when th e loop f ailure is c orr ec ted. RR_T O V Uni t s Res ou rce Re c over y Ti me - O ut V al ue Un it. T he field specifies th e un it of meas ure as follo w s : 000b No timer spec ified 001b 0. 0 01s 011b 0.1s, units used by HP Ultr ium dri ves 101b 10s RR_T O V The number of time units s pec ifi ed b y the RR _T OV Units f i eld that ar e used b y the timer that perfor ms the RR_T O V time-out func ti ons. F0h 2 40 x 0.1s units = 2 4 seconds
MODE SELECT 15h/55h Co mm ands 87 SC SI P o r t C o n t ro l M o d e p a g e NO TE : Th is page i s suppo r ted f or S CSI dr i v es only , fr om Gen 3 on w ards. Normal page If the P ort Contr ol mode page (19h) is r e qu ested via the MODE SENSE c ommand w ith the Sub- P age co de set t o z er o, the f ollowing data w ill be r eturned: Sub-pages The fo l lo wing sub-pages are support e d: • Margin C o ntr ol (01 h) — static data • Sav ed T raining C onfi guratio n V alues (0 2h) — static data • Negotiated Settings (0 3 h ) — dy namic data • Repo rt T ransfer Capa bilities (0 4h) — static data 7 6 5 4 3 2 1 0 0 P S (0) SPF(0) P age C o de {19h} 1 Pa g e L e n g t h { 0 6 h ) 2 Reserved (0) Pro tocol Identifier (1h) 3 Res e r ved (0 ) 4 Sy nchr onous T ransfer Timeout (0) 5 6–7 Reser ve d ( 0) Protoc ol Identifier 1 The pr otoc ol to whic h this mode page applies is SPI S CS I. S ynchronous T ransfer Timeout 0 S yn chr on ous T r ansf er T imeo ut is disa bled . 7 6 5 4 3 2 1 0 0 P S (0) SPF(0) P age C o de {19h} 1 S ubp ag e Code 2 Pa g e L e n g t h ( n -3) 3 4 Res e r ved (0 ) 5 Re serv e d (0) Pr otoco l Identif ier (01h) 6 Pr otocol Specific Mode P a r am eters n
Comm ands 88 Sub-pa ge 01h—Mar gin Con tr ol None of the fi elds ar e supported on this p age , so they should all be z ero . Sub-pa ge 0 2h—Sa ved T r aining C onf igur ati on V alues 7 6 5 4 3 2 1 0 0 Res e r ved (0 ) 1 Dr iver S t r ength (0 ) Reserved (0) 2 Dr iv er Asym m etry (0) Dr ive Precompensati o n (1h) 3 D riv er S lew Rate (0) Reserved (0) 4 Res e r ved (0 ) 6 7 Ve n d o r S p e c i f i c ( 0 ) 8 Res e r ved (0 ) 15 7 6 5 4 3 2 1 0 0 Res e r ved (0 ) 3 4 DB(0) V alue (0 ) 7 : : 64 DB(15) V alue (0) 67 68 P_CRCA V alue ( 0) 71 72 P1 V alu e (0 ) 75 76 BSY V al ue ( 0 ) 79 80 SEL V alue (0) 83 84 RST V a lu e ( 0) 87 88 REQ V alue (0 ) 91 92 AC K Va l u e ( 0 ) 95
MODE SELECT 15h/55h Co mm ands 89 All the fi elds on this page are v e ndor - spec ifi c. N one ar e su pported, so the y should al l be z er o. Sub-pa ge 03h —Negotiate d Settings 96 AT N Va l u e ( 0 ) 99 100 C/D V alue (0) 10 3 104 I/O V alue (0) 10 7 108 MSG V a lue ( 0) 111 112 Res e r ved (0 ) 22 7 7 6 5 4 3 2 1 0 0 Tra n s f e r Pe r io d Fa c t o r 1 Res er ved ( 0) 2 Req /A ck O ffs et 3 T ransfer Width Exp onent 4 Pr otocol Options Bits 5 Reserved (0 ) T ransceiver Mode Sent PCO M P_ EN Rec eive d PCOM P_EN 6 Res er ved ( 0) 7 T ransfer P e riod Factor Th e negotiated tran sfer peri od factor . Req/ Ack Of fse t The negoti ated Req/Ac k offset . T ransfer Width Expone nt T he negotiated transfer w idth. Protoc o l Options B it s The negotiated pr otocol options: Bit Protocol Option Me ani ng Suppor ted 7 PCOM P _ EN P recompensation Ye s 6 RTI Retain tr aining infor mation Ye s 5 RD_ST RM R ead streaming and r ead flow contr ol No 4 WR_FL OW Wr i t e f l o w c o n t r o l No 3 HO LD_MCS H ol d m a rg in c on tro l No 2 QAS_RE Q Q ui c k arbitr ation and selection No 1 DT _ R E Q Double tr a nsiti on cloc kin g Ye s 0 IU _REQ Inf ormation u nits Ye s 7 6 5 4 3 2 1 0
Comm ands 90 Sub-pa ge 04h—R eport T r ansfer Capab ilities Tra n s c e iv e r M o d e The c urr ent bus mode: Code Bus M ode 00b Unk no w n 01b SE 10b LV D 11b HVD (Note that this w ill never be r eported sinc e the dri v e w ill not oper ate on an HVD bus) Sent PCOMP_EN The v alue of the PC OMP_EN bit sent . This w ill be set if PC OMP_EN has been negotiated successfully . Re ceived PCOM P_EN The v alue of the P C OMP_EN bit r ece i ved . T his w ill be s et if P CO MP_EN ha s been negotiated successfully . 7 6 5 4 3 2 1 0 0 Mini mum T ransfer P eriod F actor (08h) 1 Res e r ved (0 ) 2 Maximum R e q-Ack Offs et (40h) 3 Maxim um tra ns f er Wi dth Exponen t (1) 4 Protocol Option Bits Supported ( C 3h) 5 Res e r ved (0 ) 7 Minimum Tr ansfer P eriod Factor 08h The smallest v alue of the transfe r per iod factor su ppor ted . For Gen 3 S CSI , th is is 8 , in other w or ds , F AS T160. Maximum Req/Ack Offs et 40h Th e maximum v alue for the R eq/Ac k o ff set . For G en 3 S CS I, this is 64 (4 0h) . Maximum T ransfer Width Expo nent 1 The max i mu m w idth supported. F or Gen 3 S CSI, this is 1. Protocol Option Bits Supported C3h. T he protocol opti ons suppor ted . The va lue of C3h indicat es that PC OMP_EN, R TI, D T_REQ and IU_REQ ar e suppor ted and RD_S TRM, W R_FL OW , HO LD_MC S and Q AS_ REQ are n ot . See the Pr otocol Optio ns Bits f ield on sub-page 0 3 h (Negoti ated Setting s) on page 8 9 for details o f the bits.
MODE SELECT 15h/55h Co mm ands 91 Inf orm ati on Ex cepti ons mode page The Infor mation Ex c epti o ns Mode page is used to contro l e xcepti on reporting thr ough the “T apeAlert log p age ” on p age 6 5 : 7 6 5 4 3 2 1 0 0 PS (0) R s v d (0) P age Cod e {1Ch} 1 Pa g e L e n g t h { 0 A h ) 2 P erf (0) Rese r v e d (0) D Excp t T est Rsvd (0) LogEr r (0) 3 Res er ve d (0 ) MR I E (3h ) 4 (MSB) Interval Timer (0) 7 (LSB) 8 (MSB) Rep or t Co un t /Test Flag Num b er 11 (LSB) Pe r f 0 Informational e xceptio n oper ations that cause delay s ar e ac ceptable . DExcpt Di sable Exception Control. It mus t be ze ro w hen the T es t Flag Number is z e ro . Whe n the T est F lag Number contains a v alid non- z er o value , the DExc pt flag can be 0 or 1. 0 Information e xcepti on oper ations are enabled . The r epor ting of informati on e xcepti on cond itions is d eterm ined fr om the MRIE f ield . 1 A DExcpt bit of o n e indicat es the target w ill disable all informatio n ex ception operations. T h e metho d of report ing i nformational e xcep tions field is ignored w he n DEx cpt is set to one . The Te s t bit mu st not be set at the same time . Te s t 0 If the T est flag is clear the next command will be pr ocessed normall y . 1 A tes t bit of one wi ll gene rate f alse in for mationa l ex ceptio n conditi ons . As a r esult, the ne x t S CSI command after the Mode Select w ill r eturn CHE CK CON D ITIO N wi t h a se n s e ke y of RECO VERED ERROR and additional sense o f 5DFFh (failu r e pr edicti on thr eshold e x ceeded - fals e) . T he DEx cpt bit mus t not be set at the same time . T he T e st b it w ill ne v e r be r ead as 1 when perfo rming a Mode Sense command. This is not an indi cati on that the dri ve is in te st mode. F or e xample, u sin g the T est bit and T est F lag N umber , it ma y be possible to set a flag w ith the DExcpt bit se t to 1. When the DExcpt bit is n ext set , the dri ve w ill report CHECK CONDITION wi th a se n se key o f RECO VERED ERROR and additional se n se of 5DFFh (f ailur e pr edicti on thr esh old e x ceeded - f alse). In order to set the DExc pt bit again, note that the T est bit mus t s ti ll be set dur ing the Mode Se lec t c ommand. Log Err 0 Lo g Erro rs b it. T h is b it must be z ero , indicating th at the logging of inf ormation a l e xcepti on cond itions within the dri ve is v endor -spec ifi c.
Comm ands 92 Note that if an attempt is made t o set or c lear a f l ag that is not sup p orted b y the d ri ve , CHE CK CONDITION w ill be r ep orted wit h a se nse k e y of ILLE G AL REQUE S T a nd additi onal sense of 2 600 h (inv alid f ield in par ameter list) . De v i ce T ime mode page The De vice T ime M ode page consists of the f ollow ing p age header f ollow ed by thr ee Timebase descr iptor s: MRI E Metho d of Repor ting I nformationa l Exceptions 3h T h is f ield indi cates the method used b y the target t o report info r mational e x ception condit i ons and must be set to 3 . The tar get w ill r eport informati onal e xcep tion c onditi ons b y r e turni ng a CHECK CON DITION status on an y co m ma n d. Th e s en s e key wil l b e s et t o RECO VERED ERROR w ith additional sens e of 5D00h (failur e pr ed i ction thr eshold e x ceeded). Th e command that has the CHE CK C ONDIT ION w ill complete w ithout err or bef ore an y in formati onal ex ception condition may be r epor ted . Interval Timer 0 Must be z er o, indicating that the dri ve only r eports an inf ormational ex ception cond ition once. Re po rt C oun t/ T e st Flag Number 0 If the T est bit is z e r o , this field is the R eport Count and must be z e r o , indicating that ther e is no limit on the n umber of tim es the dr iv e can r eport an infor mationa l e xcept ion c onditio n. n If the T est b i t is one , this fi eld i s the T est F lag Number , that i s , the number of a su ppo rted T apeA le rt f lag . T h e ta r get w i ll gene r a te a te s t in f or mat i onal e x c epti o n condition . As a r esult, the ne xt S CS I c ommand after Mode Select w ill return CHECK CON DIT ION wi th a s en s e key o f RECO VERED ERROR an d additional sens e of 5D FFh (f ailure pr edicti on thresh old ex ceeded - false). T h e f ollow ing ar e valid settings: 1 thr ough 64 This se ts the T apeAlert flag w ith this number in the Log page . − 1 thr ough − 64 (FFFFFFFFh –FFFFFFC0h) T h is c lear s the T apeAlert flag indi cated by the abs olute value of the T est F lag Number . 3 2 7 6 7 (7FFFFh ) T his se ts a ll the T apeAlert flag s supported by the tar get in the Log page . 7 6 5 4 3 2 1 0 0 PS (0) SBF (0) P age C ode (3Ch ) 1 Pa g e L e n g t h ( 1 A h ) 2 Res er ved ( 0) L T W T P T 3 Res er ved ( 0)
MODE SELECT 15h/55h Co mm ands 93 P ow e r-on time desc r iptor W or ld time des cr iptor Libr ar y t ime des c ript o r 7 6 5 4 3 2 1 0 4 Timebase Identifier (00h) 5 Timebase F ield Length (06h) 6 (MSB) Cur r ent P ow e r -on Count 7 (LSB) 8 (MSB) Po w e r - o n T i m e 11 (LSB) 7 6 5 4 3 2 1 0 12 Timebase Identifier (01h) 13 Timebase F ield Length (06h) 14 Re s er ved (0 ) UTC NT P 15 Reser ve d ( 0 ) 16 (MSB) Wo r l d T i m e 11 (LSB) 7 6 5 4 3 2 1 0 20 Timebase Identifier (10h) 21 Timebase F ield Length (06h) 22 Re ser ve d ( 0 ) 23 Lib rar y Ti me ( hrs ) 24 L ibr ary Tim e (mins) 25 Li b ra r y T i m e ( s e c s ) 26 Res er ved 0 ) 27 MOD E SE NSE MODE S ELEC T PT 0 P o wer -on T ime is inv alid . Ignor ed 1P o w e r - o n T i m e i s v a l i d . WT 0 W orld Ti m e is in valid . 1 W orld T ime is valid . 1 to set w orld time LT 0 L ibr ary T ime is in vali d. Ignor ed 1 Libr ary T im e is v alid.
Comm ands 94 CD-R OM Emulati on/Disaster R e c o very mode page This page can be u sed ir respecti ve of whether the dr iv e is acting as a tape or a CD dev ice . CD-R OM Em u lati on/Disas ter R eco very mode page fie lds: Current P ower-on Count T he number of time s the dri ve has been po w er ed on Ign or ed Po w e r - o n T i m e The n umber of seco nds si nce the dri ve has been po wered on Ign or ed Wo r l d T i m e The number of seconds fr om 00:00: 00 on Januar y 1, 19 7 0 Ign or ed if WT = 0 UT C 0 T he local timez one has been us ed. I gn or ed if WT is 0 Set to 1 if UT C W orld T ime is being used . 1h W orld Time is UT C. NTP 0 Unsure if NTP-s ynced Igno r ed i f W T is 0 Set to 1 if W orld T ime is NTP -s ynced. 1h W orld Time is set fro m NTP source. Library Time The ti m e in hr s:mins:secs set b y the library contr oller Ign or ed MOD E SE NSE MODE S ELEC T 7 6 5 4 3 2 1 0 0 Pa g e C o d e { 3 E h } 1 Pa g e L e n g t h { 0 2 h } 2 Reserved (0) Non-Auto CDmode 3 Res er ve d ( 0) Non-Auto W h en a s yst em restarts after booting off t ape , the dri ve detects the S CSI r esets issued during re b oot and, in conjuncti o n w ith k no wing that mor e than 100 blocks hav e been r ead in CD-ROM e mul ati on mod e , will r ev e rt back to behav ing as a tape dev ice . T his is the standar d method by w hich the dr iv e automati call y re verts to be ing a tape dri ve in or der that a back up application can do file s ystem r ecov er y . The method of r ever sion in volv es a f irmw ar e r eboot, s o the dri ve might become una vailable for a fe w seconds du ri n g it s “ p ower- on” fo ll owin g t he SCSI re se t. (N o te th a t no rm al SCS I rese t res po n se d oe s no t i nvolv e a fi rmwa re reb o ot ) . Setting this flag to 1 inhibits this au tomatic r eturn to tape dri v e behav i or; the dr iv e will r e main in CD-R OM mode irr espectiv e of blocks r ead an d S CSI r esets . CDmode MOD E S ENS E 0 The dri ve is in tape dr ive mode . 1 The dri ve is in CD-ROM emulation mode .
MODE SELECT 15h/55h Co mm ands 95 MOD E S ELEC T This f la g ca n b e us ed to sw itch the dr iv e between nor mal operatio n and CD-R O M emu lation mo de: • If this bit is s et to its ex isting v alue , th e re is no c h ange. • If this bit is c hanged from 0 to 1, th e dr iv e w ill en t er CD-emulation mode. It w ill change its Inquiry and Mode data appropr iatel y and cache the f irst 2 50 KB o f the CD image off tape . CD-RO M su p port commands will be enabled . T his transition is pri mar ily pres ent to support automated f u ncti onal testing .If the bi t is changed from 1 to 0, the dri ve leav es CD-ROM emulati on mode and re verts to normal tape dri ve mode . • If this bit is c hanged fr om 1 to 0, th e d r iv e will lea ve CD-em u latio n mode. T he Inq uiry and Mode data will r e v e rt to that for a tape dr iv e and CD-ROM command support will s top. T he t ape wi ll be r eloaded and the log i cal position wi ll be BOP . Back up applications can use this tr ansiti on to s w itc h to a nor mal mode of oper ation f or f ile sy stem r e co very off tape . N ot e that oper ating sy stems that pre -load c lass dri vers at boot mi g ht n o t be pr epared t o ta lk to the er stwhile CD- ROM dr ive
Comm ands 96 M ODE SENS E 1Ah/5A h M ODE SENSE allow s the d r iv e to r eturn its c u rr ent con f igurati on and report whic h c onf igur ation par ameters can be changed thr ough MODE SELEC T . The mode sense header , bl ock descr iptor (optional) , and z er o or mor e of the ar e sent t o the hos t. Mode pages c ontain dr iv e c onf igurati on pa r ameters . S ome of these par ameters ar e fi xed, o thers ar e conf igu ra ble (th r ough th e MODE SELEC T comm a nd). The host sho u ld us e MO DE SE NSE to deter mine which dr i v e parameter s ar e configur ab le and what their c urr en t v alues are be for e using mode sele ct to a lter th em. NO TE : See MOD E SEL E C T on page 71 for fu ll desc ripti o ns of the Mode P arameter s.If a M ODE SENSE command is issued whilst an immediate r eported Load command is e xec uting or clo s e to completing then the values of some par ameters in some mode pages whic h depend on the r esults of the load ma y be undef ined. Similarl y , the wr ite -pr otect f ield in the Mode P aramet er Header wi ll be unstable unl ess a cartridge is pr esent and medium r emov al is pr ev ented. Pr e -e xec uti on chec ks: The page code f ield must c o ntain a v a lid mode page code or the v alu e 0 or the value 3Fh. If it does not th en CHECK CON DITION statu s is reported . S ense data w i ll be as desc ribed in the Illegal Fi e l d C h e c k s . Co mma nd de s c r ipto r b loc k: 6-B yte V er sion Illegal F ield R eservatio n Def erred Er ror Unit Attention 7 6 5 4 3 2 1 0 0 Oper ation Code (1Ah) 1 Re se rve d ( 0 ) D BD Re ser ved ( 0) 2 PC Page C o de 3 Sub P age C ode 4 Alloc ation Leng th 5 Contr ol
MODE SENSE 1Ah/5Ah Co mm ands 97 10 -b yte version CDB f ields: 7 6 5 4 3 2 1 0 0 Oper ation Code (5Ah) 1 Re se rve d ( 0 ) D BD Re ser ved ( 0) 2 PC Page C o de 3 Sub P age C ode 4 Re s er v e d ( 0) 6 7 (MSB) Allo cation Le ngth 8 (LSB) 9 Contr ol DBD Di sable Block Des cr i ptors f l ag 0 Allo ws the dri v e to retur n th e MODE SELECT block descr iptor . 1 Pr eve nts the dr i ve f ro m r eturn ing the MODE SELECT block des criptor . PC Pa g e C o n t r o l —Indicates th e type of page paramet er value s to be re turned to the ho st , as sho wn in the f ollo wing table : 7 6 Descripti on 00 Rep or t Cu rrent V a lu es : the cur r ent v alues of the param eters are retur ned. 01 Report Changeable V alues: the page retur ned h a s its non-changeable par ame ter f ie lds c lear ed t o 0. T he f ie lds tha t ar e ch ange able ar e set t o all 1’s. 10 / 1 Rep or t De fau lt V a lu es: the page retur ned contains the po wer -on/r eset/bu s - device -reset values of th e mod e pa r a mete rs. Pa g e C o d e This allo ws the host t o select any s pec ifi c page , or all the pa ges supported b y the dr ive . 0 T he dr iv e r etur ns no mode pages , so onl y the h eader and blo ck de sc ri ptor ar e r etu rned . An y m ode page code The dr iv e return s th at page . 3Fh The dri ve r eturns all mode pages. Sub P age Code The sub-page code of the page code for data to be retur ned. If there ar e no sub-pages, it should be set to 0. Allocation Length Spec ifi es the nu mber of by tes that the ho st has allocated for r etu rned MODE SENSE data . 0 No data transf er will occ ur . This is not consider ed an err or . n Th e max imum n umber o f by tes w hi ch the dr i v e sho uld ret urn in its data-out phase . E ither the entir e mo de page or allocati on length b ytes of the page ar e return ed, wh icheve r is le as t.
Comm ands 98 PE RS I ST E N T R E S E RV E I N 5 E h PER S IS TENT R ES ER VE IN is u sed to o bt ain inf o r mati on abo u t pe rsis ten t r eservat i ons an d r e serv a tio n k e y s th at ar e acti v e wit hin a t a p e dri v e log i cal unit . Pr e -e xec uti on chec ks: Co mma nd de s c r ipto r b loc k: CDB f ields: Illegal F ield R eservation Def err ed Error Unit Atten tion 7 6 5 4 3 2 1 0 0 Operation Code (5Eh) 1 Reserved (0) Service Action 2 Re s er v e d ( 0) 6 7 (MSB) Allo cation Le ngth 8 (LSB) 9 Contr ol Ser vice Ac t ion The servi ce action types that ar e support e d ar e: 00h Read K eys Returns all registe red res er vati on ke ys 01h Read R eser v ation Retur ns inf ormation on any c urrent per sistent rese r vatio n 0 2h Read C apab ilities Returns details of the persiste n t r eservation featur es supported Allocation Length T he max imum amount o f data (in b ytes) that shou ld be r eturned t o the ho s t . The dr iv e wi ll r eturn all of the r equested info rmation or allocation len g th b ytes, w hiche ver is leas t.
PERSIST ENT RESERVE IN 5Eh Co mm ands 99 R eturned data for se r v ice ac tions: Read K ey s ser vice action The dri ve w ill r eturn a parameter list containing an 8-b y te header and list of each curr entl y r eg ist ered I_T nex us ’ r eservati o n k ey . Each k e y is 8 byte s long. The f ormat o f the r eturned data is as f ollo ws: Read Reservation service action The dr iv e r eturns a parameter list containing an 8-byte header and the persistent r eserv ation, if an y , that is pr esent in the dr iv e. If no persis tent r eservati on is pr esen t, Additi onal Le ngth i s 0 and no r eservatio n data is r eturned . If a per sis ten t r eservati on is p r esent , Additional Length is 10h and 16 b y tes o f rese r v ation data ar e r eturned as f ollow s: 7 6 5 4 3 2 1 0 0 (MSB) PR Ge n e rat i on 3 (LSB) 4 Additi onal L en gth ( n -7 ) 7 8 Fi r s t R e s e r v a t i o n Key 15 :: n -7 Last Reservation Ke y n PR G e n era ti on A 3 2-bi t counter that is maintained by the dri ve and incr emented ev er y time a PE RSI ST EN T RES E RV E OU T command r equests a Register , Register and Ignore Ex isting K e y , Clear , Pr eempt , or Pree mpt and A b o r t serv ice action . 7 6 5 4 3 2 1 0 0 (MSB) PR Ge n e rat i on 3 (LSB) 4 Addit ional Length ( 0 or10h) 7 8 Res er vat io n Key 15 17 Obsol ete (0) 19 20 Re s er v e d ( 0) 21 Scope (0) T ype 22 Obsol ete (0) 23
Comm ands 100 Read Capabilities service ac tion This pr o vides a mechanism for the dr iv e to report whi ch featur es of P ersisten t Reserv ation a r e implemented . The for mat of the data ret u r ne d is as f ollo ws: All the oth er fields ar e f ixed. Ref er to the description of PE RSIST EN T R ESE RVE OU T or the appr opr iat e standar ds for mor e infor mation . the PE RSIST ENT R ESE RVE IN command , and clause 5 .6 for a detailed discu ssion of r eservati ons. PR G e n era ti on As for “R ead K eys se r v ice acti on” on page 99. Rese r vatio n Key Th e ke y unde r wh ich t h e per s istent re servat ion is he ld. Scope 0I n d i c a t e s L U _ S C O P E . Ty p e The c haracter istics of the persiste nt reservation c urr ently held. P ersiste nt r eservation types supported by th e d r iv e are: 3h 6h 8h Exc lusi ve acce ss Exclusive acc ess, regi strants only E xcl us ive ac c es s, al l reg i s tra nt s See PERSI STE NT RES ERV E O UT for mor e i n f ormation and also the appropri ate standards . 7 6 5 4 3 2 1 0 0 (M SB) Length (0008h) 1 (LSB ) 2 R eserve d (0) CRH (1 ) SIP_C (1) A TP_C(0) Rsvd(0) PTP L_C(1) 3 TM V (1) Reserved (0) PTP L _ A 4 WR_EX_AR( 0) EX_AC_RO(1) WR_ EX_R O(0) Rsvd(0) EX_A C(1) Rsvd(0) W E_EX C(0) R s vd (0) 5 Res er ve d ( 0) EX _ A C _ A R (1 ) 6 Res er ved ( 0) 7 PTPL_A 0 P ersi st T hro ugh P ow er L oss ha s not bee n acti vat ed 1 The most r ecent successfully completed PERSISTEN T RES E RVE OU T command wi th Regist er or Register and Ignor e Exis tin g K ey serv ice actio n had the APTP L bit s et to one in the par ameter data .
PERSISTE NT RESERVE OUT 5Fh Co mm ands 101 PE RS I ST E N T R E S E RV E O U T 5 F h P ER SIS TENT RESER VE OUT is used to r equest serv ice actions that cr e at e a persis tent r eservati on in a log ical uni t wit hin t he ta pe dr iv e f or the ex clu si ve o r shar ed us e of a pa rtic ular I_ T ne xu s. T he comma nd uses other service actions to ma nage and remo ve such p er sis tent r eservations. An I_T ne xu s perfo rming P ersiste nt Res erve Out serv ice acti ons i s i dentif ied b y a r eserv ation k e y . Pr e -e xec uti on chec ks: Co mma nd de s c r ipto r b loc k: CDB f ields: Illegal F ield R eservation Def err ed Error Unit Atten tion 7 6 5 4 3 2 1 0 0 Operation Code (5 Fh) 1 Reserved (0) Service Action 2 Scop e T ype 3 Re s er v e d ( 0) 6 7 Pa r a m e t e r L i s t L e n g t h 8 9 Contr ol Ser vice Ac t ion 00b Regi ster R eg iste rs or unregi sters a reserv ation k ey with th e device ser ver . 01b Res erv e Cr eates the persistent r eservati o n . 0 2b Releas e Re leases the persis tent r es er v ation . 0 3h Cle ar Clear s all r eservatio n ke ys and the persist ent rese r vatio n. 04h Pr eempt Pr e -empts the persistent r eservation and/or r e mo ve reg i st ra ti on s. 05h Pr eempt and Abor t Pre -empts the persist e nt r eservation and/or r emove r egi str ations, and aborts all tasks fo r all pr e -empted I_T nex u ses . 06h Register and Igno re Ex ist ing K ey Re gi s ters or unr egisters a r eservati on ke y w i t h the de vi ce ser ver . Scope 0I n d i c a t e s L U _ S C O P E .
Comm ands 102 P a rame ter data Ty p e The c har acte risti cs of the per sistent r eserv ation c urr entl y held . P e r sistent r es ervation types supported b y the dri ve ar e: 3h 6h 8h Ex clusi ve acce ss Ex clusi ve acce ss, r egistran ts only E xclu s ive a c c es s, a l l reg i st ra nt s Pa r a m e t e r L i s t Length The amoun t of data (in b y tes) that shou ld be sent t o the dri v e fr om the host in par amete r list data . If the SPE C_I_PT b it in the parameter data is 0, this f ield is set to 18h . If SPE C_I_PT i s 1, this field spe c ifi es the number of bytes of paramet er dat a (min imum is 18h) . 7 6 5 4 3 2 1 0 0 (MSB) Res e r vat ion Ke y 7 (LSB) 8 (MSB) Se rvi ce A cti on R ese rv ati on K e y 15 (LSB) 16 Obsol ete (0) 19 20 Reserved (0 ) SPEC_1 _PT A LL _T G_ PT Rsv d(0 ) AP TPL 21 Re s er v e d ( 0) 22 Obsol ete (0) 23 24 (MSB) Additi onal P aram eter D a ta n (LSB) Rese r vatio n Key Identif ies the I_T ne xus that s ent the command . The va lue must matc h the reg ister ed r ese rva tio n k ey fo r the I _T ne x us ex cep t f or : • The R egister and Ig nor e Ex isting K ey serv ice actio n, wher e this f ield is igno r ed. • The Reg i st e r servic e ac tion for an u nregister ed I_T ne xus , wher e this fi eld is 0. If the R es er v ation K e y does not matc h with the on e register ed in the de vi ce server f or the I_T nex us, the d e vi ce server r eturns R eservatio n C onflic t . Ser vice Ac tion Rese r vatio n Key Infor mation needed f or the follo w ing servi ce ac tions: Reg is ter , Register and Ignore Exi s tin g K ey , Pre empt , a nd Pr eempt an d Abort . Fo r t h e Regi st er and R e gist er and Ignor e Existi n g K e y se rvice acti ons: 0 U nregiste rs the r egistered reser vation key specified in t he Reser vation Ke y field. n The ne w rese r v ati on k ey to r eplace the e x istin g one as s p ec ifi ed in the Res e r vatio n K ey field f or the I_T n e xus .
PERSISTE NT RESERVE OUT 5Fh Co mm ands 103 This is a summar y of the f ield validity in the pa r ameter data: Ad ditional p arame ter data Fo r t h e P reempt and Pr eempt and A b o rt se r v ice actions , this field cont ains: n T he re se r va ti on key of reg i st ra ti on s t o b e rem ove d or if this f ield also identif ies a persis tent re servation holde r , the per sis tent r eser v ation to be pre-empted. SPEC_I_PT Va l i d o n l y f o r t h e Re gi ste r and Register and Ignore Ex isting K ey ser vice actio ns. 0 The Additional P ar ameter Data is ignor ed and the registrati on is applied only to the I_T nex us that se n t the com m and . 1 The Additional P arameter Data includes a list o f tr ansport ID s and the de v ice server applie s the registr ation to the I_T nex us for e very initiator port spec i f ied in the tr ansport list. ALL _T G_ PT Not s u pport ed an d igno re d. APTPL Onl y val id fo r the Reg i ste r an d R eg is ter an d Ignor e Existing K e y se rvice a ction s . Ser vice Ac t ion Scop e Ty p e Res erva t ion Ke y Ser vice Act ions Res er vation Key APTP L SPEC_I_ PT Regi ster ignored ignored valid valid v alid v alid Re g i s ter an d Ig nor e Exist in g K ey ignored ignored ig nored valid valid valid Rese rve LU_SCOPE val id v alid ign ored ig nored ig nored Rel ease LU_SCOPE val id v alid ign ored ig nored ig nored Clear ignored ignored valid ignored ignored ignor ed Preempt L U_SCOPE valid valid val id ig nored ig nored Preempt and Abor t LU_ SCOPE val id v alid val id ig nored ig nored 7 6 5 4 3 2 1 0 24 (MSB) T r ansport P ar a meter Data Length ( n -2 7 ) 27 (LSB) T ransport IDs L ist 28 (MSB) F irst T r ansport ID : (LSB) : : (MSB) Last T ransport I D n (LSB) T ra nsport P a rameter Data Length Spec ifi es the number o f b ytes of T ran sport IDs to f ollo w . The P aramet er List L ength in the CDB contain s all the b ytes spec ified i n T ranspo r t P aramet er Da ta Length.
Comm ands 104 Fibr e Chann el T r anspo rt ID P arall el SCSI Tr a nsp ort ID 7 6 5 4 3 2 1 0 0 F ormat Code (00b) Reserved (0) Prot ocol Id entifier (0) 1 Re s er v e d ( 0) 7 8 (MSB) W orld W ide Nam e 15 (LSB) 16 Re s er v e d ( 0) 23 7 6 5 4 3 2 1 0 0 F ormat Code (00b) Reserved (0) Protocol Identifier (1h) 1 Re s er v e d ( 0) 2 (MSB) SCS I Ad d res s 3 (LSB) 4 (MSB) Re lativ e P ort Iden tifie r (0) 7 (LSB) 8 Re s er v e d ( 0) 23
PREVENT/ALLOW MEDIUM REMOVAL 1 Eh Co mm ands 105 P REVENT/ALL O W MED IUM REM O V AL 1Eh PREVENT / ALL O W MEDIUM REMO V AL te lls the d rive to e nable or d isable the r e mo val of the cartr id ge . When ca rtr idge r emov a l is pr ev ented, the fr ont panel eject but ton is completely disabled (though a ‘for ced eject ’ will stil l w ork). An Unload command issued b y a host will r esult in CHECK CONDITION . The se n se k e y will be ILLE G AL REQUE S T or MEDIUM REMO V AL P REVENTED . When cartr idge r emov al is enabled , pr essing the fr ont pane l e ject button or se nding an Unload command f rom a ho st w ill cau s e the media to be unloaded and e jected . R em o val pr ev ention is on a per -host basis . All the hosts hav e to allow media r emov al for an y of them to do so . NO TE : If a f irm w are upgr ade is initiated o v er an y interfac e , the cartri dge will be ej ected fr om the dr i v e regar dless of the s tate of this command. Pr e -e xec uti on chec ks: Co mma nd de s c r ipto r b loc k: CDB f ields: Illegal F ield R eservation Def err ed Error Unit Atten tion 7 6 5 4 3 2 1 0 0 Operation Code (1Eh) 1–3 Re s e r ve d ( 0 ) 4 Re ser ved ( 0 ) Prevent 5 Contr ol Prevent 00 b Medi um r emo va l is al l ow e d for the dr i ve 01b Medi a re mov al is pr ohib ited for th e dri ve 10b, 11b Inv alid
Comm ands 106 READ 08h READ tr ansfers z er o or mor e data blocks to the hos t st ar ting at the cur re nt logical p ositi on. Pr e -e xec uti on chec ks: If both the SILI and F ix ed bits ar e se t, CHECK COND IT ION statu s is report e d. Sense data is as descr ibed in the Illegal Fi eld Che c ks. The fi eld pointers indicate the F i xed bit fi eld. NO TE : T ransfer s of 4 bytes o r less are not sup por ted . Co mma nd de s c r ipto r b loc k: CDB f ields: If the F ix ed flag is clear and T ransfe r Length is not ze ro , then a single block of t he le ngth in T ransfe r Length is to be transf err ed. If the ne xt block on tape is of t h is length o r shorter it is tran sferr ed to th e in itia tor . If the next block is lo nger than thi s len gth, on ly the leng th reque sted i s returne d and the log ical posi tion i s se t to a fter the rec or d. If th e len gth of the block was the sam e as the T r ans fer Leng th field, GOOD status is r etur ned. If th e length of the bloc k was no t the same as in T r ansfer Length and the Suppr ess Il legal Length Indicator (SILI) flag w as clear , Check Condition statu s is r eturned , ILI w ill be r eported as descr ib ed belo w . If the length of the block w as not the sa me as in T rans f er Leng th an d the S uppress I lle gal Le ngth Ind icator ( SIL I) fla g was set, Good sta tus i s re t urn e d. If the fi xed flag is set an d the T r ansfer Len g th fi eld is not z er o a n d the Su ppre ss Illegal Length Indicato r (SILI) f lag is cl ear , a sequence of bloc ks of the cur rentl y configu red bloc k length is to be re t urned , the num ber of blocks being indi cated in the T ransfer Length fi eld. If there is a sequenc e of b locks of th is le ngth on th e tap e , they are return ed to the init iator with GOOD status . I f a block tha t is longer than the c onfigu r e d len gth i s enco untered befor e the se que nce i s co mplete, the bloc ks up to th at bloc k ar e r et urn ed f ollo w ed b y the co nf igu red lengt h f ro m the r ecor d tha t wa s too long and Che ck C on dit ion statu s (ILI w ill be r eported as desc r ibe d belo w) . If a block that is shorte r tha n the con figured l ength is encou ntered b efor e the s eque nce is c omplet e, the b locks up to that block ar e r etur ned follo wed b y all of that block an d Check Condition statu s ( ILI will be r ep orted as Illegal F ield Fi xed Bit Re servation Deferr ed Err or Un it At te nt ion M ed ia Acc ess D ia gno st ic St at us 7 6 5 4 3 2 1 0 0 Operation Code (0 8h) 1 Rese r ved ( 0) SI L I Fixed 2 (MSB) Tra n s f e r L e n g t h 4 (LSB) 5 Contr ol
READ 0 8 h Co mm ands 107 descr ibed below). The curr ent position is set after the last block that w as r eturned or partially ret u rn e d SILI Supp r ess Incor rect L ength Indicator 0 The read oper ati on is terminated w hen the length of a block (on the tape) differ s fr om the T r an sf er Length. T ransfe r Length bytes of data w ill hav e been tr ansferr ed. T he logical tape positio n w ill be the EO M side of the illegal si z ed blo c k. 1 The drive w il l not report CHE CK CO NDIT ION status if the only err or is that the T r ansfer Le n gth is not eq ual to the actual block length r ecorded on the medi a . Fixe d 0 T he T ransf er Length f ield spec ifie s th e le n gth o f the tr ansfer in b ytes. A single bloc k of th e len g th in T ran sf er Length is to be tr ansferr ed . • If the ne xt bloc k on tape is of T ransf er Length , it is tr ansferr ed to the initi ator and GOOD sta t us is r e turne d. • If the next bloc k on ta pe is not of T ransf er Le ngth: • If it is sh or ter , the w hole block is tr a nsf err e d to the initiat or . • If it is longer , only the length r equested is r eturned and the logical po siti on is set to after the r ecord . • If S I LI = 0, CHE CK C ONDIT ION status is re tur ned. ILI is reported as desc r ibed belo w . • If S I LI = 1, GOOD status is r eturned . 1 The T ransf er Length f i eld speci fies the le ngth of the tran sfer in blocks . The si z e of each block (in b ytes) is spec ifie d b y the cur rent bloc k length speci fied in the Mode P a r ameter block desc riptor . If SILI = 0, a sequence of blocks of the c urre ntl y configur ed block length is to be retur ned , the number of blocks being indicated in the T ransfer L ength field . • If ther e is a sequence of blocks of this length on the tape , the y are r etur ned to the initiato r with GOOD status. • If a block that is shorter than the config ur ed length is encounter e d bef ore the sequence is complete , the bloc ks up to that bloc k ar e re turned fo llow ed b y all of that bloc k and CHECK CON DIT ION statu s (ILI will be r eported as desc ri b ed belo w ) . T he c urr ent positio n is set after the last blo ck that w as r eturned . • If a bloc k that is longer than the conf igur ed length is encounter ed befor e the sequence is c o m plete, the blocks up t o that block ar e r eturned f ollow ed b y the conf igur ed length fr om the r ecor d that w as too long and CHE CK CON DIT ION status (ILI w ill be reported as d escr ibed below). T he c urr ent position is set after the last block that was partially r eturned . Tra n s f e r Length 0 No data is tr ansf er r e d . T his is not consi der ed an er r or and the c urr e nt logi cal positi on wi ll be unchanged. >0 Th e amount of d ata t o be tr ansfer r ed, in b ytes or blocks as spec ifi e d b y the F ix ed field . NO TE: T rans fers of 4 b y tes or les s are not supported.
Comm ands 108 Read sp e c i f ic st atus : NO TE : E arly warning end o f medium info rmation is not repo r ted on r eads. R esidue i nf ormati on: The V alid bit w il l be set . The infor m ati on bytes w i ll be as follo ws: Event Status Key Notes SILI error CHECK COND ’N NO SENSE ILI and V alid bits ar e set . The infor m atio n bytes w ill be set as follo ws: V a r iable Block Mode: The diff erence be t w een the r e quest ed T ransfer L eng th and the actual block si z e. If the block si z e is bigger than the T r ansfer Length , this will be nega tiv e (t wo s compleme nt). F ix ed B loc k M ode: Th e differ ence between th e reque sted nu m be r of re co rds a n d t h e n um b er o f wh o le go o d rec o rds tr an sf erred . If the last r ecord w as under length, i t i s consi d ered “ w hole good” for the pur poses of this calc ulatio n. Fi l e m ar k encountered dur ing a read CHE CK COND ’N NO SENSE The Mar k bit is set . Logi cal position w ill be on the E OM side of the f i lemar k. Additional sense is 0001h (filemark detected). The logical positi on will be on the E OM side of the filemar k. Resi due i nf ormation is as des cribed belo w . EO D e n co un t ere d during a read CHE CK COND ’N BLANK CHE CK Additi ona l s ense is set t o 0 00 5h (EOD det ected) . R esidue infor m ati on is as descr ib e d belo w . EO P/ M encountered dur ing a read CHE CK COND ’N MEDIUM ERRO R The E OM bit is s et. Additi onal sense is set to 000 2h (EO P/ M detected). Residue inf ormation is as des cribed belo w . F a ilur e to read data thr ough media er r or or non-fatal dri ve err or CHE CK COND ’N MEDIUM ERRO R Additional se n se is set t o 1 100h (unreco ver ed read err or) or 3B00h (sequential positioning er r or ). Resi due infor m ati on is as descr ib e d belo w . Corr upt data form a t CHE CK COND ’N MEDIUM ERRO R A dditi onal s ense set to 300 2h (can ’t r ead me dia). Blank media encountered dur ing a read CHE CK COND ’N BLANK CHE CK Cause d b y an attempt to re a d an unform atted tape . Additional sense is set to 5000h (E OD not found). Residue infor m ati on is as sho wn belo w . Va r i a b l e B l o c k M o d e The req u e s ted transf er length (in bytes). Fi xed Bloc k Mode The diff erence (in bloc ks) between the req u es ted transfer si z e and the actu al number of blocks transf erred . A par tiall y transfer red block is not counted , so for ex ample, if 3 .5 out of 10 bloc ks h a ve been tr ansf err e d the r esidue w ill b e 7 . If the last block is an illegal length block , it is not count ed among those tr ansfer red . F or ex ample, if 4 legal length bloc ks an d 1 illegal length bloc k ha ve been transfer red out of a total of 10, the r esidue w i ll be 6 .
READ 6 (CD-ROM m ode) 08h Co mm ands 109 READ 6 (CD- R OM mode) 08 h T ransfer Lengt h bloc ks of data ar e tr ansferr e d to the host , starting fr om the cur r ent logical position specif ied by L ogical Block Addr ess. An y spac i ng perfor med to locate to the specif ied block addr ess is perfor m ed with mar k counting disabled. R e q u es ts falling within the f irst 2 50 kilob ytes of data on ta p e w ill be perf ormed w ith very little delay (less than 2 seconds) bec a use the dri ve caches this data at load time. Pr e -e xec uti on chec ks: Co mma nd de s c r ipto r b loc k: CDB f ields: R ead 6 S pec if ic st atus: See the “R ead spe c ifi c st atus:” on page 1 08. Res id u e In fo rm at io n : See the “R esidue inf ormation:” on page 108 for the normal Read command. Illegal F ield F ix ed Bit F lag Link Bad L UN Res er v ation Defe rred Er r or Unit At tent i o n Me dia Access D iagnostic Sta tus 7 6 5 4 3 2 1 0 0 Operation Code (0 8h) 1 (MSB) Lo gical Bl ock Addr ess 3 (LSB) 4 Tr a n s f e r L e n g t h 5 Contr ol Log i ca l Bl oc k Ad d res s Spec if ies the bloc k addr ess f r om wh ic h to r ead. T he tape dr i v e w ill space to this block befo r e reading data. Tra n s f e r L en g t h The number of bloc ks of data to retur n . Eac h CD-ROM block i s 204 8 byt e s in si z e . T his si z e i s automaticall y set in the mode data ’s fi x ed bloc k length while in CD-R OM mode .
Comm ands 110 READ 10 (CD-ROM mode) 28 h T ransfer Lengt h bloc ks of data ar e tr ansferr e d to the host , starting fr om the cur r ent logical position specif ied by L ogical Block Addr ess. An y spac i ng perfor med to locate to the specif ied block addr ess is perfor m ed with mar k counting disabled. Requests falling within t he f irst 250 kilo b ytes of data on tape will be performed with very lit tle delay (less than 2 seconds) bec a use the dri ve caches this data at load time. Pr e -e xec uti on chec ks: Co mma nd de s c r ipto r b loc k: CDB f ields: Read 1 0 specific status: See the “R ead spe c ifi c st atus:” on page 1 08. R esidue i nf ormati on: See the “R esidue inf ormation:” on page 108 for the normal Read command. Illegal F ield F ix ed Bit F lag Link Bad L UN Res er v ation Defe rred Er r or Unit At tent i o n Me dia Access D iagnostic Sta tus 7 6 5 4 3 2 1 0 0 Operation Code (2 8h) 1 Logica l Unit Num ber DPO ( 0) FU A (0) Reser ved (0 ) RelAdr(0) 2 (MSB) Lo gic a l Bl o c k Ad dres s 5 (LSB) 6 Res er ved ( 0) 7 (MSB) Tr a n s f e r L e n g t h 8 (LSB) 9 Contr ol Log i ca l Bl oc k Ad d res s Spec if ies the bloc k addr ess fr om w hic h to read . T he tape dr iv e w ill space to this block bef ore r e ading data. Tra n s f e r L en g t h The number of bloc k s of data to r eturn . Eac h CD-ROM bloc k is 204 8 bytes i n si z e . T his si z e is automatic ally set in the mode data’s fi xed bloc k length while in CD-R OM mod e.
READ A TTRIBUT E 8Ch Co mm ands 111 READ A TTRIBUTE 8Ch The READ A T TRIBUTE command allo ws an a pplication client t o r ead at tr ibute values to MAM (Medium A u x iliary Me mory ) . It sh ould b e ex ec uted b efo r e sendi ng a WRI TE A T TRIBUTE comma nd. Pr e -e xec uti on chec ks: In or de r to e x ecut e a REA D A TTRIBUTE co mman d , th er e mus t be a cartr i dg e in th e dr i v e , e v en i f it is only partially loaded , so that the MAM can be rea d. Co mma nd de s c r ipto r b loc k: CDB f ields: Illegal F ield Defer red Err or Unit Attentio n Media A ccess 7 6 5 4 3 2 1 0 0 Operation Code (8 Ch) 1 Reserved (0) Service Action 2 Re s er v e d ( 0) 4 5 Vo l u m e N u m b e r ( 0 ) 6 Re s er v e d ( 0) 7 Pa r t i t i o n N u m b e r ( 0 ) 8 (MSB) F irs t Attr ibute ID 9 (LSB) 10 (M S B) Allo cation Le ngth 13 (LSB) 14 Re s er v e d ( 0) 15 Control Ser vice Ac t ion Servi ce acti ons ar e defin ed as follo ws. Th e data r et ur ned f or eac h Se rv ice Ac ti o n is descr ibed below . Code Na me De scripti on 00h At tribute V alues Retu rns the attribute v alues. 01h At tribute List Retur n s a list o f attribute IDs that are a vailable (both supported and ex i sting IDs) 02 h Vo l u m e L i s t Re t urns a lis t of kno wn volu me number s . F or Ult rium dri ves , there is onl y a single volume , V olume 0. 03 h P ar tition List Returns a l ist of known part ition numbe rs. F or Ul tr ium dri ves , there i s only a single partition , P artition 0. 04h –1F h Rese rve d
Comm ands 112 R eturned data for se r v ice ac tions: Attribute V alues service action This servi ce reads the v alues of attr ibutes for the spec ifi ed volume and p artiti on, starting at the F ir st Attr ibut e ID . T he att rib ute s ar e re turn ed in asc endin g nume ri cal or der . Th e fo rma t of the r etur ned data is as f o llo ws: The A v ailable Data f ield contains the number of bytes of attr ibute v alues r eturn ed. Ev en if the data r eturned has t o be truncated becau se the Allocati on Length is too small , the cont ents of the A vailable Data field r emain the sa me . F or details of the available attr ibutes and the f ormat of the data r eturned fo r each, see “MAM attr ibute data” on page 115. Elem ent Ad dress Set to z er o t o indi cate that Ultrium tape s on l y support a single ele m ent . Elem ent T ype Code Set to z er o to indi cate that Ultrium tape s onl y support a single element . V olume Number Set to z ero to indi cate that Ultrium tape s onl y support a single v olume. P artit i on Nu mbe r Set to z er o t o in di cate that Ultrium tapes onl y support a single partition . F i rs t Attr ibute ID The ide ntifie r o f the f irst attri bute to be re tu r n ed. This f ield is no t c heck ed if the Servi ce Ac tion value is 01h (Attr ibute L is t). If the attr ibute doe s not e x ist i n MAM but there are mor e at tr ibutes av ai lable a fter it , the data retur ned will contain the va lues of thos e at tr ibutes. Otherw ise CHECK C ONDIT ION is returne d w ith ILLEG A L RE QUE S T sens e. Alloca tion Leng th The maximum amount of data (in bytes) that will be r eturned to the host . The dr i ve w ill r eturn the e n tir e list of v alues or Allocation L ength bytes , whic hev er is the lesser . 7 6 5 4 3 2 1 0 0 (MSB) A v ailable D ata ( n − 3) 3 (LSB) 4 Attr ibute ID 1 a :: m Attr ibute ID x n
READ A TTRIBUT E 8Ch Co mm ands 113 Attribute List service action This se r v ice actio n is used to r etr iev e the identif ier s of all the attr ibutes that ar e supported and e xist . The F irs t Attr ibute ID fie ld in the CDB is igno r ed . The attr ibut e iden tif ier s ar e r etur ned in asce nding numeri cal order . The fo rmat of the r eturned data is as follo ws: The A vailable Data f ield spe c ifies the number of b y tes of attribute ID data returned . Ev en if the data r eturned ha s to be truncat e d becaus e the Allocation L ength is too small , the conten ts of the A vailable Data field r emain the sa me . A t wo-byte Attr ibute ID is returned for each attribute av ailable on MAM . See “ Attribute ID values ” on pa ge 116 f or a de sc ri p ti on o f the A ttr ibu te ID v alue s. P artition List ser vice action The P artition L ist servi ce acti on is us ed to r eport the number of partitions suppo rted in the spec if ied v olume , which in the case of U ltrium dr iv es is 1. T he P a rtiti on Nu mber and A t tr ibute f ields in the CDB ar e i gnor ed . The i nfo rmat ion r etu rned is as f ollo ws: The F irst P artition Number is the firs t p artition av ailable on the specif ied volume . S ince Ultr ium dr ives do no t support multiple partitions, this is 0. The Number of P artitions Av ailable indicates the number of partitions av ailable on the specif ied v olume . Since Ul tr iu m dr iv es do not support multipl e partitions, this is 1. 7 6 5 4 3 2 1 0 0 (MSB) A v ailable D ata ( n − 3) 3 (LSB) 4 Attr ibute ID 1 a : : m Attr ibute ID x n 7 6 5 4 3 2 1 0 0 (MSB) Ava i l ab l e D at a ( 2 ) 1 (LSB) 2 Fi r s t Pa r t i t i o n N u m b e r ( 0 ) 3 Numb er of P ar t itions Av ailab le (1)
Comm ands 114 V olume List service action The V olume List s ervice acti on is used to r eport the numbe r of v olumes that t h e de vi ce server supports , w h i ch in the case o f Ultrium dr iv es is 1. The V olume Number , P a rtitio n Number and Attr ib ut e fi elds i n the CDB ar e i gnor ed. T he inf or mati on r etur ned is a s fo llow s: The F irst P artition Number is the f ir st v olume . Sinc e Ultr ium dr i v es do not suppo rt m ultiple vo lumes , this is 0. The Number of V olumes A vailable indicates the number of partitions av ailable. Since Ultrium dr ives do not suppo rt multi ple v olumes, this is 1. R ea d Attribut e spec ifi c status: The command will be terminated and will r eturn CHECK CONDIT I ON under the follo wing circu mst an ce s: 7 6 5 4 3 2 1 0 0 (MSB) Ava i l ab l e D at a ( 2 ) 1 (LSB) 2 Fi r s t Vo l u m e N u m b e r ( 0 ) 3 Num ber of V olu mes Av ailable (1) Desc riptio n Sens e Ke y Ad di tional Se nse Ther e is no cartri dge presen t in the dri ve , not ev en partially loaded . NO T READ Y 3A 00h ( medium not pr esent) Th e MAM i s no t a cce ssible ev en though ther e is a tape in the dri ve . MEDIUM ERRO R 0410h (MAM not accessible) The MAM has f a iled (for e xample fr om a bad ch eck su m) . MEDIUM ERRO R 1 11 2 h ( M AM re ad e rro r) Th e comb ina tion o f V olume Numb er and P artiti on Number is not valid. ILL EG AL RE Q UES T 2 400h ( in valid field in CDB) The Se rvice Action fiel d does not m atch a sup por ted Ser vice Act ion I D . ILL EG AL RE Q UES T 2 400h ( in valid field in CDB) The F i r st Attribute ID f ield does not matc h a supported F irst A t tr ibute ID . ILL EG AL RE Q UES T 2 400h ( in valid field in CDB)
READ A TTRIBUT E 8Ch Co mm ands 115 MAM at tr ibute data Attr ibute da ta sent w ith a WRI T E A TTRIB UTE co mm a nd o r re tu rn e d i n res po n se t o a REA D A T TRI BUTE command has the follo wing f ormat: The fo rmat implies not h ing about the ph ysical r epr esentation of the data in the Medium A ux i liar y Me m ory . 7 6 5 4 3 2 1 0 0 (MSB) Attr ibute Id entifie r 1 (LSB ) 2 Read-On ly Reserved (0 ) F ormat 3 (MSB) At tri bu te L en gt h ( n − 4) 4 (LSB ) 5 (MSB) At tri bu te Valu e n (LSB) Attr ibute Iden tifier The binary identif ier fo r a single attr i bute . See “ Attri b ute ID values ” on pag e 116 for a des cription of attribute ID v alues. Read- Only Spec ifi es whethe r an attribute is r e ad-onl y . The b it is ignor ed b y the READ AT T R I B U T E command . 0 The attr ibu te ma y be c hanged by the WRITE A TTRIBUTE command. 1 The at tr ibute cannot be c hang ed by WRI TE A TTRIBUTE . For ma t Spec ifies th e d ata f ormat of the attr ibute. T he possible v a lue s are: Va l u e Desc riptio n 00b Binar y . The attribute c ontains binary data. 01b AS CII. At tr ibutes contain only graphi c codes (code values 20h–7Eh). It must be left -aligned and contain 20h (AS C II space) i n any unu sed byt es . 10b T ext . The attribu t e contains textual data . The c h a r acter set is a s desc ribed in the T ext L o cali z ation I dentif ier attribute in “Standar d host type attributes ” on page 118. 11b Rese r ve d. At tri bute Le ngth The len g th in b ytes of the A t tr ibute V alu e f ield .
Comm ands 116 Attribute ID values Attr ibutes can be Standar d or V endor -Unique . Ther e are thr ee gr oups of attr ibutes: Dev ice, Mediu m and Host attr ib ut es. Eac h gr ou p has a list of a ttr ibu tes , w hic h ch ar ac ter iz e the gr ou p: W RITE A T TRIBUTES c ommands ar e only accepted for Host type attr ibutes (either Standar d or Ve n d o r- U n i q u e ) . T r y ing to read or wr i te De vice o r Medium t ype V endor -Uniq u e attr ibutes will f a il and CHE CK CONDITION statu s is r eported. Sense data w ill b e as desc ribed in the I llegal F ield Checks. Stan dard dev ice type attribu t es Attrib ut e ID Attribu t e T ype S tand ard/V endor -Uniq ue Read- O nly 0000h–03FF h Dev ice S tandard Y es 0400h– 0 7F Fh Medi um Standard Y es 0800h–0BFF h Hos t Standa r d No 0C00h–0F FFh Dev ice Ve n d o r - U n i q u e Ye s 1000h– 13FFh Medium Ve n d o r- U n i q u e n / a 1400h– 17FFh Hos t Ve n d o r - U n i q u e N o 1800h–FF FFh Re ser ved ID Attrib ute Siz e (b y tes) For ma t 0000h R emaining capacity in par tition 8B i n a r y 0001h Ma xi m um ca pac ity in partit ion 8B i n a r y 000 2h T apeAlert flags 8B i n a r y 0003h L o ad count 8B i n a r y 0004h MAM s pace r emaining 8B i n a r y 0005h Ass ignin g or g ani z atio n 8A S C I I 0006h F ormatted densit y code 1B i n a r y 000 7h–0209h Rese rve d 020Ah Dev ice mak e/seri al number at last load 40 ASCII 020Bh Dev ice make/ser ial number at load – 1 40 AS CII 02 0 Ch D e vice mak e/serial number at load –2 40 ASCII 020Dh Devi ce m ak e/serial numbe r at load –3 40 ASCII 020 Eh –021 Fh Re se rve d 0220 h T otal MB wr itten in medium life 8B i n a r y 0221 h T otal MB r ead in medium life 8B i n a r y 0222 h T otal MB wr itten in c urr ent/last load 8B i n a r y 022 3h T otal MB r ead in c u rre n t/las t load 8B i n a r y
READ A TTRIBUT E 8Ch Co mm ands 117 02 2 4h–03FFh Re ser ve d Rem aining capacity in partitio n and Maximum capacit y in partition Nativ e capaciti es in MB, assuming no data compr ession . Ta p e A l e r t f l a g s The b i ts sp ec if y flags th at w ere set dur ing the pre vi ous load. 1 bit per flag (MSB = flag 1, LSB = flag 64) . Loa d co un t The number of times th is ta pe h as bee n f u ll y loaded. It is nev er re se t. MAM space r e maining T h e s pace c urr ently fre e in the MAM. The total MAM capac it y is r eported in the MAM Capaci t y attribute def in ed in “S tandard medium ty pe a ttribute s” on page 118 . Note that it may not al wa y s be pos sible to use all the f r ee space in a giv en MAM implementati on . Depending on the inter nal or g ani z ation of the memory and the softwar e that controls it , fr agmentati on i ssue s ma y mean that certai n attr ibute si z es might not be full y accommodated as the MAM nears its max i mum capacity . As s i gnin g org ani z ati o n The V end or ID of the organi z ation that w ill define attribute 0006h . It c ontains t he string “ LTO-CVE ”. F ormatt ed de nsity cod e The medium density code. Device mak e/serial numbe r at la st load and Device make/serial number at load – n Thes e a ttr ibutes pr ov ide a rollin g his tor y of the las t four dev ice server s in whi ch the tape has been loaded. T he for mat of the attribute s is as follo ws: ID Attrib ute Siz e (b y tes) For ma t 7 6 5 4 3 2 1 0 0 (MSB) V endor Ide ntifi cation 7 (LSB ) 8 (MSB) Pr od u c t Seria l Numb e r 39 (LSB) V endor Identification The s ame value a s is r eturned in the S CS I INQ UIR Y command b y the de vice serv er , padded with A S CII spaces (20h). Product Serial Number V endor -as signed se ria l number , padded with A S CI I spaces ( 20h) . T otal MB w ritten in medium life and T otal MB re ad in medium life The total number of data bytes w ritten to or r ead f rom the tape (after any data comp r essi on has been applie d ) o ver the e ntire t ape life . These fi g ur es are cumulativ e and w i ll ne ver be r eset. T ota l MB writte n in curre nt/las t load and To t a l M B r e a d i n curren t/last l o ad Thes e are similar to the attri butes abov e but apply to the c urr ent load (if the tape is cur rentl y loaded) or the last load (if the tape is cur rentl y unloaded) . T h e de vi ce server should r eset these attr ibutes to z er o when the tape is loaded.
Comm ands 118 S tan dar d medium t y pe attr ibu tes St andar d host type attribu tes These onl y ex ist if they ar e initializ ed b y an applicati on: ID Attribut e Size (bytes) Format Desc ription 0400h Medi um manufa ctur er 8 ASCII T he name of t he manufacturer . 04 01h Medium serial number 8 ASC II The ser ial number , left-aligned a nd padded w i th A SCII spaces (20h) . 04 02h Medium length 4 Binar y The length o f the tape in me ters. A v alu e o f 0 means the length is unde f ined. 04 03h Medium width 4 Binary 12 7 T h e w idth of th e tape in mm 0404h A ssignin g organi zation 8 ASCII Contains t he st r i ng “ LTO-CVE ”. 04 05h Medium densit y code 1 Binar y The tape density code. 04 06h Medium m anuf a ctur er date 8 AS CI I The date of manufactur e in the f ormat YYYYMMD D . 040 7h MAM capac i ty 8 Binary The total capac ity of th e MAM, not its fr ee space . 04 08h Medium t ype 1 Binary T h e type of tape: 0 Data c artridge 1C l e a n i n g c a r t r i d g e Other v alues ar e rese r v ed. 040 9 h Medium t y pe infor m ati o n 2 Bin ary On l y meaningful for a cleaning cartridge , where it gi ve s the max imum n umber of c leaning cyc les per m itted . 040Ah – 0 7FFh Res er ve d ID Attribut e Siz e (bytes) For ma t Descr iption 0800h Application v endor 8 AS CII 0801h Application name 3 2 A SCII 080 2h Appli c ati on v ersion 8 AS C II 080 3h Us er med ium te xt label 160 T e x t The user le vel i dentifi er for the tape . 0804 h D ata and ti me l ast writ ten 12 ASCII Forma t is YYY YMM DD HHM M ( 0–2 4 hour s) 080 5h T e xt localiz ati on id e ntifier 1 Binar y Defi ne s th e c haract er set for the attr ibutes defined a s “te xt” . See the t able belo w . 0806h Barcode 32 AS CII Allo ws an appli cation s er v er to stor e the conte nts of a bar code assoc iated w ith the medium in the MAM . F or mat is YY YYMMDD .
READ A TTRIBUT E 8Ch Co mm ands 119 *0809h and 080Ah are opti onal for L T O dri ves becau se they onl y support a single partition. T ext locali zation indentifiers The T ext L ocal i z ation Identif ier def ines the ch aract er se t used fo r attr ibutes w ith a text f ormat: 080 7h Owning host textual nam e 80 T ext The host ser ver fr om which t he User Medi um T ext Label or iginates . 0808h Media pool 160 T ext Indicates the media pool to whi ch this tape belongs. 0809 h Part it ion u ser text l abe l* 1 6 ASCII Id ent ifier for the pa rt iti on s pecifi ed in th e C DB. 080Ah Load/unload at par tition* 1 Bi nary 0 The load or unload occurs at the beginni ng of the tape . This is the def ault setting if the attri bute does not e xist . 1 L oa ds and unloads at the par tition sp ec ifi e d in the CDB ar e allow ed 080Bh Applicati on format ve rsion 1 6 A S C II 080Ch– BFFh Res er ve d ID Fo rm at 00h No code spec i f ied (A S CII) 01h IS O/IEC 8 85 9-1 (E urope , L atin America) 02 h I SO/ I EC 8859-2 ( Eas te rn Eu rop e ) 03 h I SO/ I EC 885 9 - 3 (S E Eu ro p e/ m i sc el l an e ou s) 04h IS O /IE C 8 85 9- 4 (Scandin a via/Baltic) 05h IS O/I E C 88 5 9-5 (C yr illic) 06h IS O/IEC 8 8 5 9-6 (Ar abic) 0 7h IS O /IE C 8 85 9- 7 ( Gr eek) 08h IS O/ IE C 88 5 9-8 (Hebre w) 09h IS O/ IE C 88 5 9-9 (Latin 5) 0Ah IS O/IEC 88 5 9-10 (Latin 6) 0Bh– 7Fh R es erved 80h IS O /IE C 10646 (Unicode) 81h IS O/IEC 1064 6 - 1, Amendment no . 2 ( UTF- 8 ) 8 2h–FFh R eserv ed ID Attribut e Siz e (bytes) For ma t Descrip tion
Comm ands 120 READ BL OCK LIMI T S 0 5h R EAD BL OCK LIMIT S tells the dri ve to r eturn dat a de fining the maximum bloc k siz e that it can support . Note that this is the maximum support able, not t he fix ed block si ze . Pr e -e xec uti on chec ks: Co mma nd de s c r ipto r b loc k: R ead Block Limits da ta: Illegal F ield R eservatio n Defe rred Er ror Unit Attenti on 7 6 5 4 3 2 1 0 0 Op er at ion Code (05 h) 1 Re s er v e d ( 0) 4 5 Contr ol 7 6 5 4 3 2 1 0 0 00h 1 (MSB) Max imum Bloc k Leng th (FFF FFFh) 2 3 (LSB) 4 (MSB) Minimum Blo c k Length (0001h) 5 (LSB)
READ BUFFER 3Ch Co mm ands 121 RE AD B UFFER 3C h R EAD BUFFER r eads data f rom the memory on the dri ve and sends it to the initiator . The v alue of the M ode f ield determines whether only the 4- b yte descr i pt or is returned , only the data is retur ne d , or whether b ot h ar e r etu r n ed. Pr e -e xec uti on chec ks: If any of the follow ing rules ar e br oken then CHECK COND IT ION st atu s is r eported . Sense data w i ll be as descr ibed in Illegal F ield Checks. Co mma nd de s c r ipto r b loc k: CDB f ields: Illegal F ield Res er v ation Defer red Er ror Unit Attenti on 7 6 5 4 3 2 1 0 0 Operation Code (3Ch) 1 Re ser ve d( 0) M o de 2 Buffer ID 3 (MSB) Buffer Off se t 5 (LSB) 6 (MSB) Allo cation Le ngth 8 (LSB) 9 Contr ol Mod e 000 00b A 4 -b yte descr iptor is r eturned, f ollo wed by ( Allocation L ength − 4) bytes of data .The data is read fr om the buffer i dentified b y the Buffer ID , starting fr om o f f set z er o in the buffe r . The Buffer ID and Buffer Offset must both be 00h. 00010b The dri ve r eturns Alloc a ti on Length b y tes of data whi ch is r ead f rom the buff er identif ied by the Buff er ID, s tar ting fr om Buffer Of fset b ytes fr om the start of the buffer . Ther e are no r estr i c ti ons on the v alue of Buffer ID and Buffer Offs et , ex c ept that the Buffe r Offset must be k ept wi th in the buffer si z e. 00011b The dri ve r eturns a 4- b yte desc riptor for the bu f f er identifi ed by the Buffer ID f ield . Invali d buffer IDs will r eturn a buffer desc riptor of all z eros . The B uffer Offset field must be zer o. 01010b The dri ve r eturns data f rom the E cho B u ff e r . The Buffer ID and Of f set are i gnored . 01011b The dri ve r eturns the E cho Buffer desc riptor . The Buffer ID and Offset are ignor ed . Buffer ID The Buffer ID indicates w hich buffer is to be r e ad . The buffers ar e defined as f ollow s: Buffer ID Mem ory Ar ea Categor y Offset Bounda r y 00h Main buf f er mem o r y RAM 4 by te s 01h Process or ad dr essable memory R AM 1 byte
Comm ands 122 Memory si z es: 0 2h S CSI burst buffer RAM 4 b ytes 10h CM EEPRO M EEPR O M 1 byte 11h Mechani cal EEPRO M EEPR OM 1 byte 12h Head assembly EEP ROM EEPR OM 1 byte 13h PCA EEP ROM EEPR OM 1 byte 20h Main buffer s egmen t 0 RAM 4 b ytes see belo w for details 21h Main buffer s egmen t 1 RAM 4 b ytes see belo w for details 2 2h Main bu f f er segment 2 R AM 4 by tes see belo w for details 2 3h Main buffer segmen t 3 RAM 4 b ytes see belo w for details 2 4h Main buffer s egment 4 R AM 4 byte s see belo w for details 2 5h Main bu f f er segment 5 R AM 4 by tes see belo w for details 2 6h Main buffer segmen t 6 RAM 4 b ytes see belo w for details 2 7h Main buffer segmen t 7 RAM 4 b ytes see belo w for details Buffer Offse t The Buffer Offset f ield may be set to an y address i n the buffer , but must obey the spec ified Offset Boundar y . Allocation Leng th The amount o f data to r eturn . Allocation Length Buff er Offset mus t b e w ithin the buffer si z e . Main Bu f fe r Memor y Si z e: 12 8 MB, re p o rted si z e FFFFFFh. Becaus e the buffer is gr eater than 16 MB, additional buff er IDs have been defi ned to allo w the buffer to be accessed in 16 MB segments. these ar e as follo w s : Buffe r ID Add ress 20h 000000 00h Buffer Offset (same as Buffer ID 00h) 21h 010000 00h Buffer Offset (in other wor ds, 16 MB) 2 2h 0 2000000h Bu ffer Offset (in other wo rds, 3 2 MB) 2 3h 0 3000000h Buf f er Offs et (in other w ords, 4 8 MB ) 2 4h 0 4 00000 0h Buffer Offset (in other wor ds, 64 MB) 2 5h 0 5000000h Buffer Of f s et (in other w ords, 80 MB) 2 6h 06000000h Buffer Offset (in other wor ds, 9 6 MB) 2 7h 0 7 00000 0h Buffer Offset (in other wor ds, 112 MB ) Process o r M emor y Not all of the Pr ocessor Mem or y space is acc es sible. T he follo wing ta ble sho ws valid addr ess segments: Segment Star t Address Segm en t Size Seg ment Descri ption 100000h 100000 h Ex t er na l f lash 200000h 80000h Ex ter na l SRAM (if fit t ed) 3 80000h 80000h F ormatter AS IC
READ BUFFER 3Ch Co mm ands 123 R eturned data: The f ormat o f t h e 4-byte desc ript or for Mode 00000b is a s follo ws: The f ormat o f t h e 4-byte desc ript or for Mode 00011b is a s follo ws: The fo rmat of the 4-byte E cho buffer desc ripto r for Mode 010 11b is as f ollow s: 400000h 40000h Servo Contr oller ASI C FF8000h 7 0 00h Contro ller internal SRAM SCS I B ur s t B uf fe r 3F8 0 00h b ytes L T O-Cartr idge Memory Si z e = 4 KB M echa nism EEPROM Siz e = 8 KB Head A ssemb ly EEP ROM Siz e = 16 KB P CA EEP RO M Siz e = 3 2 KB 7 6 5 4 3 2 1 0 0 Re s er v e d ( 0) 1 (MSB) Buffer Cap ac it y 2 3 (LSB) 7 6 5 4 3 2 1 0 0 B uffe r Off set B o und a ry 1 (MSB) Buffer Cap ac it y 2 3 (LSB) 7 6 5 4 3 2 1 0 0 Res e r ved (0 ) EB OS (1) 1 (MSB) Ec ho Bu ffe r Siz e (10 00h) 2 3 (LSB)
Comm ands 124 READ CAP A C I TY (CD-RO M mode ) 25 h R EAD capac ity transf ers R e ad Capac ity data to the host . Pr e -e xec uti on chec ks: If the dri ve is not in CD-ROM mode , the r equ est w ill ret ur n CHECK COND ITION statu s with a sens e k ey Illega l Command. Co mma nd de s c r ipto r b loc k: CDB f ields: R ead C apac ity data The fo l lo wing data is alw ay s retur ned: Illegal F ield F ixe d Bit Flag L ink Bad L UN Re ser v ation Defer red Err or Unit Attention 7 6 5 4 3 2 1 0 0 Op er ation Co de (25h) 1 Log ical Unit Numb er Reserved (0) R el Adr(0) 2 (MSB) Lo gical Bl ock A ddr ess (0) 5 (LSB) 6 Res e r ved (0 ) 7 Res e r ved (0 ) 8 Rese rv e d ( 0 ) PMI 9 Contr ol Log i ca l Bl oc k Ad d res s This flag is ignor ed . It is recommended that it should be zer o . PM I This flag is ignor ed. It is r e commended that it should be zer o . 7 6 5 4 3 2 1 0 0 (MSB) Retu rne d Lo g ic a l B lo ck Ad dre ss (0004B 000h) 3 (LSB) 4 (MSB) Block Length in by t es (0000080 0h) 7 (LSB)
RE AD MEDI A SERIA L NUMBE R ABh Co mm ands 125 RE AD MEDIA SERIAL NUMBER ABh R EAD MEDIA SERIAL NUMBER pr o v i des a meth od f or t he host appli cati on to r ead the seri al number of the cartri dge c urr ently loaded in the d r iv e. Pr e -e xec uti on chec ks: Co mma nd de s c r ipto r b loc k: CDB f ields: If ther e is no c artri dge in the dr i v e , the command is t erminated w ith CH E CK C ONDIT ION st atus. T he sense k ey is se t to NO T READ Y with additional sense of 3A00h (mediu m not pr esent). R eturned data: The data r eturned depends on whether a barcode number has been stor ed in the L T O-CM using the WRI TE A TTRIB UTE c omma nd . Storing th is i s the respon sibi lit y of th e librar y controller or host applicati on. Illegal F ield R eservati on D ef err ed Err or Unit A t ten ti on Media A ccess 7 6 5 4 3 2 1 0 0 Operation Code ( A B h) 1 Reserved(0 ) Service Action ( 01h) 2 Re s er v e d ( 0) 8 6 (MSB) Allo cation Le ngth 9 (LSB) 10 Re se r ved (0 ) 11 Control Ser vice Ac t ion 01h The Servi c e Action mus t b e se t to 01h . Allocation Length Th e max imum amount o f dat a (in b ytes) to be r eturned t o the h os t . T he dr i ve w ill r eturn the entir e ser ial number stri n g or allocati on length bytes , whic heve r is least.
Comm ands 126 No barcode stored: Ba r cod e store d: 7 6 5 4 3 2 1 0 0 (MSB) Seri a l Number Length (0Ch) 3 (LSB) 4 (MSB) Car tri dge Se ri al Number 13 (LSB) 14 (M S B) AS CI I NUL charac ters (00h ) 15 (LSB) Car tridge Se ri al Number The se rial num b er of 1 0 A SCII c haracte rs stor ed i n the L T O-CM Cartr idge Manufacture r’s Information page. 7 6 5 4 3 2 1 0 0 (MSB) Seri a l Number Length (2Ch) 3 (LSB) 4 (MSB) Car tri dge Se ri al Number 13 (LSB) 14 (M S B) ASCII Spac e cha r ac ters (20h) 15 (LSB) 16 (M S B) Barcode Number 47 (LSB) Barcode Number The barcode number of 3 2 A SCII c h ar acters sto r ed in the L T O -CM Applicati on Specific pa ge.
READ PO SITION 34h Co mm ands 127 R E A D POSITI O N 34 h The READ POSITION c om m a nd ret u rn s da ta re pre se nt i ng t he cu rre nt lo g ic a l p o s it io n to th e ho s t . The position is the count o f all marks and blocks between BOM and the cur r ent logical position . The f irst block is bloc k 0. The command causes no tape mo vement . The R ead P osition command is com pl iment ed by the LO C AT E command . Pr e -e xec uti on chec ks: Co mma nd de s c r ipto r b loc k: CDB f ields: Illegal F ield Reserv ation D ef err ed Err or Un it At te nt ion M ed ia Acc ess D ia gn os tic Sta tus 7 6 5 4 3 2 1 0 0 Operation Code (34h) 1 Reserved( 0 ) S er vice A ction 2 Re s er v e d ( 0) 6 7 Alloc ation Leng th 8 9 Contr ol Ser vice Ac t ion The f ol lo wing v a lues are supported: 00h 06h 08h Short F orm Block ID Long F o rm Extended F orm Alloca tion Leng th F or Ser v ice Acti ons 00h and 06h, m ust be 0.
Comm ands 128 Short F or m Block ID Returned data fields: 7 6 5 4 3 2 1 0 0 BOP E OP L OCU (1) B Y C U (1) Rsvd ( 0 ) L OL U (0) P ERR Rsvd (0) 1 Pa r t i t i o n N u m b e r ( 0 ) 2 Re s er v e d ( 0) 3 4 (MSB) F irst Blo c k Locatio n 7 (LSB) 8 (MSB) Last Block Location (same as First Block Location) 11 (LSB) 12 Re s er v e d ( 0) 13 (M S B) Num ber of blo cks in buf fer (0) 15 (LSB) 16 (M S B) Numb er of bytes in buf fer (0) 19 (LSB) BOP 0 The c urr ent logical positi on is not at BOM (beginning of m edia). 1 The c urre nt logical positi on is at BO M. EOP 1 T h e c urr ent logical positi on is wi thin the EW- E OM r egion . LO C U 1 The number of blocks in the buffer is unkno wn . BYC U 1 The number of b ytes in the buffer is unkno wn . LO LU 0 The P ar tition N umber , Fi rst Block Locati on and L ast Block L ocation fields ar e valid. PER R 0N o p o s i t i o n e r r o r 1 The re has been a p o sition err or cau sed by the o verf low of some positi on fi eld dat a. P artit i on Nu mbe r T his w ill alw ays be z er o. F i rs t Blo ck Loc at ion The number o f b loc ks and filemarks f ro m BOM to the cur rent posi tion. C ounting starts at ze ro , so BOM is block locati on 0. Last Blo ck Loc at ion Alw a ys set to the v alue of the F irst Bloc k L ocation .
READ PO SITION 34h Co mm ands 129 Lo n g B l o ck Form I D Returned data fields: 7 6 5 4 3 2 1 0 0 BOP E OP R eserved (0) MP U L ONU (0) Res erved (0) 1 Re s er v e d ( 0) 3 4 (MSB) Pa r t i t i o n N u m b e r ( 0 ) 7 (LSB) 8 (MSB) Block N u mber 15 (LSB) 16 (M S B) Fi le N u m b er 23 (LSB) 24 (MSB) Set Number(0) 31 (LSB) MPU Mark P osition U n kno wn 0 The F il e Num ber a nd Set Num ber fields a re valid. LO N U 0 Th e P art ition Nu mber and Blo ck Number ar e valid. P artit i on Nu mbe r This w ill alwa ys be z er o b ecaus e Ultrium dri ves do not support multiple partitions. Block Numbe r The number of logical blocks betwee n BOP (beginnin g of partition) and the curr ent logical po sition. F ilemark s cou nt as one logical block eac h. File Numb er The number of f i lemarks between BOP and the curr ent logical position . Set Number T he number o f se tmarks betwee n BOP and the c urr en t logical position .
Comm ands 130 Extended Bl o ck F orm ID 7 6 5 4 3 2 1 0 0 BOP E OP L OCU (1) B Y C U (1) Rsvd ( 0 ) L OL U (0) R eserv e d (0) 1 Pa r t i t i o n N u m b e r ( 0 ) 2 Additi onal L e n gt h (1Ch) 3 4 Re s er v e d ( 0) 5 (MSB) Num ber of blo cks in buf fer (0) 7 (LSB) 8 (MSB) F irst Blo c k Locatio n 15 (LSB) 16 (M S B) Last Block Location (same as F irst Bl o ck L ocation) 23 (LSB) 24 (MSB) Numb er of bytes in buf fer (0) 31 (LSB)
READ TOC (CD- ROM mo de) 43h Co mm ands 131 READ T OC (CD-R OM mo de) 43 h R EAD T OC transfers the T able of Co nten t s data to the hos t . Pr e -e xec uti on chec ks: If the dri ve is not in CD-ROM mode , the r equ est w ill ret ur n CHECK COND ITION statu s with a sens e k ey Illega l Command. The T rack/Sess ion Number must be s et to 0 or 1. Any other value will result in CHE CK C ONDI T ION statu s w ith sense data a s described in Illegal F ield Checks . Co mma nd de s c r ipto r b loc k: CDB f ields: Illegal F ield Fi x ed Bit Flag Link Bad L UN Reserv a tion D ef erred Er ror Un it At te nt ion M ed ia Acc ess D ia gn os tic Sta tus 7 6 5 4 3 2 1 0 0 Oper ation Code (43h) 1 L o g ic a l Un it Nu mb er Re ser ve d ( 0 ) M SF Rel Ad r( 0) 2 Re ser ve d ( 0) F o r m at (0 ) 3 (MSB) Re s er v e d ( 0) 5 (LSB) 6 Tr a c k / S e s s i o n N u m b e r 7 (MSB) Alloca tion Leng th 8 (LSB) 9 Contr ol MSF T his flag is i gnor ed. T rac k/ Sessio n N umber This may be set t o 0 or 1. It does not affec t the data r eturned. Alloca tion Leng th Th e m ax imum number of data b y tes that may be r eturned.
Comm ands 132 Rea d T O C d a ta The fo l lo wing data is alw ay s retur ned: 7 6 5 4 3 2 1 0 0 (MSB) T OC Data Length (12h) 1 (LSB) 2 Fi r s t Tra c k N u m b e r ( 1 ) 3 La st T rack Num ber ( 1) 4 Re s er v e d ( 0) 5 AD R (1) Control (4) 6 Tr a c k N u m b e r ( 1 ) 7 Re s er v e d ( 0) 8 (MSB) Lo gical Bl ock Addr ess (0000000 0h) 11 (LSB) 12 Re s er v e d ( 0) 13 ADR ( 1 ) Control (4) 14 T rack Number (AAh) 15 Re s er v e d ( 0) 16 (M S B) Lo gical Bl ock Addr ess (0004B 000h) 19 (LSB)
RECEIVE DIAGNO STICS RESULTS 1Ch Co mm ands 133 RE CEIVE DIA GNO S T ICS RE S U L T S 1C h R EC E IV E D IAG N OSTI C RE SU L TS tell s the driv e to return dat a fr om the last d iagn ostic te st requ ested thr ough the SEND DIA GNOS TIC command. If none ha s been sent , the data r ef ers to the po w er -on self -te st. Pr e -e xec uti on chec ks: Co mma nd de s c r ipto r b loc k: CDB f ields: Specific s tatus : If the dri ve not is connected to a c om p atible enclo su r e, a RE CEIVE DIA GNOS TIC c omman d w ith a Enclosure Ser v ices page num ber (01 to 0F) w ill r eturn a CHECK COND I TIO N wit h S en se key of NO T READ Y and additional sense of 35 02h, “ enclosure ser v ices un a vailable ” . If other in valid pages ar e r equest e d , CHE CK C ONDIT ION will r esult wit h status of ILLE G AL REQUE S T and additional sense of 2 601h, “ parameter not supported” . Illegal F ield Res er v ation D ef err ed Err or Unit Attenti on 7 6 5 4 3 2 1 0 0 Operation Code (1 Ch) 1 Re ser ve d( 0) PC V 2 Pa g e C o d e 3 (MSB) Allo cation Le ngth 4 (LSB) 5 Contr ol PCV The page code vali d flag is i gnor ed. Pa g e C o d e 0 Identifi er for the diagnostic inf ormation page to be retur ne d . Allocation Length 0 No data w ill be returned . This is not conside red an err or . The dr ive will r e t u rn allocation length by tes or the amount of da ta that is av ailable, whi chev er is least . >0 The number o f b ytes whic h the host has allocated for retur ned diag no sti c data.
Comm ands 134 Data r etur ned P age code 7 0 h — Self -T est (Read/W rite) Pa g e F o r m a t f o r Wr i t e : No parameter s are needed. Sending this page is equiv ale n t to a Send Diagn ostic command w ith both the Self T est a nd Un itO fl bit s set. P a ge form at for Rea d: 7 6 5 4 3 2 1 0 0 Pa g e C o d e ( 7 0 h ) 1 Re s er v e d ( 0) 2 (MSB) P arameter List Le ngth (0) 3 (LSB) 7 6 5 4 3 2 1 0 0 Pa g e C o d e ( 7 0 h ) 1 Re s er v e d ( 0) 2 (MSB) P arameter List Leng th (4) 3 (LSB) 4 (MSB) Err or Code 7 (LSB)
RELEASE UNIT 17h /57h Co mm ands 135 RELE A SE UNI T 17h/5 7h R ELEASE UNI T en ables the host to r ele ase an y reserv ation it may have on the d ri ve . R eser ving a dev ice is a w ay of ensur ing ex clusi v e access to t hat dev ice fr om a single initiator f or the per iod of the r eser v ation. T he driv e may be r eser v e d using a RESERVE command . Pr e -e xec uti on chec ks: Co mma nd de s c r ipto r b loc k: 6-b yt e 10 -byte 10 -b yte onl y Illegal F ield Def err ed Error Unit Attentio n 7 6 5 4 3 2 1 0 0 Operation Code (1 7h) 1 Re se r ve d ( 0 ) 3 rd Pt y Thi rd - Par t y D evic e I D R sv d ( 0) 2 Re s er v e d ( 0) 4 5 Contr ol 3rdPt y Th i s bit is al way s z e ro becau s e thi r d-par ty res er v ati on is not suppor ted . Th ird - Par t y Dev ic e I D This b i t is al way s ze ro becaus e th ir d-par ty res er vati on is not suppor ted . 7 6 5 4 3 2 1 0 0 Operation Code ( 5 7h) 1 Reserved (0) 3rd Pty Reserved (0) Lon g ID Rsvd( 0) 2 Re s er v e d ( 0) 3 Third- P ar t y D evice I D 4 Re s er v e d ( 0) 6 7 (MSB) Pa r a m e t e r L i s t L e n g t h 8 (LSB) 9 Contr ol 3rd Pty 0 Thir d- party release i s n o t r equested . 1 T h e initiator r equests thir d- party r elease . The value in the T hi r d-P art y De v ice ID f ield is valid .
Comm ands 136 R elease Unit s p ecif ic s tatus: Statu s is retur ned as follo ws: • If the dri ve is not re ser v ed , GOOD status is re po rted . • If the dr iv e is re served b y another h ost, GOOD statu s is r eported. • If the dr iv e is r eserved b y this host f or this host , the res er vation st atus is clear ed. Lon gI D This is alw ay s ze ro because de vi ce IDs gr ea t e r than 2 5 5 are not supported . Th ird - Par t y Dev ic e I D This is req uired and use d onl y when the 3r d Pty bit is set . The de v ice will perfor m the re lease operati on only if the initiator ID , the 3r d Pty bit and the Thir d-P art y Dev ice ID ar e identi cal to thos e in the RESE R V E UNIT command that established the re servation . The dr iv e ignore s any attempt to r elease the r eser v ation made by an y other initi ator , inc luding the initi ator fo r whi ch the r eserv ation w as made . If an initiator re ser ve d the dri v e usi ng a thir d- party r eservation o ver itself , a non -thi r d-par ty REL EASE U N IT command could also release the r eservation .
REPO RT DEN SITY S UPPOR T 44 h Co mm ands 137 REP OR T D EN S ITY S UP P OR T 44h The Re p o r t D e n s i t y S up p o r t com mand r eturns det a ils about the ta p e f ormats su pp ort e d b y the dri ve . The data is r eturned as a header and a ser ies of descr iptor blocks . Pr e -e xec uti on chec ks Co mma nd de s cr iptor bloc k CDB f ields Heade r The av ailable length gives th e total amo unt of data av a ila ble to be retur ne d . Illegal F ield Deferr ed Err or Unit Attenti on 7 6 5 4 3 2 1 0 0 Oper ati o n Code (44h) 1 Reserved (0 ) Med ia 2 Re s er v e d ( 0) 6 7 (MSB) Allo cation Le ngth 8 (LSB) 9 Contr ol Me di a 0 One descr iptor block is r eturned for each f ormat supported by the dr iv e. T h e capac i ty fi e ld in the desc riptor block w ill indicate the capacity of the cur rent media. 1 One desc r iptor block is r etu rn ed w ith the data for the c ur r ently loaded ta pe . The capac i ty fi e ld w ill indicate the maximum for the f ormat . If ther e is no tape inserted in the dri v e, the dr i ve w ill r eturn CH ECK C ONDIT ION wit h a sen se key of NO T READ Y and additional sense of 3A 00h (medium not prese nt) . Allocation Length Th is spec if ie s the max im um number of byte s w hic h the dr i v e should r e turn in it s data-out phase . Either the entir e available data or allocation length byte s of the page are r eturned, w hiche ver is least . 0 No data trans fer will occ ur . This is not consider ed an err or . 7 6 5 4 3 2 1 0 0 (MSB) A vailabl e Dens i ty Des cr iptor Len g t h 1 (LSB) 2 Re s er v e d ( 0) 3 Re s er v e d ( 0)
Comm ands 138 Desc rip tor bloc ks The header is follow ed by one or mor e Report Density Support descr iptor blocks w ith the follow ing form at : The values reported for Ultrium 3 for mat tapes ar e as f ollows: 7 6 5 4 3 2 1 0 0 Pr imary Density Code 1 Secondary Dens it y Code 2 WRT OK D UP (0 ) DE FL T Reserved (0) 3 Re s er v e d ( 0) 4 Re s er v e d ( 0) 5 (MSB) Bits per mm 7 (LSB) 8 (MSB) Me dia Width 9 (LSB) 10 (M S B) Tr a c k s 11 (LSB) 12 (M S B) Capacit y (MB ) 15 (LSB) 16 (M S B) Assi g n in g O r gani z a tion ( LTO- CVE ) 23 (LSB) 24 (MSB) Density Name 31 (LSB) 32 (M SB) Desc rip tion 51 (LSB) Primary Densit y Code 44h This is r eported via the Mod e Se ns e com mand. Secondar y Density Code 44h Not used WRT OK T he W r it e OK flag indic a tes w hether the dr iv e can wr ite at the density indi cated b y the Density Co de. 0 The dr iv e does not suppor t w riting to a tape w ith this density . 1 T he dri v e is capable of wr iting at this d ensity to the c urr ent tape (if the Media bit in the CDB = 1 ) or f or some tape (if Media = 0) . DUP The Duplicate flag w ill be set to z er o f or ev e ry descr iptor block indic ating that eac h density is onl y repo r ted on ce. DEFL T The Def ault flag w ill be set for the density for w hich the c urre ntly mounted medium is formatted and clear fo r all other densities . Bits per mm 488 0
REPO RT DEN SITY S UPPOR T 44 h Co mm ands 139 If this command is s ent to the HP Ultr ium 3 dr iv e w ith the Media bit se t to 0, thr ee descr ipt or blocks will be r eturn e d w ith ke y values as f ollow s: Medi a W i d th 12 7 T ape width is 1/2” or 12 .65 mm . The v alue in this f ield is in tent hs of mi lli mete rs round ed to t he n earest 0. 1 mm. Tra c k s 70 4 Capaci ty 400, 000 MB The max imum capac ity f or the format (or the capacity of the media if the Media bit is set) As s i gnin g Org an iz atio n L T O-CVE Th e CVE assigns the se codes . Densi t y Nam e U-31 6 The f ormat of this is: [U/A] -[Format Gener ation: 1,2...][ No of Tracks: 4,8,1 6...] Desc riptio n Ultriu m 3/16T A longer v ersi on of the abov e Densit y Code WRT OK DE FL T Capacit y 40h 0 0 186A0h 42 h 10 3 0 D 4 0 h 44h 1 1 61A80h
Comm ands 140 REP OR T D E VICE I DENT IFIER A3h Desc ri ption: The REP ORT DEVICE IDENTI F I ER command r eturns the identi f ier of the curr ent de vice to the init iat or . Pr e -e xec uti on chec ks: Co mma nd de s c r ipto r b loc k: CDB f ields: Data r etur ned: The re t urned P a r ameter Data is as f o llo ws: Illegal F ield Rese r vati on Defe rred Err or Unit Atte n t i on 7 6 5 4 3 2 1 0 0 Op er ation Code ( A3 h) 1 Reserved (0 ) S ervice Action ( 05h) 2 Re s er v e d ( 0) 5 6 (MSB) Allo cation Le ngth 9 (LSB) 10 Re s er v e d ( 0) 11 Control Alloca tion Leng th The number of b ytes that hav e been allocated fo r the De vic e I dentif ier The ac tual number r eturned w ill be the low er of the stor ed Dev ice Identif ier length and the allocation length s p ecif ied in this command . 7 6 5 4 3 2 1 0 0 (MSB) Identifier Length ( n –3) 3 (LSB) 4 Identifier n
REPOR T LUNS A0 h Co mm ands 141 REP OR T L UNS A0h Desc ri ption: The Repo rt LUNS command allows the host to r etr iev e infor mation about what logi cal units the dri ve supports. T he standar d dri ve only has a single LUN. Pr e -e xec uti on chec ks: Co mma nd de s cr iptor bloc k CDB f ields: Illegal F ield 7 6 5 4 3 2 1 0 0 Op er ation Code ( A0 h) 1 Re s er v e d ( 0) 2 Select Report 3 Re s er v e d ( 0) 5 6 (MSB) Allo cation Le ngth 9 (LSB) 10 Re s er v e d ( 0) 12 Control Sele ct R eport The type of logical unit addr e ss that will be r eported. Allo wable v a lues: 00h/0 2h R epor t all logi cal u n its acce ssible by the initi a tor through the addr ess targe t po rt. 01h No logical unit desc riptors ar e retur n ed becaus e th er e ar e no w ell-know n logical units . 03h – FFh R eserved . C HECK COND ITIO N ret u rn e d. Alloca tion Leng th Must be at leas t 16 byte s. If not , the dr iv e will r eturn CHECK CONDITION status and pr ovi de a sense ke y of ILLE G AL REQU E S T and additional sense of 2 400h (i n valid fie ld in CD B) .
Comm ands 142 Data r etur ned: 7 6 5 4 3 2 1 0 0 (MSB) LU N Li s t L e ng t h ( 0 8 h ) 3 (LSB) 4 (MSB) Res e r ved (0 ) 7 (LSB) Li st of LUN s 8 (MSB) LU N 0 ( 0 ) 15 (LSB)
REPORT SU PPORTED OPCO DES A0h Co mm ands 143 REP OR T S UP P OR TED OP C OD E S A0h Desc ri ption: The REPORT SUPPO RTED OPCOD ES command r eque sts infor matio n on command s supported b y logical unit that is addressed . Pr e -e xec uti on chec ks: Co mma nd de s c r ipto r b loc k: CDB f ields: Illegal F ield R eservatio n Defer red Er r or 7 6 5 4 3 2 1 0 0 Op er ation Code ( A0 h) 1 Reserved (0 ) S ervice Action ( 0Ch) 2 Re served (0) R eporting Op tions 3 Requeste d O peration Code(0 ) 4 (MSB) Requested Service Action 5 (LSB) 6 (MSB) Allo cation Le ngth 9 (LSB) 10 Re s er v e d ( 0) 11 Control Rep orting Optio ns 000b Only r e porting option 000b is support ed . This r e ques ts that the Dev ice Server r eturns a list of supported oper ations and ser v ice action s f rom the po r t thr ough whi ch the R E POR T SU PPO RT E D OPERA TION CODE S command was r e ce ived . Requested O peration Code I gnor ed for Reporting Option 000b. Requested S ervice Act ion Ignored f or Reporti ng Option 000b. Alloca tion Leng th The number of b ytes allocated f o r th e retur ned par ameter data.
Comm ands 144 Data r etur ned The r eturned P a r ameter Data contains a 4 -byte header f ol l owed b y one or mo r e command descr iptor s: Ea ch com mand desc ripto r c ontains either a support ed O per ation Code or an Oper ation Code/ Servi ce Actio n combina tion . The f orma t of each desc ripto r i s a s follo ws: 7 6 5 4 3 2 1 0 0 (MSB) C ommand D ata L ength 3 (LSB) Comm and Data Length The amount o f P a r ameter Data av ailable for r eturn mi nus the si ze o f th e header . 7 6 5 4 3 2 1 0 0 Operation Code 1 Re s er v e d ( 0) 2 (MSB) Service Acti on 3 (LSB) 4 Re s er v e d ( 0) 5 Reserved (0 ) ServActv 6 (MSB) CDB Le ngth 7 (LSB) Oper ation Code Th e operation code of the supported comman d . Ser vice Ac t ion A supported servi ce ac ti on of the oper ati on code . If no servi ce acti ons ar e supported this f ield w i ll be 00h. Ser vAct v 0 No ser v ice actions ar e supported an d the Serv ice Action f ield should be ignored. 1 This oper ation c o de supp o r ts serv ice acti ons and the Servi ce Actio n field contains a valid servi ce actions. CDB Length The length of th e CDB fo r th is oper ation code or operati on code/servic e a c tion comm and.
REPORT SU PPORTED TA SK M ANAGEMENT F UNCTIONS A3h Co mm ands 145 REP OR T S UPP OR TED T A SK MANA G EMENT FUNCT IONS A3h Desc ri ption: The REPORT SUPPO RT E D T ASK M ANAGEME NT FU NC TIONS c ommand r eturns infor mation about which ta sk management f unctions ar e supported b y the log i cal unit that is addr essed. Pr e -e xec uti on chec ks: Co mma nd de s c r ipto r b loc k: CDB f ields: Data r etur ned: The re t urned P a r ameter Data is as f o llo ws: Illegal F ield R eservatio n Defer red Er r or Unit At tention D iagnostic Status 7 6 5 4 3 2 1 0 0 Op er ation Code ( A3 h) 1 Reserved (0) Service Action (0D h) 2 Re s er v e d ( 0) 5 6 (MSB) Allo cation Le ngth 9 (LSB) 10 Re s er v e d ( 0) 11 Control Alloca tion Leng th The number of bytes that ha ve been allocated f or the re tu r ned p ar ameter data. T his value must be at least f our . 7 6 5 4 3 2 1 0 0 A T S A TSS CA CA S C TSS LU RS Q TS TRS W akeS 1 Re s er v e d ( 0) 3 AT S 1 The Abort T as k task m anage ment function i s suppo rted. AT S S 1 The Abort T ask Set task management f unc tion is supported. CACA S 0 T he Clear A CA task ma nagemen t funct ion is n ot suppo r ted .
Comm ands 146 CTS S 1 The C lear T ask S et task ma nagemen t funct ion is sup ported . LUR S 1 The Logica l Unit Reset t ask mana gement f unction is suppor ted. QTS 0 The Q uer y T ask tas k mana gement function i s not sup ported. TRS 0 The Tar g et Reset tas k mana gement funct ion is no t suppo rted. Wa ke S 0 The W akeu p task managem en t function is not supported .
REQUEST SENSE 03h Co mm ands 147 RE QUE S T SENSE 0 3h The REQUE S T S EN SE command tr ansfer s s ense data held within the dr i ve to the host dur ing a data- in phase . The data is valid in the f ollow ing cir cumstances: • Aft er rep o r t in g CHECK CON DITION status to the host . • After a command has terminat ed with an une xpected BUS FREE . • Immediatel y after the fo llow ing commands that cau se tape moti on: P ositional sense data is v alid whenev er media is pr esent and loaded and no higher pr ior i ty sense dat a is pr es ent . A n unsol ic ited r eq uest s ense ( that is , one w ith n o pr ecedin g CHE CK C ONDIT ION ) will r esult in sense data w ith no valid data , which will be all zer os. NO TE : Th e dr i v e main tains v ali d po sitio nal inf or mati on f or n or mal r ead and w rit e comm ands onl y ( REA D , WRITE , SP A CE , WRITE FILEMAR KS , REWIN D ) . If abno rmal commands (suc h as WRITE BUFFER ) ar e r ecei ved this positi onal sense inf ormation is l ost. See “Sense data management ” on page 15 4. Th e dri v e cle a r s sens e data f or t he ho st fo llow ing e x ecu tion o f th e RE Q UE S T SEN SE comman d f or that hos t, unles s the data is positional sens e data . Pr e -e xec uti on chec ks: Onl y Ille gal F iel d Ch eck is p erf orm ed bef or e ex ec uti on o f the co mmand . Co mma nd de s c r ipto r b loc k: CDB f ields: READ SP ACE VERI FY WRITE WRIT E FIL EMARKS R EWIN D 7 6 5 4 3 2 1 0 0 Operation Code (03h) 1 LUN Reserved (0) DES C 2–3 Re s e r ve d ( 0 ) 4 Alloc ation Leng th 5 Contr ol LUN Thi s field is ignored. DESC 0 F ix ed For mat sense data w ill be retur ned. 1 Desc r iptor F ormat sense data w ill be re tu r ned.
Comm ands 148 R e quest Sen se data Sense data is r e co ve r ed f r om th e dr iv e by means of a REQUE S T SEN SE comma nd foll ow ing the rep o r ti n g o f CHE CK C OND IT ION by t h e dri ve . There ar e t w o formats in whic h the data can be r eturned: F ix e d and Descr iptor . F ixed fo rm at The F ix ed format of t he r eturned data is as follo ws: R eturned S ense dat a fi elds: Allocation Length 0 No data is transferr ed to the host . >0 The max imum amou nt o f sens e d ata in b y t e s that should be tr ansferr ed to the host . The dr iv e returns up to A lloc ation L eng th b ytes of data; any e xtra sense data is los t. 7 6 5 4 3 2 1 0 0 V a l id E rror Co d e 1 Segment Number ( 0) 2 Mar k EOM ILI Rsvd(0 ) Sense K e y 3 (MS B) Infor mation Bytes 6 (LSB) 7 Additional Sens e Length (10h) 8 (MS B) Command Specifi c Information B y t es 11 (LSB) 12 A dd iti onal Se nse C ode 13 Ad diti onal Sen s e C ode Qualif ier 14 F ield Replaceable Unit Code 15 SKS V C/ D Reserved (0 ) BP V Bit P ointer 16 (MS B) F ield P ointer/Driv e E rr or Code 17 (LSB) 18–20 Re ser ve d ( 0) 21 Rese r ved (0 ) C LN Rese rv ed (0 ) 22 Pa d b y t e s ( 0 ) 23 Va l i d 1 In dic ate s th at the infor mation bytes cont ain v alid in f ormation as def in ed in the S CSI s pec if icat ion. Error Cod e 7 0h In di c a t es that the err or is cu r ren t , that is, it is assoc iated w ith the command for which CHE CK CO NDIT ION status ha s been reported .
REQUEST SENSE 03h Co mm ands 149 71h Indicates that the er ror is de ferr ed . A d eferred error o ccurs w h en t here i s a failure f or an operatio n that has alr eady been terminated w ith a GOOD status, or w hen failure oc curs in “ cleanup ” acti v ity follo wing an operati on that was te rminated by BUS RELEASE . The command for wh ich CHECK COND ITION statu s was r epor ted is ther ef ore unlik ely t o be the cau se of the defer red er ror . It simply gi ves th e d r iv e the opportu nity to r eport CHE CK COND ITION st atu s fo r an er ro r tha t alr ead y e x ists . Segment Numb er T his fi eld is clear ed to z er o. Mark 1 The Mark bit is s et t o 1 if a SP A CE , READ or VERIFY c o m mand did not complete because a f ilemark wa s r ead. T his bit may only be set if the sens e key is NO SEN SE . EOM 1 The End of Medium flag is set if a WRIT E or WRITE FILEMAR K S comm and complet ed in the early w arning ar ea. If no oth er err or occur red , the sense code will be s et to NO S ENSE w ith addi tio nal sense of 0002h (E O T) . If another err or occur red, the s ense code an d additio n al sens e will r eflect that err or . It is also se t if BOP is e nco unter ed wh ile spac ing o ver blo c ks or fil emark s i n t he reverse d irecti on. ILI 1 Indicates that the req u e s ted block length did not matc h the ac tual bloc k length. Onl y READ and VERIFY can cause this b it to be set. Sense Key See “Sen se K ey s ” on pag e 15 7 for details o f sense k ey s tha t can be r eturned . Information Bytes The Inf ormation Byt es field is only v alid if the V alid bit is set . It contains resi d ue in form at ion fol lowing th e fa il ure o f eit h er a READ , WRITE , WRI TE FI LEMA R K S or SP AC E command . T h e f ield can take a negati ve value , expr essed in 2’s complement nota tion for th e SP A CE command. S ee the descr iption of the command that failed f or the co nt ents of the f ield . Additi onal S ense Length 10h Specif i es the number of additio nal sens e b ytes to f ollo w . It is ne v e r tr uncated to r eflect the actual T ransf er L ength. Command Specific Information Bytes 0 Pro vides additional inform ation specif ic to the failing c ommand. T h e f ield is normall y set to 0. Additi onal S ense Code and Q u al i fie r T h ese t w o b ytes pr ovi de add itional info rmation about the cause of the CHE CK CO ND ITI ON , or the cu rren t tape position w hen the RE QUE ST SE NSE is u nsolicited. See “ Additional Sense C odes ” on page 15 9. SKS V 0 The Sens e K e y S p ecif ic B ytes (by te s 15 throug h 17) ar e in valid . The C/D , BPV and Bit pointer f i elds will be z er o. T he top byte of the F ield P ointer w ill be z ero , and the bottom b y te w ill contain a pr oduct -spec ific er ror code . 1 The Sen se K e y S pec if ic B yte s ar e vali d . This w i ll only ha ppen w hen the b ytes assume the r ole of Fi eld P ointe r B ytes as defi ned b y ANSI. T h is occ urs when an Illegal Fie ld check detects an er ror in a command descr iptor block or a P a r ameter Lis t c heck detects an er ror in a command parameter list . C/D Command D ata. O n l y valid if the SK S V flag is set . 0 The F i eld P oi n ter inf ormation applie s to the par ameter list for the command . 1 The Fi eld P oint e r inf ormation applies to the command descr iptor block .
Comm ands 150 71h Indicates that the er ror is de ferr ed . A def err ed er ror occ urs w hen there is a failure f or an operatio n that has alr eady been terminated w ith a GOOD status, or w hen failure oc curs in “ cleanup ” acti v ity follo wing an operati on that was te rminated by BUS RELEASE . The command for wh ich CHECK COND ITION statu s was r epor ted is ther ef ore unlik ely t o be the cau se of the defer red er ror . It simply gi ves th e d r iv e the opportu nity to r eport CHE CK COND ITION st atu s fo r an er ro r tha t alr ead y e x ists . Segment Numb er T his fi eld is clear ed to z er o. Mark 1 The Mark bit is s et t o 1 if a SP A CE , READ or VERIFY c o m mand did not complete because a f ilemark wa s r ead. T his bit may only be set if the sens e key is NO SEN SE . EOM 1 The End of Medium flag is set if a WRI TE or WRITE FILEMARK S co mmand complet ed in the early w arning ar ea. If no oth er err or occur red , the sense code will be s et to NO S ENSE w ith addi tio nal sense of 0002h (E O T) . If another err or occur red, the s ense code an d additio n al sens e will r eflect that err or . It is also se t if BOP is e nco unter ed wh ile spac ing o ver blo c ks or fil emark s i n t he reverse d irecti on. ILI 1 Indicates that the req u e s ted block length did not matc h the ac tual bloc k length. Onl y READ and VERIFY can cause this b it to be set. Sense Key See “Sense K ey s ” on page 15 7 f o r details o f sens e ke ys that can be returned . Information Bytes The Inf ormation Byt es field is only v alid if the V alid bit is set . It contains resi d ue in form at ion foll owing th e fa il ure o f eit h er a READ , WRITE , WRI TE FI LEMA R K S or SP AC E command . T h e f ield can take a negati ve value , expr essed in 2’s complement nota tion for th e SP A CE command. S ee the descr iption of the command that failed f or the co nt ents of the f ield . Additi onal S ense Length 10h Specif i es the number of additio nal sens e b ytes to f ollo w . It is ne v e r tr uncated to r eflect the actual T ransf er L ength. Command Specific Information Bytes 0 Pro vides additional inform ation specif ic to the failing c ommand. T h e f ield is normall y set to 0. Additi onal S ense Code and Q u al i fie r T h ese t w o b ytes pr ovi de add itional info rmation about the cause of the CHE CK CO ND ITI ON , or the cu rren t tape position w hen the RE QUE ST SE NSE is u nsolicited. See “ Additional Sense C odes ” on page 15 9. SKS V 0 The Sens e K e y S p ecif ic B ytes (by te s 15 throug h 17) ar e in valid . The C/D , BPV and Bit pointer f i elds will be z er o. T he top byte of the F ield P ointer w ill be z ero , and the bottom b yte w ill contain a pr oduct- spec ific error code . 1 The Sen se K e y S pec if ic B yte s ar e vali d . This w i ll only ha ppen w hen the b ytes assume the r ole of Fi eld P ointe r B ytes as defi ned b y ANSI. T h is occ urs when an Illegal Fie ld check detects an er ror in a command descr iptor block or a P a r ameter Lis t c heck detects an er ror in a command parameter list . C/D Command D ata. O n l y valid if the SK S V flag is set . 0 The F i eld P oi n ter inf ormation applie s to the par ameter list for the command . 1 The Fi eld P oint e r inf ormation applies to the command descr iptor block .
REQUEST SENSE 03h Co mm ands 151 BPV Bit P ointer V alid 0 The Bit P ointe r f ield is in valid . 1 The Bit P ointe r f i eld is v alid . If the SK S V bi t is s et then the BPV b it m us t be set as w ell . Bit P ointe r Identifies the bit positi on o f the fie ld in err or , whether it is a command desc r iptor or a command parame ter list f ield. Wh en a multi-bit f ield is in err or , thi s w ill point to the mos t signifi c ant bi t of that field . Only vali d when the SK S V flag is set . Fie ld Poi nt er /D rive E rro r C od e If S K SV = 1 , the interpr etation o f this f ield depends on the sense k e y r eported. F or Sense K ey = 5 ( ILLEG AL REQUE S T ) , this f ield r epresen ts th e Fi eld P ointer , identify i ng in whi ch byte o f the command descr iptor or paramet er li st an er ror w as detect ed. Note that the dri ve scans fr o m b yte 0 bit 7 of a command or parameter list thr ough to byte n b it 0. T he fie ld and bit pointers ar e set to poi nt to the most signif icant b it of the f ield that is in err or . See the illegal f ield chec k and the paramete r lis t check . F or Sense K e y = 0 ( NO SENSE ) or 2 ( NO T READ Y ) , this fi eld repr esents th e Progr ess Indication , w her e the r eturned value is a numer ator that has 6 5 5 3 6 ( 10000h) as its denominator . This r eflects the pr ogres s being made thr ough the total operati on If S K SV = 0 , th is f ield r eprese nts the Dri ve Er ror C od e . The top byte of this field w ill be z er o. T he b o t to m byte contains the driv e err or code assoc iated with the failur e o f the pr e viou s comm and, or z er o in the c ase o f no failur e an d no appr op r iate err or code . If the dri ve ’s pow er-on se lf- test f ai led then , in the absence of an er ror code ass ociated w ith the most r ecent command , this byte w ill be set to the err or code gener ated b y the fa iling test . NO TE: Dr i ve e rr or co des ar e pr ov ided f or i nfor mati on o nly ; the y ar e in tend ed to assis t i n pr oduct integr ati on an d f ault diagnosis. The codes should not be r e lied on b y “ gener i c ” h o s t dr i v ers , sin ce the se ar e spec if i c to the pr oduct . F or a li st of codes , see Chapter 10 of the Ha rdware In te grat io n Gu i de , V olume 1 of the HP Ultr ium T echni cal Ref e rence Man ual . CLN 0 1 The dr iv e is OK . The dr i v e req uir es c leaning. T h e fr ont pane l LEDs w ill be displa y ing a “ cle an me ” seq u ence or mess age . This bit is c leared to z ero after a cleaning cart ri dge ha s been u se d.
Comm ands 152 Desc riptor f ormat The Descr iptor f o r mat of the re turned data is a s f ollows: R eturned S ense dat a fi elds: 7 6 5 4 3 2 1 0 0 V alid Response Code 1 Re s e r ve d ( 0 ) S e n se Key 2 A dd iti onal Se nse C ode 3 Ad diti onal Sen s e C od e Qual ifi e r 4–6 Rese r v e d ( 0) 7 Addit ional Sense Length ( n –7) 8 (MS B) Sense Data Descripto r 0 : (LSB) : : Sense Dat a Desc ript or X n Response Cod e 72 h T h e e r r o r i s cu rre n t , t h at is, it is as s ociat ed w ith the command for w hich CHE CK CONDIT ION s tatus has been r e ported . 73 h T h e e r r o r i s def err ed . A d eferred error o ccurs whe n th er e is a failu re for an operati on that has alr eady been terminated w i th a GOOD status , o r w hen failure occ urs in “ cleanup ” a cti vity follo w in g an oper ation that was term in a t ed by BU S R ELEASE . T he comma nd f or whic h CHE CK CO NDIT ION statu s was r epor t ed is ther ef or e unlike ly to be the cause of the defer red er r or . It simply gi ves the dri ve the opportunit y to r epor t CHECK CONDITION stat us for an er ror that alr ead y ex ists. Additi onal S ense Length T he number of additi onal sens e byte s to fo llo w , ≤ 2 44. It is nev er truncate d to r ef lect the actual T ransfe r L en gth . Additi onal S ense Code and Q u al i fie r Additio n al inf ormation about the cause of the CHE CK CONDI TION , o r the cur r ent tape positi on when the REQUEST SENSE is unsolic i ted . See “ Additional Sens e Codes ” on page 15 9. Sense Da ta Desc riptor At least one desc r iptor is s ent (Dr i ve Err or Code), th e other s may or may not be sent depending on the na t ur e of the CHE CK C ONDITI ON .
REQUEST SENSE 03h Co mm ands 153 Inf ormati on Sens e data des cr iptor Sen se K e y Spec i fi c Sense d ata d escr ip tor Only one o f these is report ed: Fie ld P ointer or Pr ogr e ss Indi cation . Fie l d P o in te r The Sen se Ke y is set to Ill egal Reques t . Pr ogres s Indication The Sen se Ke y is set to No S ense or Not R eady . 7 6 5 4 3 2 1 0 0 Des criptor T ype ( 00h) 1 Additi on al Lengt h (0Ah) 2 V alid (1 ) Reserved ( 0) 3 Rese rv e d ( 0 ) 4 Infor mation Bytes 11 7 6 5 4 3 2 1 0 0 De scr iptor T ype (0 2h) 1 A dditional Le ngth (06h) 2–3 Rese r v e d ( 0) 4 SKS V (1) C/ D Re served (0) BPV Bit P ointer 5 Fi e l d P o i n t e r 6 7 Rese rv e d ( 0 ) 7 6 5 4 3 2 1 0 0 De scr iptor T ype (0 2h) 1 A dditional Le ngth (06h) 2–3 Rese r v e d ( 0) 4 SKS V ( 1) Reserved (0) 5 Pr o gr ess Indi cation 6 7 Rese rv e d ( 0 ) Proces s Indication The per c ent comple te indi catio n in whi c h the re turned v alue is a numer ato r that has 6 5,5 36 (10000h) as its denomin ator . The progr ess indicati on is based on the total operati on.
Comm ands 154 S tream Commands Sense d ata de scr iptor Dr iv e Er r or Cod e Se n se dat a de sc r ipto r (V endor S p ec ifi c) Cleaning Needed Se nse data desc ri ptor (V en dor Spe c i fic) Sense data management The dr iv e maintains thr e e sets o f sense data f or ev er y initiator o n the bus. F or a single host t he follo wing sense data is maintained: • Cu rrent se ns e • U NIT A TTENTION sen s e • D EFERRED ERR OR sens e Unless otherwise stated , all the follo wing descr i p t ions appl y to the sense data for a single host wh os e command is being ex ecu ted . Cu rren t s e n s e Curr ent sen se i s t he d at a t ha t is ret u rne d in res p on s e t o a REQUEST SENS E comm and . I t is m odif ied or u pda ted in t he f ollo w ing c ir c umst ances : 7 6 5 4 3 2 1 0 0 Des criptor T ype ( 04h) 1 Addit ional Length (02h) 2–3 Rese r v e d ( 0) 4 Mar k E OM ILI R ese rved (0) 7 6 5 4 3 2 1 0 0 Des criptor T ype ( 80h) 1 Addit ional Length (02h) 2–3 Rese r v e d ( 0) 4 Mar k E OM ILI R ese rved (0) 4 Dri ve Err or Code 11 7 6 5 4 3 2 1 0 0 Des criptor T ype ( 81h) 1 Addit ional Length (02h) 2–3 R eserv ed (0) CLN (1) 4 Rese rv e d ( 0 )
REQUEST SENSE 03h Co mm ands 155 • It is c lear ed in r esponse to the ar ri val o f any c ommand other than REQ U E ST SE NSE or INQUIR Y . • It is cle ared foll o wing ex ec utio n of a RE QUE S T SENSE co mmand. • If the c urr ent command f ails, s ense is set accor ding to the f ailure and CHE CK CONDI TION is r epor ted to the host that sent the command. • If the pr ev iou s command termi na ted w ith an une xpected BUS FREE , cur rent s ense is set accor ding to the r eason fo r the bus r elease . • If the command fails its pre -e xec ution c hec k for Unit Attention , UNIT A TTENTION sen se is copied to the Curren t sense , and CHE CK CONDI TION is r epor ted to the ho st that sent the command . • If the command fails its pre -e xec ution c hec k for Defer r ed Err or , DEFERRED ERR OR sense is copied to the Curren t sense , and CHE CK CON DIT ION is r eported to the host that sent the command . Clear ing c ur r ent sens e: Clearing the Curr ent sense inv o l ves set ting sense f ields as f ol lo ws: Valid = 0 error code = 0x70 segment number = 0 ILI = 0 sense key = 0 information bytes = 0 command specific information = 0 fru code = 0 SKSV = 0 UNI T A T TENT IO N sense U NIT A TTENTION sense is s et when one of the f o llo wing Uni t Attention condi ti o n s occur: • P o wer On, S C SI R eset , B us De vi ce Re set • Media inserted • A load command ex ecuted b y a thir d party • Mode Sense par ameters c hange d b y another initi a tor • Dri ve f irm war e has been updated U NIT A TTENTION sense will persist fo r a host until th e host sends a command that has Unit Att enti on as par t of its p re-e x ecuti on c hec ks. W hen the U nit Att enti on pr e-ex ec utio n chec k fai ls, the UNI T A TTEN T ION se ns e is cop i ed to t h e C u r r e n t sens e and CH E CK CONDI TION st atu s is r e po rted to the h ost . Th e UNIT A TTENTION sense is cl e ar ed. T he host is then e x pect ed to issue a REQ UES T SENSE comman d to r ecov er the UNI T A TTENTION sense (which is now the new Cur rent sense) .
Comm ands 156 It is possible for multiple UNIT A T TENTION conditio n s to ar ise (for e xample , after a pow er -on follo wed b y a tape load) , such that the initiat or does not read one condition befor e the next occu rs. In this case a prio riti zing scheme is u sed. If a UNIT A T TENT I ON conditio n e xists and a ne w one occ urs, t hen the UNI T A TTENT ION se nse w ill be o ve rwr itten by t he ne w sens e only i f the ne w sense has a higher p rio rity . The order of prior it y is as f o llows: U NIT A TTENTION sense that ar ises as a result of a command e xecuting w il l not be pos t ed to the sending initiator , but w ill b e set f or the other initiator s. DEFERRED ERROR sense D EFERRED ERROR sense is generated when an operation fails and CHEC K CONDIT ION status can not be reporte d to the h ost for on e of the fo llowing reason s: • The o per ation had immediat e - report on (f or e xample , REWIN D with the Immed b it set , or LOA D ). • The oper ation w as a w rite that w as immediate -reported on after i ts data was su ccessfull y placed in the w rite- behind queue . • The oper ation was abandoned w ithout statu s (that is , a bus r elease occ u r red) after w hat the dr iv e per cei ved w as a catastr ophic err or or when an err or occ urr ed foll ow ing the dri ve ’s honor ing of an ABOR T message . F ollow ing the bus r elease , the dri v e performed “ cleanup ” acti vity that failed . T he D ef err ed Err o r r efer s to the r eason fo r this failu r e . When any one o f the above occurs, the sen se gener ated w ill b e DEF ERRE D ERROR sens e . This sense persists until the host sends a comma nd that has Unit Attenti on as part of its pr e- e x ecu tion checks. Whe n the D efe rr ed Er r or pr e-e xe cut ion c hec k fail s, th e DEFERRED ERR OR sen se is mov e d to th e Curr ent sense and CHE CK C ONDIT ION status is r e ported to t h e ho st. T he host is then e x pect e d to issue a REQU E S T SENSE command to recov er the new Curr ent sense data, other w ise the data will be lost . W r ite -behind de fer r ed err or s: If th e Buff er ed Mode f ie ld of t he MOD E SE LECT p ar ameter header is not ze ro , data buffer ing is enabled. If an err or occurs in flushing the wr ite -behind data, DEFERRED ERR OR sense i s set for a ll hosts that t he dri ve thinks hav e write-b ehind data in t he buffer . For each of these host s, the fol low ing occ urs when its ne xt command is to be ex ecu ted : • If the command is WRI TE or WR ITE FILEMARK S the DEFERRED ERR OR sense is copied to Cur rent sense and the err or is c hanged to a Cur rent er ror (the Erro r Code f ield is set to 7 0h) . T he infor m ation b ytes w ill contain r esidue inf ormation ref lecting the si z e of the w rite- behind queue plus the transf er siz e of the curr ent command . CHE CK CONDI TION is Po w e r - o n , R e s e t T ape L o aded Mode P arameters Changed Mic rocode Do wnloaded hig hest p ri ori t y lo west pr ior ity
REQUEST SENSE 03h Co mm ands 157 r epor ted . When the host r eads sense data with a RE QU E ST SE NSE , it will see an er ror f or the WRI TE w ith resi due infor m ation indi cating data lost f or that wr ite and pr ev iou s wr ites. • If the command is not a w rite command a nd the Def err ed Err or chec k is perf ormed as part of the pr e -ex ecu tion checks , CHE CK CONDI TION status is r eported. T he DEFERRED ERR OR sense is copied to Curr ent sense . The DEF ERRE D ERROR sense is clear e d . The host i s e xpect e d to retr ie ve the sens e by s e nding a REQUE S T SE NSE , otherw is e the data w ill be los t . Bus re lease def er red er r ors: The dri ve w i ll r elease the bus to terminate an operatio n (such as READ ) when the host sends an ABOR T message or when the dri ve f ai ls t o send st atus due to a catastr ophic er ro r . In eac h cas e, t he oper ation does not ter minat e immedi atel y since t he logi cal posi tion w ill ha ve t o be established on the other side of t h e block that w as about t o be tr an sf err ed, or w as being t ran s fe rred . I f an er ror s ub se qu e nt ly oc cu rs wh i l e t r yi n g t o c o mp le te t he re ad, t he s en s e ge ne rat e d is a DEFERRED ERR OR . It is ther ef ore pos s ible but highl y un lik ely to ha ve DEFERRED ERR OR sen se flagged fo r a command witho ut immediate r eport. Sense k e y s The follow ing table lists th e sense ke y s that may be r eturned b y HP Ultrium driv es. SCSI sense ke ys ar e 4-bit codes retur ned i n the sense data . They indica te in what gener al ar ea th e pr oblem that has j ust been e x per ien ced falls . F or a clear er indic ation of the natur e of the p robl em, r efer t o the additional sense code. Code Name Desc ription ASC/ Qs 0h NO SENSE Ther e is no real pr oblem. T he sense infor mation is probabl y i ndicating some cond ition (such as enc ou nterin g a filem ark) . 0000h, 0001h, 0002h, 8282 h 1h RECO VERED ER R OR Returned if a Mode S elec t par amet er is truncated or if a T apeA ler t e vent is be ing reported . 5D00h, 3 7 0 0h 2h NO T READ Y The dri ve is not in a state to be able to e xec ute the r equest. S ee also the Media A c ces s check . 0400h, 0401h, 0402h, 3003h, 300 7h, 3A00h, 3E00h 3h MEDIUM ERROR The command failed, belie v ed t o be caused b y a pr oblem w ith the tape . 0002h , 0004h, 040 7 h , 0410h, 0C00h, 1100h, 1102h, 140 0h , 3001h, 3002h, 300 4h , 3100h, 3B00h, 5000h, 5 200h , 5 300h 4h HARDW ARE ERROR T he command failed, belie v ed t o be caused b y a pr oblem w ith the dri ve har dw are .The FRU in the sense data should indicate w h i ch par t of the h ard ware i s f au lt y. 0403h, 40 XX h, 4400h, 5100h, 5 3 00h
Comm ands 158 5h ILLEG AL RE Q UE S T The last command sent to the dri ve or the data assoc iat ed with the command vi olated conditions impose d b y the dr i ve on its acceptance . S ee also the Illegal Co m mand , Illegal F ield , F ix ed Bit , Re ser vati on an d P arameter L ist pre -e xec ution ch eck s. 1A00h, 2000h, 2 400 h , 2 50 0 h, 26 0 0 h , 260 1 h , 53 02 h, 828 3h 6h UN I T A TTE NTION Indicat es some con dition of which the host ne eds to be made aw are . S ee also the Unit Attenti on ch eck. 28 0 0h, 29 0 X h , 2A 01h, 3F01h, 5DFFh 7h D A T A PR O TE CT A r eque st ha s been m ade t o modify t he medi a desp ite the media being wr ite -pr otected. See also the Medi a W r ite c hec k. 2 7 00 h , 30 00h 8h BL AN K CH E CK The d ri ve t r ie d to r ea d unwritten tape. 0005h , 1403h 9h VENDOR SPE CIFIC Nev er retur ned by HP tape dr ive s Ah COP Y ABOR T ED Nev er returned b y HP tape driv es Bh ABORTED COMMAND The dr iv e has s topped tryi n g to ac t on a comma nd, u suall y thro ugh so me pr oblem on the SCSI bu s. 3D00h, 4300h, 4 500h, 4 7 00h, 4800h , 4900h, 4A00h, 4B00h, 4E00h Ch EQU AL Nev er retur n ed b y HP tape dri ves Dh VO LU M E OV E RF LOW Data could not be w ritten due to lac k of r emaining space on the tape . S ee the WRI TE and WRI TE FILEMARK S commands. 0002h Eh MIS COMP ARE Nev er returned b y HP tape dr ive s Fh RESER VED N e ver r eturned by HP tape dr ive s Code Name Desc ription ASC/ Qs
REQUEST SENSE 03h Co mm ands 159 Ad d itional S e nse codes This secti on contains a list of all the additional sense codes that an HP Ul tr ium dr i ve can r e tur n , in numeri ca l or der . The Sense K ey s under whic h each code could appear are also listed . The AS CQ b ytes are pr esent at byt es 1 2 and 13 of the sense data . Code De scription E xplan ation 00 0 0h No additional sense T h e f lags in the sense data indicate the r eason for command failu r e. 00 0 1h Fi l e ma r k d et e c t e d A Re ad or a Spa ce command terminated ear ly because a fi lemark has been encou n t ered . The F ile Mark flag w ill be set. 00 02h End of T ape detected A Wr i t e or a Wr i t e F i l e m a r k s command ended in the earl y war n in g a rea . or A command terminated earl y becaus e End o f T ape or ph ysical end of tape w as encountered. T he EOM flag w ill be set . 00 0 4h Beginni ng of T ape detected A Spac e c ommand terminated earl y b ecau se b eginning of tape w as encountered . The E OM flag will be set . 00 0 5h End of Data detect ed A Rea d or a Spac e command ter minated early becaus e End of D ata w a s enc oun tered. 00 1 6h Ope rat ion in pr ogre ss A n immedi ate mode co mm and is in pr ogre ss 00 1 8h Era se operati on in pr ogres s An immediate mode ERASE is still in pr ogress 00 1 9h Lo cat e op er ation in pr ogress An immediate mode L OCA TE is still in pr og r ess 00 1 Ah Rew ind operation in pr ogress An immed i a te mode REWIND is still in pr ogr ess 04 0 0h L UN no t r e ady , cause not r eportable A tape is pr es ent in the dr i ve but i s in the pr ocess o f be ing unloaded. 04 0 1h L UN in p r ocess of becoming r ea d y A medium access command has been recei ved during a load initiated fr om the fron t panel or by an immediate - rep o r te d Loa d command 04 02h LU N n o t re a d y , I n i t i a l iz i n g comman d r equired A tape is pres ent in the dr i ve bu t is not log i cally loaded. A Lo ad command is require d. 04 03h L UN not read y , ma nual intervention re qu i red A tape is pr esent in the dr iv e but could not be loaded or unloaded without manual intervention . 04 0 7h Immediate mode command in pr ogr e ss T h e tape dr iv e is curr ently e xecuting an immediate mode comma nd. 04 1 0h Me dia A u xil iary Me mory is n ot acce ssib le MAM is not accessible . 0C 00h W rit e er ro r A Wr i t e operation has f ailed. This is pr obably due to bad media but may be hard war e related . 0C 0Bh Medi a Au xil iary Me mory w rit e err or An e r ror has occ urr ed w hile attempting to w rite to MAM. 11 0 0h Un re co vere d re a d erro r A Re ad operati on f ai led . This is probabl y d ue to bad media but may be hard war e related . 11 1 2h Media A ux iliary Memor y r ead err orT h e Host Attr ibute area in MAM is inv alid. 14 0 0h R ecorded entity not f ound A Spa ce or L ocate failed because a f ormat vi olation pr e vent e d the tar get of the oper ation fr om being found.
Comm ands 160 14 03h End of data not found A read-t ype oper ation failed because a for m at v iolation r elated to a missing E OD data set , or ther e was an attemp t to r ead a br a nd ne w tape . 1A 0 0h P arameter list length err or T h e amount of data sent in a Mode Select or Lo g S el e c t command is incorr ect or T h e Mode Header indicates a Mode Bloc k Desc ripto r but no Mode Block Descr iptor is sent. 20 0 0h In valid command oper ation code The oper ation code in the command was not v alid. 24 00h Inv alid fi eld in C omm and Desc riptor Block An in valid fie ld h as been det ec t ed in a Command Desc riptor Bloc k. 25 00h L UN not support ed The command was addres sed to a n on-ex istent logical unit nu mb er . 26 0 0 h In valid fi eld in parameter list An in valid fi eld has been detected in the data sent during the data phase 26 0 1 h P arameter n o t suppor ted T he c ommand was addre ssed to a n o n -ex istent logical unit nu mb er . 26 0 4 h In valid r elease of per sistent re se r vat i on T h e P ersis tent Res er v a t i on holder has tr ied to re leas e the persis tent re servati on using th e P ERS IS TENT RE SERVE OUT command , but the Scope or T ype supplied w as inv alid. 2 7 00h W rite -pr otected A w rite - type oper ation has been reque sted on a tape that has been w rit e -protec ted. 28 00h Not read y to ready tr ansition , medium m a y ha ve c hanged A tape has been load ed succe ssfully in to the dri ve and is no w r eady to be accessed . 29 0 1 h P ow er - on r eset The dri ve has po wer ed on since the host last access ed i t . 29 0 2h SCS I bus re set S CSI dr ive s: The dri ve has r ecei ved a S CSI r eset si g n al sin ce th e host last a ccesse d it. FC d ri ves: The dri v e has r ecei ved its f irst pr ocess login . The dr ive w ill be implic itly logged out after a T arget R eset so this AS CQ w ill be posted after the host has perfor med port/process logi n. 29 0 3h Bus dev ice r eset SC SI d riv e s : The driv e has r ecei v ed a SC SI bus de vi ce re set mess age since the host las t accessed it . FC drives: The dri v e has rece i ved a pr ocess login w hen it wa s pr ev iousl y logg ed in for a partic ula r ho st . 29 0 4 h I n te rn a l f ir mware re b oo t Th e d rive h as re se t it se l f . 29 0 5 h Tr a n s c e i v e r s t o S E SC SI d ri ve s : The transc ei v ers on the bus h av e been r es et to Sing le -Ended . 29 0 6 h Tr a n s c e i v e r s t o LV D SC SI d ri ve s : T he tran scei v ers on the bus hav e been r es et to LV D . 2A 0 1h Mo de parameter s c hanged The Mode par ameters f or the dri v e hav e bee n changed b y an initia tor oth er than the one issuing the com m and . 2A 0 2h Log parameter s c hang ed T he Log parameter s for the dri ve ha ve been changed by an initia tor oth er than the one issuing the com m and . 2A 03h Reservations pr e -empted A PER SIS TENT RESER VE OU T command w i th the Clear serv ice action was attempte d. All re servations and the persist ent reservation hav e been removed . Code De scription E xplan ation
REQUEST SENSE 03h Co mm ands 161 2A 0 4h Reservations r eleased The or iginal persistent r eservati on has been r epla ced w ith another of a differ ent type or remo ved completely . 2A 05h Registr ations pr e -empted A PER SIS TEN T RE SERVE OUT command w as exec uted and al l re gi st ra ti o ns re move d. 2C 00h Command sequence i nvali d The us e of the echo bu ff er was in vali d. A WRI TE BUFFER command is nec es s ary befor e a R EAD BUFFER command. 30 0 0h Incompatible medium installed A w rite- type oper ation co uld not be e x ec uted because it is not supported on the type of tape that is loaded. 30 0 1h Unkno wn f ormat An oper ati on could not be carr ied out because the ta pe in the dri ve is of a f ormat not supported by the dri ve . 30 02h Cannot r ead m edia: incompatible form a t An oper ation could not be completed because the logical form at is no t c orrec t. 30 03h Cleaning cartri dge installed An oper ation could not be carr ied out because the ta pe in the dri v e is a cleaning cartridge . 30 0 4h Cannot w rite medium An attempt wa s made to w rite to a cartri dge th at has Cartr idge Memory err ors . 30 0 5h Cannot w rite medium, incompatible form a t F or ex ample, the dr iv e tr ied to w rite to a tape of an incomp atib le gene r a tion. 30 0 7h Cleaning failur e A cleaning operati on was attempted but could not be comple ted for some r e ason. 30 0 Ch WORM—o verwr ite attempted A wr ite operati on could not be e xec u ted because an o ve rwrite has bee n at tempted on a W ORM cartridge. T his may be because an o verwr ite back up was spec ified instead of an appended back up. 30 0Dh WORM me dium—integr it y c heck failed T he dri ve has de tec ted an inconsis tency w hen perform in g an integrity chec k on a W ORM c artr i dg e . The cartridge may have been tampe r ed with . 31 0 0h Medium for mat c or rupted Data could not be read because the f ormat on tape is not vali d , although i t is in a know n format. 35 01h Unsupported enc lo sure f unction The dr iv e cannot re spond to this Enclo sure Se r v ices req ue s t. 35 02 h Enclosur e services una vailable No compatible enclosur e hard ware has been detect ed by the dri v e. 3 7 00h R ounded pa r ameter A Mode Select c om mand parame te r has been r ounded becaus e the dri ve cann ot store i t with the acc urac y of the comma nd. 3A 0 0h Med ium n ot presen t A media-access co mm a nd has bee n rece ived w hen ther e is no tape loaded. 3A 0 4h Med ium not pr esent, Medi a Au xili a ry Memory accessible A media access command has been r e ce ived w hen the tape has been loaded but not threaded . This will be r eported if the hold bit of the LOA D CDB was se t or the Aut oload f ield in the Contr ol mode page is n o n z er o. 3B 0 0h Sequential positio n ing er ror A c o mmand has failed and left the logical positi on at a n unexpecte d l o cat ion. 3B 0 Ch P osition past BOM A SE T CAP A CITY command was r ecei v ed when the logical position w as not BO T , a necess ary co ndition for t his comma nd. 3D 00h Inv alid bits in Identify mess age An i llegal Identify mes sage ha s been r ece i ved b y th e dri v e at the start of a command. Code De scription E xplan ation
Comm ands 162 3E 0 0 h L ogical unit has not self-conf igured yet T h e dr iv e h a s just po wer ed on and h a s n o t c omplet ed its self-test sequence , so it cannot process commands. 3F 0 1h F irm war e upgraded The f irm ware in the dri ve has just been changed by a Wri t e Buf fer com mand. 3F 05h Dev ice ident ifier cha nged T h e Device ID has been change d suc cessfu lly . 3F 0 Fh Ec h o buffer o ver run A Read Buffer command has been recei ved w ith Ec ho Buff er mode se t , and the ech o buffer has been o v erw r itten b y a differ ent host f rom that w hic h issued the R ea d Bu f f er comma nd. 3F 1 1h Medi a A ux iliary Me mory acce ssib le MAM is accessible but the car tr idge is in the H old posit ion . Unit At tention is gene r a ted. 40 XX h Diagn ostic f ailur e on compone nt XX A diagnosti c t es t h a s failed . The Additio n al Sense C ode Qualifier is a v e ndor -specif ic cod e indicating the failing compon ent. 43 00h Mess age er r or A mes sage c ould not be sent or r ecei ved because of e xces siv e transmis sion er ror s. 44 0 0h Inter nal target failur e A hard w ar e failu r e has been detec ted in the dri v e that has caused t he co mmand to fail. 45 00h Selec t or r ese lec t failure An attempt to r eselec t an i n iti a t or in order to co mplete the command has failed. 47 0 0 h SC S I parity err or A command f ai led becaus e of an e xcess ive number o f par it y er rors on the SC SI inte r f a ce . 47 0 1 h Data phase CRC err or detected F or parallel S CS I o nly in non -Infor m atio n Units mode , the dr ive has dete cted a CRC err or during the data out phase . 47 0 3 h Informati on Unit CRC error det ectedF or parallel S CS I only in Inf ormation Units mode , the dri ve has detect ed a C R C e r ror duri n g the command IU or data out pha se. 48 00 h Init iator De tected Error messag e re ce ive d A command failed because an Initia tor De tected Err or mess age was r ecei ved . 49 0 0 h Invali d mess age er ror The command failed because an inv alid message wa s r eceiv ed b y the dr iv e. 4A 0 0h Comman d phase er ror A command could not be e xec uted because too many par ity err ors occurr ed in the comm and phase 4B 0 0h Data phase err or A command could not be completed becaus e too m an y err ors occur red during the data phase . 4B 9 0h Data phase er r or FCL_DL to CDB Allocation Le ngth m is-matc h. 4E 0 0 h Ov erlapped commands attempted An initiator s elected the dri v e ev en though it alr eady had a command outstanding. 50 00h W rit e append err or A wr ite - type command failed becau se the point a t w hich to append data was unr ea dable . 51 0 0h Era se failur e A n er ase command failed to er ase the r equired ar ea on the ta pe . 5 2 00h Ca rtri dge fa ul t A command could not be c o mp leted becaus e of a f ault i n the tape cartri dge. 53 0 0 h Med i a load or ejec t failed An attempt to load o r eject the tape failed becau se of a pr oblem w ith the tape. 53 0 2h Med ium r emov al pre vented An Un load command has f ailed to eject th e tape because medium remo val has been pre vented . 55 0 3h I n su ff icient res ou rces Code De scription E xplan ation
REQUEST SENSE 03h Co mm ands 163 Er r or codes The er r or codes that can be r eported in bytes 16 and 17 ar e listed in Chapter 10 of the Ha rd wa re Integration Guide , V olume 1 of the HP Ultr ium T echnical R efer e nce Manual . 55 0 4 h I n s uf fi cie nt re gi st ra t ion re so urc e s FC i nter face o nly: Ther e is onl y s pa ce f or reque sts fr om 3 2 initia tors to r egis ter , using P ER SIS TENT RE SERVE O UT commands. 55 0 6 h Med i a A ux iliary Memory full T her e is insuffic ie nt space in the Host A t tr ibute area in MAM to f it th e attr ibute that need to be wr it te n. 5D 00h Failur e predi ction thr eshold e xceeded F ailure P rediction th r es hol ds h ave been ex c eede d indicating that a failure ma y oc c ur soon. 5D FF h Failur e predi c tion thr eshold e x ceeded (false) A Mode Sele ct command has been us ed to t est for the F ailur e Predi ctio n s y stem. 82 82 h Dri ve r equir es cleanin g The dr iv e has detect ed that a cleaning oper ation is adv isable to maintain good operati o n. 82 83 h Bad micr ocode detected T he data transfer red to the dr i ve dur i ng a f i r mwa r e upgr ad e is corr upt or incompati ble w ith the dri ve ha rdwa re. Code De scription E xplan ation
Comm ands 164 RE SER V E UNIT 16h/5 6h This command enables the host to r eserve the dr ive . R eser v in g a de vice is a wa y of ensuring ex cl usive acc ess to that device fr om a s ingl e in itia tor for t he pe r iod of the reservat ion. Once r eserved, the dri ve will ex ecute com mands r e cei ved fr o m the r eser v in g initiator or fr om the thir d- party in iti ator if the 3rd-P t y option has been selected . Commands fr om other initiato rs will have RE S ER V A TION CO NF LI CT status r eported f or them , apar t f r om INQUIR Y , RE QUES T SEN SE , LO G SENSE , REP ORT L UNS , REPOR T DENSI TY SUP PORT , READ BL OCK LIMIT S and RELEASE UNI T . The INQ UIR Y , REQUEST SENS E , LO G S E N S E , PREVENT/ALL OW MEDIUM REM O V AL (Al l ow= 0 ) , REP ORT LU NS , R E A D BLO C K L IM I TS and R EPORT DE NSITY SUPPORT co mmands are immune to t he effects of a r eservati on and will continue to e xec ute f or all hosts. The RELE ASE UNIT c ommand will have GOOD status r epor ted fo r other hosts, but will have no eff e ct on the r eservation . The reservation will stay in effect unt il: • The r eserving h ost sends another RE SER VE UNIT co mmand . • The r eserving h ost sends a RELE ASE UNI T command , clear ing the r eservati on. • A po we r-on , f irm war e upgr ade or f or c ed ej e ct . Pr e -e xec uti on chec ks: If the dri ve is r eserved b y some other hos t then r ese r v ation confl ict statu s is r eported to the hos t. Co mma nd de s c r ipto r b loc k: 6-b yt e Illegal F ield Defer red Er r or Unit Attenti on 7 6 5 4 3 2 1 0 0 Operation Code (1 6h) 1 Res er ved ( 0) 3r d Pty(0) Third-P art y De vice ID (0) Rsvd(0) 2 Re s er v e d ( 0) 4 5 Contr ol 3rdPt y This is al way s z ero becaus e th ir d-par ty re servation is not supported . Th ird - Par t y Dev ic e I D This is alw ay s zer o because thir d-pa rty rese r vati on is not supported.
RESERVE UNIT 16h/56h Co mm ands 165 10 -byte 7 6 5 4 3 2 1 0 0 Op er at ion Code (56h) 1 Reserved (0) 3rd Pty Reserved (0) Long ID(0) R svd(0) 2 Re s er v e d ( 0) 3 Third- P ar t y D evice I D 4 Re s er v e d ( 0) 6 7 (MSB) Pa r a m e t e r L i s t L e n g t h 8 (LSB) 9 Contr ol
Comm ands 166 RE WIND 01h R EWIND causes the dri v e to wr it e all buffer ed logical objects t o tape and then positi ons the tape at BOM (begin ning of media) . Once a r ew ind i s start ed, it will complete ev en if the S CSI oper ation is aborted (fo r e xample , if the host selects and sends a n abo rt message). Pr e -e xec uti on chec ks: Co mma nd de s c r ipto r b loc k: CDB f ields: Re wind sp ec ific stat us: If the r ew ind is successful , unsoli cited positio na l sense w ill indicate that the ta pe is at BOM by th e EOD b it b eing se t and an additional sense code of 0004h (BOP) . Illegal F ield Re servation Def e r red Err or Unit At tent i o n Me dia Access Dia gnostic Stat us 7 6 5 4 3 2 1 0 0 Operation Code (0 1h) 1 Res e r ved (0 ) Im me d 2 Re s er v e d ( 0) 4 5 Contr ol Immed 0 Status is r eturn ed after the r ew ind has completed . 1 The dri ve fi rst wr ites any un wr it ten buff ered data to ta pe . It then retu rns GOOD status to the host bef ore beginning the actual r ew ind operation .
SEEK (CD-ROM mode) 2Bh Co mm ands 167 SEEK (CD-ROM mo de) 2Bh S EEK is e xecuted for 2 Bh when t he d r iv e is i n CD -ROM m ode. Wh en out of C D-ROM , the LO C AT E command , whic h shar es the opcode , is ex ecut e d . Assumi ng th e pr e-ex ec uti on chec ks ar e pass ed , GOOD statu s is a l wa y s reported . Pr e -e xec uti on chec ks: Co mma nd de s c r ipto r b loc k: CDB f ields: Illegal F ield F lag Link Bad LUN Res erv ation Defe rr ed Err or Unit Atten tion Media Ac ce ss Diagno stic St atu s 7 6 5 4 3 2 1 0 0 Operation Code (2Bh) 1 Logical Uni t Numb er Reserved (0) 2 (MSB) Lo gical Bl ock Addr ess 5 (LSB) 6–8 Re s e r ve d ( 0 ) 9 Contr ol Log i ca l Bl oc k Ad d res s Th is fie ld is igno r ed .
Comm ands 168 SEND DIA GNO S T IC 1Dh S END DIA GNOS TIC tells the dr i v e to perfor m eit her its st andar d s elf -tes t , or diagnosti cs specifi ed in the paramete r l ist on itself . The par am eter list is tr ansfer r ed to th e dr ive in a ser ies of data-out phases; each 8-b yte data-out phase spec ifies a diagno stic to be perfor med b y the dri ve . I t is not an err or to set Self -T est = 0 and to have a z er o -length parameter list . The test r esults can be r etri ev e d w ith the RECEIVE DIA GNOS TIC RESUL TS comman d. Pr e -e xec uti on chec ks: • If Self- T est = 0, the U ntOffl bit must be se t , otherwise CHECK CONDITION is r ep or ted. Se n se data w ill be as desc ribed in Illegal F ield Chec ks. • If Self- T est = 1, the P arameter List L ength f ield mu st be z er o . Otherw ise CHE CK C ONDI T ION is r epor ted. Sens e data will be a s desc ribed in Illegal F ield C hecks . • It is not an er r or to s et Self- T est = 0 and to have a zer o -length parameter list . Co mma nd de s c r ipto r b loc k: CDB f ields: Illegal F ield Res er v ation Defer red Er ror Unit Attention 7 6 5 4 3 2 1 0 0 Operation Code (1Dh) 1 R ese r ved (0) PF (1) Rsvd(0) Self- T est DevOff L(0) U nitOffL 2 Res er ve d (0 ) 3 (MS B) P arameter List Length 4 (LSB) 5 Contr ol PF Pa g e F o r m a t . Specif ies that the accompany ing d ata f ollow s the S CSI-3 Diagnostic P age fo rmat. It mu s t be set to 1. Self-T est 0 P erf o r m the diagnosti cs spec ified i n the par ameter list . The UnitO f fL bi t must be set , otherw ise CHE CK CO NDIT ION is r eported. T h e dr iv e reports status w hen the comman d has been completed. 1 P erform the st an dard s elf -test depending on the value of UnitOffL (see abov e) . Th e P a ram e te r Lis t Len g th m us t b e 0 o t he r wi se CHE CK CO NDIT ION is re port ed . The dri v e w ill report GOOD status follo wing the pre-exec ution chec ks and befor e e xecu ting the comm and . De vOffl De vi ce Offline bit . Must be c leared to z er o. UnitOffL U nit Off l ine bit 0 Indicates that the ho st is not pr ep ar ed for the dr iv e t o perform te sts that could affect logi cal position .
SEND DIAGNOSTIC 1Dh Co mm ands 169 Data r equir ed No data is r equired if the standar d self-test is t o be perfor med. Otherwise , a single diagnos tic page must be pr o vided as a par am et er . Specific s tatus Any S en d D ia g no st ic co m ma nd rec eive d wit h a En cl os ure Se r vic es p ag e nu m be r ( 0 1h to 0 F h) wi ll generat e CHECK CON DIT ION wit h s en se key of ILLEG AL REQUE S T and additi onal sense of 3 501h (unsu pport ed encl osur e f uncti on) . The dri ve r epor ts GOOD status if t he diagnostics pass . It will report CH ECK C ONDIT ION if the diagnosti c s f ail, wit h a sense k ey o f HARD W ARE ERR OR and additi ona l sense o f 4 000h. Mor e detailed r esul ts can then be r ecov er ed using the Recei ve Diagnosti c Results page. Standa r d se lf-test 1 Indicates that the ho st is prepar ed for the dr iv e to perform tests that could aff ect logical position , modify the tape or modif y cartri dge status. T his bit mus t be set if the Self- T est bit is 0. Pa r a m e t e r L i s t Length Indicates ho w many b y tes of diagnostic par ameter data are to be se nt to the dri ve . T he length o f the data phase fo r SEND DIA GNO ST IC is limi ted to 4 byte s of header plus 34 par am eter s, each of w hich is 4 bytes lo n g . This giv es an upper limit f or the parameter lis t length of 13 6 b y tes . With a tape inse r ted: If Self- T est = 1 and UntOffl = 0, a test is performed that does not affect the conte n ts o f the ta p e . This te st is a more e xtensiv e set of the tes ts carri ed out at po wer -on. If UntOffl = 1, the tape contents can be ov erwritten and w i ll be undef ine d after the test . A user can re -use th e ta p e after the te st. With no tape in the dri ve: T he same self-test w ill be ex ecut ed r egar dless of the se t ting of Un tOffl. T h e r esults of an y self- test (po wer on or not) can b e dete rmined by r eadin g th e Self- T es t diag nos tic p age be fo re e x ec uting a diag nos tic ( w h ic h w ill o verwr ite the r esult).
Comm ands 170 SE T C AP A CI T Y 0Bh This p r ovi des a means of changing the logical length of the c u r ren tly-loaded media . The pr imar y use en visaged is f or testing purposes, altho ugh it may also be used in other cir c umstances wher e a shortened tape may be benef ici al. Note that all data c u r ren tly on the media will be lost f ollowing successf ul e xecu tion of this command. T he command is only accepted when the media is positioned at Beginning of M edia (BOM) . With W ORM ca rtr idges, the command is onl y accepted and ex e c uted if the car tr idge has not been in iti ali zed , that is, it has nev er been w ritten to . Otherwise the cartri dge is re jected with CHE CK C ONDIT ION , sense k ey of D ata Pr otect and additional se n se of 300Ch (W ORM me di a— ov erwrite attempt e d). T apeAlert flags 3Ch (W O R M media—ov erwrite attemp ted) and 09h (w rite- pr otect) are set . Pr e -e xec uti on chec ks: Co mma nd de s c r ipto r b loc k: CDB f ields: Illegal F ield Res er v ation Defer r ed Err or Unit At tention M edia Access Me dia W rite 7 6 5 4 3 2 1 0 0 Operation Code (0Bh) 1 Res e r ved (0 ) Im me d 2 Re s er v e d ( 0) 3 (MSB) Capacity Proportion V alue 4 (LSB) 5 Contr ol Immed 0 Status w ill not be r eturned until the SET CAP ACI TY operati o n h a s c omple ted. 1 Status w ill be retur ne d as soon as the CDB has been parsed. Capaci ty Proportion V alue The portio n of the tot a l v olume c apac ity to be made av ailable for use . The value gi ven her e is the numerato r of a frac ti on w i th a denominato r of 65,5 3 5 . The r esultin g a vailable capac i ty wi ll be . Note that the L T O- 3 for m at enforces a minimum tape length. A value that w ould r esult in a tape length belo w this minimum w i ll be silen tly r o u n ded up to the minimum permitted l ength. total vo lum e capac ity capac ity pro po rtio n va lu e × 6553 5 ----- ------ ------ ------- ------ ------ ------- ------ ------- ------ ------ ------- ------ ------ ------- ------ ------- ------ ----- -
SET DEVICE IDENTIFIER A4h Co mm ands 171 SE T D EVICE ID ENT I FIER A4h S ET DEVICE IDENTIFIER allow s a initiato r to set the Dev ice ID info rmatio n to that supplied in the P aramet er List . This inf ormati on can be later r etr iev ed by the REPOR T DEVICE IDENTIFIER com mand. Upon suc cessful comp letion t he command w ill post se nse ke y UNIT A TTENTION with ad ditional sense o f 3F05h (de vice identif ier changed) to all initiato rs e xcept the one that issued the command . Once set the Dev ice Iden tif ier wil l onl y be cleare d b y a successf ul Set Dev ice Identif ier command or a dr iv e r eset. Pr e -e xec uti on chec ks: Co mma nd de s c r ipto r b loc k: CDB f ields: Data The for mat of the Dev ice Identifi er s upplied in the P arameter L ist is as follo ws: Illegal F ield Res er vatio n Def err ed Err or Unit Atten tion 7 6 5 4 3 2 1 0 0 Op er ation Code ( A4 h) 1 Reserved (0) Service Action (06h ) 2–5 Re s e r ve d ( 0 ) 6 (MSB) Pa r a m e t e r L i s t L e n g t h 9 (LSB) 10 Re s er v e d ( 0) 11 Control Ser vice Ac t ion Must be 06h Pa r a m e t e r L i s t L e n g t h The length in b ytes of the De vi ce Identifie r to be set. If th e v alue ex ceeds 64 , CHECK COND ITION is retu rned with ad ditiona l sense o f 2 400h (invalid field in CDB). 0 Not an er ror , but clear s an y pre viou sly stor ed Dev ice ID. 7 6 5 4 3 2 1 0 0 (MSB) Identifier n (LSB)
Comm ands 172 SP A CE 11h S PA C E pro v ides a v ar iety of positioning functio ns that are det ermined b y Code a nd Co unt f ields in the Command Descr iptor Block . Both forw ar d ( to war ds EOM) and r ever se (tow ards BO M ) positioning ar e pro vi ded. An y u n wr it te n data in the buffer is f l ushed to ta pe bef ore th e space is started . The logical med i a position is then modifi e d ac cor ding to the Code and Count fi elds. Once the space has started , it will com plete e ven if the S CSI oper ation is abort ed for some r eason (fo r e xam ple , the host selects and sends an abort message). Pr e -e xec uti on chec ks: The Code fi eld must be 0, 1 or 3 . If it is not t hen CHECK COND I TION status is r eported . Sense data will be as descr ibed in the Illegal Fi eld Checks. Co mma nd de s c r ipto r b loc k: 6- b y t e v e r s i o n 16 -b yte v ersi on Illegal F ield Res er v ation Defer red Err or Un it At te nt ion Me dia Ac ce ss D iag nos t ic St at us 7 6 5 4 3 2 1 0 0 Operation Code (1 1h) 1 Res e r ved (0 ) C od e 2 (MSB) Cou nt ( n ) 3 4 (LSB) 5 Contr ol 7 6 5 4 3 2 1 0 0 Operation Code (9 1h) 1 Res e r ved (0 ) C od e 2–3 Re s e r ve d ( 0 ) 4 (MSB) Cou nt ( n ) 11 (LSB) 12 (M S B) Pa r a m e t e r L e n g t h 13 (LSB) 14 Re s er v e d ( 0) 15 Control
SPA CE 11 h Co mm ands 173 CDB f ields: Spac e specific status : If the dri ve f a ils to space eithe r f rom a medium err or or fr om some sort of non-f atal dr ive er ro r , CHE CK C ONDIT ION statu s is r eported . The sense k ey w ill be set to MEDIUM ERR OR . Addi tio nal sense depends on the nature of t he err or . The t w o most common additional sense co de and qualif iers in t h is case will be: 1100h (unr ecov ere d r ead err or ) and 3B00h (sequenti al positi oning erro r) . The dri ve implement s the follo wing pri ority scheme when a ta p e posit ion point is encountered: • If “blank media ” is encount ered dur ing a space (in ot her w ords , the dri ve attempted to space on an unfor mat ted tape), the dr iv e be ha ves as if E OD w a s at BO M . It w ill then Code The Code f ield indicate s what is to be spaced to: 000 Blocks —The number of blocks cr ossed is dict a ted b y Count. 001 File m ar ks —T he number of filemarks cr oss ed is dic t a t ed b y Count . 011 EOD —Space to the end of data in the cur rent acti ve partition . Count • When spacing ov er bloc ks or fi l ema rks this field indicat e s ho w many blocks or marks should be cr ossed. S pac ing is forwar d (to war d s E OM) unless Count is negati ve (two s complement) w hen the spac ing is tow ar ds BOM. • When spac ing to EO D the Count f ield is ignor ed. • When not s pacing to E OD, i f C o unt is z ero , the SP A CE comm and is treated as a null operation . The logical position remains unchanged, and unw ritten data is not flushed to tape . Pa r a m e t e r L e n g t h 0 E xplic it block mode is not supported. Lowe st pri ori t y Blocks Filem arks If the dr iv e meets a f ile mar k whi le sp ac ing to a b loc k CHE CK CON DIT ION is r epor ted . The Mark bit in th e sense data is set , and the sense k ey is NO SEN SE . Additional sense is 0001h (filemark encounter ed ). The final position w ill be befor e or af ter the f i lemar k depending on whether the space w as re vers e or forwar d. EO D If the dri ve meets E OD while spac ing to a block or mark , CHECK COND ITION is r epor ted . The E OM bit in the s en se data is set . The sens e key is BLANK CHECK and additional sense is 0005h (EOD encounter ed) . BOM If the dr iv e meets B O M w hile spac ing, CHE CK C ON DI TION is r e ported . T he E O M bit and V alid bit in the sense data are s et to 1 and the inf or mation byte s set to the total numb er of blo c ks or filemarks that r emain to be spaced o ver (in other w ord s, the r equested number mi nus the number that hav e been spaced o ver ). The sense ke y is NO SENS E and additional sense is 0004h (BO T detec ted) . Highest pri o r it y EO M If the dri ve mee ts E OM w hile spac ing , CHE CK C ONDI TI ON is r eported . T he E O M bit in the sense data is set . The sense k ey is M EDI U M ER RO R an d additional sense is 0002h (E OP /M detected).
Comm ands 174 res po n d wit h GOOD s tatus to a r equest to space to E OD, and with CH ECK C ONDIT ION to an y other fo r war d spac ing r equest . Additio nal sense is s et to 140 3h ( End of data not f ound ). • E arly w arning end of medium infor mation is not reported . • If a space r ecords or space f ilemarks command fails then the s ense data inf ormati o n b ytes w ill be set to the absolute v alu e of the differ ence bet w een the r equested number of marks/ r ecords and the ac tual number of mar ks/recor ds spaced o ver and the V alid bit s et. T he r esidue f o r a prematu r el y ter minated Space t ow ards BO M will al w ays be a positi ve v alue . NO TE: This valu e w ill only be acc ur ate if the sense ke y is NO SENSE . • If the for mat of the data on tape is corr u pt then CHE CK C ONDIT ION status is r eported . T he sense k ey w ill be set to MEDIUM ERR OR . Additi onal sens e w ill be set to 3001h (unknow n fo rm at ) . • If the dr iv e fails t o read data f rom tape due to e i ther a MEDIUM ERR OR or some sor t of non fat al dr i v e err o r then CHECK CON DIT ION statu s is re por ted . The s ense ke y w ill be set to HARD W ARE ERR OR Additi onal sense w ill be set t o 3B 00h (seque ntial positi oning err or ) .
START/STOP ( CD-ROM mode) 1Bh Co mm ands 175 ST A R T / S T O P (C D-ROM mode) 1Bh S TA R T / S T O P is e xec uted for 1Bh when the dr iv e is in CD-ROM mode . When out of CD-ROM mode, the LOA D / U N LOA D command , which shar es the opcode , is ex ecut ed. Assuming that the pre-ex ecution c h ecks ar e passed, GOOD statu s is alw ay s reporte d. Pr e -e xec uti on chec ks: Co mma nd de s c r ipto r b loc k: CDB f ields: Illegal F ield F lag Link Bad L UN Reser vation Deferred E rror Uni t At tent io n 7 6 5 4 3 2 1 0 0 Operation Code (1Bh) 1 L ogica l Unit Numbe r R ese rved (0 ) Immed 2 Re s er v e d ( 0) 3 4 Re se r ve d ( 0) Lo Ej S t ar t 5 Contr ol Immed Th is flag is i gnor ed . LoE j Load/Eject . This flag is ignored. Star t Th is flag is i gnor ed .
Comm ands 176 TE S T UNI T RE AD Y 00h T EST U N IT R EA DY checks if the dr iv e is r eady f or commands tha t ac cess the tape . This is done b y the pr e -ex ecutio n Media Access chec k ; it is not a r equest f or a se l f -test . If the dr iv e has a tape loaded, t he c ommand r eturns a GOOD statu s. Otherwise , CH E CK CONDITIO N is re p orted and the sense k e y is NO T READ Y . Pr e -e xec uti on chec ks: Co mma nd de s c r ipto r b loc k: T est Uni t Ready specific stat us: If al l the pr e-ex ec uti on ch ecks p ass , GOOD st atus is r eported. Illegal F ield Res er v a ti on Defe rr ed Err or Unit At tention Media Access Media Informat i o n 7 6 5 4 3 2 1 0 0 Operation Code (0 0h) 1 Re s er v e d ( 0) 4 5 Contr ol
VERIFY 13h Co mm ands 177 VERIFY 13h V ERIFY v erif ies one or mor e bloc ks be ginning wit h t h e ne xt block on the ta pe. Th e v erif ica tion is media ve rif ication onl y . It reads data f rom the ta pe as it w ould for a r ead b ut then immed i ately discards it . No data is transf err ed bet ween the host and dri ve . The com mand is identical to the READ comma nd in mo st r espec ts. T he pr e-e xec uti on c hecks ar e identical. Sense data reporting on erro rs/ e xceptions is identical. The only di ffer ences a r e: • No data phases occ ur during ve rif ication . • The Ve r i f y command has no S ILI bit . When an illegal length r ecor d is encou nter ed , Ve r i f y behav es lik e READ w ith the SILI bit clear . NO TE : V erify will no t complete until all dat a has been read . It does support the ANS I “byte compar e” o r “Imme d” options (see the AN SI S CSI spec ifi cation) . Pr e -e xec uti on chec ks: Co mma nd de s c r ipto r b loc k: CDB f ields: Illegal F ield F i x ed Bit Reserv ation Def erred Er ror Unit At tention Media Acc ess Diag nostic Status 7 6 5 4 3 2 1 0 0 Operation Code (13h) 1 R e se rv ed (0) Immed(0) BCm p(0) Fi xe d 2 (MSB) Ve r i f i c a t i o n L e n g t h 3 4 (LSB) 5 Contr ol Immed 0 The Immedi a t e R eporting option is not supported , so this bit mus t be 0 . BCmp 0 The Byte co m par e option is not supported, s o this bit mu st be 0. Fixe d 0 T he V erif icati on L ength fie ld s p ecif ies the length of the dat a to be ver i f ied in byte s. 1 The V erif i cati on fi eld spec if i es the le ngth of the data t o be v er ifie d in blocks . T h e si z e of each bloc k (in by tes) is spec if ie d b y the cu rr ent bloc k length spec ifi ed in the Mode P arameter block desc riptor . Ve r i f i c a t i o n Length 0 No data is ver i fied. T his is not considered an er ror and the c u rr ent logical positi on will be unc h anged. >0 The amount of data to be v e rifi ed, in byt e s or bloc k s a s spec ifi e d b y the Fi xed f ield.
Comm ands 178 WRI TE 0A h Ze ro or mor e bloc k s of data ar e tr a nsf err ed fr om the host to ta pe starting at the c urr ent logical positio n. It is r ecomm ended that the Bu ffer ed M ode f ield of the MODE SELE CT P a r ameter is set to either 1 or 2 so that Immediate r eporting is enabled; upon a w rite command the dri ve will r eport GOOD statu s once the data is successf ul l y transfe rr ed to the data buffer (but not necess a r ily to tape). Data held in the buffe r is flushed to ta p e in the f ollow ing c ir cumstances: • A SCS I c o m m a n d i s re c e iv e d t h a t fo rc e s a fl u s h : • Buffer ed mode is not ena bled. If buff ered mode has no t been set to 1 or 2 , the buffer is flus hed bef ore the command complete s. • The w rit e dela y time is ex ceeded. T his is defined b y the W rite Dela y fi eld of the Dev ice Conf igur ation Mode Selec t pag e . If the dr i v e is idle f or longer than this (no oper ations that access the tape ha ve been perf ormed) , any data in the buffer is f lushed to tape . Pr e -e xec uti on chec ks: Co mma nd de s c r ipto r b loc k: CDB f ields: ERASE L O AD L OCA TE L OG SELEC T M ODE SELECT READ REWIN D SEND DIA GNOS T IC SP A CE V ERIFY WR ITE BUFFER Illegal F ield F i x ed Bit Reserv ation Def erred Er ror Unit At tention M edia Access Med ia W rite Diagnostic S t atus 7 6 5 4 3 2 1 0 0 Oper ation Code (0Ah) 1 Res er ve d ( 0 ) Fixed 2 (MSB) Tra n s f e r L e n g t h 3 4 (LSB) 5 Contr ol Fixe d 0 The T ransfer L ength fie ld specif ies the length o f the tr ansfer in b ytes. 1 T he T ransf er Length f ield spec if ies the length o f the transf er in blocks. T he si ze o f each block (in b ytes) is deter m ined b y the cur rent Bloc k Length gi ven in the Mode Select P a ram e t e r b l o ck d e s cri p t or . Tra n s f e r Length 0 No data is transf err e d . The c urre n t logic a l positi on will be unchanged . >0 T he amount of data to be tr ansf err ed , in by tes or bloc ks as deter mined b y the F i x ed fi eld .
WRI TE 0A h Co mm ands 179 W rite specific stat us: See a ls o the “ Additional Sense codes” on page 15 9 for a v ariety of possible hard er ror s. An attempt to wr ite to a wr ite -pr otected cartridge w ill produce a CHE CK CONDI TION wi th a sen se key o f DAT A P R OT E C T and additional sense of 2 7 00h (wr ite- pr otect e d). An attempt to write to a cartridge whose Cartri dge M emory has f ai led will pr o duce a CHECK CONDITION w ith a s ense k ey o f MED IUM E RROR and additional sense of 3004h (cannot wr ite medium) . If , how ev er , the tape is not positioned at BO T , t h e dr iv e w ill re spond with sense data as if the tape is wr ite-pr otected . The WP flag in the Mode P aramete r He ader w ill also be set . If EOM (end of med ium) is encountered dur ing a wr i te , CHE C K C ONDI TI ON st atus is r eported. T he EO M flag will be set . The sense k ey w ill be s et to VO LU M E OV E R F LOW wit h additi onal sense of 0002h (E O T) . Re sidue infor mation will be as belo w . The l o gi cal positi on will be EOD . Subseq uent Req uest Sense c ommands will , how ev er , giv e tape position as EOP/M. It may still be possible to wr ite a sma ller quantity of infor mation (such as f i lemar ks or a smal ler bloc k ). This is be cause logica l p osit ion af ter fai lure to wr i te a block r etu rns to the s tar t of the unwr i tten blo ck. Ear l y W a r ning EOM infor mati on is reported only if a w r ite oper ation is successf ul. T his is done by rep o r ti n g CHECK CONDITION status with a s ense key of NO SENSE and additional sense of 0002h (EO T ). Resi du e info rmation is valid and indicates z er o blocks/bytes . R esidue i nf ormati on: R esidue inf ormation depends on two var iables: • F i xed or V ari able bloc k mode. • Immediate or Non-Immediate Report (Buffer ed mode) . R esidue inf ormati on is set in the sense data b yte , with the V al i d bit set and the in f ormati on bytes set to the residue. Block M od e Buffere d Mode Re sidu e V ariable 0 Nu mber of un written b y tes F ixe d 0 Number of unw ritten blocks V ariable not 0 T otal number of un written b y te s a nd marks (inc lu ding those buffer ed bef or e the command w as r ecei ved). The si z e can be gr eat er than the co mmand o per atio n si z e. spe c ifical ly 1 C ont ains r e sidues o f all initiat ors with dat a in t he buf fer . F i xed not 0 T otal number of u n wr itten blocks and marks (including those buffer ed bef or e the command w as r ecei ved). The si z e can be gr eat er than the co mmand o per atio n si z e. spe c ifical ly 1 C ont ains r e sidues o f all initiat ors with dat a in t he buf fer .
Comm ands 180 WRI TE A T TRIBUTE 8Dh The WRITE A T TRI BU T E command a llo ws an applicatio n cli e n t t o writ e attr ibute values to MAM (Me dium Au x il iary Memory) . Applicatio n clients sho u ld issue READ A T TR IBUTE co mmands bef or e using this command to discov er what support the dev ice server has f or MAM. Pr e -e xec uti on chec ks: F or this command to be e xec uted, ther e mu st be a tape in the dri ve , ev en if it is only partially loaded. Co mma nd de s c r ipto r b loc k: CDB f ields: Illegal F ield Defer r ed Err or Unit Atten tion Media Acce ss 7 6 5 4 3 2 1 0 0 Oper ati on Code (8Dh) 1 Re s er v e d ( 0) 4 5 Vo l u m e N u m b e r ( 0 ) 6 Re s er v e d ( 0) 7 Pa r t i t i o n N u m b e r ( 0 ) 8 Re s er v e d ( 0) 9 10 (M S B) Pa r a m e t e r L i s t L e n g t h 13 (LSB) 14 Re s er v e d ( 0) 15 Control Vo l u m e Number Th e number of the v o lume w ithin the MAM. T h e nu mbe r of v olumes o f the MA M mu st be equal to that of the ta pe . In the cas e of Ultr ium , the onl y has a single v olume , so th is fi eld is be set to 0. P artit ion Number The n umber of the partition w ithin the MAM. The n u mber of p artition s of the MA M must be equal t o that of the t ape . In the case of Ultr iu m , th e onl y h as a s ingle partition , so this fi eld is be set to 0. Pa r a m e t e r L i s t Length Th e len gth in byte s of the paramet er list cont ained in the Data- Out buffer . 0 The Data- Out buffer is empty . This condition is no t be consi d er ed an err or . n The length in b ytes of the par ameter list co ntained in the Data- Out buffer .
WRITE ATTRIBUTE 8Dh Co mm ands 181 P arameter list f o rm at : The par ameter list has the follo w i ng f ormat . The attr ibutes should be sent in ascending numer ical or der . F o r details of attr ibute data see “MAM attribu te data” on pag e 115. If the paramete r data cont a ins an attribute w ith an Attr ibute Length of z ero , one of the fo l lo wing acti ons will occ ur : • If the attr ibute is r ead- only or unsuppo r ted , no attribu tes are c hanges. T he command fails , ret u rn in g CHECK CON DIT ION wi t h ILLEG AL RE QUE S T sense and additio nal sense of 2 600h (in valid f ield in par ameter list). • If the attr ibute can be wr itten to , it is deleted and will not be retu rned af ter a subseq uent READ A T TR IBUTE command . • If the attribute does not e xist , the command cannot affect it . This is not consider ed an err o r . W r i te A ttribute spec i f ic status: The command will be terminated and will r eturn CHECK CONDIT I ON under the follo wing circu mst an ce s: 7 6 5 4 3 2 1 0 0 (MSB) P arameter Da ta Leng th ( n − 3) 3 (LSB) 4 At tri bu te 1 a : : m Attr ibute x n Pa r a m e t e r Data Length This is not mandatory and will be ig nored by the de vic e s er ver be caus e it duplicates the P a ram e te r Li st Len g t h. Desc riptio n Sense Key Addi t ional Sense Ther e is no cartri dge presen t in the dri ve , not ev en partially loaded . NO T REA D Y 3A00h (m e d ium not pr esent) The MAM is not acces s ible e ven though ther e is a tape in the dri ve . None of the attribut es are c han ged . MED IUM ERROR 0410h (MAM not acce ssib le) The MAM has f a iled (for e xample fr om a bad ch eck su m) MED IUM ERROR 0C 0Bh (MA M write err o r) T he P ar ameter List L ength r esults in the truncation of an attribut e. ILLE G AL REQUEST 1A00h (parameter list length e rro r) Th e comb ina tion o f V olume Numb er and P artiti on Number is not valid. ILLE G AL REQUEST 2 400h ( invalid field in CDB)
Comm ands 182 T he par ameter data attempts to change a r ead- only attribut e , that is, o ne that has the R ead- Only bit (see “MAM attr ibute data ” on page 115) set to one w hen read w ith the READ A T TR IBUTE command . None of the attr ibutes are c hanged. ILLE G AL REQUEST 2 600h (i n va lid field in par ame ter li s t) The par ameter data contains an attribute w ith an incor rect A t tr ibute Len gth f ield v alu e . No ne of the attributes ar e changed. ILLE G AL REQUEST 2 600h (i n va lid field in par ame ter li s t) The par ameter data contains an attribute w ith an unsupported Attr ibute V alue f i eld value . No ne of the attributes ar e changed. ILLE G AL REQUEST 2 600h (i n va lid field in par ame ter li s t) T he attribu te s are not in ascending or der in the Pa r a m e t e r L i s t . None of the attributes ar e changed. ILLE G AL REQUEST 2 600h (i n va lid field in par ame ter li s t) Ther e is not en ough space to wr ite all the attribute s to the MAM. None of the attr ibutes ar e changed. ILLE G AL REQUEST 5 506h (MAM full) Desc riptio n Sense Key Addi t ional Sense
WRITE BUFFER 3Bh Co mm ands 183 WRI TE BUFFER 3Bh W rite Buf fer is used to transfer data into me mory on the d r ive for the purposes of d iagnostics, tests or fir mw ar e upgrade . The data is placed int o one of the dr iv e buff ers depending on th e M ode and Buff er ID f iel ds of the command . CA UTION : Do not attem p t to use the buffe r modifying f unctions o f this command unle ss you r eall y know w hat y ou ar e do ing . The buffer modify ing functi on s ar e intended as a diagno s tic aid t o be us ed in conj unc tio n w i th the Re ad Bu ffer command . It i s not possible t o modify data in the buffe r so that it sub sequentl y wr itten to media becau se all host dat a is flushed be for e e xecu ting the command. The f irmw ar e do wnload functions ar e intended for u se by manufactur ing and by cu stomers u sin g upgr ade utilitie s supplied b y HP . Pr e -e xec uti on chec ks: Co mma nd de s c r ipto r b loc k: CDB f ields: Illegal F ield Re servation Defer r ed Err or Unit Atte nti on 7 6 5 4 3 2 1 0 0 Operation Code ( 3Bh) 1 Res e r ved (0 ) M o de 2 Buffer ID 3 (MSB) Buffer Off se t 5 (LSB) 6 (MSB) Pa r a m e t e r L i s t L e n g t h 8 (LSB) 9 Contr ol Mode This fi eld can be set to one of the f ollow ing values: 00h T h e dr ive tr ansfer s a 4 -b y te header fr om the hos t ( whic h shou ld be set to z ero s) , follo wed b y ( allocation length − 4) bytes o f da ta. The d ata is writ ten i nto the buffer ide ntified b y the Buffer ID , starting fr om o f f set z er o in the buffe r . T h e Buff er ID and Buffer Offset mu s t both be ze r o . Allocation Len g th mu st not exce ed ( buffer siz e 4) . 0 2h T he dri ve tr ansfers allocation length bytes o f data fr om the host , b ytes of data w hi ch is placed in the buffer indicated b y Buffer ID , starting fr om Buffer Offse t fr om the start of the buffer . No header i s sent . T he Bu ffer Offset and Allocation Length must be k ept within the buf f er siz e , and the Buffe r I D mu st to set to one of the v a lid values.
Comm ands 184 04h T his mode is used to tr ansfer ne w firm ware t o the dr iv e. T he dri ve r ecei ves Allocation L eng th b y tes of data fro m the hos t . The data is stor ed in the dri ve’s buffer .The location in the buffer at whi c h the data is wr itten is determined b y the f i r mw are . T h e f i rm w a r e image i s di vided into a number of blocks o f data whi ch are s e nt to the dr iv e using multiple W rite Buf fer command s . All the f irmw are image data should be tr ansferr ed using this mode. T h e Buffer ID and Buffer Offset ar e ignored . 05h T hi s mode is used to indicate that the complete f i r m war e image has been sent to the dr ive . This is the signal for ent e r ing the FLASH r e pr ogramming stage of the f i r mwa r e upgr ade proces s. Once this comm and has been re c ei ved , and th e ass ociated data stor ed in the buffer , the reside nt firm war e chec ks th e v alidit y of the image that has been r ecei ved . If this seems to be cor rec t, the F irm war e Upgr ade o pe rati o n will commence. If an y faults are det ected in the format of the image, the dr iv e w i ll rep o r t CH ECK COND IT IO N to the ho st . The sens e ke y is ABOR TED COM MA ND , and the addi ti on al sense i s set to 2 600h ( in valid f i eld in par am eter li st) . CA UTION: Once this command has been sent and complet ed, the dr iv e’s po we r supply mu st not be inter rupted un til the dri ve ha s completed the firm war e upgrade . T h e Buffer ID and Buffer Offset ar e ignored . 0Ah/ 1Ah T his mode is used to wr ite to the E cho Buffer . T h e Bu f f er ID and Offset ar e ignor ed. Buffe r I D Spe c i fies w h ich buf fer to read. 00h 01h 02 h 13h 20h 21h 22 h 23 h 24 h 25 h 26 h 27 h Main buffer (R AM) Offset Boundary: 1 byte Pr oc es sor address able m emory (R AM) Offset Boundary: 1 byte S CSI burst buffer (RAM) Offset Boundar y: 4 b ytes or FC burst buffer (R AM) Offset boundar y : 512 b ytes PC A EEP ROM Offset Boundary: 1 byte Main buffer segment 0 (R AM) — see belo w for desc ription) Main buffer segment 1 (R AM) — see belo w for desc ription) Main buffer segment 2 (R AM) — see belo w for desc ription) Main buffer segment 3 (R AM) — see belo w for desc ription) Main buffer segment 4 (R AM) — see belo w for desc ription) Main buffer segment 5 (R AM) — see belo w for desc ription) Main buffer segment 6 (R AM) — see belo w for desc ription) Main buffer segment 7 (R AM) — see belo w for desc ription) Buffe r Offset Wher e in the buffer the d ata should be w ritten . This mu st be smaller than the si z e of the buffer and must obe y the spec ified off set bou ndary . When dow nloa ding ne w f irm ware , this field is ig nored. Pa r a m e t e r L i s t Length Th e amou nt of data. T his must be smalle r than the differ ence betwee n the Buffer Off set f iel d and th e si z e o f the bu ffe r .
WRITE BUFFER 3Bh Co mm ands 185 Memory si z es Main buf fer memory: The Ma in Buffer memory is 128 MB. Ar ea s of the Main B uffer memory ar e us ed b y the f irm w ar e . The se shoul d not be w r it t en to an d shou ld no t be expe cted to r e tai n value s that are writte n to th em. Any W rite a nd Read Bu ffer te sts can be perfor me d while the dr iv e is idle . If the dr iv e is r eading or writing , the data be ing wr it ten or rea d c a n b e c orru p te d. Since the dri ve has mor e than 16 MB of Main Buffer memory , addi ti onal bu ff er I Ds hav e been defined to allo w the whole buffer to be accessed in 16 MB segm en ts. These ar e def ined as follo w s: Main proces sor memo r y: Not all the Processo r memory space i s accessible . T ak e car e when wr iting to an y addr esses wit hin this buffe r . SCSI burst buffer: Addr essable r ange fr om 00000h thr ough 3 F8000h . PCA E EPROM : The write range is limi ted to 500 h b yte s, star ting at 1 00h (T ape T o ols a r e a) . Buffer ID Address 20h 00000000h Buffer Offset (sam e as Buffer ID 00h) 21h 01000000h Buffer Offset (that is , 16 MB) 22h 0 2000000h Buffer Offset (that is, 3 2 MB) 23 h 03000000h Buffer Offset (that i s, 4 8 MB) 24 h 04000000h Buf f er O ffset (that is , 64 MB) 25h 05 000000h Buffer Off s et (that is, 80 MB) 26 h 0600000 0h Buffer Offset (that is, 9 6 MB) 27 h 0 7 000 000h Buffer Offset (that is, 112 MB )
Comm ands 186 WRI TE FI LEMARK S 10h W RITE FILEMA RKS causes the specifi ed number of filemarks to be written b eginning at t he cur rent logical po sition on ta pe. If the Immed bit is se t , GOOD statu s ma y b e r eported and the marks left in the data buff er . Otherwise , all buffer e d data and mar k s ar e written bef ore status is r eported. If z ero f ilemarks ar e to be w ritten, t he Im med bit mus t be z er o. T he dr iv e wr ites any buff ered data and marks to ta p e be for e reporting . This is t he r ecommended way f or a host to flu sh the buffe r . Pr e -e xec uti on chec ks: Co mma nd de s c r ipto r b loc k: CDB f ields: Specific s tatus : Wr i t e F i l e m a r k sense is ident ical to status for t he Wr i t e com mand. Illegal F ield Res er v a ti on Def err ed Err or Unit Atte n t ion Media Access Media W rite Diagnostic Status 7 6 5 4 3 2 1 0 0 Operation Code (1 0h) 1 Re se r ve d ( 0) WSm k I m me d 2 (MSB) Numbe r of F ilemar ks 4 (LSB) 5 Contr ol Immed 0 St a tu s will not be r eturned until th e op er ation is co mplete . 1T h e d r i v e r e t u r n s GOOD s tatus f o llo wi ng th e pr e -ex ec uti on c hecks (that is , bef or e the command starts ex ecuting). WSm k 0 This bit is not su ppor ted and m ust be set to z er o. Number of Mark s 0 Z ero is vali d only when immediate r epor t is disabled . >0 Th i s number o f f ilemarks is to be w r itten.
Glossary Glossar y 187 Glo ssar y alg orithm r igor o u s set o f rule s fo r a pr o cedur e . In the conte xt o f data compr es sion , the r ules ar e fo r transf orming the w ay data is r epr esented. ANSI Amer ican National St andar ds Institute , whi c h sets standar ds for , amongst other things , SC SI and the s afety of elec tri c al dev ices . asynchrono us see data transf er phase BOM Be ginning Of Media . The f irst po int on the tape that can b e access ed by the dr iv e . check sum The sum of a s er i es of b ytes wr i tten to the tape , whi c h can be c hec k ed against the sum of the same s eries of bytes w hen the tape is r ead in or der to identify err ors . compres s ion A procedur e in w hic h data is tr ansfor med by the r emo val o f r edundant infor mation in or der to r educe the number o f bits r equired t o repr esent the data . comp ression ratio A measur e of how m uch co mpres s ion has oc cu rred , def ined as the r atio of the amount o f uncompr essed data t o the amount of c o mpre ssed data in to w hich it is tr ansf ormed . The L T O- DC algor i thm can typ ically ac hiev e a compr e s sion r ati o of between 2 :1 and 4:1 depending on the natur e of the data . data set A fi x ed- siz e bloc k of compr essed h ost info rmation . data transfer phase After accepting a command f ro m the host (initi ator ) , the ta pe dri v e (tar get) sets the S CSI bu s to transf er the data assoc iat e d with the c ommand. Informati on is tr ansf e rr ed in one of thr ee w ay s, depending on the negotiated settings between initiat o r and tar g et. The simples t (and slow est) is as ynchr onous s s s , w her e the ta r get r eques ts the tr ansfer of each b yte o r w or d, then m ust w ait f or the initi ator t o signal that the b yte or wo rd has been tr ansfe rred be for e it starts the ne xt byte tr ansfer . S ync hro nous transf ers allow the tar g et to r equest man y tr ansf ers at once, u p to a limit agr eed between initi ator and tar get at s tar tup . Onl y once the “ cr edit” has been used u p, does the target ha ve to pau se and wait f or the initiator t o signal successfu l transfe r of the wo rds. Ultra3 20 S CSI intr oduces a f aster still metho d called pac ed tr ansfers; thes e are simil a r in c o ncept to s ynchr onous tr ansfers . As ync hr onous and s ync hr onous tr ansfer s may tak e place either w ith ei ght- bit b ytes ( “ narr ow ”) or si x teen -bit w ords (“ wi de ”) . P aced transf ers are al wa ys w ide . decompression A pr ocedur e in whi ch the or iginal dat a is generated f rom compre ssed data . DS IT D ata Set Inf ormatio n T able. P art of the data set that des cr ibes its contents .
Glossary 188 ECMA Eur opean Com p ut er Manufactur ers As sociati on. T he Eur opean equi valent o f ANSI . enhanced commands S CSI commands that are vendor -unique and n ot part of the common S CS I set . EOD End Of Data . An ar ea that signif ies the end of the valid data . If ne w data is wr itten o v er a larger quantity of old data , it is possible f or data to ex is t after EOD , but becau se it is after E OD, this old data is no lo ng er v alid . EOM End Of Media for mat. T he last u sable po int on the ta pe . EW-EOM Ear l y W arning End Of Media . A phy sical mar k or a de v ice-computed positio n o n the tape that t ells the dri ve that i t is approac hing EO M. filemark A mark wr itten b y the ho st . It does n ot necessar il y separ ate f iles; it is up to the ho st to as sign a meaning to the mark . filemark cou nt The number of filemarks w ritten since the b eginning of the curr ent tape u p to and in cl u d ing th e cu rren t g r o up. FRU F ield R eplaceable Unit , an assembl y or gro up of components that is r eplaced in its entir et y by Servi ce Engineers when it contains a fau lt. host The host co mpu ter sy stem acting as contr oller for the dr iv e . immediate mode A mode of r esponding to S CS I commands wher e the dr iv e or other per ipher al does not wait un til the command has finished be for e r eturning statu s infor mation back to the host . F or w r iting filemar ks, Immediate mode can si g nif icantl y impr ov e the perfor mance of s y stems that do not set the Immedi ate bit w hen sending a S CS I W rite F i lemarks co mmand. On the othe r hand, data is n ot flushed to tape in r esponse to a f ilemark command. load The pr ocess in w hic h the dri ve t a kes in an inserted cartridge and goes o nline. LU N Logi cal Unit Number , by w hic h differ ent dev ices at a partic ular S CSI ID c an be addr ess e d indiv iduall y . The dr iv e has a f i xed L U N of 0. LV D Lo w-V oltage Differ ential . See SCS I. RA W see rea d - a f t e r- wr i te read-after-wr ite R A W impr ov es data int eg rity b y r eading data immediatel y after it is w ritten and wr iting the data ag ain if an err or is found. re se r ved Not gener ally a vailable f or use w ith the dr i ve . A r eser ved fi eld should contain all ze ro b i t s.
Glossary Glossar y 189 SCSI S mall Comput er S ystem Interface—a standar d command s pe c ifi cation and command s et that enables compu ters and per ipherals to c ommunicate w ith each other . H P’s Ultr ium dri v es adher e to the S CSI spec ifi cations (see Chapter 1, “Interface Im plementation ” in V olume 3, The S CS I Interface , of the HP Ultr ium T ec hnical R efer ence Manual) and support all f eatures r equired b y thos e standar d. Single -Ended and Lo w V oltage Differ ential SCSI The se terms def ine ho w the signals are tr ansmitted along the cable . Wit h single -ended (SE) S CSI , each signal tr avels over a single wir e and each signal's v alue is determined b y compar ing the signal to a pair ed gro und wir e. Signal quality tends to decr eas e o ver longer cable lengths or at incr ea sed si gnal speed . Wit h low volta ge d ifferentia l (L VD ) signaling, signals tra vel alo ng tw o wi res and the diff er ence in voltage betw e e n the wir e pairs det ermines the signal value . This enables f aster data r ates and longer ca bling with les s susceptibility to noise than SE signaling and r educed po wer consumption . Narro w and Wide, Fast , Ultra SCSI and abov e Na rrow S CSI de vi ces can tr ansfer data one b yte at -a- time (and ar e sometimes called “8-b it S CSI ” dev ic es) . T hey can confo rm to e ither the S C SI- 2 or S CS I-3 pr otocols . The y hav e a 5 0 -pin c onnection t o the S CSI bus . Wid e SC SI de vi ces can tr ansfer tw o bytes of data simultaneou sly ( “16 -bit S CS I”) . The y usu a ll y hav e a single, 68-pi n connectio n to the S CSI bu s. (T his ph y s i cal arr angement is part of the S CS I-3 speci ficati on.) T hey ma y support eithe r SCS I- 2 or S CSI-3 pr otocols . Wi de and narr o w dev ic es can simultaneousl y be connected t o the same bus w ithout pr oblem , pro vi ded certain r ules ar e follo wed . Fa st SC SI can transfer data at up to 20 MB/s w ide , using a cable of up t o 6 meter s total length . Ultr a SC SI can tr ansfer dat a at up to 40 MB/s w ide , but the cable l ength cannot e x ceed 3 mete r s (it is also know n as “Fas t20”) . Ultr a2 S CS I can transf er data at up t o 80 MB/s w ide , using a ca ble of up to 2 5 meter s to tal length for a si ngle de vi ce, or up to 12 me ters f o r tw o or mor e de v ice s (it is also kno wn as “F ast4 0 ”). Ultr a3 or Ultra160 c an transfer data a t up to 16 0 MB/s w ide. Cable lengths ar e as f or Ultr a2 . Ultr a4 or Ultra3 20 tr ansfer data at u p to 3 20 MB/s. C able lengths are as f or Ultr a2 .
Glossary 190 Ultr a SC SI supports both SE and L VD interfaces . In nor mal situations , slow er de vi ces can coex ist w ith fa ster dev ices , and narr o w dev ices can be u sed on the same S CSI bu s as w ide dev ices using a suitable adapter . HP’s Gener ation 1 Ultr ium dri v es are Ult ra2 , wi de SC SI-3 compatible de vic es. The y can be us e d with bo th L VD and SE host bu s adapters. Gener ation 2 Ultr ium dr iv es are U ltra16 0, wi de S CSI-3 compatibl e . Gener ation 3 Ultr ium dr iv es ar e Ultr a3 20 compatible; ho w ev er for perf ormance r easons the y should no t be used on an SE bu s. sense data Data r etur ned after the e x ec u tio n of a S C S I command , t elling the hos t whether the tr ansactio n was succes sful, and i f not, what w ent wr ong. sequential access Sequential acce ss dev ice s stor e data sequen tially in the o rder in w hic h it is r ecei ved . T ape de vi ces ar e the most common sequential acc ess dev ices . Dev ices such as disk dri ves ar e dir ect acce ss dev ices , wher e data is s tor ed in blocks , not necessar ily sequenti ally . Dir ect acc ess allo ws fo r speed of retr ie val , but is signif icantly mor e costly . single -ended see SCSI spacing S pac ing is mov ing along the tape ov er a spec if ied n umber of bloc ks or filemar ks , or to E OD , in or der to f ind data qui ckl y . sub-data set One si xteen th of a data set s ynchronous see data transf er phase T apeAlert A s et of 64 flags is held in the T apeAlert log that indicate fa ults or predi cted faul ts w ith the dri v e or the media . B y r eading this log , host so ftwar e can inf or m the user of e xis ting or impending conditi ons, and can, f or ex ample , adv ise the us er to change the tape . vendor -unique The ad diti on of commands to S C SI that ar e not inc luded in the s tandar d.
Inde x Index 191 A abort handling 14 Aborted Command 158 additional sense codes 149, 150 , 15 2 , 159 addressing, fibre channel 18 algorithms 187 comp ress ion 80 decompression 80 ANSI 7 , 187 append error 162 ASC/Q 159 asy nchro nous 187 asynchronous data transfer 11 asy nchron ous tr ansfer s 187 attribute data 115 attributes ID values 116 standard device types 116 standard host type 118 standard medium type 118 writing 180 B Bad LUN check 30 bit pointer 151 BLANK CH ECK 15 8 blank media, met during read 108 blocks, spacing over 173 BOM 149 , 150 , 187 detected 159 met during space 173 BOP, met during s pace 173 BPV bit 151 brackets, round, square 73 buffer echo 121 , 184 reading 121 writing 180 , 183 buffered data, flushed to tape 178 burst size 78 bus device deferred errors 157 bus device reset 13, 155 bus inactivity limit 78 bus parity errors 15 BUSY status 27 C capacity data 124 cartridge memory accessible in hold position 50 , 79 failed 51 , 17 9 size 123 cartridges faulty 162 removal prevented 162 CDB 35 CD-RO M Emulation/Dis aster Recovery Mode page 94 CD-RO M mode READ 10 command 110 READ CAPACIT Y command 124 READ TOC command 131 SEEK command 167 START/STOP command 175 CHECK CO NDITION 27 checksum 187 cleaning 151 , 161 cleaning cartridge 161 Cleaning Needed sense data descriptor 154 clearing l ogs 55 CLN bit 151 command descriptor block 35 command phase error 162 commands 37 enhanced 188 ERASE 38 INQUIRY 39 LOAD /UNLOA D 50 LOCA TE 53 LOG SE LE CT 55 LOG SE NSE 57 MODE SE LE CT 71 MOVE M E DIUM 105 overlapping 162 PERSISTENT RE SERVE IN 98 PERSISTENT RES ER VE OUT 101 READ 106 READ 1 0 21, 110 READ 6 21 READ AT TRIBUTE 111 READ B LOCK LIMITS 120 READ B UFFER 121 READ CAPACITY 21 , 12 4 READ M EDIA SERIAL NUMBE R 125 READ TO C 21, 131 RECEIVE DIAGNOSTIC RESULTS 133 RELEASE UNIT 135 REPORT DENSIT Y SUPPORT 137 REPORT DE VICE IDENTIFIER 140 REPORT LUNS 14 1 REPORT SUPPORTED OPCODE S 14 3 REPORT SUPPORTED TASK MANAG EMENT FUNCTIONS 145 REQUES T SENSE 147 RESERVE UNIT 16 4 REWIND 166 SEEK 21 , 167 SEND D IAGNOSTIC 168 SET CAPA CITY 170 Inde x
Index 192 SET DEVICE IDENTIFIER 171 SPACE 172 START/S TOP 21 , 175 supported 12 VERIFY 177 WRITE 178 WRITE ATTRIBUTE 180 WRITE BUFFER 183 WRITE FIL EMARKS 186 compatibility 16 1 comp ress ion 187 algorithm 80 ratio 187 cont rol b yte 35 cont rol f ield 35 Control Mode page 79 current sense 154 cle aring 155 D Data Compression Capable bit 80 Characteristics Mode page 79 Enable bit 80 log 68 SDC A 81 data compression 187 algorithm 80 data decompression algorithm 80 Data Decompression Enable bit 80 data phase error 162 DATA P ROTEC T 158 data transfer asy nchro nous 11 synchronous 11 data transfer phase 187 DCC bit 80 DCE bit 80 DDE bit 80 decompression 187 algorithm 80 Deferred Error check 30 DEFERRED ER ROR sense 156 deferred errors 149 , 150 , 152 descriptor format sense data 152 Device Configuration page 81 Device S tatus log 70 Device Time Mode page 92 Diagnostic Status check 31 diagnostics 133 failure 162 sending 168 disconnect strategy 16 Disconnect-Reconnect Mode page 78 documents, related 7 Drive Error Code sense data descriptor 154 drive error codes 151 , 163 DSIT 187 DTD primary port status 64 DTD Status Log page 62 E echo buffer 121, 18 4 ECMA 18 8 ejection failure 162 enhanced commands 188 EOD 188 detected 159 met during locate 54 met during read 108 met during space 173 not found 160 spacing to 173 EOM 14 9 , 150 , 188 detected 159 met during locate 54 met during read 108 met during space 173 EOP, met during space 17 3 ERASE command 38 erase, failure 162 error codes 148 , 163 drive 151 errors bus device deferred 157 command phase 162 counter s 60 data phase 162 deferred 149 , 15 0 , 152 invalid message 162 message 162 parity 162 read, unrecovered 159 sequential positioning 161 wri te 159 write append 162 write-behind deferred 156 EVPD bit 39 EW-EOM 188 met during locate 54 F failed cartridge memory 51 , 179 faults, predicting 65 fibre channel addressing 18 names 18 Fibre Channel Logical Unit Control Mo d e page 84 fibre channel operation 18 Fibre Channel Port Control Mode page 85 field pointer 151 field replaceable units 20 field, invalid 160 filemark count 188 filemarks 149 , 150 , 188 detected 159 met during read 108 met during space 173 spacing over 173 writing 186 Fixed bit 107, 178 Fixed Bit check 31 fixed format sense data 148 Flag Link check 31 flush, buffered data 178 format, cor rupt 161 FRUs 20 , 188
Inde x Index 193 G GOOD st atus 27 group code 35 H HARDWARE ERROR 157 heads, cleaning 151 hold bit 50 hold position 50 , 79 Host 188 I IDENTIFY message, invalid bits 161 identifying LUNs 15 ILI bit 149 , 150 Illegal Command ch e ck 31 Illegal Field check 31 ILLEGAL REQUE S T 158 immediate mode 188 during writing 178 Information Exceptions Mode page 91 Information sense data descriptor 153 INQUIRY command 39 data pages 40 Defined Identifiers page 46 Device Identi ficatio n page 45 drive component revision levels pages 49 extended INQUIRY data VPD page 48 sequential access device capabilities page 48 Unit Serial Number page 45 interface, SCSI 11 L li brar ies, fibr e chann el addressing 20 Load bit 50 LOAD/UNLOAD command 50 Load/Unload Specific Status 51 loading 188 failure 162 tape 51 localization identifiers 119 LOCATE command 53 LOG SELECT command 55 LOG SENSE 57 Data Compre ssion Log page 68 Device Status Log page 70 DTD Status Log page 62 parameter pages 58 Performance Data Log page 69 Read Error Counters Log page 60 Sequential Access D evice Log page 61 Supported Log Pages page 59 Tape Capacity Log page 68 Tape Usage Log page 67 TapeAlert Log pa ge 65 Temperature Log page 62 Wr ite E rro r Co unte rs L og pages 60 logs clearing 55 Data Co mpression 68 Device S tatus 70 parameter pages 58 Performance Data 69 reading 57 supported 59 Tape Capacity 68 Tape Usa ge 67 TapeAlert 65 , 190 LUN 188 becoming ready 159 identifying 15 not ready 159 not self-configured 162 not supported 160 LVD 188 M MAM accessible 162 attribute data 115 full 163 inaccessible 159 reading 111 write error 159 writing 180 Margin Control mode sub-page 88 Mark b it 149, 150 Media Access check 32 Media Information check 33 Media Write check 33 MEDIUM ERRO R 15 7 Medium Partitions Mode page 83 messages 23 err or 162 invalid 162 supported 11 microcode download 162 Mode Parameter pages 72 MODE SE LE CT CD-ROM Emulation/Disas ter Recovery Mode page 94 command 71 Control Mo d e page 79 Data C ompres s ion Characteristics page 79 Device Configuration pag e 81 Device Time Mode page 92 Disconnect-Reconnect page 78 Fibre Channel Logical Unit Control Mo d e page 84 Fibr e Channe l Port Co n trol Mode page 85 Information Exceptions M ode page 91 Medium Partitions page 83 Mode Parameter header 74 Mode Parameter pages 72
Index 194 Read-Write Error Recovery page 76 SCS I LUN Contro l Mode page 84 SCSI Port Control Mode page 87 monitoring condition 65 , 190 MOVE MEDIUM command 105 multi-initiator support 17 N names, fibre channel 18 Negotiated Settings mode sub- page 89 NO SENS E 157 NOT READY 157 O opcode 35 unre cognize d 160 overlapping commands 162 P paced transfers 187 parallel protocol request 26 Parameter List check 34 parameter list, invalid field 160 parameter rounding 161 parity error 162 Performance Data log 69 PERSISTENT RESERVE IN command 98 PERSISTENT RESERVE OUT command 101 polling delay 64 power-on 155 PPR 26 pre -exe cuti on c heck s 30 Bad LUN 30 Deferred Error 30 Diagnostic Status 31 Fixed Bit 31 Flag Link 31 Illegal Command 31 Illegal Field 31 Media Access 32 Media Information 33 Media Write 33 Parameter List 34 Reservation 34 Unit Attention 34 prevent media removal 162 PREVENT/ALLOW MEDIUM REMOVAL 105 problems, predicting 65 R RAW 188 READ 10 command 21 , 110 READ 6 command 21 READ ATTRIBUTE command 111 READ BLOCK LIMITS c o mmand 120 READ BUFFER command 121 Read Capabilities serv ice action 100 READ CAPACIT Y command 21 , 124 READ command 106 Read Error Counters Log page 60 Read Keys service action 99 READ ME DIA SERIAL NU MBER command 125 Read Reservation se rvice actio n 99 READ TOC command 21 , 131 reading error 159 failure 54 , 108 logs 57 Read-Write Error Recovery Mode p age 76 RECEIVE DIAGNOSTIC RESU LT S comma n d 133 RELEASE UNIT command 135 REPORT DENSITY S UPPORT command 137 REPORT DEVICE IDE NTIFIER command 140 REPORT LUNS command 141 REPORT SUPPORTED OPCODES c ommand 143 REPORT SUPPORTED TAS K MANAG EMENT FUNCTIONS command 145 Report Transfer Capabilities mode sub-page 90 REQUES T SENSE command 147 data 148 reselect failur e 162 Reservation check 34 RESERVATION CONFLICT st atus 27 reservations, releasing 135 RESERVE UNIT c ommand 164 reserved field 35, 188 reset 155 str ategy 13 REWIND command 166 rounding 161 S Saved Training Configuration Values mode sub-page 88 SCSI 7 , 11 , 189 commands 37 interface 11 messages 23 parity error 162 supported messages 11 SCSI LUN Control Mode page 84 SCSI Port Control M ode page 87 SCSI-2, support 13 SCSI- 3 11 SDTR 25 SEEK command 21, 167 select failure 162 self-test 13 3 , 168 SEND D IAGNOSTIC comma nd 168 sense DEFERRED E RROR 156 UNIT ATTENTION 155 sense data 19 0
Inde x Index 195 descriptor format 152 fixed format 148 management 154 sense data des criptors Cleaning Needed 154 Drive Error Code 154 Information 153 Sens e K e y Sp ecific 153 Stream Commands 154 Sense Key Sp ecific sense data descriptor 153 sense ke ys 149 , 150, 157 specific bytes 149 , 150 sequential access 190 Sequential Access command set 11 Sequential Access Device Log page 61 sequential positioning error 161 service actions 112 Read Capabilities 100 Read Keys 99 Read Reservation 99 SET CA PACI TY co m mand 170 SET DEVICE IDEN TIFIER command 171 SILI 107 bit 107 error 108 SKSV bit 149 , 150 SPACE command 172 spacing 190 START/STOP command 21, 175 status BUSY 27 byte 26 CHEC K CONDI TION 27 GOOD 27 RESER VATIO N CO NFLI CT 27 Stream Commands sense data descriptor 154 Summary 29 supported commands 12 Supported Log Pages page 59 synchronous 190 synchronous data transfer 11 synchronous data transfer request 25 synchronous transfers 187 T tape faulty 162 incompatible 161 loaded 155 loading 51 removal prevented 162 unloading 51 Tape Capacity log 68 Tape Usa ge log 67 TapeAlert log 190 TapeAlert Log pa ge 65 Temperature Log page 62 text localization identifiers 11 9 third-party, reserving for 135 TOC data 132 U Unit Attention check 34 UN IT A TTE NTIO N s en se 155 , 158 UNLOAD command 50 unloading tape 51 V Vendor-Unique 190 VERIFY command 177 very high freque ncy data 62, 63 very high freque ncy polling delay 64 VHF 62 , 63 Volume Overflow 158 W WDTR 25 wide data transfer request 25 WORM cartridges 82 write append error 162 err or 159 WRITE ATTRIBUT E command 180 WRITE BUFF ER command 183 WRITE command 178 wri t e delay ti me 81 Write Error Counters Log page 60 WRITE FILEMARKS command 186 write-behind deferred errors 156 write-protection 16 0 WSmk bit 186
Index 196