HP C737990900 Technical Reference Manual

the SC SI interface hp ultrium drives technical reference manual generation 2 SCSI and FC drives volume 3: the SCSI interface Pa r t N u m b e r : C 7379 – 90900 V olu m e 3 E dition 4, F ebru ar y 2003
2 Notice The info rmation contained in this do cum e nt is su bje ct to ch an ge wi thou t notice . Hewlett-P ackar d makes no warranty of an y kind wit h regard to this material, including, but not limited to , the implied war ranties o f merchantability and f itn ess for a particular purpose. Hew let t-P a ckar d shall not be liable for er rors contained her ein or di r ect , indirect , special , incident al or co nsequential damages in connec tion w ith the fur n ishing, perf ormance , or use of thi s do cume nt . Re vision Histor y This doc u ment con tains pr opr ietary infor mation which is pr otect ed by c opy rig ht. A ll ri gh t s re s er ved . No part of this docume nt may be photo copie d , reproduce d or tr anslated to another language without the p ri o r wr it ten c on se nt of Hew lett-P ack ard . © Copy r ight 2000–2003 b y Hew let t-P ac kar d Limited Ve r s i o n Date Changes Editi o n 1 Nov . 2000 All Editi on 2 M ar . 200 1 Additio n of Read and W r ite attribut e commands a nd Dr ive Er ror Codes Edition 3 M ay 20 0 2 Inclusion of the Request Block Addr ess com mand and the Contr ol mode page , together w ith n umer ous small changes Edi tion 4 Feb 2 0 03 Ge neration 2 SCSI and FC drive version This document is frequentl y rev ised and updated. T o find out if there is a later version , please ask your HP OEM Represent ative.
3 T he Pur pose of t h is Man ual T his is one of f ive v olumes that doc ument HP Ultr ium dri ves. T his volume pr ov ides back g r ound informa t ion fo r driv er and appli c ati o n de velopers. T he fo l lo wing pr oducts ar e cov ered . Capaciti es a r e when the dri ve is using data compr essio n with a compr ession r atio of 2 :1, wher e applicable: ■ HP Ultr iu m Gener ati on 2 F ull-Height S CSI In ternal Dr iv e ■ HP Ultrium Gener ation 2 F ull Height FC Inter n al Dr iv e Note Thr oughout this manual fr equent ref erence is made to S CSI comman ds. F or mor e inf orm atio n on SC SI comman ds for HP Ultr ium dr iv es see v olume 3 , t he SCS I In ter face , of the HP Ult r iu m T echnical Refe re nce M anual . O r dering details are giv en b elo w . Re l a t ed Do c u m en t s The f o llo wing documents pr ov ide additional infor mation: Doc um en t s S p ec ific to HP Ultrium Drives ■ Hardware In te grat io n Gu i de , volume 1 of the HP Ultrium T ec h nical Ref erence Manual ■ Th e SC S I I n te r fac e , vol ume 3 of the HP Ultriu m T echnical R efe r ence Manu al ■ Specifications , v olume 4 of th e HP Ultr ium T echni cal R ef er ence Manu al ■ HP Ultrium Configuration Guide , v olume 5 of the HP Ultr ium T echni cal Ref erence Manual ■ Bac k ground to Ultr ium Drives , volume 6 of th e HP Ultr ium T echni cal Ref erence Manual P lease contact y our HP supplier for copi es. ■ The fe atur es a nd benef its of H P Ultrium dr iv e s ar e di sc ussed in the HP Ultrium T ec h nol ogy White P aper . ■ F or a general back gro under on L T O technolog y and licensing , go to http: //www. lto-tec hnolog y.com .
4 Docum entation M ap The f ollow ing w ill hel p y ou loc ate inform ation in the 6 -volume T echnical Ref erence Ma nual: Driv es—general Installat ion and Config uration Ope r ation SCS I Drives FC Drives Conn ect ors 1 HW Inte gr at i o n : ch. 7 1 HW Inte gratio n: ch. 4 Control ler architecture 6 Background: ch. 4 Front P anel LEDs 1 HW Inte gr at i o n : ch. 6 1 HW Inte gratio n: ch. 3 Mechanism a nd hardware 6 Background: ch. 3 Specifications 4 Spec s SCS I Drives FC Dri ves Conne ctors 1 HW In tegratio n: ch. 7 1 HW Integ r at i on: ch . 4 Determining th e configuration 2 SW In tegration: ch. 2 2 SW Integratio n: ch. 2 External drives (SCSI only) 1 HW Inte gration: ch. 5n / a In Libraries 1 HW Int egrati on: ch. 1 In Se rv e rs (SCSI o nly) 1 HW Inte gration: ch. 4n / a In T ape Arra ys (SCS I onl y) 1 HW Inte gration: ch. 3n / a Modes o f Usage (SCSI on ly) 1 HW In tegratio n: ch. 8n / a Optimizing performance (SC SI only) 1 HW In tegratio n: ch. 8n / a 2 SW Integ ration: ch. 4 UNIX configur ation 5 UNIX C o nfig SCSI Drives FC Dr ives External drives (SCSI only) 1 HW Inte grati on: ch. 5n / a In Lib raries 1 HW Inte grati on: ch. 1 In Se rvers (S CS I only) 1 HW Inte grati on: ch. 4n / a In Ta pe Array s (SCSI on ly) 1 HW Inte grati on: ch. 3n / a
5 Cart ridges Inter face Mai ntenance and T r oubleshooting SCSI Drives FC Dr ives Cartridge Me mo ry (LTO-CM) 2 SW Integration: ch. 5 6 HW Inte grati on: ch. 5 Cartridges 1 HW Inte grati on: ch. 9 1 HW Inte grati on: ch. 5 Featu res 6 HW Inte grati on: ch. 5 Managing the us e of cartridges 2 SW Integration: ch. 1 Use of cartridges 2 SW Integration: ch. 3 SCS I Drives FC Dr ives SCS I Gu i d e 3 SCS I Comman ds 3 SCS I: ch. 4 Error co des 1 HW Integ r ati on: ch. 10 1 HW Int e grati o n: ch . 6 Imp lementa tion 3 SCS I: ch. 1 Interpreting sense data 2 SW Integ ration: ch. 3 Messag es 3 SCS I: ch. 2 Mode pag es —see the MO DE SE N SE command 3 SCS I: ch. 4 Pre-ex ecution ch ecks 3 SCS I: ch. 3 Re sp ondi ng to S e nse K ey s and A SC/Q 2 SW Integ ration: ch. 6 Sens e Key s an d ASC/ Q —see REQUEST SENSE command 3 SCS I: ch. 4 SCS I Drives FC Dri ves Clea ning 2 SW Integ ration: ch. 5 2 SW Integ ration: ch. 7 Ext ernal dri v e s (SCSI o nly) 1 HW Inte gration: ch. 5n / a In Libraries 1 HW Int egrati on: ch. 1 In Se r ve rs (SCSI only) 1 HW Inte gration: ch. 4n / a In Tape Arr ay s (SCSI o n ly) 1 HW Inte gration: ch. 3n / a Monitoring drive and tap e condition 2 SW Integ ration: ch. 7 Softw are tr oublesho oting te chnique s 2 SW Integ ration: ch. 1
6 Dealing wi th Errors Ultrium F eatures SCS I Drives FC Dr ives Error C odes 1 HW Integ r ati on: ch. 10 1 HW Int e grati o n: ch . 6 Handli ng error s 2 SW Integ ration: ch. 5 How error co rrection wo rks 6 Bac kground : ch. 4 Logs —see th e LOG SEN S E c ommand 3 SCS I: ch. 4 Recove ring fr om write and rea d errors 2 SW Inte gration: ch. 7 Soft ware resp onse to e rror cor rection 2 SW Integ ration: ch. 3 Soft ware res ponse to logs 2 SW Integ ration: ch. 3 Tap e Alert lo g 2 SW Integ ration: ch. 7 SCS I Drives FC Dri ves Adaptive Tape Speed (AT S) 6 Bac kground : ch. 1 Autoload 1 HW Integration: ch. 2 Automation Control Interface (ACI) 1 HW Integration: ch. 2 6 Backg round: ch. 1 Cart ri d ge Me mory (LTO -CM) s 1 HW Int eg ra t i on: ch. 2 2 SW Integ ration: ch. 5 6 HW Int egrati on: ch. 5 Data Compression, how it wo rks 6 Bac kground : ch. 5 Data Compre ssio n, managing 2 SW Integ ration: ch. 5 Des i gn pr inci ples 6 Bac kground : ch. 1 OBDR and CD-R OM emu la tion 6 Bac kground : ch. 1 2 SW Integ ration: ch. 7 Perform ance opt i mi za tion 1 HW Inte gration: ch. 8n / a 2 SW Integ ration: ch. 1 Perfo r ma nce , factors affe ct in g 2 SW Integ ration: ch. 4 Softwa re design 2 SW Integ ration: ch. 1 Supporting Ultrium features 2 SW Integ ration: ch. 5 Ultrium Format 6 Bac kground : ch. 2
7 General Documents and Standar di zation ■ Sma ll Computer S y stem Inter face ( SCSI-1 ) , ANSI X3.131-19 86. T his is the ANSI autho ri zed standar d for S CSI implementatio n, av ailable thr ough ANSI ■ Enhanc ed Sma ll Computer S ystem Interface (SCSI- 2) , ANSI X 3T9 .2 - 199 3 Re v . 10 L, a vailable thro ugh A NSI Copies of General Do cuments can be ob tain ed from: ANS I 11 W est 4 2nd Str eet New Y or k, NY 1003 6 -800 2 US A ISO CP 5 6 CH-1211 Genev a 20 Swi t ze r la n d ECMA 114 Rue du Rhône CH-1204 Genev a Swi t ze r la n d Te l : 41 22 84 9 6000 We b U R L : http ://www .ecma.c h Gl oba l E ngi nee ring Docu ment s 28 05 M c G aw Irvine , CA 92 714 US A Te l : 800 854 717 9 or 714 2 61 145 5
8
Contents 9 The Purp ose of this Manual 3 Related Documents 3 Documents Sp ecific to HP Ultrium Drives 3 Docum entation Map 4 General Documents and Standard ization 7 1 Interface Im plementation 13 The SCSI Inte rface 13 Supported Messages 14 Supported Comma nds 14 SCSI Feat ures 15 Design Ap proach 15 Power-On 15 Reset Strategy 15 Abort Handling 16 Bus Parity E rrors (P ar allel SCSI only) 18 Disconnec t Strategy (P ar allel SCSI only) 19 Multi-In itiator Support 19 Fibr e Channe l Operat ion 20 Fibr e Channe l Addressi ng 20 Names 20 Addresses 21 HP’s Imp lementation of Na mes and Addresse s 21 Implication s for Libraries 22 Field Re placea ble Unit s 23 Descriptions of S ignals ( P ar a llel SCSI only) 23 contents Contents
10 Contents 2 Messages 25 Message Out Support ( P ar alle l SC SI only) 25 Message In Support (P ar al lel SC SI only) 26 Extended Message Support 27 Status 29 3 Commands—Int roduction 31 Summar y 31 Command Details 32 Pre-E xecuti on Checks 32 Bad LU N Check 32 Deferre d Error Chec k 33 Diagnosti c Status Check 33 Fixed B it Check 34 Flag Link Check 34 Illegal Command Ch eck 34 Illegal Field/Re quest Che ck 34 Media Access Check 35 Media I nformation Chec k 36 Media Write Check 37 Parameter Li st Check 37 Reservation Che ck 37 Unit Attention Check 38 Command Descriptor Block 38 4 Commands 41 ERASE 19 h 42 INQUIRY 12h 44 INQUI RY Data Pages 45 Vital Produ ct D ata Pages 49 Supported Vital P roduct Data Pages Pa ge 49 Unit Serial Numbe r Page 50 Device Identification Page 51 Defined Identifiers 52 Drive Component Revision Levels Pages 53 LOAD/UNLOAD 1Bh 55
Contents 11 Contents LOCATE 2Bh 58 LOG SELECT 4Ch 60 LOG SENSE 4Dh 62 Log Page Forma t 63 Supported Log P ages Page 64 Wri te Erro r Count ers Log Page 65 Read Error Counters Log Pa ge 66 Sequential Ac cess Device Log Pa ge 66 TapeAlert Log P age 67 Tape Usage Log Page 69 Tape Capacity Log Page 69 Data Compression Log Page 70 Performanc e Data Log Page 70 MODE SELECT 15 h/55h 72 Mode Para meter Pages 74 Mode Page Re presentation 74 Mode Data Format 74 Mode Block Descriptor 77 Read-Wr ite Error Recove ry Mode Page 78 Disconnect-Reconnect Page 79 SCSI Drives 79 FC Drive s 80 Control Mode Page 81 Data Compression Characteristics Pag e 82 Device Configura tion Page 83 Medium Partition s Mode Page 85 Fibr e Channe l Logi cal Uni t Control Mod e Page 86 Fi bre Ch annel Po rt Co ntr ol Mode P age 87 Information Exc eptions Mode Pa ge 89 MODE SENSE 1Ah/ 5Ah 91 PREVENT/ALLOW MED IUM REMOVAL 1Eh 94 READ 0 8h 95 READ ATTRIBUTE 8Ch 99 MAM Attribute Data 103 Attribute I D Values 104 Device Common Attributes 104 Medium Common Attribute s 106
12 Contents Host Common Attributes 10 7 READ BLOCK LIMITS 05h 110 READ BU FFER 3 Ch 111 READ POSI TION 34h 115 RECE IVE DI AGNOST ICS R ESUL TS 1 Ch 119 RELEASE UNIT 17h /57h 121 REPORT DE NSITY SUPPORT 44h 123 REPORT LU NS A0h 12 6 REQUEST SENSE 03h 128 Request Sense Da ta 129 Sense Data Manag ement 131 Curre nt Sense 13 2 UNIT ATTEN TION Sense 13 2 DEFER RED ERRO R Sense 13 3 Sense Key s 13 5 Additional Sense Codes 136 Error Codes 140 RESERVE UNIT 16h/56h 141 REWIND 01h 144 SEND DIA GNOSTIC 1Dh 145 Standa rd Self -Test 14 7 SPACE 11h 148 TEST UNIT READ Y 00h 151 VERIFY 13 h 15 2 WRITE 0Ah 15 4 WRITE ATTRIB UTE 8Dh 15 7 WRITE BU FFER 3Bh 160 WRITE FILE MARKS 10h 164 Glossary 165 Index 169
Interf ace Implemen tation 13 Interface Implementa tion HP Ultr ium dri ves u se SCS I -3 a s the in terf ace to con nect to the ho st sy stem . This chapter gives a n overview of h ow the i nterfa ce o perates. F u ll detai ls of th e mes sages are given i n Ch apter 2 and of commands in Chapte r 3 and Cha pter 4 . Th e S C S I I n t e r f a c e The Small Computer S y stem Interf ace (SCS I) is an industry standard , a ppr o v ed b y the Ameri ca n National Standar ds Insti tute ( ANSI) . Y ou are r e commended to r ead the ANSI st andard document in conjuncti o n wit h this manual . The ANS I sp ecificat ion d efine s th e i nter f ace in gener al while this doc ument descr ibes the H P Ultr i um implementation . The S CSI implementation pr ov ides a dri ve wit h a standar d set of featur es and f uncti ons. T hes e incl ude t he fo llo wi ng: ■ S ynchr onous dat a tr ansfer s ■ Asy nchro nous data tr an sf ers ■ Implementatio n of all mandatory and most optional commands of the Seq uenti al Acce ss command se t ■ L VD (Low - V ol tage diffe r ential) S CSI co n necti on ■ Ultr a3 wi de SCS I ■ Conf ormance to the f ollow ing SCSI standar ds: — S A M- 2 T10/115 7 -D r e v .2 3 — SP I-3 ANSI NCIT S. 33 6:20 00 — SP C- 2 ANSI NCI T S.3 51:2001 — S SC ANSI NCIT S. 33 5:2000 1
14 Inter face Im pl em en tatio n Supported M essages The f o llo wing m essages ar e supported by the dr ives: ■ ABORT ■ BU S DEVICE R E SE T ■ CO MMAND COMPLE TE ■ DIS CONNE CT ■ IDENTIF Y ■ IG NORE W IDE RE SI DUE ■ INIT IA T OR DE TECTED ERR O R ■ M ESSAG E P A R I T Y E R RO R ■ M ESSAG E R E J EC T ■ NO- O P (no oper ation) ■ RE ST ORE POINTERS ■ SA V E DA TA P O I N T E R ■ Ext end ed Messa ge: P ARALLEL PR O T OCOL REQ U E S T ■ Ext end ed Messa ge: S YNC HRONOUS DA T A TR ANSFER REQUE S T ■ Ext end ed Messa ge: WIDE DA T A TRANSFER REQUE S T F or implem entation details on these mes sages, see Chapt er 2 , “M es sages” Supported Commands The f ollowing commands are su pported b y the dri ves. T hey include all Mandatory and Ex tended commands and m os t Optional comma nds. 19h ERASE 5 7h/17h RELE ASE UN IT 12h INQUIR Y 03h RE QUE ST SE N SE 1Bh LOA D / U N LO A D 44h R EPO RT D E NSIT Y SUPPO RT 2Bh LO C AT E A0h REP ORT L UNS 4Ch LO G S E L E C T 5 6h/16h RE SER VE UNIT 4Dh LO G S E N S E 01h REWIN D 15h/5 5h MOD E S EL ECT 1Dh SEND DIA GNO S TIC 1Ah/5Ah MOD E S ENS E 11h SP A CE 1Eh PR EV EN T /A LLO W ME DI U M R E MOV A L 00h TE ST UNIT READ Y 08h READ 13h VERIFY 05h READ B L OCK L IMIT S 0Ah WRI TE
Interf ace Implemen tation 15 Interface Im plementat ion F or implementation detail s on these c ommand s, see Ch apter 3, “Co mman ds — Intr oduction ” and Chap ter 4, “Co mmands ” . SC S I Fea t ures Design Appr oach The fe atur es suppor ted b y the dr iv e ar e based on standar ds, both off ic ial and de facto . Th e dr iv e is fully compli ant with the SC SI-3 specif ication and supports all featur es requir e d b y that standard . H o we ve r , since m ost ta pe dr ive suppo rt softwar e has been wr itten using the S CSI- 2 standar d , this document is based on S C S I- 2 and uses S CSI- 2 terminology . Since S CSI- 2 is v ir tually a compliant subs et o f S CSI-3, this is not inconsisten t. Ho w ev er , wher e S CSI-3 mak es an opti on in SCS I - 2 a req uir ement , the S CSI-3 r equire m en t i s alw ay s used. Also , all requir ed SCSI-3 e xtensions are supported b y the dri ve . Po w e r - O n The dr iv e will respond to TE ST UNI T READ Y , INQUIR Y , REP OR T L UNS and REQUE ST SENSE commands w ithin 5 secon d s o f pow er on . T he f irs t command other than Inquiry or Request Sense fr om any initiat or will get a CHECK CO ND ITI O N stat us with UN IT A TTENTION sense data f or the po wer on . After this, an y medium acc ess command will be repo r ted with a sense k ey of NO T READ Y and additional sense of 3E00h (LUN has not self -c onf igured y et) . Medi um access command s will be r eported w ith additional sense of 0401h (dr i ve in pr ocess of becoming read y ). Reset Str ateg y Soft Reset s On r ecei v ing a r ese t thr o ugh the Host In terf ace (S CS I or FC) , the Hos t Interf ace is r etur ned t o a kn own base s tate . If th e re se t command is r ece iv ed o ve r t he Aut omation Contr oller Interf ace seri al port , the SCS I and A CI interf aces are r eturned to kno wn bas e states . The baud r at e for the port w ill be re turned to its 3Ch READ BU FFER 3Bh WRIT E BUFFER 34 h READ POS ITION 10h WRIT E FILEM ARK S 1Ch RECEIVE D IA GNOS TIC RES U L T S
16 Inter face Im pl em en tatio n defa ult setting. T he know n base stat e is def ined in the S CSI-3 specif ic ation and inc ludes the f ollo win g: ■ The cur rent I/O process is aborted. ■ An y queued I/ O pr oc esses fr om other initiators ar e r emoved . ■ All r eservatio n s are c leared . ■ All mode v alues are r eset to their defa ult s . ■ S ynchr onous/W ide negotiatio n s ar e clear e d (S CSI dri ves only) . ■ A UNIT A TT ENT I ON condition is set . ■ An y buffer e d wr i tes ar e flushed to tape . ■ The logical positi on is undefined. The dr iv e will be able to r espo nd to TE ST UNIT READ Y , INQUI R Y , RE QUE S T SENSE and REPORT L UNS within 25 0 ms of the re set line being r eleased. T he fi r st command ot her than these f r om any initia tor will get a CHECK CO ND ITI O N stat us with UN IT A TTENTION sense data f or the r e set . Ho we ver , other commands may not be pr ocessed until the int ernal sta te of the dri ve has been reset . An y c ommands which cannot be pr ocessed will be accepted and queued unti l the dri ve is r e ady to pr ocess them. Har d Resets T he Res et butt on on the f r ont panel and the A CI_RESET_L line on the Automa tion Co ntroller Inter face are both con ne cted to the P o wer -Up Reset int er ru pt on t he p roc ess or . Th e effec t is equi v alen t to po wer -cy cling the dri ve . The co ntents of the tap e an d ca rtridge m emor y may not be co nsi stent a fter th e actio n and any data in the dri ve buffer w ill be lost . Abort H andling If an abort condition is detected befor e a c ommand phase completes , the bu s is s et to bu s fr ee and t he comma nd is n ot e x ecut ed. If an abort condition is detected bet ween the end of the command phase and the st art of the st atus p hase , then th e bus is se t to b us fr ee and the pr ocessing b el ow i s c a rri e d o u t. If an abort condition is detected during statu s phase , the bus is set to b us f ree. If a comman d, othe r th an TE S T UNI T RE AD Y , INQUIR Y and RE Q UES T SEN SE , is r ec ei ved afte r the abort bu t befo re the dr iv e is r eady to p rocess the command , the dr ive w i ll disconnect a nd w ait until the abort pr oc essing has completed bef or e e xec utin g the command . A TE ST UNI T READ Y co mmand wil l r epo rt w ith
Interf ace Implemen tation 17 Interface Im plementat ion GOOD status immediatel y . A RE QUE S T SE NSE co mmand will gi ve NO SENSE . An INQUIR Y command will r eturn the requir ed data and g i ve GOOD status . Command Abort Processing ERAS E L ong er ase is abort e d as qui ckl y as possible withou t corr upting tape f or mat . Short er ase co mpletes . INQUIR Y None LOA D / U N LO A D Load complet es a nd logicall y positi ons tape at BO T . Unload is aborted lea ving logical po sition at BO T unless o p er ation is pa st the “ p oin t of no r etu rn ” in wh i ch case th e tape is ejected. LO C AT E Th e logical position is set back to that at t he start of the oper ation unless the oper ation is past its “ point of no return ” , in which case the opera tion completes. LO G S E L E C T If data tr an sfer is complete , co mmand is comp leted , otherwise , no action is taken LO G S E N S E None MOD E SE LECT If data tr an sfer is complete , co mmand is comp leted , otherwise , no action is taken. MOD E SE NSE None PREV E NT / ALLOW MEDIU M REMOV AL T he command com plet es. READ Th e c urr ent positi on is set to the fir st r ecor d boundary at or after th e start of th e cur r ent dat a bur st . READ BLOCK L I MITS None READ BU FFER None READ POSITIO N None REC E I VE DI AGNOSTICS RESUL TS None RELE AS E UN IT T he command com plet es. REQUEST SE NSE None
18 Inter face Im pl em en tatio n Bu s P a ri t y E r ro r s (P ar all el S CSI onl y) On detecting a bus parity err or during a Command or Data Out phase or r ecei ving an Initiat or det ected err or message during a Data In or S tatus phas e , the dri ve attempts t o r etry the bus phase . A R e st o r e P o int e r s me ssage is sent t o the initiat or and the transf er is re p eated . Only one r etry is attempted . If the r etry f ails or th e re st or e poin ter s message i s r ej e ct ed, the n t he dr i ve goe s to status pha se and at tem pts to r eport CHE CK C ONDI T ION st atus . If this fails wit h an initiator detected err or message , the dr i ve goes to bu s fr ee . The sense ke y is set to AB OR TED C O MMA ND w ith additi onal sense of 4A00h (command phase e rro r) o r 4 B 0 0 h ( d a t a p h a s e e r ro r) . I f a n I n i ti a to r De te c te d E rro r o r M e s s a ge Pari t y E rror m e s sa ge i s re c eive d during Message In phase , the initiat or has detected an err or in the message. T he dri v e will go to Mess age In and r esend the mess age t hat wa s in er r or . If t he subse quent mess age i s rejected with a n In it iator D etecte d Error , t hen th e driv e goes to Statu s phase and sends CHECK COND IT ION statu s. The se n se k ey is se t RESER VE UNIT T he command com plet es. REWIND T he command com plet es. SEND DIA GNO STIC Ve n d o r U n i q u e SP A CE Th e logical position is set back to that at the start of the oper ation unless the oper ation ha s passed its “ point of no r eturn ” , in whic h case the oper ation completes. TES T UNIT REA D Y None WRI TE Th e data up to f irst r ecord boundary in the cur r ent burst is wr itten to tape. An y subsequen t data is disc ar ded. If ther e is no recor d boundar y in the cu r re nt burst , the r ecord is tr u ncated to t he amount of dat a tr ansfer r ed a nd written to tape. WRI TE BUFFER If data tr an sfer is complete , co mmand is comp leted , otherwise , no action is taken. WRI TE FILEMA RKS T he command com plet es. VERIFY Th e logical position is set to the ne x t r ecord boundary after the point wher e the ver i fy was ab orte d . Command Abort Processing
Interf ace Implemen tation 19 Interface Im plementat ion to ABORTED COMMAND with additio n al sense of 4 800h (Initiat or Detected E r ror) . If th e subs equ ent mess age is r ej ected w ith an M ess age P ar ity Er r or , the n the dr iv e goes to Status phase and sends CHECK CO NDITION st atus. The s ense ke y is set to ABOR TED CO MMAND with additional sense of 4300h (message e rro r) . On detecting a bus parity err or during a Message Out phase , the dri ve w ill handshake in all message bytes until A TN is deasserted . It will then stay in Mes sa ge O ut ph ase to ind ica te to the i ni tiator that the whole M ess age O ut phase should be re sent . Disconnec t Str ateg y (P arallel S CSI only) The disc onne ct strategy used by the driv e i s based on the ass umption of max imizing bus utili z ation f or large sequenti a l data tr ansfers f rom a lar ge data buffer . The dri ve will disconnect whenever it belie ves that it w ill pr ov ide better bus utili z ation. This ma y be bet w een command and data phases, between bursts o f data or bef or e sending st atus . How eve r , the dri ve will guarant e e that it will se nd the conf igur ed max imum burst si z e or the r emaining data in the tr a nsfer in an y sing le data phase burst if the max i m um burst si z e has been set to a v alue other than z ero . Mu lti-In itiator Suppo r t All dri ves w il l support at least two initia tor s on the same bus. If m o r e initiator s ar e supported , all featur es a r e supported for the supported number of initiato rs. The dr iv e supports u ntagged queueing when op er ating with multiple initiators . If a command fr om one i nitiat o r is being pr ocessed when a c ommand , other tha n TE S T UNI T RE AD Y , INQUIR Y , REPORT L UNS and RE QUE S T SENSE , is r ec ei ved fr om a second ini tiat or , then the d r ive w ill disconnect and the ne w comman d is que ued . C ommand s other tha n these f rom dif f er ent in itiator s are alw ay s e xec uted in stri ct orde r of r eceipt . If the queue is f ull or disconnect pr ivilege is not gr anted in the new command, t h e dr iv e w ill r ep ort BUS Y st atus . T EST U N I T RE A DY , INQUIR Y , REP OR T L U NS an d RE QUE S T SENSE co mmand s are alw ays p rocessed immediately , irr espectiv e of whether a command fr om another initiato r is being pr ocessed. The dr i v e will maintain sense data for the supported number of initiato r s. If an additional initiator connects to t he dri ve , the dri ve will er ase all sense data for
20 Inter face Im pl em en tatio n the initiato r that least r ec en tly connected befor e pr oc essing the command for the ne w initiator . S ee “Sense Data Ma nagement” on page 131 fo r mo re details. F ibr e C hannel Oper a tio n Note This a pplies only t o Fibr e Channel dri ves. The f o llo wing sections have infor mation specif ic to F ibre Channel operati on: ■ “F ibre Channel Logical Unit Contr ol M ode P age ” on page 86 ■ “Fibre Chan nel P or t Cont r ol M od e P age” on page 8 7 ■ “Vit a l Pr oduct Data P ages ” on page 49 F ibre Channel Addr essing Befo re descr ibing HP’s implem entati on of F ibre Channel addr essing, the conce pts of Names and Addresses need to be clarif ied. Names Name s ar e 64 -b it i denti fi ers a ssigned per mane ntl y to th e ta pe dr iv e dur ing ma nu fa ct u re. T hey a re c o m mo n ly re fe rre d to a s W o rl d Wi de N a m e s s i nc e t h ey must be guaranteed un ique . The n ames are typically u sed f or identifying the de vice to oper ating sy stems, since addresses ar e assigned dy na mi cally . Ther e at least eigh t d iff erent name fo rmats distinguished by the Net w or k Addr ess Aut hority (NAA). Only one is used on HP Ultr ium dri ves. T h is is the IEEE Registered N ame (NNA= 5) a nd has the following format: This name is made up of thr ee fi elds: ■ NAA Identif ie r ( 4 bits) . “5” indicat es a IEEE R e giste r ed N ame . ■ IEEE Compan y ID ( 2 4 bits) . Assigned b y I EEE to the com pan y . ■ V endor Spec if ied ID (3 6 b its). Assi gned b y the co mpan y .
Interf ace Implemen tation 21 Interface Im plementat ion Addr esses E ach F ibr e Channel port also has a P ort Addr ess which is assigned dur ing loop initializ ation and/or F abr ic Login . This is a 2 4 -bit v alue in the follo wing form at : The AL_P A is the Ar bitrat ed Loop Phy sical Addr ess. This is normall y assi gned dy n amically during lo op initializ at ion . If th e loo p is not at tached to a fabric (i n other w ords, whe n it i s priv ate,) th e top two b ytes will be zer o . If th e loop is attached to a f abr ic , the tape dr iv e is ass igne d th e top t wo bytes when i t l ogs i nto th e fabric. T ogether , the thr ee b ytes pr o v ide a unique addr ess on the F ibr e Channel fabr i c that is us ed for f rame addres sing. It f o r ms the equiv alent of the T arget ID or Initiator ID in SC SI. HP’s Implem entation of Nam es and Addresses The HP implem entation uses thr e e adjacent IE EE Registered Nam es: ■ T he fir st (last b its = 00) is used as th e Po r t A Wo r l d W i d e N a m e . ■ The se cond (last bits = 01) is used as the P ort B W orl d Wi de Name . ■ T he thir d n ame (last b its = 10) is u se d f or the Dev ice W orl d Wi de N ame . (These ar e assigned d ur ing manufactur e fr om HP’s pool of names, although only the f irst will actu al l y be st or ed in the dr iv e NV -RA M). The port addr esses will be assi g ned using the ‘ standar d ’ AL_P A in itiali za tion mechanisms . The ‘F ibr e Channel P ort Con trol mode page ’ contr ols this. T he dr i ve has t he ability to support har d addr esses as part of this scheme .
2 2 Inter face Im pl em en tatio n T he valu es of the name s can be obtained using the Dev ice Identif icati on Vit a l Pr od uct Inf ormatio n P age (part of the INQUIR Y co mmand). Impli cations f or L ibrar ies ■ Nor mally a standalone dri ve will oper ate using its ow n ‘hard’ names. ■ The dri ve kno ws it i s in a library or o ther ‘ managed’ envir onment since one of the signal lines on the A CI (A utomati on Contr ol Interface) w ill be tied dow n. In this case , the dr i ve w ill not go on the FC loop until it is told to . T he libr ar y can optio nally do wnload a new , soft base n ame (P ort A/D e vice Name) into the dri ve at this p o int . The dr ive w ill then use this as the ori g in of i t s names. The libr ar y manufac turer w ould be responsible for ob tain ing this IEEE Register ed N ame . It would be a pr opert y of the libr ar y , not the drive . ■ If the libr ar y wants t o ‘w arm sw ap ’ d r iv es, it can. It j ust ‘turns o ff’ the dr iv e with th e s oft n ame usin g the A CI a nd then turn s on the spa r e driv e, dow nloading the same name to it . ■ If a dr ive is r emo ved f ro m the li br ary , it w ill not ha ve the A CI signal tied lo w and so w ill re v ert to its or i ginal har d name. It sho uld for ge t the soft name in this ca se . ■ If the libr ar y contr olle r br e aks, the dr iv e will time out the A CI in terface in ~10 seconds. The dri ve still know s it is in a libr a ry since the A C I signal is
Interf ace Implemen ta t ion 23 Interface Im plementat ion still tied l ow , so in this case it w ill use the soft name la st dow nloaded. T his will allow driv e acc ess without co nfusing the host. F ield Re place able Un it s An FRU code i den tifi es which part of th e hard war e is conside red t o have failed . These codes turn up in sense data b yte 14 and as the sense code qualifi er for sense co des 440 0h (i n ternal target f ail ur e ) and 40 XX (diagnostic fai l u re) . Alt h ough t he r e ar e no ac tu al Fie l d Replaceable Units on HP Ultrium dr i ves, the fo l lo wing sub-assemblies can be r eplace d at R ep air Cen tre s: Descript ions o f Signals (P arallel S CSI onl y) The S C SI interf ace c onsists of 2 7 signals—9 contr ol lines, 16 data lin es and 2 par ity lines. A descr iption of these signals is giv en in the f ollowing ta ble. ■ Dr iv e P CA ■ Head Assembly ■ Mec ha ni sm ■ Fro n t P a n e l Signal Nam e Dr iv en b y Descr iptio n -BSY Busy — OR -tied signal used to indicate that t h e SC SI bus is in use. -SEL Select Initiator Ta r g e t Used to select a tar get du r ing the Selecti o n phase . Used to sel ect a n in it iator d uring th e Resele ction phase. -C/D Control/D ata T a r g e t Indicates w h ether contr ol or data infor mation is on the data bus. Tr u e ( l o w ) Control informat ion Fa ls e ( h i g h) Data inf ormati on -I/O Input/Output T ar g e t Controls the direction of data mov em ent on the bus with r espect to th e Initiator . This signal is also used to distinguish betw een Sel ecti on an d R esel ecti on ph ase s.
2 4 Inter face Im pl em en tatio n Tr u e ( l o w ) Inpu t to the initiato r Fa ls e ( h i g h) Outp ut fr om the initiato r -MSG Me ssage T arge t Indicates a Message phase on the bus . Tr u e ( l o w ) Message phase Fa ls e ( h i g h) Command , Data or Status pha ses -REQ Requ est T arge t Indicates a r equest fo r a REQ/A CK data tr ansfer handshake . -ACK Ackno w ledge Initia tor Indicates an ackno wledgment for a REQ/A CK data tr ansfer han dsh ake . -ATN Attention In itia tor I nd icat es tha t th e i nit iator h as a mes sage to se nd to the tar get . -RST Reset — OR -tied signal that is us e d to in dicat e a Res et condition . DB(15-0) Data Bus — 16 data-bit signals that , wit h the parity-b it signal, f orm the data bus . DB15 is the most si gni f icant bit , and has the highest pr ior ity d ur in g the Ar bitrati on phase. DB(P 1-P 0 ) Data Bus — D ata par it y bits that ar e set to odd , but are j umper -selectable option s . There are t wo discrete parit y bits, one for the low er 8 data bits, t h e other f or the upper 8 bits. P arity is not vali d during the Ar bitrati on phase . Signal Nam e Dri ven b y Descri ption
Mes sag e s 2 5 Messages This ch apt er includes all S CSI message s, both suppo r ted and unsupported. P arts o f this c hapte r come fr om Section 5, L og i ca l Char acter isti c s, o f the S CSI standar ds (see p age 13) . The message s ystem p ro vi des an initiator and a tar get on the SCS I bu s with a means o f managing comm uni catio n. T he av ailabl e messa ges ar e list ed in this ch apt er . Message Out Support (P arallel S CSI onl y ) Name Code Sup port Abor t 06h An abort condi ti on is gener ated (s ee “ Abort Ha ndling” on page 16 ). Bus Device Reset 0Ch A r eset c onditio n is generated (see “R ese t S tr at egy” on page 15 ). Extended M essage 01h See “ Extended Message S u pport” below . Iden tify 8 0h Th e Id e nt i f y O ut m e s s ag e i s s en t by t h e i n i t ia tor to id en ti f y t he Lo g ic a l Un i t to b e ac cesse d and to set Di scon nect P ri vil ege. Initiator Detected Err or 05h The ini ti ator has detected an err or in the data being sent in a Command, Data or St atus phase . The dr iv e will send a r est or e data p o i nte rs message to r etry the data transf er . (See “Mes sage In S uppor t (P arallel S C SI on ly) ” bel o w f or de ta ils). If the message is r ecei ved immediatel y afte r an Identify message or after the Co mmand Compl ete me ssage has bee n sent , the dr iv e will g o Bus Fre e . 2
26 M e s sa g e s Me ssage In Support (P ar all el S CS I onl y) Message P arity Err or 09h The initiator has detect ed a parity err or in a message . The dri ve w il l r etr y the m essage . (See “ “Mes sage In S upport (P arallel S C SI only) ” be lo w f or details) . If the message is r ecei ved immediatel y after an Identify message or after the Co mmand Compl ete me ssage has bee n sent , the dr iv e will g o Bus Fre e . Me ssage Reject 0 7h This message is sent when the initiat or does not support a message sent b y the dri ve or that the message is inappr opr iate . If the message being r ej e cted is Disconnect , Sy nchr onous Data T r ansfer R equest or W ide Data T r ansfer Request , the op er ation c ontinues without those f eatures. F or a ll other messages , the message is treated a s an Abort message. If the message is r e cei ved dur ing a Command, Dat a or Statu s phase, immediately after an Identify message or after the Command Complete message h as been sent , th e dr ive will go Bu s F ree . No Operation 08h This message has no effect and i s ignor ed. Name Code Suppo rt Command Complete 00h This messag e is sent b y the dr iv e at the e nd of the s tatus p hase t o ind icate that a c omma nd is comp lete. On ce th e mes sag e is s ent, the dri ve releases the bus and goes to Bus Fr ee. Disconnect 04h This message is sent b y the dri ve to indicate that it is about to disconnect fr om the bus and go to Bu s Fr ee. Dur ing a Data phase , it is alwa y s pr e - ceded b y a Sav e D ata P ointe rs message . If a M essage R eject message is r eceiv ed in re sponse to this messag e, t h e n t he d is c o n n e c t i s prev e nt e d. Extended Me ssage 0 1h Se e “Extended Message S u pport” below . Iden tify 8 X h The Ident ify In message is sent to the i nitiato r during r ec onnect to indicate whi ch Logical Unit is re connecting. Name Code Sup port
Mes sag e s 2 7 Messa ges Extended M essag e Supp ort Ig nore Wid e Residue 2 3h T his message is sent b y the dr iv e to the host to indica te that a byte on a wi de bu s is not v a lid . This is supported whenev er a w i de tr ansf er is acti ve . It should be sent at the end of the data phase . The standar d action of the dri ve is to send this message bet w een the data phas e and the status phase w i th no dis conn ect . Me ssage Reject 0 7h Th is messa ge is sent t o the i niti ato r when the mess age r ecei ved b y the dr iv e i s unsupported or inappr opri ate. Restore P oint ers 03 h This mess age causes the in itia tor to r eset i ts dat a tran sfer p ointers to th e values the y held when the last sa ve data pointer s m essage w as sent . It will be sent when a parity err or is detected on the bus or when an In itia tor D etecte d E rr or mes sage is received i n order to retry the data phase . Save Data P ointers 02h This messag e in str ucts the initiat or to sav e its c urr ent data tr ansfer pointer s for use w ith a subsequent Res tor e pointe rs message . This message will alw ay s be sent be for e a Disconnect message during data phases. Name Code Suppo rt Name Code Suppor t S ynchr onous Data T ransfer R e quest 01h T he dri v e will nev er initiate a S ynchr onous data tr ansfer negotiati on, bu t will expe ct the in itia tor to do s o . If the message is r eceiv ed a fter selection and bef o r e the c ommand phase , it will then go to message-in phase and r espon d with a v alid r esponse to comp lete th e negotiat ion. Wide Data T ransfer 03h T he dri ve will ne ve r initiate a Wi de data tr ansfer negotiatio n but will ex pect the initiator t o do so. If the message is r eceiv ed a fter selection and bef o r e the c ommand phase , it will then go to message-in phase and r espon d with a v alid r esponse to comp lete th e negotiat ion. Note that SD TR negotiated parameter s will bec ome as ynchr onou s af ter a WD TR .
28 M es sa ge s S ynchronous Data T r ans fer R equest Wide Da ta T ransfer R equest P ar allel Pr otocol Re q uest P arallel Pr otocol Reques t 04h T he dr iv e w ill nev er in itiat e a P ar allel Pro tocol R equest tr an sf er negotiati on but will e xpe ct the initiat or to do so . If the message is r eceiv ed a fter selection and bef o r e the c ommand phase , it will then go to message-in phase and r espon d with a v alid r esponse to comp lete th e negotiat ion. Name Code Suppor t 7 6 5 4 3 2 1 0 0 Exten ded Message (01h) 1 Extended M essage Length (03h) 2 SD TR (01 h) 3 Tr a n s f e r Pe r i o d Fa c t o r 4 R eq / Ack O ffset 7 6 5 4 3 2 1 0 0 Exten ded Message (01h) 1 Extended Message Le ng th (0 2h) 2 WD TR (01h ) 3 T r ansf er W idt h Expone nt 7 6 5 4 3 2 1 0 0 Ext en ded Me ss a ge ( 0 1 h) 1 Extended Message L eng th (06h) 2 P ara llel Protocol Request (04h) 3 Tr a n s f e r Pe r i o d Fa c t o r 4 Res er ve d ( 0)
Mes sag e s 2 9 Messa ges Fie l ds : Status A Statu s byte is sent f ro m the dri ve to the host dur ing the St atus phase at the end of each c ommand as sp ecif ied in the SCS I specifi cat ion , u nless the command has be en clear e d b y a n AB OR T message , by a BUS DEVI CE RESET message , or by a har d rese t. The St atus bytes t hat the dr iv e r eturns ar e as f ollow s: 5 R eq / Ack O ffset 6 T r ans fer Wi dth Exponent 7 Reserved (0) QAS_Req D T_Req IU_Req 7 6 5 4 3 2 1 0 Tra n s f e r Per i o d Fac tor 09h T ran sfer per iod of 12 .5s (F A ST - 80). Onl y v a lid w hen D T tr ansfer s have been re q u e s t e d 0Ch T r ansfer per iod of 50s (F AS T - 20) — L VD/SE dri ves only 19h T ran sfer per iod of 100s (F AS T -10) 32h T ra n s fe r p e rio d of 2 0 0 s (F A ST - 5 ) Req/Ac k Of fset This ha s a max imu m value o f 25 5 . T ransfer Width Exponent F or ST transfer s, this ca n be either 0 (Narr ow) or 1 ( Wi de ). F or D T transf ers, it m ust be s et to 1. QA S_Re q 0 This bit will be ignor ed and the dr iv e will alw ay s retur n z er o . DT _ R e q This b it dete rmines w hether D T mode has been r e quest e d , in ot h er w ords , pack eti zed data tr an sf ers. IU-R eq 0 This bit w il l be ignor ed and the dr iv e will alw ay s retur n z er o . 00h GOOD: T h is st atus indicates t h at the dr iv e has successf ully comp leted t h e com m and . 02 h CHECK CONDITION: An y er r o r , ex ceptio n, or abnor mal condition that causes sense data to be set r etur ns CHE CK CONDI TION . T he REQ U E S T SENSE command should be sent following thi s stat us to determi ne t he n ature of the err or . 04h CONDI TION MET : This statu s w i ll ne ver be r eturned by an HP Ultr ium tape dri ve .
30 Mes sages 08h BUS Y : Th e dr i ve is u nabl e t o ex ec ut e the co mmand at thi s time . T ry again lat er . T he dr iv e tr ies t o av oid using this statu s code during nor mal oper ation . It can sometimes be used after commands have been aborted , dur i ng pow er -on and if there ar e multiple selecting initiato rs. 10h IN TERM EDIA T E: This st atus w ill nev er be retur ned by an HP Ultr ium tape dr iv e . 14h IN TERM EDIA T E CND: T his status w il l ne ver be r eturned b y an HP U ltr ium tape dr iv e . 18h RESER V A TION CONFLICT : Re turn ed if t he dr iv e is r ese rved b y ano ther party . See th e Res e r va ti on c he c k. 22 h COMAND TERMI NA TED: This statu s w ill ne ver be r etur ned b y an HP Ultrium tape dr iv e. 28 h QUEUE FULL: This st atus can be retur ned by an HP Ultr iu m FC dri ve but w ill nev er be r etu r ned b y a S CS I ta pe dr i ve .
Commands—Introduction 31 Commands—Introduction This chapter contains general notes r elat ing to the SCS I commands listed in Chapte r 4 . Summar y The f ollow ing table is a summary of th e SC S I commands f o r sequential access de vices, sho wing the oper ation c ode: Opc ode (he x) Command Name Opcode (he x) Command Name 00 01 03 05 08 0A 10 11 12 13 15 16 17 19 1A 1B 1C 1D TEST UNIT READY REWIND REQUEST SENSE READ BLOC K LIMITS READ WRITE WRITE FILEMAR KS SPACE INQUIRY VERIFY MODE SE LECT RESERVE UNIT RELEASE UNI T ERASE MODE SENS E LOAD/UNLOAD RECEIVE DI AG RESULTS SEND DI AGNOSTIC 1E 2B 34 3B 3C 44 4C 4D 55 56 57 5A 8C 8D A0 PREVENT MEDIUM REMOVAL LOCATE READ POS ITION WRITE BUFFER READ BUF FER REPORT DENSITY SUPPORT LOG SELECT LOG SENSE MODE SELECT ( 10) RESERVE U NIT (10) RELEASE UNIT (10) MODE SENSE (10) READ ATT RI BUT E WR ITE A TTRIB UTE REPORT LU NS 3
3 2 Commands—Int r oduction Comm and Details The command descr i pti o ns in this sectio n ar e l isted in alphabetical or der of command name . Each co mmand is desc r ibed br ief ly . This is f ollo wed b y a list of pr e -ex ecution checks whi ch a r e described belo w . The Command Descr iptor Block (CDB) i s then giv en , with details of t he var ious par ameter bits and f ields. Pre -Ex ecu tion C he c ks Note In compli ance with the SC SI specif ication , the dr ive ter min ates a comman d w ith a CHECK CO NDITION status and sets the sense key t o ILLE G AL REQUE S T whe n a re served b it, b yte , fie ld or code is received wh ich i s no t zer o. Be f or e e xec utin g a comman d, t he dr i ve mak es a n umber o f chec ks. T he y fa ll into three ca tegories: ■ Checks on the comma nd sent b y the host. T hese en sure that no res erved or fi xed f ields have been set to il legal values. They check the s yntax of commands, in other wor ds the cr oss dependency of fields . F or ex ample , the F lag bit mu st not be set if the L ink bit is no t set . ■ Ch ecks to ensur e that ther e ar e no o uts tandi ng UNIT A T TENTION or DEFERRED ERRO R ev ents posted fo r the host that has sent the command. ■ Checks on media access abilities. T hese are perfor m ed fo r c ommands r equiring access to t he c artr idge . A command is r ejected if it attempts to access the cartri dge w h en no cartri dge is pr esent or the cartri dge is unloaded. The checks ar e described below in alphabetical or der . Th e usual order o f e xecuti o n is Illegal Fi eld, F ix e d Bit , Flag L ink, Bad LUN, R eservatio n , Defer red Err or , Un it Attenti on, Media Access , M edia W rite , Diagnosti c Statu s, Humidity , Pa r a m e t e r L i s t . Bad L UN C heck F or all co mmands e xce pt INQUIR Y 12h , this chec ks that the L UN specif ied by the host is z er o. T he LUN is tak en fr om the low est 5 bits of the hos t’s IDENT I FY mes sage .
Commands—Introduction 33 Command s—Introduc tion ■ If no IDEN TI FY mess age is sup plied , th e L UN is ta k en f r om the h ost’s Command Descr iptor Bloc k. ■ If an ID ENT IFY message is su pplied, the L UN in the host’s Command Descr iptor Block is i gnor ed ■ If the L U N is unsupported, and the host command is not REQ UE S T SENSE , CHE CK CONDI TION is repor ted to th e hos t with a sen se k ey of ILLEG AL REQUE ST , and additional sense of 25 00h ( logic al uni t not supported). ■ If the L U N is unsupported, and the host command is REQUE ST SENSE , the or iginal sen se data is r eplaced with a sense ke y of ILLEG AL RE QUES T , and additional sense of 25 00h (logical unit not supported) . T his new sense data is r eturned to the hos t. Once the command has complet ed succe ssfull y , the s ense data is cle a r ed. Deferred E rror C h ec k A de fe rr ed e r ro r is gen er ate d w hen a command with immediat e r e port f ails after the r eport has been r eturned . The chec k looks to see if a defe r red er ror e xists fo r the host w h ic h sent the command , in other w ords , a defe rr ed er r or for wh ich CHE CK CONDI TION sta t us ha s not y et been re ported . If such an er r or e xists, th en th e dri ve r eports CHE CK CON DITION . T he sen se da ta f or the comman d is set t o DEF ERRE D ERROR (whi ch was gener ated when some p r ev i ou s com man d f aile d). Note that if a UNI T A TTENT ION condition and a D EFERR ED ERROR co nditi on both e x ist for an initiator , the DEFERRED ERR OR conditio n will be r eported fir st. T his is beca use t he oper a ti on le ading t o the de fer r ed er r or m ust h av e been older than that leading to the unit attent ion. The d riv e repor ts th e co ndi tio ns i n the or der in which the y aro s e . Diag nosti c Status C hec k This ensur es that the dri ve is in a f it state to access the medi a. It does this b y checking that there is no DIA GNO S TIC F AIL statu s w ithin the dri ve . If the driv e has failed diagnostics, CHE CK CON DITIO N is r e port ed w it h a s ense key of HARD W AR E ERROR and additional sense of 400 X h (diag nos ti c f a il ur e on c ompone nt X ).
34 Commands—Introduction Fixed B it C h e c k Fo r t h e READ , VERIFY and WRI T E commands, a F ix ed bit set to 1 indi c ate s that the length paramete r of th e command i s fo r fix ed block mode . If fi xed block mode is selec ted then the bloc k si z e in the M ode Sele ct bloc k descr iptor mu st not be zer o . O therwise CHE CK CONDI TION is report ed and the sen se data is set as des cr ibe d f or the ILLE G AL FIELD che ck . F lag L i nk Chec k T his check ensur es t hat the hos t has no t set the F lag b it in the contr ol b yte o f the command w ithout se tting the L ink bit as we ll . If the tes t fails then CHE CK CO ND ITI O N is r eported w ith a sense k e y of ILLEG AL RE QUES T and additional sense of 2 400h (in vali d fi eld in C DB) . T h e F lag fi eld is identif ied as the bad fie ld. Illega l Comm and Ch ec k If the d r iv e do es not recogniz e the opcode of the co mmand that it has been sent , it will do one of the f ollo wing: ■ Rep o r t CHECK C ONDIT ION status . The sense k ey w ill b e set t o IL LE GA L REQUE ST and the additional se nse code will be set t o 2000 h (in vali d comman d opcode). ■ R eport an in v alid fi eld in the command descr iptor block . T he sense ke y w ill be set to ILLEG AL RE QUE S T , t he additional sense code will be set to 2 40 0h (in valid fi eld in CDB ) and the fi eld pointer in the sense data will be ze r o. Illegal F ield/R equest Check Checks are performed to ens ur e the host has not set any of the follow ing in the command descr iptor block: ■ a fi xed f ield ■ a r eserved f ield ■ the cont r o l field ■ two or mor e f iel ds to l ogicall y conf lic ting v alues If a f iel d has be en set to an il legal v alue: ■ C HECK CONDITION status is r eported to the host w ith a sense ke y of ILLE G AL REQUE S T and additional sense of 2 40 0h “in valid f ield in CDB ” .
Commands—Introduction 35 Command s—Introduc tion ■ T h e se nse k ey spec if ic b it is set and t he sens e ke y sp eci fi c by tes wi ll be a fi eld pointer . ■ The command/data bit is set , indicating that the illega l paramet er was in th e comma nd . Note Command descr ipt or blocks ar e scan n e d from le f t (b it 7 ) to rig h t (bit 0), and do wn (fr o m b yte 0 to byte n ). The field pointer w i ll be set to poin t to the fir st bit of th e f irs t illegal fie ld encounte r ed using this scanning r oute . In some cases, whe re multiple f i xed fi elds are conti guous, t he fi eld pointer mi ght be set to poin t to the fir st bit of th e f irst f ix e d f ield in the gr oup of f i x ed f ields, w her eas the actual il legalit y may lie in a later bit . Me dia Access Chec k This chec k s if the dr ive is able to perf orm media access commands. If the media is inaccessible then CHE CK CON D ITIO N status is r eported w ith a sense key of NO T RE AD Y . The additio n al sense w ill be se t to one of the code s asso ciated with th e NO T R E AD Y key .
3 6 Commands—Int r oduction Me dia Inf ormat ion Check Dur in g po w e r - on and f oll ow in g a S CS I r e set , kno w ledg e o f the w he r eabo ut s of the cartri dge is unav ailable . It is not possible to ex ecute commands which ass ume th at th is knowle dge is avail able unti l th e d r ive has recovered fr om the power -on or r e set. The test ch ecks whether the dr iv e know s if a cartridge is ph y sically pr esent in the drive . If infor mation about the tape cartr idge is not av ailable , the test f ails with CHE CK C ONDI TION , a sen se k ey o f NO T READ Y , and addi ti ona l sense of 3E00 (logical un it has not self-con fi gured yet).
Commands—Introduction 3 7 Command s—Introduc tion Me dia W r ite C hec k This chec ks whether the media is wr ite -pr otected . If it is, CHE CK CONDI TION is r eported w ith a sense ke y of DA T A PROTEC T a nd additi onal sense of 2 7 00h (write- protecte d) . Pa r a m e t e r L i s t C h e c k Fo r LO G S E L E C T , MODE SELE CT and some diagnosti c commands, the assoc iated data sent to the dr ive is in the for m of parameter lists . These ar e descr ibed u nder the command names in the next c h apt er . Checks are perfor med to test the follo wing: ■ F ix ed and r eser v ed fields ha ve not been m odif ied . F ix ed fi elds are indicated b y a number in r o und br ack ets follo wing the fi eld name. ■ A fi eld has been set to an inv al id v al ue . ■ The s yntax of the page of par a meter s h as been vi olated—for e xample , w her e a p arti c ul ar v alue i n on e f i el d im po s es limi ta ti ons o n th e v ali d r ang e fo r another f ield. If a fi eld has been set to an illegal value , CHECK CON DITION i s re p o r t e d t o t h e host wi th a se nse key of ILLE G AL REQUE ST an d additional sense of 2 600h (i n val id f i el d in par ame te r lis t). The dr ive scans the data in the Command Descr iption Block f rom “le ft” (bit 7) to “ righ t” , and “ down ” (from byte 0 to byte n ) . It s ets the field poin ters to the fir st bit of the fir st bad field encounter ed. If the bad fi eld is contained in a conti guous gr oup of f ix ed fie lds, the pointe rs indica te the f irst bit o f the fir st fi eld in the group , ev en though the err or may be in a later field in the group . Note With Mode Select , the driv e c hecks t he integrity of the whole par ameter list befor e acting on any par ameter s , so all the mode par ameters need to be cor r ect befor e any of them ar e implemented. Rese r vatio n Ch ec k T his ch ecks t o see if t he dr i v e has bee n r ese rved fo r us e by a host , an d if it h as, whether the host i s the sam e host that sent th e co mman d bein g executed. If the dri ve has been r eser ved for some o ther host then RE SER V A TIO N C ONFL ICT status is r eported. See t he RE S ER VE UNIT ( page 141 ) and RELE AS E UNIT ( page 121 ) comm ands .
38 Commands—Introductio n Unit Attention Chec k This ch e c ks if a UNIT A TTENTION condition ex ists for the host which sent the command . If it does , the dri ve r eports CHE CK CONDI TION st atus wit h a sense key of UNIT A T TENTION . T he r emain ing sense data will be set according to the unit attention condition whic h ex ists. See Unit Attention Sense in the descr iption of the REQUEST SENS E com mand o n page 13 2 . Comman d Descriptor Bloc k A SC SI command descr iptor bloc k (CDB) is a sequence of 6, 10, 12 or 16 bytes s ent by a h ost to a SCSI ta rget with the b us i n com ma nd ph ase. The C D B tells the dri ve what action should be p erf o r med . T he f inal byt e is k no wn as the Co ntrol byt e . Ther e are a number of fi elds in a C DB which are common to al l co mmands . These ar e shown in the follo wing table. 7 6 5 4 3 2 1 0 0 Gr oup Co de Operation Code 1 Re s e r ve d ( 0 ) 2 (MS B) Multi-B yte P a rame ter n - 1 (LSB) n Ve n d o r U n i q u e ( 0 ) Res er ve d (0 ) N A CA(0 ) F la g (0) L ink (0) Gro up Co de and Oper at i o n C ode The op er ation c ode un i quely identifies the com mand. T h e top three bits of t he oper ation code are known as t he gr oup code a nd t hese def ine the length of th e command descr i pt or block: Group 0 Group 1 Group 2 Group 3 Group 4 Group 5 Group 6 Group 7 Six-byte commands Ten-byte commands Ten-byte commands Six-byte commands Sixteen- byte comm ands Twelve -byte comm ands not suppor ted not suppor ted
Commands—Introduction 39 Command s—Introduc tion Reser ved A reserved field should always be se t to zero. The drive che cks reser ved fields, a nd if one is non-zero then it will reject the command w ith CHE CK CONDI TION . Multi-Byt e Param eter A multi-byte p arameter field in a co mm an d is “big -e ndia n”, that is , bit 7 o f the first byte of this field is the mo st significant. Control The con trol fie ld is mai nly conce rned wit h the use of linked commands. These ar e not suppo rted by th e L TO SCS I Co mmand Set , so a CHECK CONDI TION wil l be generated if this f iel d is set to anything other tha n zero. Vendor-Uniqu e Th is field is ig nored by the firmware NACA 0 The Normal ACA fla g is 0, indicating that it is no t supported. Flag 0 Link 0 Linked comman ds are no t suppor te d.
40 Commands—Introductio n
Commands 41 Commands This cha pter descr ibes all SCSI commands. P ar ts of the cha pter ar e based on sec tions of th e SCSI s pe c ificat ion ( se e page 13 ). F or general notes on the command descr iptions, see Cha pter 3 . 4
4 2 Comman ds ER ASE 19h Th e ERASE comman d is used to er as e dat a on t ape f r om the c urr en t logi cal position . The Lo ng bit is used to deci de whether the ‘ old’ data is ph ysi c ally over wri t te n or n ot. Pre-Ex ec ution Checks: Command Descri ptor Block: CDB Fields: Note The onl y us e f or short er ase is to truncate data at c urr ent logical position . It can not be u sed to cr e ate a “hole ” in the tape in to whic h data can subsequently be wr itte n “ in place” . This will mer e ly c au se th e dr i ve t o str eam fai l. T he l ogica l ta pe po siti on is una f fected b y th is com man d . A CHE CK CONDI TION for Ear ly Illegal Field Re servation Deferred Error U nit Attention Media Acce ss Media Write Diagnostic Status 7 6 5 4 3 2 1 0 0 Oper ation Code (19h) 1 Reserved (0) Imm ed Long 2 Res er ve d ( 0) 3 Res er ve d ( 0) 4 Res er ve d ( 0) 5 Contr ol Immed 0 The dri ve re ports status after the c om mand h a s comp lete d. 1 The dr ive reports status wh en it star ts the command (after any p re- executio n ch ecks and prerequisite unload s have completed). Lon g T he Lon g bit con trols th e dist ance to b e erase d. 0 The current position becomes the end of logica l data. 1 End of Da ta is written, f ollowed by Data Set Separators to the end of the tape.
Commands 43 Comman ds W arn i n g EOM ( d rive error c od e 2 C 98h ) wi l l o n ly be g ive n i f th e ta pe was logi cally positioned pa st E O T immediatel y pr ior t o this comman d. Erase Specific Status: Event Status Key Additi onal S ense The er ase fai l s CHECK C ONDI TION HARDWA RE E R ROR 5100 h (eras e failure )
44 Commands INQUIR Y 12 h I NQU IRY tells the dri ve to r eturn infor mation about the basic oper ating par ameters t o the host. T hese pa r ameters cannot be changed. T he dr iv e r eturns Inquiry data to the host in a data-in phase . Note T his command is immune fr om mo st of th e pr e -ex ecuti on checks that other commands must pas s (for e x ample , it ca n be ex ec uted while the unit is rese rved for anot her host) . U nit attenti on and defe rr ed err or conditions are pr eserved and reported on subs e quent commands . Pre-Ex ec ution Checks: Onl y the I llegal F i eld C hec k is p erf or med bef or e t he c omman d is e xec ut ed. If t he EV P D b it is c l ea r , the p ag e cod e m u st be z er o , ot he rw ise illegal r equ es t is re p o r t e d . If th e E VP D bit i s se t , t he p a ge cod e m u s t be on e o f t h e su p po r te d p a ge cod e s fo r I nquiry data . Other wise illegal re qu es t is report e d . Command Descri ptor Block: CDB Fields: 7 6 5 4 3 2 1 0 0 Oper ation Code (12h) 1 L U N Reserved (0) EVPD 2 Pa g e C o d e 3 Res er ve d ( 0) 4 Alloc ation Leng th 5 Contr ol LUN This field is ignored. EVPD Enabl e Vital Pr oduc t Data 0 1 Normal inquiry data is returned. A page of vital product data is retu rned.
Commands 45 Comman ds IN QUIR Y Dat a P age s Returned Da ta: I NQU IRY r eturns its st andar d data if the EVPD bit is z er o, or r eturns a page of data as spec ified b y the P age Co de f ield when EVPD is one. Standard Inquiry Data Format (L UN0) This is the dat a r eturn ed by the dr iv e in r esponse to an Inquir y command with its EVPD b it set t o z e ro . The data als o depends on the v alue o f t he L UN fi eld in the Inquir y CDB, the L UN value in the identify message a nd the configura t ion of the dri ve. Note that the data belo w is for the standar d distributio n fir mwar e . Page Co de If the EVPD bit is zero the Page Code field must be zero. If the EVPD bit is set to 1, the drive retu rns th e Inqu iry pag e in this Page Co de field: 00h 80h 83h C0h C1h C2h C3h C4h C5h C6h C7h Supported Vital Pro duct Pages page Unit Se rial Num ber pag e Device Identification pa g e Firm ware Re vision Levels p age Hardw are Revis ion Le ve ls pag e PCA Revis ion Le vels pa ge Mechanism R evision Le ve ls page Head Assembl y Revision Levels page ACI pag e AR M Firmware Revis ion Level s pa ge HI Gl ue Logic Levels page—Fibr e Ch annel only Allocation Leng th The maximum a mount of data (in bytes) that should be re turned. If mo re than this is avail a ble, the amount re turned is truncated to al location length. No error is r eported. 7 6 5 4 3 2 1 0 0 P e r ipher al Qual ifie r (000b) P e r ipher al De vi ce T ype (01 h) 1 RM B (1) Reserved (0 ) 2 Ve r s i o n N u m b e r ( 3 ) 3 AERC ( 0) Obsolete NA C A(0) HiSu p(0) Response D ata For mat (2) 4 Additi onal L e ngt h (5Bh)
46 Commands The St andar d Inquiry Data is based on the SC SI 3 standar d for St a ndar d Inquiry D ata . F or the L UN to which the dr iv e is at tac h ed , the P eripher al Qualifi er field is set to 000b , the P er ipher al Dev ice T ype fi eld is set to 01h, the Rem ov a ble Me dium (RMB) flag is set to 1 and the Dev ice -type modifi er is set t o 0. 5 Res er ve d ( 0) 6 BQue( 0) Enc Svr(0) VS(0) MultiP MChngr Obsolet e Obsolete Adr16 7 R elA dr(0) Obs olete WBu s16 S yn c L ink ed(0) T r anDis(0 ) CmdQue(0) VS(0) 8 (MSB) Ve n d o r I d e n t i f i c a t i o n (“ HP “) 15 (LSB) 16 (MSB) Pr oduct Identif icatio n 31 (LSB) 32 (MSB) Pr o duct R ev ision Le vel 35 (LSB) 36 (MSB) Res er ved ( 0 ) 55 (LSB) 56 Reserved ( 0) Clocki ng QAS (0) IUS (0 ) 57 Res er ve d ( 0) 58 (MSB) Ve r s i o n D e s c r i p t o r 1 59 (LSB) - - - - - - - - 72 (MSB) Ve r s i o n D e s c r i p t o r 8 73 (LSB) 74 (MSB) Res er ved ( 0 ) 95 (LSB) 7 6 5 4 3 2 1 0
Commands 47 Comman ds Inquiry Data Fields Peri pheral Qua lifie r 00 0b 011b Ther e i s a device on the log ical uni t select e d, so t he LUN fi e ld in th e ident i f y mess a ge wa s 0. The LUN fiel d in the ide ntify message h as specified an unsu pported logical u nit. This means a ny LUN o ther than 0. Peri pheral Dev ice Type 01h 08h 1Fh Sequential Access Device Med ium C h ange r Devi ce No Device (th e Per ipheral Qual ifier will be 011b in this case) RMB 1 The Remo vable M edium bit is on e, indicating that the tape can be rem oved. Dev ice- Type Mo d ifie r 0 Th is is a s ix-bi t user define d co de , set t o z e ro. Version Number 3 The Version Number is always set to 3, indicating that the d r ive complies to ANSI X3 .301:199 7 AERC 0 This fiel d is zero , indicating t hat Asynchronous Event Reporting C apability is no t supp ort ed. NACA 0 The Normal ACA f lag is 0, indicating that it is not supported. HiSu p 0 The Hiera rchical Su pport fl ag is 0, indi cating that the hierarchical a ddressing mode l is not supp o rted . Response Dat a Format 2 This field has the value 2, indicating that the Inq uiry Data format complies with the ANSI ver sion of SC SI-2. Add ition al Len gth The length in bytes of the length of the rest of the Inquiry data. 5Bh There are 91 (5Bh) more bytes of Inquiry data. BQue Basic Queuing f lag 0 The fl ag is ze ro for SCSI d r ives. Togeth er with the Cmd Que flag be ing zero this indicates that the de vice does not supp ort ta gged tasks for this lo gical unit. 1 The flag is 1 for Fibre Channel drive, indicating the ba sic queuing is s upported. EncSvr The En closure S ervices flag is ze ro to ind i cate that the tape drive do es not suppo rt Enclosure Service s comman d. MultiP 0 The drive h as a single port and d oes not im plement multi-po rt requir ements. 1 The drives has multiple ports. MChng r The M edium Cha nger b it: 0 1 The drive is n o t embed ded w ithin or a ttache d to a medium transport element. The dri v e is embe dde d wi th i n or at tac h ed to a mediu m t ra n spo rt el em ent. Adr16 The 16- Bit Addres s flag is set according to whether the hardware supports this bus feature . The flag is only vali d for parallel SC S I and is cle ar for all o ther low level interfaces. RelAdr 0 Relative A ddressing is n ot supp orted.
48 Commands WBu s16 The Wide Bus 16 f l ag is set according to whether the hardware supports this b us feature. The flag is onl y valid for pa ra lle l SCSI and is clear for all oth e r lo w lev el i n ter fa c es. Sync 0 Synchronou s data tr ansfer is not su pporte d. The f lag should be z ero for all low- level interfaces apa rt from par allel S CSI. 1 Synchron ous data transfer is s upported. The flag is only valid fo r parallel S CSI. Link ed 0 The device does not su pport lin ked com mands. CmdQue 0 T h e C m d Q u e f l a g i s a l w a y s z e r o . I f t h e B a sic Queuing (BQue) flag is also ze ro, this indicates that the de vice does not supp ort ta gged tasks for this lo gical unit. Vendor Iden tifi cation A vendor-specific, 8-b yte string of ASCII char acter s, left justified and padded with space characters “ HP ”. Pro duct I den tifi c ation A left-ju stifie d, vendo r-s pecif ic, 16 -byte st r ing fiel d of AS CII char acters with s pace character padding on the right. The string consists of two parts: ■ F irs t half (b ytes 16–23): “ Ultrium ” ■ Secon d half (b yte s 2 4–31): “ <generation>-<interface ty pe> ” ■ The f ollo wing s trings hav e been defined: ■ Gene r ation 2 FC dr iv e: “ Ultrium 2-SCSI ” (“S CSI” is not a typo!) ■ Gene r ation 2 SC S I dr iv e: “ Ultrium 2-SCSI ” Pro duct Revis ion Le vel A vendor-specific string of f our ASCII characters: “ CYMV ”: ■ C is th e codename ( F for a fu ll - h eig h t d rive) ■ Y is the y ear code . “0 ” is 2000 , “1 ” is 2001, up to “9 ” for 2009 . Alpha characte rs are th en u sed if need ed. ■ M is the month co de. “1 ” is Jan uary up to “ B ” fo r Decem be r . ■ V is an A S CII ch ar act er r epr es enting the OE M v ari ant o f the co de . “ D ” is the st andard d i st ri b u t io n va ria n t. Clocking 0F o r F C d r i v e s . 3 For SCSI drives, indicating that the dr ive supports both ST and DT transf ers.
Commands 49 Comman ds V e n dor Spec ific da ta may be sent afte r the Pr oduct R evisi on Lev el . Vital Product D ata P ag es The f o llo wing tables descr ibe the v i tal pr oduct data pages. Thes e pages a r e r et urned by the INQUIR Y command when the EV P D bit is set and the appr opr iate P age C o de is set in the Command Descr iptor Block . T he y contain ven d or - s p e ci fi c p rod u c t in for m a t io n. Supported Vital Pr oduc t Data P ages P age This is the dat a r eturn ed by the dr iv e in r esponse to an Inquir y command with its EVPD bit s et to o ne and it s P age Code f ield set to 0. Version Desc riptor These fiel ds can be used t o id entif y up to eigh t stand ard s to wh ich th e driv e co nform s. Th e values supported ar e listed bel ow. For SCSI drives, it is recommended that the first version descriptor is us ed for the SCSI architectur e standa r d, followed by the physica l standar d, if an y, fo llowed b y the SCSI prot oco l, f ol lo wed by the ap pr op ria te SPC version , fo ll owed by the devi ce ty p e co mm an d set, foll ow ed by t he seco ndary comm an d set , if an y . The fo llowi n g are the SC SI versi on descr iptor s : Va l u e Stand ard 1 2 3 4 5–8 005 4h 0B1Ch 022 7h 021Ch 0000h SAM-2 T1 0/1157-D rev 23 SPI-3 A NSI NCIT S.336:2000 SPC-2 AN SI NCITS. 351:2001 SSC ANSI NCITS. 335:2000 not used The fo llowi n g are the F C versi on d escrip tors: Va l u e Stand ard 1 2 3 4 5 6 7 8 005 4h 0917h 0D7Ch 0D A0h 131Bh 13 20h 02 77 h 021Ch SAM-2 T1 0/1157-D rev 23 FCP-2 ANSI NCITS.33 2: 1999 FC-AL- 2 A NSI NCITS.3 50:200x FC-FS (no v ersion claimed) FC-Tap e T11/1 315 revis ion 1 .17 FC-FLA (no version claimed) SPC-2 AN SI NCITS. 351:2001 SSC ANSI NCITS. 335:2000
50 Commands This page contains a list of all the V P D page-codes suppor ted b y the dr iv e. Unit Ser ial Number P age Th e U n i t S e ria l N u m be r P ag e c on ta i n s a si n gl e va l ue wh ic h is a 10 - by te ASC I I str ing. T he string , with t he V en dor Identif icati on and Pr oduct Identif icati on fi elds in the standar d Inquir y data , u niq u el y identifi es the dr ive . 7 6 5 4 3 2 1 0 0 P e r ipher al Qualif ier (0) P e r ipher al De vice T ype (1) 1 P age Code (00h ) 2 Res er ve d ( 0) 3 P age Length (0 Ah for S CSI dri ves, 0Bh for FC driv es) 4 Supporte d P ages Code ( 00h ) 5 Unit Serial Num ber P age (80h ) 6 De vice Ide ntif icatio n P age(8 3h) 7 Firmware Revisio n Levels P ag e ( C0 h ) 8 Ha rd wa re R evi s io n Le ve l s P a g e (C 1 h ) 9 PCA Revisi on Levels P age (C 2h) 10 Me cha n i s m Revisio n Level s P ag e ( C3 h ) 11 Head Assem bly Re vi si on Le vel s P age ( C4h) 12 Au to-Changer Interface Rev is ion Lev els P age ( C5h) 13 A RM Fi rmwa re Revi s i on L eve l s pa g e ( C 6 h ) 14 HI G lue Logic Lev els page (C7h )—F ibre Channel only 7 6 5 4 3 2 1 0 0 P e r ipher al Qualif ier (0) P e r ipher al De vice T ype (1) 1 P age Code (80h ) 2 Res er ve d ( 0) 3 Pa g e L e n g t h ( 0 A h ) 4 (MSB) Seri al Number 13 (LSB)
Commands 51 Comman ds Dev ice Id entification P age The De vice Identifi cation page c ont ains inform ation that iden ti f ies the tape dr iv e un iq uely . F or SCS I, a combination o f the V endor ID and Ser ial Number is r eturned . F or F ibre C hannel, t he P ort and Dev ice Names ar e r etur ned as well . Identif icati on Descr iptor s a r e constru cted as fo l lo ws: Define d Id e ntifier s The follo wing identif ier s will be retur ned in the gi ven or der . What P ort Nam e is r eturned depend s on which port the Inquiry is sen t to . 7 6 5 4 3 2 1 0 0 P er ipher al Qual ifi er (0) P er ipher al De vice T yp e (1) 1 Pa g e C o d e ( 8 3 h ) 2 Res er ve d ( 0) 3 Pa g e L e n g t h ( n - 3) 4 (MSB) Iden tifi cation D escr iptor s n (LSB) 7 6 5 4 3 2 1 0 0 R e se rved (0 ) C od e S e t 1 Res er ve d (0 ) Id en ti fie r T y pe 2 Res er ve d ( 0) 3 Identi fier Length ( n - 3) 4 (MSB) Identifier n (LSB) Code Set 1 The Identif ication Des cr iptor is a binary field. 2 T he Identificatio n Descrip tor contains on ly ASCII data . Id en tifi er Typ e 1 Vendor ID fo llowed by the pr oduct identifica tion fiel d from th e standard inquiry d ata and the seri a l number f i el d from t h e Se rial Numb e r Inquiry Page. 3 All devices with a Fibr e Cha n nel in terface suppor t an Identifier type of 3. I n this case the Identification Descriptor is the Fibre Channel 64-bit Na me Identifier.
5 2 Comman ds Dev ice Ser ial Number (FC and SCSI) Po r t N a m e ( F C o n l y ) Dev ice Name (FC o nly) 7 6 5 4 3 2 1 0 0 R e se rved (0 ) C od e Se t (2) 1 Reserved (0) Ident ifier T ype (1) 2 Res er ve d ( 0) 3 Identi f ier Leng th (34) 4 (MSB) Ve n d o r I D 11 (LSB) 12 (MSB) Pr oduct Identif ication 27 (LSB) 28 (MSB) Seri a l Number 37 (LSB) 7 6 5 4 3 2 1 0 0 R eserv ed (0) Code S et (1) 1 R e serv ed (0) Id en tif ie r T yp e ( 3 ) 2 Res er ve d ( 0) 3 Identifier Length (8) 4 (MSB) Po r t N a m e (IEEE Regis ter e d Name) 11 (LSB) 7 6 5 4 3 2 1 0 0 R eserv ed (0) Code S et (1) 1 R e serv ed (0) Id en tif ie r T yp e ( 3 ) 2 Res er ve d ( 0) 3 Identifier Length (8) 4 (MSB) Dev ice Name (IEEE Regis ter e d Name) 11 (LSB)
Commands 53 Comman ds Po r t I d e n t i f i e r ( F C o n l y ) The P ort Identi f ie r will be s et to 1 if the add r ess ed port is port A, and set to 2 if the addr essed port is P ort B . SCSI T ype 3 Identifier (S CSI only) Dri ve Co mponent Re v ision Le vels P ag es 7 6 5 4 3 2 1 0 0 R eserv ed (0) Code S et (1) 1 R e serv ed (0) Ide n t i f ier T yp e ( 4) 2 Res er ve 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 R eserv ed (0) Code S et (1) 1 R e serv ed (0) Id en tif ie r T yp e ( 3 ) 2 Res er ve d ( 0) 3 Identifier Length (8) 4 (MSB) SCS I Identi f ier (IEEE Regis ter e d Name) 11 (LSB) 7 6 5 4 3 2 1 0 0 P eripheral Qua lifier (0) P eripheral Dev ic e T ype (1) 1 Pa g e C o d e 2 Res er ve d (0 ) 3 Pa g e L e n g t h ( 5 C h ) 4 (MSB) Component (“ CCCCCCCCCCCC ”) 29 (LSB)
54 Commands T he Dr iv e Com p onen t Re visi on Le vels pages con tain details of t he re visi ons of each of the major sub as semblies of the dr iv e. F or any gi ven pr oduct , if these pages are the sam e then the d r ive has been built with the same c omponents and with the same manufactur ing pr ocess. E ach entry is a null-ter minated AS CII strin g. 30 (MSB) Ve r s i o n ( “ RRR . VVV ”) 48 (LSB) 49 (MSB) Date (“ YYYY/MM/DD hh:mm ”) 72 (LSB) 73 (MSB) Va r i a n t ( “ XXXXXXXXXXXX ”) 95 (LSB) 7 6 5 4 3 2 1 0 Page Co de Pa g e C o d e Component Name C0h - Firmware C1h - Hard ware C2h - PCA C3h - Mechanis m C4h - Head Asse mb ly C5h - ACI C6h - ARM C7h - HI Glue Log ic “ Firmware ” “ Hardware ” “ PCA ” “ Mechanism ” “ Head Assy” “ ACI ” “ IO Firmware ” “ HI Glue Logic ” (FC onl y) Component A 12-character entry to identify the component that th e revision is for. Version A 7-charac ter version code with a three -digit major revision numbe r, a period and a three -digit min o r ve r sion num ber. Date The date of the version. Variant An identifier indicating what v ersion of the product this is. 8000 01 00h 8002 01 00h Generatio n 2 ful l -height SCSI Generatio n 2 ful l -height FC
Commands 55 Comman ds L O AD/UNL O A D 1Bh Th e LOA D / UNL O AD command allow s the host to spec if y that a tape cartri dge pr esent in the dri ve is either made r e ad y fo r data tr ansfer (“ l oaded”) or disabled f or data tr an sf er ( if Pr e vent Med ia R emov al is set) . It can a lso caus e the cartri dge to be ej e cted f rom the dr iv e (“ u nloaded”) . Pre-Ex ec ution Checks: If an unload is to be perf ormed , the d r iv e c hecks if the tape is cur rentl y being loaded. If it is, CHE CK CONDI TION is r eported w ith a sense k e y o f NO T REA D Y and additional sense of 0401h (becoming re ady). If a lo ad is to be perfor med , t he dr i v e checks to ensure that a tape cartr i dge is pr es ent . If not, it reports CHE CK CONDI TION w ith a sens e ke y of NO T R EAD Y and additional sense of 3A00h (m edium not pr esen t). If the me dia is cu r rentl y being unloaded or ej e cted , it reports CHE CK CONDI TION with s en se key of NO T READ Y and additional sense of 0400h (c au se not repo r tab le) . Command Descr iptor Bl oc k: CDB Fields: Illeg al Fie ld Rese rvation Deferr ed Erro r Unit Attention Diagnostic Status M edia Information 7 6 5 4 3 2 1 0 0 Operation Code (1Bh) 1 R eserv ed (0) Immed 2 Res er ve d ( 0) 3 Res er ve d ( 0) 4 R e se rv ed (0) Hold E O T (0) Re T e n L oa d 5 Contr ol Immed 0 The drive reports status afte r the comman d has compl ete d. 1 The drive r eports status wh en it star ts the co mmand (after an y pre-ex ecution checks and prer equis ite u nload s h ave c omple ted) .
5 6 Comman ds Load/Unl oad Spec ific Sta tus: F ollo wing a successf ul LOA D comman d, CHE CK CO NDI TION is p ost e d to all in itiat ors ot her tha n the i nit iator of th e LOA D comman d . The s ense k ey is set to UNI T A TTENT ION , w ith additional sense of 2 800h (not read y to read y tr a nsiti on) . Ther e is an ex c epti on to this: if a load occur s when the tape is alr e ady loaded , no UNIT A TTENTION sens e is gene r at ed. Once UNIT A T TENTION is clear ed , unsoli c ited position al sense is set . Th e sense key wi l l b e NO SE NSE w ith additional sense of 0004h (BO T detected). If an unfor matted tape is inserted, th e dri ve loads it and it behav es as if it is a blank tape. If a cartri dge w ith no Cartr idge Memory or a failed Cartri dge Memory is loaded , CHE CK CONDI TION i s r et urned with a sense k ey of MEDIUM ERROR , wit h additional sense of 5 200h ( cartr idge f aul t). Lo adi ng a C artr idge The dr ive loads a tape aut omatically when it is inserted , without an y hos t inter action. If the load is successful , m edia access commands are per missible (see the M edia Acces s check) . If the tape is alre ady loaded when a Load r e quest is r ecei ved , the tape is positioned at the beginning of the tape (as though a REWIN D had been sent ). Unlike a “full” load, UNI T A TTENT ION with additional sense of 2 800h (not r eady to re ady transition) is not gener ated for ot h er hos ts. If the tape is in the pr ocess o f being loaded when the Load r equest is r ecei ved , the dri ve will wait fo r the load to c omplete and, a s suming t he load was succe ssf ul , take one of the f ollo wing a ctions: ■ If the L oad was issu e d b y the cur re nt host (t h at is , a pr ev ious imme diate- r eported load) and completed successf ully , GOOD s tat u s is r epor ted . No fu rt he r ac ti on i s t ake n. Hold 0 A norm al load/unloa d will be perf or m ed . 1 A load will ca use the ca rtridge to be pulled in and seate d in the drive , but the tape will not be threaded. An unload will cause the tape to be u nthreade d, but the cartridge will not be ejected. In Ho ld positio n, the Cart ridge Memory is acce ssible. ReTen This field is ignored. Load 0 The drive perfo rm s an unload operatio n. 1 The drive perfo rm s a load operati o n.
Commands 57 Comman ds ■ If the L oad wa s issued b y some ot her hos t (or w as an autoload) and com plet ed successf ully , CHE CK CONDI T ION is r eported, w ith a sense ke y of UNI T A TTENT ION an d add ition al sense of 2800h (no t r eady to r e ady tr ansition). ■ If the Load wa s i ssued by the cur re nt host and failed , CHECK C ONDIT ION is r e ported , sinc e a defer r e d err or condition will ex ist for the curr ent host . ■ If the Load w as issued by so me other ho st and failed , the load will be r e - attemp ted on behalf o f the cur r ent ho st . Unloading a Ca rtridg e If an unload i s r equested and ther e is a tape pr esent in the dr iv e (either loaded , loading or unloadin g): 1 Any buff er ed data is wr itten to tape . 2 The tape is r e wo und to the ph ysi c al BOM (beginni ng of media) . 3 If medium r emo val is pre ve nted, CHECK CON DITION is r ep orted with a sense ke y of ILLE G AL REQUE S T and additional sense of 5 302h (me dium re m o va l pr ev e nt e d ) . 4 G OOD status is r eported if the ta pe unloade d successf u ll y . Otherwise , another unload oper ation is initiated on behalf of the host t hat issued the unload request . F ollow ing an unload, an y m edia access commands will be r ejected b y the Medi a Acce ss c heck . ■ If an unload r equest is r eceiv ed while the tape is in the pr ocess of unloading (for ex ample , as a re sult of pr essing the ej e ct butt on) , it will be queued unti l the unload is complete. ■ If an unload r equest is r eceiv ed while th e r e is no tape pr esent , or if a ta pe is pr esent but not loaded and mediu m r emov al is pr ev ented, GOOD status is r eported . It is possible to unload and eject the cartri dge b y pressing the E ject button on the fr ont pa nel.
58 Commands LO C A T E 2 B h Th e LO C AT E com man d mov es the cu r r e nt lo gical pos ition to the pos ition spe cif ie d by th e comman d . Th e ne w posit ion i s s pec if ied b y th e offs et f r om sta rt of the media in te r ms o f b loc ks . T h e f irst bloc k (that is , BO T) is block addr ess 0. An y u n wr itten data is written t o tape befor e the c ommand is ex ecuted . Pre-Ex ec ution Checks: Command Descri ptor Block: CDB Fields: Illeg al Fie ld Reser vation Defer red E rror Unit Attention Media Acce ss Diagnostic Status 7 6 5 4 3 2 1 0 0 Operation Code (2Bh) 1 R ese rved (0 ) B T (0) CP (0) Immed 2 Res er ve d ( 0) 3 (MSB) Block A ddress 6 (LSB) 7 Res er ve d ( 0) 8 Pa r t i t i o n ( 0 ) 9 Contr ol BT Block a ddress Type. This fie ld is not suppor te d an d sh o uld alw ays be set to zero indicating that the Block A ddre ss field represents the co unt o f all blocks and filemarks between the beginnin g of th e media and the curre nt logica l pos ition. CP Change Partition. This fiel d is not suppo rted an d should be set to z ero. Immed 0 The drive o nly reports s tatus afte r the Locate command h as comple ted. 1 The drive r eports sta tus wh en it s tarts the comma nd and continue s with the positioning in the background.
Commands 59 Comman ds Locate Spec ific Status: Bloc k Addres s The B lock A ddress specifies the number o f blocks and filemar ks between BO M and th e position to be located. Partition Not supported. Event Status Key Additi onal Sen se EOD encou n ter ed CHEC K CON D N BLANK CHECK 0005 h (EOD en c oun t ere d). EOM encountered CHECK CONDN MEDIUM ERROR 0002h (EOT encountered). EOM bit set. Fail ed to r ead da ta—me dia error or non -fatal dr ive error CHECK CONDN HARDWAR E ERROR 3B00h (sequential positioning error) Early Warnin g EOM enco untered Early warning end of medium info rmation is not repo rte d for Locate commands Data for mat cor rupt CHEC K CONDN MEDIUM ER ROR 3001h (can’t read media, unknown format)
60 Commands LO G S E L E C T 4 C h Th e Log Sele ct command caus es log da ta on the dr iv e to be res et to its def ault value or to be set to an in itia tor sp ecific val ue. Pre-Ex ec ution Checks: Command Descri ptor Block: CDB Fields: The f o llo wing ar e valid combinati o ns of values f or the PCR (P arameter Code R eset), P a r ameter Lis t Length and PC (P age Contr ol) fields: Othe r wis e CHE CK C ONDIT ION sta tus is r etur ned, the sens e ke y is s et t o ILLE G AL REQUE ST with ad ditional sense of 2 400h (Inv alid F ield in CDB) . Illegal Field Rese rvation Deferred Error Unit Attention 7 6 5 4 3 2 1 0 0 Operation Code ( 4Ch) 1 Res e r ved (0 ) PCR SP (0 ) 2 PC Re s e r v ed ( 0 ) 3 Res er ve d ( 0) 6 7 (MSB) P a rameter List Leng th 8 (LSB) 9 Contr ol PCR P aram et er L ist Length PC Resu lt 1 0 01b or 11b All the lo gs o n the d rive tha t ca n b e reset are reset to their default values. 1 0 00b or 10b No action is take n and GOOD statu s is ret urned. 0 >0 01b or 11b Data is sent from the host and is written to the indicated log s, pr ovide d those lo gs ar e wr itabl e. PCR 0 Parameter Code Re set. The fun ction per f ormed is de fined by the P C field .
Commands 61 Comman ds SP 0 The Save Pag e (SP) flag is not su pporte d and m ust be se t to 0. PC The Page Control field de fines the type o f parameter values to be selected: 00b or 10b No ope r ation is perf ormed. The Parameter List Length m ust be zero. If it is not, c heck condition invalid field in C DB is set. 01b The drive wil l clear logs as spe cified by the parameter d ata. 11b The drive will clear all of its internal logs. Param eter Lis t Le ngth 0 No data is to be transferred. This is not considered an error. >0 Specifies how many by tes of p arameter data ar e to be sent. The data transferred will consist of zero or more 4-byte log p age headers with the page length in those headers set to zero . For each log page hea der recei ved, t he dr ive clea rs th e associate d log.
6 2 Commands L OG SENSE 4Dh LO G S E N S E allow s the host to r ead th e dri ve ’s logs. A single lo g is retur n ed with e ach i nv o cat ion of LO G S E N S E . Pre-Ex ec ution Checks: The P age Code must mat ch one of the suppo rted log page codes. If it does not , the n CHE CK C ONDI T ION statu s is r eported . Sense data will be as descr ibed in the Ille gal F ield Checks. Command Descri ptor Block: CDB Fields: Illeg al Fie ld Deferred Erro r Unit Attention 7 6 5 4 3 2 1 0 0 Oper ation Code ( 4 Dh) 1 Re served ( 0 ) PP C (0) SP (0) 2 PC P a g e Co d e 3 Res er ve d ( 0) 6 7 (MSB) All ocation L ength 8 (LSB) 9 Contr ol PC The Page Control field defines the type of l o g para meter to be returned: 00b Current Thre shold Va lues—an y parame ters in the log that are co unters contain the maximum value that they can count to. 01b Current Cumulative Values—any pa rameters in the log that are counters contain their current counts. Note: Counts are reset to their defaul t cumulative values (s ee below) fol lowing a power-on, reset or bus devic e reset. Media related coun ts are also re set following a lo ad. 10b Default Thresh old Value s—same as the Curre nt Thresh old Values
Commands 63 Comman ds Log P a ge Forma t All log pages ex cept P age 0 consist of a page code he ader f ollow ed b y a number of parameter s. The page header has the follo wing fo rmat: The page code is a byte v a lue that uniquel y i dentif ies whic h Log P age is being r e tu rned. The P a ge Lengt h ind icate s the num ber of add it ional bytes i n the par amete rs. Fo r t h e Log Se le ct command on ly , the f our b y tes sh o wn a bov e ar e sent f or eac h log pag e to b e cle ared. The P a ge Le ngth field sh ould be s et to zer o. Fo r t h e Lo g Se n se command one or mo r e p ar ameter s is sent . See the actual page descr iptions a b o ve f or mor e infor mation . N ot e that all the p ar ameters f or a particular page mu st be sent . Each par a meter has t he follo wing for mat: 11b Default Cumulative Values—a ny pa rameters in the log that are coun ters contain the initial values of those counters (set at power-on, rese t, bus device reset and, in the case of media logs, lo ad). The PC fi eld has no ef fect on th e data re turned when the sel ected log contai ns event or t race co des rather than counts. Page Co de The Page Code field identif ies which log page i s be ing re quested b y the host. See page 6 4 for the lis t of val id page co des. Allocation Leng th The Allocation Length field spe cif ies the maximum number of bytes of data that should be returned to the host. The drive will retu rn th e e ntire log or A llocation Length bytes, whichever is the less e r. 7 6 5 4 3 2 1 0 0 Pa g e C o d e 1 Res er ve 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) D S (1) TSD (0 ) ET C (0) TMC(0) LBIN LP
64 Commands S u p p o r t e d L o g Pa g e s Pa g e Th is SCSI l og m ay b e re cove red us in g a Lo g Se nse com man d with the PC field set t o anything and the P age Code fi eld set to 00h. The page li sts the page co des of other lo gs su pport ed by th e driv e. I t ca n neithe r be r e set nor wr it ten. The page has the follow ing fo rmat: 3 P a rameter Le n gth ( n - 3) 4 (MSB) P a rameter Bytes n (LSB) Parame ter Code A two-byte value that un iquely identifies t he parameter within the log . DU, TS D, ET and TM C and LP 0 Must be zero. For a full description of these fields refer to the SCSI-2 standard. DS 1 Must be 1, indicating that drive will m ain tain the sa v ing of d a ta itself. Note tha t the host must set the SP bit to 1 in a LO G S E L EC T comm and, otherwise a CHE CK COND ITI ON will res u lt. LBIN 0 T h e para mete r cons i sts o f AS CII c haract ers . 1 Th e para mete r cons ists o f bin ar y dat a. LP List Parameter flag 0 I ndicat es th at the para mete r is a co unte r. This is the case for all parameters except MAM fie lds. 1 Indicates that the parame ter is a list paramete r, which is the case for a ll MAM fields. Pa ramet er Length The length of Parameter Bytes in bytes. Pa ramet er Bytes The actual par am ete r data. 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 0 Reserved (0) P ag e Code (0 0h) 1 Res er ve d ( 0)
Commands 65 Comman ds W ri te Erro r C o un t e rs Lo g P a ge The W rite Er ror C o unt ers log is page 02h . The P age Length is 38h. T her e are se ven par ameters , 0 through 6. P arameter s 0 thr ough 2 ar e not supported and ar e r eturned as z er o. All fi elds are fo u r b ytes long. All these counters ar e updated when the data se t is phy s ic ally wr itten . The y r ela te to th e cur r ent ta pe and ar e clea re d when the t ape is unloa ded . This dat a can be r eset to z er o, but no t wr itten. 2 (MSB) Pa g e L e n g t h ( 0 9 h ) 3 (LSB) 4 Su p port e d P age s ( 00 h) 5 W rite Err or Counters (0 2h) 6 R ead Er r or Coun ters (0 3h) 7 Seque nti al A cce ss De vi ce Log (0Ch) 8 Tap e A l e r t L o g ( 2 E h ) 9 T ape U sage L og (30h ) 10 T ape C a pac ity Lo g (31h) 11 Dat a Co mpr essi on Log (3 2h) 12 P erfor m ance Log (34h) 7 6 5 4 3 2 1 0 Pa r m . De finiti on Desc ripti on 0 Errors corrected without s u bstantial delay Total numbe r of e rrors corrected without dela y 1 Errors cor rected with possi ble delays Total nu mber of error s corrected us ing re tries 2 Total S u m of para me ters 3 and 6 3 Total errors corrected T he number of data sets that needed to be rewritten 4 Total times error correction processed Number of CCQ sets rewritten 5 Total data sets process e d The to tal number of data sets wr itten 6 Total uncorrected errors The number of da ta sets that co uld not be written
66 Commands Re ad Er ror C o un te rs L og P a g e The R ead E r ror C o unt ers log is page 03h. T he P age Length is 38h . The re are se ven par ameters , 0 through 6. P arameter s 0 thr ough 2 ar e not supported and ar e r eturned as z ero . All fields ar e four b ytes long. All these counter s are u p dated when the d ata set is ph ysi cally r ead. T hey r elate to the cur rent ta p e and are c le ar e d when the tape is unloaded. This dat a can be r eset to z er o, but no t wr itten. Seq u en tial Acces s D e vice Log P a g e The Sequential Access Dev ice Log page is page 0Ch . The P age Length is 40 h . F iv e pa r a meter s are supported , all eight b ytes long: Pa r m . Definiti on Desc ripti on 0 Errors corre cted wi thout substantial delay Total number of errors corrected without delay 1 Errors corre cted wi th possible delays Total number of errors corrected using re tries 2 Total Sum of parameters 3 and 6 3 Total errors corrected The number of data sets tha t were corrected after a read retry 4 Total times e rr or correction processed Number of times C2 correction is invoked 5 Total bytes processed The total number of data sets read 6 Total un corr ecte d e rror s The num be r of da t a sets t h at coul d not b e re ad af t er retries Pa r m . Desc riptio n 01h The number of data bytes received from ap plication clients during write comma nd operatio n s. Th is is the numbe r of bytes transfer red ov er SCS I, befo re comp ression. 02h The number of da ta bytes wr itten to th e me dia as a resu lt of write comm an d op er atio n s, not counting the overhead from ECC and formatting. This is the number of d ata bytes tr an s fer red to me dia, after c ompr e ssio n. 03h The numb er of d ata bytes read from th e media durin g read command ope rations, n ot counting the overhead fr om ECC and f ormatting. This is the num ber of data byte s transferre d from me dia with comp ressio n . 04h The numb er of data bytes transf erred to t he initiator or in itiators during read command operatio n s. Th is is the numbe r of by tes transf erred over S CSI, after d ecompression. 0100h C leaning require d, a non-vo latile cleaning indica tion.
Commands 6 7 Comman ds A non- zer o v alue of the cleaning r equired par ameter indicates that a condit i on r equiring cleanin g has been detected and a subsequent clea ning cycle has not y et been c omplet e d . The cleaning r e quir ed par am ete r shal l be persistent acr oss har d r esets and power c y cles. Ta p e A l e r t L o g P a g e The T apeAlert log page is page 2Eh. Ther e ar e 64 parameter s number ed fr o m 1 thr ough 64. Only paramete r s 1 thr o ugh 18, 20 thr o ugh 2 3 and 29 through 39 ha ve def i nitions f or tape dri ves witho ut attached loaders . The remaining par ameter s ar e alw a ys z er o . All paramete rs ar e one b yte long. E ach par am ete r is e ither zer o to indicate the corr espondi ng condition has not oc c urr ed or one to indicate that the cor re sponding condition has occurr ed. All log paramete rs a r e cleared when the log is r e ad . The Log is also clear ed at pow er on, on a r eset condition and by a Log Se le ct comm and . Specifi c flags ma y be clea r ed when corr ecti ve action has r emov ed the condition that caused the flag t o be set . The supported par a meter s a r e as follo ws: Pa r a m e t e r Desc ripti on Ty p e 1 Re ad Warning W arnin g 2 Write Wa rning W arning 3 Ha rd Erro r W arn ing 4 Med ia Cr itical 5 Re ad Failure Cr itical 6 Write F ailure Cr itical 7 Med ia Life W arning 8 No t Data Grade W arning 9 Write-Protect Cr itical 10 No Rem ov al Infor mation 11 Cleaning Media Inf or mation 12 Unsuppo rte d Fo rmat Inf orma tion 13 Recover ab le S nappe d Ta pe C r itical 14 Unrecover able S napped Tape Cr itical
68 Commands 15 Memor y in Cartridge Failu re W arning 16 Force d E j ect Cr iti c al 17 Read-Onl y Fo rmat W arning 18 Tape Directo ry Cor r upted W arnin g 19 Nearing Me dia Life W arning 20 Clean Now Cr itic al 21 Clean P er i od ic W arn i n g 22 Expire d Cleanin g Media Cr itical 23 Inva li d Cleaning Cartrid g e Cr itical 29 Drive M aintenance W arning 30 Hard war e A Cr iti c al 31 Hard war e B Cr itical 32 Interface W arnin g 33 Eject Media Cr itical 34 Download Fault W arning 35 Drive Humidity W arning 36 Dri v e Temp er atur e W a rning 37 Drive Vo ltage W arnin g 38 Predictive Failure Cr itical 39 Diagnostics Required W arning 50 Lost statistics W arning 51 Tape dir ectory in valid at unlo ad W arnin g 52 Tape syste m area write failure Cr itical 53 Tape system area read f ailure Cr itical 54 No start of data Cr itical 55 Loading f ailure Cr itical 56 Un reco verable loa d f ailur e Cr itical 57 Automation interface failure Cr itical 58 Fi rmware fa ilure W arning Pa r a m e t e r Desc ripti on Ty p e
Commands 69 Comman ds Ta p e U s a g e L o g Pa g e The T ape Usage Log P age code is 30h. Ther e ar e nine paramete rs. T hese are all read dir ectly fr om the L T O -CM T ape Usage Log. This data can be neither reset nor wr itten. Ta p e C a p a c i t y L o g Pa g e The T ape Capacity Log P age code is 31h. T he P age Length is 20h. Th er e are fo u r par a meter s, 1 thr ough 4 . P ar ameters 2 and 4 are not su pported and are r eturned as zer o. All par a meter s ar e 4 bytes long . All par am eter s a r e in meg ab yte s (1, 04 8,5 7 6 byt es) and assu me n o com p r essi on . T his da ta can be neither r eset n or wr it ten . The supported par a meter s a r e as follo ws: Pa r m . Descripti on Le n gth 1 T hre ad Count 4 2 Total Da ta Sets Written 8 3 Total Write Retr ies 4 4 Total Unrecover ed Write Erro rs 2 5 Total S uspen ded W r i tes 2 6 Total F atal Suspended Writes 2 7 Total Da ta Sets Read 8 8 Total R ead Retries 4 9 Total Unrecover ed Read Errors 2 Pa r m . Descri ption Length 1 Main Pa rtition Remaining Capacity 4 2 Alternate Partition R emaining Capacity 4 3 Main Pa r tition Maxim um Capacity 4 4 Alternate Partition Maximum Capacity 4
7 0 Commands Data Compr ess ion Log P a ge The Data Com pr ession Log P age code is 32h and the page length is 4Ch. T her e a r e ten paramet ers, 0 thr ough 9 . P ar ameter s 0 and 1 ar e two byte s long . P a r a m eters 2 throug h 9 are each 4 byte s lon g. The supported f ields are listed belo w . P aramet ers 2 thr ough 9 occ ur as pairs that r epr esent a lar g e number of bytes transfer red. T he fir st four - b yte parameter r epresents the numb er of whole megab y tes transfer red , r ounded to the nearest megabyte . The se cond four -byte parameter re presents the differ ence between this number of megabytes and the actual number of b ytes . T his ma y be a si gned q uan tity . This data ma y be r eset , but may not be wr itten. Pe r f o r m a n c e D a t a L o g Pa g e The P erfor mance Data Log P age is 34h. T his log is intended to r eport data of inter est to a user/applicati o n on how eff ic iently the dri ve is being used . Pa r a m e t e r Descript ion Length 0 Read comp ression ratio X 100 2 1 Write compression r atio X 100 2 2 Mega bytes transfer r ed to host 4 3 Bytes transfer red to host 4 4 Mega bytes read from tape 4 5 Bytes read from tape 4 6 Mega bytes transfe rred f rom hos t 4 7 Bytes transferred fro m host 4 8 Mega byte s written to tape 4 9 Bytes written to ta pe 4 Pa r a m e t e r Descrip tion Length Upda ted 0 Repositions per 1 00 MB 2 After each 100 MB has been physicall y written 1 Data rate into bu ffer 2 After each data set has bee n logically w r itten
Commands 71 Comman ds A l l t he p a ra m et e rs rel a te t o th e cu rre nt t ap e. Th ey a re a ll c le a re d wh e n th e tape is unloaded, ex c ept P a r am ete r 4, w hich is nev er cleared . All data will be r eset when the log page is rese t. T he pa r am et er s ar e as f ollows . 2 Maximum data rate 2 After each data set h as b een logical ly written 3 Current data rate 2 After each data set has been logically written 4 Native data rate 2 Fixed Pa r a m e t e r Descrip tion Length Upda ted Repos i ti ons per 10 0 MB Number of tape dire ction chang es pe r 100 MB wr itten . Data r ate into b uffer Ra te at which d ata is entering the buffer ( after data comp ression), given in units of 100 KB/s. This is the true ‘tap e’ data rate. Maxi mum da t a ra te Given the compressibility of the data that ha s been sent to the drive, this is the maximum data ra te that coul d be ach ieved , gi ven in units of 10 0 KB/s. The fig ure will be worked out based on the compressibility of e ach dataset received, d atasets which have a compressib i lity high e r than the compr es sion bandw idth of th e drive will be ‘capped’. Curre nt data ra te Rate at which data is be in g accepted by th e drive befo r e compression, given in units of 100 K B/s. Nati v e data ra te The native rate (that is, without using compression) at which th e drive writes data to tape, g iven in u nits of 100 KB/s: Drive Val ue Nativ e Da ta Rat e full- he ight 12Ch 30 MB/s
7 2 Commands MO DE SELECT 15h/5 5 h M ODE SELECT is us e d to s e nd conf igur atio n data to t he dri ve . Both 6 -b yte and 10-by te v er sions o f the co mmand ar e suppor ted. The Mode Sele ct par a meter list is tr an sf err ed fr om the host to the dri ve dur i ng the data-ou t ph as e. It con tains z er o or mor e b ytes of infor mation. If an y infor mation is se nt, it should consist of a Mode P aramet er Header follo wed b y z ero or mor e mode select pages. Intern al paramete rs ar e set according to the values s pecifi e d in the header and pages. F ield s in the paramete r list ar e check ed and the oper ation will terminate if an err or is found . Note T he dr iv e doe s n ot ch ec k th at th e par amete r list i s cor r ect bef or e modifying inter nal p ar ameters. T he l ist is ch eck ed as the oper ation pr oceeds, so if the r e is an err or in the list , a ll par ameters up t o that point will be set to their new v al ues, but the parameter in err or and later par ameters w ill not be updated. Pre-Ex ec ution Checks: Note F ailur e to f lu sh wr ite- be h i n d d a t a wi l l be r epor t e d a s a De f e r r ed Err or . The par ameter list lengt h mu st be suc h tha t only “ entire ” parts of a parame ter list ar e sent . It i s illegal to send a p artial mode par a meter header , a partial mode block descr i pt or or a partial mode page. If this happens, then CHE CK CO ND ITI O N status is repor ted. The sen se key is set to ILLEG AL REQUE S T . The additional sense is set to 1A00h (parameter list length er ro r). Extra c hecks ma y be perfor me d on the data , see the descr iptions fo r the par ameter list fo r mor e details. Command Descri ptor Block 6 -B yte version Illegal Field Reservation De ferred Error Unit Attention 7 6 5 4 3 2 1 0 0 Oper ation Code (15h)
Commands 7 3 Comman ds 10 -B y te version CDB Fields: Spec ific Status: Fo l l o w i n g a s u c c e s s f u l M o d e S e l e c t c o m m a n d , U n i t A t t e n t i o n s t a t u s i s p o s t e d t o all initiator s other than the initiator o f the Mo de Select command. T h e sense 1 Reserved (0) PF R eser ved (0 ) SP (0 ) 2 Res er ve d ( 0) 3 Res er ve d ( 0) 4 Pa r a m e t e r L i s t L e n g t h 5 Contr ol 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 0 Operation Code (55h) 1 Reserved (0) PF R eser ved (0 ) SP (0 ) 2 (MSB) Res e r ved (0 ) 6 (LSB) 7 (MSB) P a rameter List Leng th 8 (LSB) 9 Contr ol PF Pa g e F o r m a t 0T h e MODE SELECT pa rameter d ata is no t SCSI-2 mode page c ompatibl e. Only the paramete r header an d bloc k descripto r may be se nt. 1 The para meter d ata is SCSI-2 m ode-page compatibl e. SP Save P ag es 0 This bit is not support ed and must be z ero. Param eter L ist Leng th 0 No data is transfe rre d. >0 T he length in b ytes of the MODE S ELECT paramete r list to be transfe rred.
7 4 Commands key i s se t t o UNI T A T TE NT ION . A dd iti onal sense is set to 2A01h (mode par ameter s changed). Mode P arame ter P a ges Mod e da ta i s r eco ve re d fr om t he dr iv e b y mean s o f a Mode Sense com mand. Aft er modifica tion , i t is r eturned to t h e dr iv e v ia a Mode Select command. In r eal -lif e, many ho sts d o not use Mod e S ense a nd r eturn whate ver Mo de Se lec t data suits them into the dr iv e . Mode P age R epr esent ation Certain con v en ti ons ar e used in the follo w ing Mode P aramete r pages in or der to descr ibe the nature of the parameter s. Most parameter s ar e giv en by name , fo l lo wed b y a num ber in brac kets . The br acke ts hav e the follo wing mean ings: Mode Data Form at Mode data c onsists of a 4 -byte header , opti onally follow ed by block descr iptor and Mo de P arameter pages: Square brac kets [ ] Square br ackets indicate that the parameter may b e modified. The numb er inside the brackets is the default value fo r the field—in other words, the power-u p or reset val ue. ■ M ODE SELECT may modify this value b y sending the page w ith a ne w v alue in the field. ■ M ODE SENSE ( cu rre nt va l ue s ) wi ll ret u rn t h e cu rre nt va lu e of t h e pa ra me t er . ■ M ODE SENSE ( def aul t values) will retur n the value in brack ets []. ■ M ODE SENSE ( changeable v a lues) will retur n a v alue of al l ones. Ro u n d brack ets ( ) Round brackets indica te tha t the param eter is fix ed. The nu mb er inside t h e b ra c ke t s i s the fi xed va lu e for th e f ield . ■ M ODE SELECT must se t the pa r a meter to th is val ue, other wise CHE CK COND IT I ON wi ll be rep or te d wit h a s ens e key of ILLE GAL RE QU E ST . ■ M ODE SENSE ( def aul t values) will return the fi xed value. ■ M ODE SENSE ( changeable v a lues) will retur n a v alue of al l z ero s. 7 6 5 4 3 2 1 0 1 (MSB) Mode P ar amete r He ad e r 3 (LSB)
Commands 7 5 Comman ds M o d e Pa r a m e t e r Pa g e s HP Ultrium dr i ves suppo r t the follo wing pages: ■ “Read- W rite Err or Reco very Mode P age ” on page 7 8 ■ “D isconnect-Rec on nect P age” on page 7 9 ■ “Contr ol M ode P age ” on page 81 ■ “Data Compr ession Log P age ” on page 7 0 ■ “Devi ce Conf igur ation P age” on page 83 ■ “M edium P artitions M ode P age ” on page 85 ■ “Fib re Channel Logical Unit Contr ol M ode P age ” on page 86 ■ “Fibre Chan nel P or t Cont rol Mo de P age” o n p age 8 7 ■ “Infor mation Ex ceptions Mode P age ” on page 89 ■ R eturn all pages (page 3Fh) — f or MODE SENSE onl y Mode P arame ter He ader T he Mo de P aramet er he ader mu st alw a ys be sent at the st a rt of Mode Select data . I t is alw ay s r eturned at the start o f M ode Sense data . 6- b yte He ade r The 6- b yte Mo de P aramete r header has the follo wing fo rmat: 4 (MSB) Mo de Blo ck Descriptor 11 (LSB) 12 (MSB) M o d e Pa r a m e t e r Pa g e s n (LSB) 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 0 M o de Data Len gth 1 Medium T ype [00h ] 2 WP Buffered Mode [00 1b] S p eed (0) 3 Block Des cr iptor Length
7 6 Commands 10 -byt e He ad er The 10- b yte M ode P arameter header has the f ollow ing for m at: Header Fields 7 6 5 4 3 2 1 0 0 (MSB) Mode Da ta Leng th 1 (LSB) 2 Medium T ype [00h ] 3 WP Buffered Mode [00 1b] S p eed (0) 4 Res e r ved (0 ) 5 6 (MSB) Block Descriptor Length 7 (LSB) Mode D ata L engt h MODE SELECT : Mode Data Le ngth field mu st be zero. MODE SENSE: Mode Da ta Length field is se t to the n um ber of bytes of data availa ble to return excluding itself (in other words, the number of actual bytes ava ilable is mode da ta length 1 fo r 6- b yte MODE SENSE or 2 for 10-byte MODE SENSE ). Note: The actual a mount returned may be truncated to the allocation l e ngth for t he c omman d. Medium Type 00h The usual medium type wh en the d r ive is in nor mal tape drive mode. WP W r ite P r o tect. Ignored fo r MO DE S ELECT . 0M ODE SE NSE : The tape is write -enabled 1M ODE SE NSE : The tape is write-pro te cted Buffer ed Mode 0 The drive will not report GOOD status o n WR I T E and WRI T E FI L E M A R K S co mman ds unt il all data (blocks and filemarks ) has been successfull y written to tape . 1 Th e dri ve w ill re port GOOD status for WR I T E and WR I T E F I L E M A R K S co mmand s as s oon as all th e data or m arks spec ified in the command have been tr ansferre d to the data buffer . Data for multiple comm ands from d ifferent i nitiat ors m ay be bu ffered. Th is is the default value. Note: It is st ro n g ly re c om mended tha t th i s fi eld is set t o 1, ot he r w ise t h er e wi ll be significant performance pe nalties. A m ethod of flushing the buff er to tape without changing logical p o sition is availa ble wi th the WR I T E FI L E M A R K S co mman d.
Commands 77 Comman ds Mode Bloc k Desc riptor The f ormat of the Mode P aramet er block descr iptor is as follo ws: M od e P a ram et e r B lo c k De sc ri p to r Fi el d s: 2 Th e dri ve w ill re port GOOD status for WR I T E and WR I T E F I L E M A R K S co mmand s as s oon as al l the da ta or m arks spe cified in th e comm and have been transferre d to the data buffer an d all buffered da ta from different initiators has been successfully written to the ta p e. This is t h e ma ximu m value. Spee d 0 The S peed fi eld is not use d and s hould be zero . Block Descriptor Leng th Only th e valu es 0 and 8 are v alid. Any v alue other than 0 or 8 , CHECK COND ITION status is reported. See the Parameter List check for details of th e sense da ta gene rated. 0 No bl ock descr iptor is b e ing transferre d. 8 The Mode P aram et er hea der must be foll owed by t he 8- byte bl ock de scr i ptor described in the next section . 7 6 5 4 3 2 1 0 0 Density Code 1 (MSB) Number of Blocks (0) 3 (LSB) 4 Res er ve d ( 0) 5 (MSB) Block Length [0 or 800h] 7 (LSB) Dens ity Code This specifie s the form at of the media lo ade d in the drive . See “REP ORT DENS ITY SUP POR T 44h ” on pag e 12 3 for de tails. Bloc k L en gth This indicates the size of fixed blocks fo r fixed mode REA D and WR I T E c o m m a n d s . I t i s a l s o u s e d i n the decision process on wh ether to report an il le gal length re cord on rea ds. 00h The defau lt va lue when the driv e is in normal tape drive mode .
7 8 Commands R ead- W rite Er ro r Reco v er y Mode P age The R e ad- W rit e Err or R ecove ry M ode P age has the f ollow ing for mat: Read-W rite E rror Recovery P ag e Fields : 7 6 5 4 3 2 1 0 0 P S (0) Rsvd (0) P age Code {01h} 1 Addit ional P age Length {0Ah} 2 R ese rved (0) TB (0) Res (0) EER (1) PER [0] D TE (0) DCR (0) 3 Rea d Re tr y Cou nt 4–7 Res e r ved ( 0) 8 Wr i t e R e t r y C o u n t 9–11 Res e r ved ( 0) TB Transfer Block 0 Alwa ys set to 0 , meaning that an unrecove rable d ata bloc k will n ot be tr ansferre d to the host. EER Enable Early Recovery 1 The drive sho ul d attempt error corr ectio n before per fo rming retries. PER Post Error. Althou gh this bit is changeabl e, the drive ’s inte rna l beha viour always corresponds to PER=0. 0 The drive do es not report CHECK CON DITION fo r recovere d errors. The DTE bi t mus t als o be zero . 1 The dr ive reports CHE CK CONDI TION for recov ered errors. DTE Disable Tr a ns fer on Er r or 0 Always se t to 0, meaning that the drive wi ll not terminate the transfer for errors recovered within the limits esta blished by the read-write er ror parameters. DCR Dis abl e Co rrection 0 Always set to 0, meaning that the use of error correction co de s for e rror recovery is allo wed.
Commands 79 Comman ds Disconn ec t -Reconnec t P a g e SCS I D r ive s The Discon nect-Recon nect P age has the follo wing format for S CSI d r ives: Read Retr y Count The nu mber of times the drive will attempt its recovery algorithm during a r ead operatio n befor e re po rtin g an unr eco ve r abl e erro r . 0 The drive w ill not us e it s re covery a lgorith m during read op erat ions. 15h The drive will atte mpt 21 retries. Write Retry Count The nu mber of times the drive will attempt its recovery algorithm during a write operation befor e re po rtin g an unr eco ve r abl e erro r . 0 The drive w ill not us e it s re covery a lgorith m during read op erat ions. 0Ah T he value for all Ultrium drives, giving 1 0 retries. 7 6 5 4 3 2 1 0 0 P S (0) Rsvd (0) P age Code {0 2 h} 1 A dditio nal P age Le ngth {0Eh} 2 Buffer F u ll R a tio (0) 3 Buffer Em pty R atio (0) 4 (MSB) Bus Inacti vity Lim it (0) 5 (LSB) 6 (MSB) Disconn ec t Ti me L imit [0] 7 (LSB) 8 (MSB) Connect Time Limit (0) 9 (LSB) 10 (MSB) Ma x im um B ur st S i z e [0 ] 11 (LSB) 12 Reserved (0 ) D TD C ( 0) 13–15 Res e r ved ( 0)
80 Commands FC Dri ves The Discon nect-Reconne ct P age has the follo wing format fo r FC dri ves: Disconnec t -Reconnect P age Fields: 7 6 5 4 3 2 1 0 0 P S (0) Rsvd (0) P age Code {0 2h } 1 A dditio nal P age Le ngth {0Eh} 2 Buffer F u ll R a tio (0) 3 Buffer Em pty R atio (0) 4 (MSB) Bus Inacti vity Lim it (0) 5 (LSB) 6 (MSB) Disconn ec t Ti me L imit [0] 7 (LSB) 8 (MSB) Connect Time Limit (0) 9 (LSB) 10 (MSB) Ma x im um B ur st S i z e [0 ] 11 (LSB) 12 EMDP (0) F AA [1 ] F AB (1) F A C (1) Re served (0 ) 13–15 Res e r ved ( 0) Buffer Full Ratio 0 Buffer ma nagement i s con trolled by the d rive, so th is should always be zero. Connect Time Limit 0 Buffe r manageme nt is con trolled by the d rive, so th is sh ould always be zero. Bus Inacti vity Limit 0 This parameter is no t supported and should be zero. Disconnect Time Limit 0 This parameter is not supp orted and should be zero. Connect Time Limit 0 This parameter is not supp orted and should be zero. Maximum Burst Size >0 Th e maximum amount of data that will be transfer r ed during a data -in or data-out phase before disconnecting. This field is in units of 512 bytes. The maximum burst size that the drive supports is 127 (7Fh) blo cks of 512 byte s, that is, 64 KB les s 512 bytes.. 0 Th e drive may se nd bursts of any siz e. This is th e defaul t value. EMDP (FC only) 0 Enable Modif y Data Pointers is not facilitate d by the driv e. T h e dr ive will alwa ys ha ve continually increasing and contiguous data relative offset values for FCP_DATA.
Commands 81 Comman ds Note If the hos t does not gr ant disconnect pr iv ilege in its IDE NT IFY mes sage t hese par amet er s become me a nin gles s. The d r iv e will stay co nnecte d on the b us for the d uration of an operation or until the host sends a mid-oper ation IDENTIFY gr anting disconnect pr iv i lege. Control Mode P a g e The Contr o l Mode page is defined as follo ws: FAA (FC on ly) This bit, together with FAB and FAC, indicate wh ether th e drive w ill use fa irness a rbitrat ion to send frames to the initiator. 0 Th e drive will no t use fa i rnes s when arbitrat i ng to send FCP_DAT A fram es. 1 The dr i v e will use f ai rnes s when ar bitr atin g to sen d FCP_D ATA f r am es. FAB (F C only) 1 The dr i v e will use f ai rnes s when ar bitr atin g to sen d FCP_X FER_ RDY fr ames. FAC (FC o n ly ) 1 T he dri v e will use fai rnes s whe n ar bitr atin g to sen d an FCP _ R SP fr a me. DTDC (SCSI only) 0 The D ata Transfer Disconnect Con trol field is not supporte d and should b e zero. 7 6 5 4 3 2 1 0 0 PS (0) Rsvd ( 0) P ag e Code {0Ah } 1 Pa g e L e n g t h { 0 A h } 2 T ST (0) Re served (0) GL TSD(0) RECL (0) 3 Queue A lgor ithm Modif ier (0) Rs vd (0) QErr (0 ) DQue (0) 4 Rs v d (0) RA C [0] Rese r ved (0) SWP (0) RAERP(0) U AAERP(0) EAERP(0) 5 Reserved (0) Au toload M ode 6 (MSB) R ead y AER Ho ld-of f P er iod (0) 7 (LSB) 8 (MSB) Bus y Timeout P eri o d (0) 9 (LSB) 10 (MSB) Exten ded Self- T est Com pletion T imeout ( 0) 11 (LSB)
8 2 Comman ds Control Mode P ag e F ields: Data Compr essio n Ch ar ac ter istics P age The Data C ompr ession Ch ar acter istics Mo de page is def ined as follo ws: Data Com pression Ch arac teristi cs M ode P ag e F ields: Autolo ad M ode 0 If a cartridge is inse rte d, the driv e pull s it in an d thre ads t he tape . 1 or 2 When a ca rt ridg e i s inse rt ed, th e driv e pulls it in b ut does not thread the tape. In this posit ion, onl y th e Cartr idg e Mem ory is acce ssi ble. All othe r values are inv al id. 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) Reserved (0) 3 DDE (1) RE D (0) Reserved (0 ) 4 (MSB) Co mp re ss i on A lg o ri t h m ( 1) 7 (LSB) 8 (MSB) D e c om pre s s io n Al g ori t h m ( 1) 11 (LSB) 12 Res er ve d ( 0) 15 DCE Dat a Comp ression E nable. Th is bi t cont rols wheth er the dri ve uses compr ession when writing. The value h as no m easning when reading, th at is, if the tape contains compr essed data , decompression will occur regardless o f the se tting of th is bit. The bit is ana l ogous to the Select Da ta Comp res s ion Alg or ithm field on the Device Configuration mode page (see page 84 ). 0 1 Compression is disa bl ed Compression is enable d DCC Data Comp ression Capa ble Read o nly. It will have the valu e of 1, ind icating that comp ression is su pported.
Commands 83 Comman ds De vice Co nfigura tion P a ge The d riv e supp or ts th e D ev ic e Con figu r a tio n P a ge, which has the fo llowing form at : DDE Data Decomp re ssio n Enable Rea d only. I t will hav e the value of 1, in dicating that comp ression is enabled. RED R eport Exc eption on De com pression Read on ly. It will have the value 0, meaning that the drive returns CHE C K CONDI T ION status wh en it encounter s data th at cannot be deco mpresse d. This ap plies when d ata has b een compress ed with a n unknown o r unsup ported compr ession a lgorithm. Compression Algorithm This indicates which compression algorithm will be used to process data from the h ost when the DCE bit is set to one. I f the host selects an al gorithm which the drive does not supp ort, CHE CK CONDI TION i s retu rned , wit h a sense key of ILLE G AL R E Q UE ST . Only the defa ult algorithm (ID 1) is supp orted. Decompre ssion Algorithm This will also always be 1, indi cating that the def ault decom pression alg orithm should be u sed. 7 6 5 4 3 2 1 0 0 PS (0) Rsv d (0) P age Code {10h} 1 Additi onal P age Lengt h {0Eh} 2 Rs vd(0) CAP ( 0 ) CAF (0) Ac ti ve F or mat (0) 3 Act ive P a rt i t io n ( 0 ) 4 W rite Buf fer F u ll Ratio (0) 5 R ead Bu ffer Empty Ratio (0) 6 (MSB) Wr i t e D e l a y T i m e : [ 0 1 2 C h ] 7 (LSB) 8 DBR (0) BIS (1) R Smk(0) A V C (0) SOC F (00) RBO(0) REW (0) 9 Gap Size (0) 10 EOD De f ined (000) EEG (1) SEW (1) Re se r v ed (0) 11 (MSB) Buffer Si ze at Ear ly W arning (0) 12 13 (LSB)
84 Commands Pre-Ex ec ution Checks: The only check made when this page is sent in Mode Select data is P arameter Li st. Cha ngeab le P aram eter s: Unchang eable P arameters: 14 S e l e c t D a ta C o m pre s s i o n A l go ri th m [ 1 ] 15 Res er ve d ( 0) 7 6 5 4 3 2 1 0 Write D elay Time This f ield ca n be mo dified by a MODE SELECT comm a nd, an d this chang e wil l be ref l ecte d in a subsequ ent MOD E SENSE comman d. H owever th e actual value us ed as the dela y time will r emain as zero , and so the data in the buf f er will never be flu shed. The de faul t value is z ero. The field is fu lly su pported. T he default value is 12 Ch, re presenti ng a 3 0 second time de lay. 0 The drive will ne ver fl ush buffer ed da ta to tape as a result o f a time-out . >0 The tim e in 100 m s increments that the drive shoul d wait with unwr i tten data in the buffer and no activity on the inte rface before forcin g data to tape . The dela y is timed from the compl etion of the pr ec edi n g WRI T E or WR I T E FI L E M A R K S command. Sele ct Data Compression Algori thm 0 Use Scheme 2 of the LTO-DC algorithm (pass-through mode). N ote that clearing this paramete r is not adv i s ed . 1 Use the default compression scheme. Th is is the default. PS 0 CAP 0 The Change A c tive Partition flag sho uld be 0 since multiple partitions are not supported. CAF 0 The Change A c tive Forma t flag sho uld be ze ro since chan ging forma ts is not supported. Activ e Forma t 0 Changing formats is not supported. Act ive Pa rtit ion 0 Multiple partitions a r e not su pported. Write Buffer Full Rat io 0 Buffer ma nagemen t is done by t h e d rive. Read Bu ffer Empty Ratio 0 Buffer ma nagemen t is done by t h e d rive. DBR 0 The Data Bu ffer Reco very flag should be clear since this fe ature is not suppo rted. BIS 1 The Block Identifiers Supp orted flag sho uld be set since block identifiers are supp orted.
Commands 85 Comman ds Medium P ar t itions Mode P a g e The Medium P ar titions Mode P age has the fo llo wing f or mat . Note that no ne o f th e fi eld s ar e chan geab le . T he P artit ion S iz e wi ll be pat r oni z ed . Rsmk 0 The Rep o rt Set Mark s flag sho u ld be clear since this featu re is not supported. AVC 0 The Automatic Velocity Control f lag should be clear since velocity co ntrol is managed by the drive. SOCF 0 The St op On Con secutive F ilema rks flag sho uld be c lear si nce t his featur e is n ot su pported . RBO 0 The Recove r Buffer O rder f lag s hould be clear since th is feature is n ot supported . REW 0 The Report Early Warning on re ad flag shou ld be clear since this feat ure is not supported. Gap Si ze 0 There is no concept of inter-block g aps in the format. EOC D efine d 0 EEG 0 The Enable EOD Generatio n flag should be se t since EOD generation is always enabled. SEW 1 The Synchr onize at Early Warning flag shou ld b e set sin ce this fe ature is supp orted. Buffer Size at Early Warning 0 The B uffer Size at Early Warning field should be zero as this ca nnot be set. 7 6 5 4 3 2 1 0 0 P a ge Code (11h) 1 P a ge Length (08h ) 1 Ma x im um A dd iti on al P art iti on s (0 ) 1 Additi onal P artitio ns De fi ned (0) 2 FDP (0) SDP (0) I DP (0) P SUM (11b) P OF M (0) CLEAR (0) AD DP (0) 1 Me di um F ormat Rec ognit ion (3) 3 Re se r v ed (0) P artition Units (9) 4–7 Re s e r ve d ( 0 ) 8 Pa r t i t i o n S i z e 9
86 Commands None of the fi elds in this mode page are c hangeable. F ibre C hannel Lo gical Unit C ontr ol Mode P a ge This page is supported fo r F ibr e Channel only: Maximum Additional Partitions 0 Zero is returned, indicating that no additional partitions are present or supp ort ed. Additi on al Part ition s Defin ed 0 Zero must be returned, indicating that n o additional partitions a re present or suppo rted. FDP 0 The Fixed Data Partitions bit is not supported and m ust be set to ze ro. SDP 0 The Select Data Pa r titions bi t is not supported and must be set to zero. IDP 0 The Initiator Defined Pa rtitions bit is not supp o rted and must be se t to zero. POFM 0 The Partitions on Format bit is set to zero since the drive does not support the FORM A T ME D IU M command through which the tape could be partitioned. CLEAR 0 Set to zero indicating SC SI-2 compatibility. ADDP 0 Set to zero indicating SC SI-2 compatibility. Medium Format recognition 3 This indicates that the drive is capab l e of format and partition recognition. PSUM 3 Partition Size Unit of Me asure: The value o f 11b indicates that the units of measure for the Partition Size descriptor are defined by the Partitions Units field : 1 0 (Part iti on Units) byt e s . Partition Units 9 This defines the units of the Partition Size fie ld as 10 9 bytes, in other w ords in gigabytes. Partition Size 100 Gen 1 tape load ed 200 D efault valu e. No data cartrid g e prese nt or Gen 2 tape loade d. 7 6 5 4 3 2 1 0 0 PS (0 ) Rsv d (0) P age Code {18h} 1 Pa g e L e n g t h { 0 6 h ) 2 Re s e r ve d ( 0 ) 3 R ese rv ed (0) EP DC[1 ] 4–7 Re s e r ve d ( 0 )
Commands 87 Comman ds F ib r e Cha nn el P ort Co nt r ol Mo de P age This page is supported fo r F ibr e Channel only: The F i br e Chan nel P or t Con tr ol P age allo ws you to set the initiali za tion and addr essing behavi or of the Fibr e Channel interf ace. EPDC 0 The ta rget d oes not us e th e preci se del ive ry f unct ion an d ig nores the cont ents o f the CR N fiel d in the Fi bre Chan nel E xte nded Link S erv ice F CP_CNTL . H P Ultrium drives support this feature by defa ult. 1 T he log ical u nit uses the pre cis e de liv ery fu nc tion de fin ed in the FC P-2 stan d ard. It makes use of th e CRN field. 7 6 5 4 3 2 1 0 0 P S (0 ) Rsvd (0) P age C ode {19 h} 1 Pa g e L e n g t h { 0 6 h ) 2 Re s e r ve d ( 0 ) 3 Rs vd (0) PLPB[0] DDIS[0 ] DLM[1] RHA[0] AL WLI[0] D TIP E[0] D T OLI[0] 4–5 Re s e r ve d ( 0 ) 6 Re served (0) RR T O V Unit (3) 7 Reso u r c e Rec over y Ti m e - Out V a l u e PLPB Prevent Loop Po rt Bypass 0 The target allows the Loop Por t Bypass (LP B) and L oop Port En able (PBE) primitive se quences to contr ol the po r t bypass circuit. 1 The target ignores any Loop Port Bypass (LPB) and Loop Port Enable (LPE) primitive sequen ces. Th e loop port remain s enabled. DDIS Disable Discovery 0 The targ et must w ait to receive a n Addre ss Discov ery Link S ervice (A DISC) or Port Dis covery Link Service (PDISC) before it resumes pro cessing tasks for the initiato r. 1 The target does n ot require receipt of address or Port Discovery following loop initialization. It resum es pr oc e ssi n g of tas ks on comp letion of loop i n it i aliz a tion.
88 Commands DLM Disab le Loo p Mas t er . The drive will never attempt to b e a loop master. 0 The targe t may become lo op mast e r during the loop initial ization p roces s. 1 Th e ta rg e t do es n ot b ec om e lo o p m a st er . It o nl y re p ea ts L IS M f r am e s i t re ce i ve s . Th is a ll ow s the initiator to be loop ma ster during loop initialization. RHA Req uir e Har d Addr ess 0 The target follows the normal initialization pr ocedure, including the possibility of obtaining a soft addres s during the loo p initialization pro cess. 1 The target only attempts to ob tain its hard ad dress availa ble in the SCA conne ctor or device address jumpers during loop initialization. The target does not attempt to obta in an address during the LISA phase of initial ization. ALWLI Allow Lo gin Without Loop Initialization 0 The target is required to verify its a ddress through the loop initia lization process be f or e a login is accepted. 1 The target us es the h ard addr ess av ailabl e in the SC A connec tor or de vice add ress jump ers and acce pt logins with out ver ifying the ad dress with loop initia lization. DTIP E Disable T ar get In it i a t ed Por t Ena ble 0 The target enables its port into the loop without wa itin g for a Loop Port Enable primitive. 1 The target waits for an initiator to send the Loop Port Enable primitive before inserting itself into the loop. The target uses the hard ad dress av ailable in the S CA conn ector or device address jumper s to determine if primitives ar e addresse d to it. A Loop Port Enable primitive with the br oadcast a ddress also ca uses the target to insert itse lf into the loop. DTOL I Disab le Target Originated Loop Initial ization 0 The target generates the Initializing L IP after it enable s a port into a loop. 1 The target does not generate the Initializing LIP fo llowing insertion into the loop. The target will respond to an I nitializing LIP when it is received. The target generates the L oop Failure LIP if it detects loop f a il ure at its input and the Initial izing LIP when t he loop failu r e i s corrected. RR TOV Un it Resource Recovery Time-Out Value Unit. The fi eld specif ies th e unit of measure as f ollows: 0 No timer specified 11 m s 31 0 0 m s 5 10 000 ms Resource Recove ry Time-Out Value The value cannot be changed through MOD E SELECT , but may chan ge as a res ult of Fab ric Login, FLOGI, which changes th e E_D_TOV on which this timer is based.
Commands 89 Comman ds Informati on Ex ception s Mode P a g e The Inf orma tion Excepti ons Mode page is used to contr ol ex ception r eporting through the “T apeAlert Log P age” on page 6 7 : 7 6 5 4 3 2 1 0 0 P S (0) Rsvd (0 ) P age Cod e {1C h } 1 Pa g e L e n g t h { 0 A h ) 2 P erf (0) Re s e rv ed (0) DEx cpt T est Rsv d (0 ) Lo gEr r (0) 3 Reserved (0 ) MRIE (3 h) 4 (MSB) Interval Timer (0 ) 7 (LSB) 8 (MSB) R epor t Coun t/T est F lag N umber 11 (LSB) Perf 0 Informational exception ope rations that cause d elays are acceptab le. DExcp t Disa ble Exce ption Con tro l. It m ust b e ze ro when the Test Flag Numbe r is z ero. W hen the Tes t Flag N umber contain s a valid non-zero value, the DExcpt f lag can be 0 or 1. 0 Information exception operations are enabled. T he reporting of information ex ception conditions is determined from the M RIE field. 1 A D Exc pt bit of on e indi cates the t arge t will disa ble al l in forma tion excep tion operat ions . The method of reporting informational exceptio ns field is ignored when DExcp t is set to one. Test 0 If the Test fl ag is clear t he nex t comm and w i ll be pro cess ed nor mall y. 1 A test bit of o ne will generate fal se informational ex ception conditions. As a r esult, the next SC S I command af ter the Mode Select will retur n CHE CK CO NDI TION with a se nse key of RE CO VERED ERR OR and additio nal sense of 5DFFh (failure prediction threshold excee ded - fal se). The T est bit will never be re ad as 1 when p erforming a M ode Sense command. T his is n ot an indication that the dr ive is in test mode. For exam ple, u sing the Te st bit and Test Fl ag Num ber, it may be possibl e to set a flag with the DExcpt bit set to 1. Whe n the DEx cpt bi t is next set, the drive will repo r t CHE CK CONDIT ION with a sens e ke y of RE COVERED ERROR and ad ditional sense o f 5DFFh ( failure prediction thresho ld ex ceeded - fals e). In orde r to set the DExc pt bit again, n ote that the Test bit must still be set during the Mod e Sele ct comm an d.
90 Commands Note that if an attem pt is made to set or clear a f lag that is not su pported b y the drive , CHE CK CONDI TION will be r epor ted w ith a sense ke y of I LLE G A L REQUE ST and additional sense of 2 600 h (in valid f ield in parameter list). LogErr 0 Log Erro rs bit. This b it must be zero, indicating that the logg ing of informational exception conditions within the drive is vendor-specific. MRIE Method of Reporting I nformational Exceptions 3h This field indicates the method used by the target to report informational exception conditions and m ust be set to 3. The target will report informational exception conditions by re t u rn ing a CHECK COND ITION status on a n y command. Th e sens e key w ill be set to REC OVERED ERROR with additional sense of 5D 00h (failure prediction thr eshold excee ded) . The c omm and t h a t has t he CHE CK CONDI TION wil l complete without error before any infor mational exception condition may be r eported. Inte rv al Ti m e r 0 Must be zero, indicating that the drive only reports an informational e xception condition once. Report Count/Test Flag Number 0 If the Test bit is zero, this field is the Report Count and must be ze ro, indicating that the re is no limit on the number of times the drive can repo rt an informational exception condition. n If the Te st bi t is one, thi s fiel d is the Test Flag Numb er, that is, the n umb e r of a suppo r ted TapeAlert flag. The target will generate a test inf ormational exceptio n condition. As a result , the nex t SCSI command after Mode S elect will r eturn CHECK CON DITION with a sens e key of REC O VERED ERROR and additional sense of 5DFFh (failu r e predictio n thre sh old e xceed ed - fals e) . The follo wing are valid se tti ngs: 1 through 64 This sets the TapeAlert flag wi th this number in the Log page. - 1 through - 64 (FFF FFFFFh –FFFFFFC0 h) This clea rs the Tape Alert flag indi cated by th e abso lute value of the Tes t Fla g N umber. 32767 (7FFFFh) This sets all the Tape Alert flags sup ported by the target in the Log p age .
Commands 91 Comman ds MODE SENSE 1Ah/5Ah M ODE SEN SE a llo ws the dri ve to r eturn its cur rent conf igurati on and r eport whic h confi gu r ation par ameters can be changed thr ough MODE SELE CT . The mode sense header , block descr iptor (optio nal) , and zer o or mor e of the ar e sent to the host . M ode pages contain dri ve conf igurati on pa r ameters. Some of these par ameters ar e fix e d , other s ar e c onf igur able (thr ough the MOD E S EL ECT comm and). The host should use M ODE SENS E to determi n e whic h dr ive par ameters ar e co nf igur able and what their c u r rent v alues are befo r e using mode select to alter them . Note See MOD E S EL ECT on pag e 7 2 f or full desc riptio n s of the Mode Pa r a m e t e r s . I f a M ODE SEN SE command is issued whilst an imme diat e r epor ted L oad comm and is ex ec uti ng or c los e to compl eting th en the v a lues o f some par ameter s i n some mode pages which depend on the r esul ts of the load ma y be undefined . Similarly , the write-pr otect fi eld in the M ode P aramet er Header will be unstable unless a cartri dge is pr esent and mediu m r e m oval i s prevented. Pre-Ex ec ution Checks: The page code f ield must contain a v al id mode page code or the value 0 or th e v alue 3Fh . If it doe s no t the n CHE CK C ON DI T IO N statu s is r e ported . Sense data w ill b e as desc ribed in the Illegal F ield Checks. Command Descr iptor Bl oc k: 6 -B yte V ersio n Illegal Field R eservation Deferred Error Unit Attention 7 6 5 4 3 2 1 0 0 Operation Code (1Ah) 1 Res er ve d (0 ) D BD Rese r ve d ( 0 ) 2 PC P a g e Co d e
9 2 Comman ds 10 -B y te V er sion CDB Fields: 3 Res er ve d ( 0) 4 Alloc ation Leng th 5 Contr ol 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 0 Operation Code (5Ah) 1 Res er ve d (0 ) D BD Rese r ve d ( 0 ) 2 PC P a g e Co d e 3 (MSB) Res e r ved (0 ) 6 (LSB) 7 (MSB) All ocation L ength 8 (LSB) 9 Contr ol DBD Disable Block De scriptors flag 0 Allows the drive to return the MOD E SE L E CT bl oc k des crip t or. 1 Prevents the drive from returning the MODE S ELECT block desc ripto r. PC Page Control —Indicates the type of page parameter values to be returned to the host, as shown in the follow ing table: 7 6 Descr iptio n 00 Repor t Curr ent V alues : the current values of the parameters are retu rned. 01 Report Ch an g ea ble Valu es: the page re tur ned has its non-ch an ge abl e par am ete r fiel ds cle are d t o 0. The f ields that are ch an g eab le are s et to al l 1’s. 10 / 1 Report Def au lt Valu es : the page return ed cont a ins the po wer-o n /re set/b us -dev i c e- reset val u es of the m ode param eters. Page Co de This allows the host to sel ect any spec ific pag e, or all the pages su ppo r t ed by the drive. 0 The drive returns no mode page s, so on ly the hea de r an d blo ck des criptor are return ed.
Commands 93 Comman ds Any mode page co de The dr ive returns that page. 3Fh The drive r e turns all m ode pag es. Allocation Leng th Specifies the number of bytes that the host has all ocated for returned MOD E S ENS E data. 0 No data transfer will o ccur. This is not considered an e rror. n T he maximum nu mber of by tes which th e drive should return in its data-out phase. Either the entire mode p age or allocation length bytes of the page are returned, whichever is least.
9 4 Commands P REVENT/ALL O W MEDIUM REMO V A L 1Eh P REVENT / ALL OW MEDIU M RE MO V A L tells the dri ve to enable or disable the re m o v a l o f t h e c a r t ri d g e. When car tr idge r emoval is pr even ted, the fr ont panel eject but ton is c ompletel y disabled (though a ‘for ced eject’ will still wor k) . An Unload command issue d b y a hos t will re sult in CHE CK CONDI TION . T he sense k ey will be ILLE GA L REQUE ST or MEDIUM REMO V AL PREVENTED . When cartri dge r emov al is enabled , pressing the fr ont panel e ject button or sending an Unload comm and fr om a host will c aus e the media to be unloaded and ejected . R emo v al pr ev ent ion is on a per -ho st basis . Al l th e h os ts h av e to al lo w medi a r e moval for a n y of th em to do so. Note If a fir mw a r e upgrade is initiated o ver an y interface , the cartridge will be ejected fr o m the dri ve regar dless of the state of this co mmand . Pre-Ex ec ution Checks: Command Descri ptor Block: CDB Fields: Illegal Field Reservation Deferred Error Unit Attention 7 6 5 4 3 2 1 0 0 Operation Code (1Eh ) 1–3 Res er ve d ( 0) 4 Re s er ve d ( 0 ) Pre ve n t 5 Contr ol Pr event 00b Medium re moval is allowed for th e drive 01b Media removal is prohibited f or the drive 10b, 11b Invalid
Commands 95 Comman ds READ 08h READ tr an sf er s ze ro or mor e data bloc ks to the host st arting at the cur r ent logical p osition. Pre-Ex ec ution Checks: If both the SILI and F ix ed bits ar e se t , CHECK C ONDIT ION statu s is report ed. Sen se dat a is a s d esc ri bed in t he I lle gal F iel d Ch ecks . Th e f ie ld poi nte rs ind ica te the F ixed bit field. Note T ransf ers o f 4 b ytes or less ar e not support ed. Command Descr iptor Bl oc k: CDB Fields: If the F ix e d flag is c lear and T ransf er Length is not ze r o, then a single block of the lengt h in T rans fer Len gth is to be transf err ed. I f the next blo ck on ta pe is of thi s len gth or s horte r i t is trans ferr e d to the i ni t iator . I f th e next blo ck is long er than this leng th , only the length r equest e d is r eturned and the l ogical positi on is set to a fter the record. If the len gth of the b lock was th e sa me as the T rans fer Lengt h field, GOOD status is r eturned . If the length of th e block w as not the same as in T ransf er Length and the Suppr ess Illegal Length Indicator (S ILI) flag was c lea r , Check Conditio n status is r eturned , ILI will be report e d as desc ribed belo w . If the l ength o f t he bloc k w as n ot the same a s in T ransf er L ength and the Suppr ess Illega l Length Indicato r (SILI) flag w as set , Good st a tu s is re t u rne d. Ill egal Field Fixed B it Reservat ion Deferre d Err or Unit Attention Media Access Diagnostic Status 7 6 5 4 3 2 1 0 0 Oper ation Code (08h) 1 Res er ve d( 0 ) SI L I F ixed 2 (MSB) Tr a n s f e r L e n g t h 4 (LSB) 5 Contr ol
9 6 Comman ds If the fi x ed f lag is set and the T r ansf er Length f ield is not z e r o and the Suppr ess Il lega l Leng th Indic ator (S ILI ) flag is cl ear , a sequ ence of bl ocks of the curr en tly c o n fi g u r e d b l o c k l e n g t h i s t o b e r e t u r n e d , t h e n u m b e r o f b l o c k s b e i n g i n d i c a t e d i n th e T ran s fe r Le ng t h fie ld. I f t he re i s a s eq ue n ce o f bl oc ks o f th i s l e ng t h o n th e tape, th ey are returne d to the i ni tiator with GOOD status. If a b lock that is long er th an th e c onfigu r e d l ength is en countered before the sequ enc e is comp lete, the blo cks up to th at b lock are returne d fol low e d by th e c onfigu r e d leng th f r om the r e co r d that w a s t oo l ong an d Check Cond ition status (ILI w ill be r eported as desc ribed below). I f a block that is shorte r than the configur ed leng th i s en cou ntered be for e the sequ ence is comp lete, the blo cks up to th at block ar e retur ne d f o llo wed by all of that bloc k and Check Conditio n status (ILI will be r eported as descr ib ed belo w). T he cur ren t position is set afte r the last block th at wa s retur ned or partially r eturned SILI Suppress Incorrect Length Indicator 0 The read operation is te rminated when the length of a block (o n the tape) differs from the Transfer Leng th . Tran sf er Len gth by tes of dat a will h av e be en tra ns fe rred . T he log ical tap e position w ill be the EO M side of the illegal size d blo ck. 1 The drive will not repo rt CHECK CONDI TION status if the onl y error is that the Transfer Length is not equal to the actual block length r ecorded on the media. Fixed 0 The Transfe r Length fie ld specifies the le ngth of the transfer in bytes. A single block of th e len gth in Tr an sfer Le ngth is to be transferred. ■ If the next bl ock on tape is of T ransfe r Length , it is tr ansfer red to the initiat or and GOOD s tatus is r etur ned . ■ If the next blo ck o n tap e is not of T ransfe r Leng th: ■ If it i s s horte r , the wh ole bl ock i s tran sferr e d to the i ni t iator . ■ If it is longer , only th e length r e ques ted i s r eturned and the logical positi on is set to afte r the r ecor d . ■ If SILI = 0, CHECK CON DITION status is r eturned . ILI is reported a s de sc ribed bel ow . ■ If SILI = 1, GOOD s t at us i s re tu rn e d.
Commands 97 Comman ds Read Spec ific Stat us: 1 The Tran sfer Leng th field sp ecifies the length of the tran sf er in blocks. The si ze of each block (in bytes) is specified by the current block length s pecified in the Mode Parameter block des c rip tor. If SIL I = 0, a sequence of blocks o f the cu rrently conf igured blo ck leng th is to be re turned, the numb er of blocks being indica ted in the Tran sfer L e ngth field. ■ If ther e is a sequence of bl ocks of this length on the ta p e , they ar e r eturned to the initiat o r w ith GOOD status. ■ If a block that is shorte r than the conf i gu r ed length is encounter e d befo re the sequen ce is com plete , the bloc k s up t o that bloc k ar e r eturned f ollow ed by all of that bloc k and CHE CK CONDIT ION s tatu s (ILI w ill be reported as desc ribed belo w). The cur re nt position is set after th e las t block that w as r etur ned . ■ If a block that is longe r than the confi gured length is enco u nte red bef or e the sequen ce is com plete , the bloc k s up t o that bloc k ar e r eturned f ollow ed by the configur ed length fr om the r eco r d that was too long and CHE CK CONDI TION st atu s (IL I w ill b e r epor ted as d esc r ibed be lo w). T he c ur re nt po siti on is se t aft er the last bloc k that was partially r eturned . Transfe r Leng th 0 No data is transferred. This is not considered an error and the current logical p osition will be unchang ed. >0 The amou nt of data to b e tra n s ferre d, in by tes o r bl ocks as spe cifie d by t h e F ixed f ield. Note: Transf ers of 4 by tes or less a re not supp orted. Event Status Ke y Notes SIL I er ro r CHECK COND’N NO SENSE ILI an d Valid bits are set. Th e infor mation bytes will be set as fol l ows: Variable B lo ck Mode : Th e d iffer ence be tween th e requ es ted Tra nsfer Length and the a ctu al block size. If the block size is bigger than the Transfer Length, this w ill be negative (twos compl ement). Fixed Blo ck Mode : T he diff erence betw ee n the requ ested num ber of record s and the number of whole good reco rds transferre d. If the las t record was under length, it is consid ered “whole good” for the purp oses of th is ca lculati on. File mark encountere d during a read CHECK COND’N NO SENSE The Mark b it is set. Logical po sition wil l be on the E OM side of the filemark . Additional sense is 0001h (filemar k detecte d). The logi cal position wil l be on th e EOM side of the filemark. Residue information is as describ ed be lo w. EOD encountere d during a read CHECK COND’N BLANK CHECK Additiona l sense is set to 0005h (EOD dete cted). Residue infor mation is as describ ed be lo w. EOP/M encountere d during a read CHECK COND’N MEDI UM ERROR The EOM bit is set. Additional sense is set to 0002h (EOP/M de tected). Residu e informa tion is a s described b elow.
9 8 Comman ds Note E arl y warning end of medi um info rmati o n is not r eported on r eads. Re sidu e Info rmat ion : T he V ali d bi t will be set . T he inf or mati on b yte s w ill be as fo llo w s: Fail ure to r ead da ta through media error o r non- fatal driv e er ro r CHECK COND’N MEDI UM ERROR Additio na l sense is set to 1100h ( unre cover ed read error) or 3B0 0h (sequential positio ning error). Residue information is a s described below . Corrupt d ata forma t CHECK COND’N MEDI UM ERROR Additio nal sense set to 3 002h (ca n’t rea d media) . Blan k media encountere d during a read CHECK COND’N BLANK CHECK Caused by an atte mpt to read an unformatte d tape. Add itional sense is set to 5 000h (EOD not found). R esidue informa tion is as shown bel ow. Event Status Ke y Notes V ari abl e Bloc k Mod e The requested transfer length (in bytes ). Fixe d B lo c k M o d e The difference (in blocks) between the requested transfer size and the actual nu mber of blocks tran sfe rre d. A par t ial ly tran sf er red blo c k is not counted , so for example, if 3.5 out of 10 blo c ks hav e b een tr an sfer red t h e residu e will be 7. If the last b lock is an ill egal le ngth bloc k, it is not counte d among those transf erred. For example, if 4 lega l length blocks and 1 ill egal len gth blo ck hav e been transfe rred out of a total of 10, the residue will be 6.
Commands 99 Comman ds READ A TTRIBUTE 8Ch Th e READ A TTRIB UTE command al lo ws an application cli ent to r ead attr ibute values t o MAM (Medi um Au xili ar y Memory) and also to discov er what M AM e xists at the de vice serv er . Pre-Ex ec ution Checks: If the MAM is not acces sible becaus e the re is no tape in the dr iv e, CHECK CO ND ITI O N is r eported w ith a sense k e y of NO T R EAD Y and additional sense of 3A0 0h (m edium no t pr ese nt). If the MAM is not accessible ev en though a tape is in the dr iv e, CHECK CO ND ITI O N is r eported w ith a sense k e y of MEDIUM ERROR and additional sense of 0410h (Me dia A u xiliary Memory is not accessible). If the MAM ha s fail ed, CHE CK CONDI TION is r eported with a sense k ey of MEDIUM ERROR and additional sen se of 1112h (M edia A ux iliary Memory re a d e r ro r) . Command Descr iptor Bl oc k: Illega l Field Fixed Bit Flag Link Bad LU N Reser vati on Defe rred E rror Unit Attention Media Access Diagnostic Status 7 6 5 4 3 2 1 0 0 Operation Code (8Ch) 1 Reserved (0 ) Service A ction 2 (MSB) Element Address (0) 3 (LSB) 4 Element T ype Cod e (0) 5 Vo l u m e N u m b e r ( 0 ) 6 Res er ve d ( 0) 7 Pa r t i t i o n N u m b e r ( 0 )
100 Comman ds CDB Fields: 8 (MSB) F irst A t tr ibute ID 9 (LSB) 10 (MSB) All ocation L ength 13 (LSB) 14 Res er ve d ( 0) 15 Contr ol 7 6 5 4 3 2 1 0 Serv ice Ac tion Service actio ns are defi ned a s follo ws. Th e da ta ret urned for e ach Se rvice Actio n is descri bed below. Code Name Descrip tion 00h Attribu te Val ues Returns the attribute values. 01h Attribu te List Returns a list of attribute identifiers ava ilable) no n -existent. 02h Volume List Returns a list of vo lume nu mbers availa ble. 03 h Partition List Returns a l ist of partition n umbers av ailable. 04h–1F h Reserve d Elemen t Address Set to zero to indicate that Ult r ium tape s only support a single e lement. Elemen t Type Co de Set to zero to indicate that Ult r ium tape s only sup port a single e lement. Volume Number Set to zero to indicate that Ult r ium tapes only suppo rt a single volume. Partition Number Set to ze ro to indicate that Ult r ium tapes only suppo rt a single partition. First Att ri b u t e ID The identifier of the first attribute to be re turned. This is not checked if the Service Action value is 01h (Attribute List).
Commands 10 1 Comman ds Returned Da ta for Ser vice Act ions: Attribute V alues Ser vice Action T his serv ice r eads t he v alues o f attr ibu tes f or th e sp ec if ied v olu me and partition , starting at the F irst Attr ibute ID . The attr ibutes ar e re turned in ascending numer ical or der . The for mat of the retur ned data is as follo ws: F or details of the av a ilable attr ibutes and the format o f the data r eturned for each, see “MAM Att r ibute Data” on pa ge 1 03 . Attribute List Serv ice Action This service action is used to retr ie ve all the identi f iers of the av ailable at trib ut es f or th e sp ecif ied v olume and partiti on . The F ir st A ttr ibut e ID f ie ld in the CDB i s ignor ed. The attribute identif iers ar e returned in asc ending numeri cal or der . The f ormat of the r eturned data is as follo ws: 7 6 5 4 3 2 1 0 0 (MSB) Ava i l a b l e D a ta ( n - 3) 3 (LSB) 4 Attr ibu te 1 a :: m At tri bu te x n 7 6 5 4 3 2 1 0 0 (MSB) Ava i l a b l e D a ta ( n - 3) 3 (LSB) 4 At tri bu te I D 1 a : : m Attr ibute ID x n
102 Comman ds The A vailable Data fi eld spe c i f ies the leng th i n b ytes of th e foll ow ing data . If the amount o f parameter dat a sent t o the appli cation cli ent is reduced due to in suf fic ient al loc atio n le ngth, the Av a i lable Data field shall not be a lter ed. A two-b yte A ttr ibu te ID is r etu rned f or e ach attr ibut e av ailabl e on th e de vi ce server . See “ Attr ibute ID V alues ” on page 10 4 f or a desc r iptio n of the A ttribute ID v alue s. P artition List Service Action The P ar tition List service action is used to report the number of partitions that the de vi ce server su pports for th e spec ified v olume. T h e P artition Number and Attr ibute f ields in the CDB are i gnor e d . The infor m atio n r eturned is as foll ow s: The F i r st P artition Number is the f irst partition av a ilable on the spec ified v olume . Since Ultr ium dri ve s do not support m u ltiple partitio ns, this is 0. The Number of P ar titions A vailable indicates the number of pa rtitions av ailable on the spec ifi ed volume . Since Ultrium dri v es do not support m ultiple partitions, t his is 1. V o lume List Service Action The V o lum e List ser vice a ctio n i s use d to r epor t th e nu mb er of volum es that the de vi c e ser ver su pports. The V o lume Nu mber , P arti tion Number and Attribut e fi elds in th e CDB ar e ignor e d . T he infor mation r eturned is as fo llow s: T he F irst P a rtiti on Number is the f irst v olume. Since Ultr ium dri ves do not support mu ltiple volumes, this is 0. 7 6 5 4 3 2 1 0 0 (MSB) A vailable D ata (2) 1 (LSB) 2 Fi rs t Par t i t i on N u m b er ( 0 ) 3 Numb er of P arti t ions A vailabl e ( 1) 7 6 5 4 3 2 1 0 0 (MSB) A vailable D ata (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 A vai lable (1)
Commands 103 Comman ds The Number of V olumes Av ai lable indi cates the number of par titions av ailable. Since Ultrium dr iv es do not support multiple volumes, this is 1. MAM At trib ute D ata Attr ibute data s ent with a W RI TE A TTRIB UTE command o r r etur n ed in r esponse to a RE AD A TTRIB UTE command has the f ollow i ng for m at: The f o r mat im pli es no thing abou t t he ph y sical re pr esentation o f the da ta in the Medium A ux iliary Memo r y . 7 6 5 4 3 2 1 0 0 (MSB ) Attr ibute ID 1 (LSB) 2 R e ad- Only Reserved (0) F ormat 3 (MSB ) Attr ibute Leng th ( n - 4) 4 (LSB) 5 (MSB ) Attr ibute V alue n (LSB) Attribut e ID Th e b inary ide n t ifier for a sing l e attri bute. See “ Attribu te ID V alues ” on page 104 fo r a desc riptio n of att r i bute ID values . Read- Only Spec ifies wheth er an attrib ute is re ad-only. Th e bit is i gnored by the R EAD A TTRI BUTE comma nd. 0 The attri bute may be changed b y the WRITE A T TRIB U TE comman d. 1 The attri bute cannot b e changed by WRITE A T TRI BUTE . Format Specifies the data format of the attribu te. The possible values are: Va l u e Desc ription 00h Binary. T he attribute contains binary data. 01h ASCII. Attribute s contain o nly graphic code s (code va lue s 20h–7Eh) and must be lef t-al igne d. 02 h T ext. The attribute contains te xtual data. The character set is a s described in th e Text Local ization Identifier attribu te in “Host Co mmon Attr i b utes ” on page 10 7 . At tr ibute L en gth The len gth in byt e s of the Att r i bu te V alu e fi e ld.
104 Comman ds Attribu te ID V alues The values in t he Attribute ID field are assigned acc or ding to the source of changes or u pdates as f ollo ws . De vice Common Attrib utes The de vice serv er maintains and updates the contents o f these attr ibut es w ithin th e MAM when it and t he assoc iat ed tape a re p re sent . All t he at tr ibut es ar e read -o nly ( Read - On ly bi t set to 1 ) . At tri bute I D Des c rip tion 0000h –03FFh D evice Comm on Attribu tes 0400h–0 7FFh Medium C ommon Attribute s 0800h–0 B FFh Host Commo n Attributes 0C00 h–0F FFh Device Vendor- Uniqu e Attrib utes 1000h–1 3FFh Med ium Vendor- Unique Attributes 1400h–1 7FFh Hos t Vendor-U nique Attr ibutes 1800h–F FFFh Res erved ID Attribute Name Siz e in Byt es For ma t 0000h Remaining Capacity in Partition 8 Bin ary 0001h Maximum Capacity in Partition 8 B inary 000 2h T a pe Alert Fl a gs 8 Bin a ry 0003h Lo ad Count 8 B inary 0004h MA M Space Remaining 8 B inary 0005h Assignin g Organi zatio n 8 AS CI I 0006h For matted Density Co de 1 B inary 000 7 h–0209h Reserv ed 0 20Ah Device Mak e/Serial Numb er at Last Load 40 AS CII 0 20Bh Device Make/ S er i al Nu mb er at Lo ad –1 40 AS CII 02 0 C h Device Make/ S er i al Nu mb er at Lo ad –2 40 AS CII 0 20Dh Device Make/S er i al Nu mb er at Lo ad –3 40 AS CII 020Eh–0 2 1Fh Reserv ed 02 20h Total MB Written in Medium Life 8 Binary 02 21h Total MB Read in Medi um Life 8 Binary 02 2 2h Total MB Written in Curr ent/Last Lo ad 8 B inary 0223 h T o t a l M B Re a d i n Cu r r e n t /L a s t L oa d 8 B i n a r y 022 4h– 03F Fh Re ser v ed
Commands 105 Comman ds Remaining Capacity in P artition and Maximum Capacity in P artition These are native capa cities in MB, ass um in g no data compr ess ion. Load Count The nu mber of times t his tape has been ful ly loa ded. This parameter sh ould not be reset by any action of the device server. MAM Space R e maining The space currently free in the MAM. The total MAM capacity is reported in the MAM Capacity attribute defined in “Med ium Common Attr ibut es ” on page 106 . Note that it m ay not always be possible to use all the free sp ace in a given MAM imple m entation. Depending o n th e intern al or ganiza t ion of the memo r y and t h e sof t war e t h at co n tro ls it, fragme nt a tion issues ma y me an that certain attribute size s might not be ful ly accommodated as the MAM nears its maxi mum c apaci ty. Dev ice Ma ke/Ser ial Nu mber at Last Load and Devic e Make /Se rial Number at Load – n These attrib utes pro vide a rollin g history of t he last four device ser vers in which the tape has been loade d. The form a t of the attributes is as follows: 7 6 5 4 3 2 1 0 0 (MSB ) V endor Identif i ca ti on 7 (LSB) 8 (MSB ) Pr oduc t Ser ial Num ber 39 (LSB) Vendor Identif ication The s ame va lue a s is retu rned i n the SCS I INQUIR Y command by the device server. If the vendor identification is not availab le, the device server will return ASCI I spac es (20h). Product Se rial Numbe r A ven dor-assigned serial n umber. If th e product ser ial num ber is n ot avail able, the devi c e se rv er w ill re turn ASCI I spa ces (20h). Total M B Written in Mediu m Lif e and Total MB Read in M edium Life The total number o f data bytes that are transfe rre d to or from the tape surface (after a ny data comp r ession has bee n applied) over the ent ire tape life. These figu res ar e cum u l ativ e and w i ll nev er be re set. Total M B Written in Curre nt/ Las t L oad and Total MB Read in Current/Last Load These are similar to the attributes above but apply to the current load ( if the tape is currently lo aded) or the last l o ad (if the tape is currently unl oaded). The device server should r eset thes e attr ibutes to zero when the tape is loaded.
106 Comman ds Me dium Co mmon Att ributes These attr ibutes are har d c oded into the MAM at manuf actur e time. The attr ibutes def i ned ar e show n in T able 16. All the at tr i butes ar e read-onl y (R ead- Only = 1). The Mediu m Manufacturer f ield should contain a value l isted in the V endor Identif icati on list (see A nne x D ). Th e Medium Ser ial Nu mb er identifies the manufacturer’s ser ial num ber for the mediu m. T he Medium Man ufac tur er Dat e spec if ies th e date of ma nuf actur e of the medium. T h e f ormat is YYYYMMDD . Partition Usage Hist ory The Partition Usage History attribute pro vides the same counters as the Medium Usage History but they apply only to the current partition. Since Ultrium drives only suppo r t a singl e part ition, the valu es will be the same as in Mediu m Usage Hist ory. Product Se rial Numbe r A ven dor-assigned serial n umber. If th e product ser ial num ber is n ot avail able, the devi c e se rv er w ill re turn ASCI I spa ces (20h). Total M B Writ ten in Medi um Lif e and Total MB Read in M edium Life The total number o f data bytes that are transferre d to or from the tape surface (after a ny data comp r ession has been ap plied) over the entire tape life. Th ese figu res ar e cum u l ativ e and w i ll nev er be re set. Total M B Writ ten in Curre nt/ Las t L oad and Total MB Read in Current/Last Load These are similar to the attributes above but apply to the current load ( if the tape is currently lo aded) or the last l o ad (if the tape is currently unl oaded). The device server should r eset thes e attr ibutes to zero when the tape is loaded. Medium Us age History This provides statistical counters f or the entire tape. If a fie l d is not used it should be set to zero. The fo rmat is a s follows: ID Attribute Name Size in Bytes For ma t 0400h M e dium Manufa cturer 8 ASCII 0401h M edium Se rial Numbe r 3 2 ASCII 0402h Medium Length 8 Binary 0403h M e dium W i dth 4 Binary 0404h A s signing Org aniz ation 8 Binar y 0405h M e dium Density Co d e 1 Binar y 0406h M e dium Manufa ctur er Date 8 AS CII 040 7h MAM Ca pacity 8 Bina r y 0408h M e dium Type 1 Binary 0409h M e dium Type In fo rmation 2 Binary 040Ah – 0 7F Fh Rese rv ed
Commands 10 7 Comman ds The M AM Capa c it y is the total cap acit y of t he M AM , i n bytes, at ma nufact ure time . I t does not indi cate the fr ee space of a ‘blank’ MAM a s some of t he MAM space may be re se rved for de v ice -spec if i c use that is inaccessible to the appl ica tion client. The Mediu m T ype and M edium T ype In f ormation attr ibutes giv e info rmati on about non-data media and other types of media . Th e M edium T ype Infor mation attr ibute is inter pret e d accor ding to the type of me dium indicated b y the M edium T ype. De fined values ar e shown in T able 17 . Host Common Attribu tes App lica tio n cl ient s m ay use the READ A T TRIBU TE and WRITE A T TRI BUTE comman ds to main tain the at tr ibutes sho wn in T able 18. All the attr ibutes are r ead/ wr ite (Read- Only = 0). The Applicati on V endor attribute i den tif i es the manuf actur er of the applicatio n clie nt (e.g . back up pr ogram). The Applicati on V endor fi eld should contain a v alue list ed in th e V endo r Iden tif icati on list (s ee An nex D). Note It is intended that this f ield pr o vi de a uniqu e V endor Identif icati on of the v endo r who wr ote the Hos t Common Med i um T ype Me ani ng Medium T ype Information 00h Data medi um Re served 01h Clean ing mediu m Maxim um numb er of cleaning cycles p ermitted 02 h–7Fh Reser ved Rese rved 80h Write-on ce me dium Reserv ed 81h– FFh Res erved Rese rved ID Attribu te Name Size in By tes Fo rm at 0800 h App l ication Vendor 8 AS C II 0801 h App l ication Nam e 3 2 AS CI I 080 2h Applica tion Ver sion 8 A S CII 0803h Use r Medium Text Lab e l 160 T ext 0804h Data & Time Last Written 12 AS CI I 0805h Text L oca l ization Identifi e r 1 Binar y 0806 h Barco de 3 2 AS CI I 080 7h Ownin g Hos t Tex tual Nam e 8 0 T ext 0808 h Media Pool 160 T ext 0809h Partitio n Use r Tex t L abel 16 A S CII 080A h Load/U n lo ad at Partitio n 1 Binary 080Bh –BFFh R eserved
108 Comman ds attr ibutes . In the absen ce of a fo rmal r egistr ation pr ocedure , T10 maintains a list o f V endor Identif ication codes in use . V endors ar e r equested to v olu ntar ily submit their iden ti f ication codes to T10 to pr ev ent duplication of codes (see Annex D) . The Applicati o n Name identifi e s the name of the application client . The A pplic atio n V ers ion id enti fies th e version of the ap pl icat ion cl ient. The User Me dium T ext Label i s the user lev el i dent ifi er for the m edium. The Data & Time L ast W ritten spec if ies w hen the applicati on clien t last w ro te to th e MAM. T he fo rmat f or the str ing is YYYYMMDDH HMM u sing a 2 4 -hour time f ormat . T he T e xt Locali z a tion Identif i er def in es the char acter set used f or attr ibute s wi th a te x t f orm at . The identif ier has the for mat show n in T able 1 9 . The Bar code attr ibute al lo ws an application serv er to sto re the contents o f a Bar code as soc iat ed wit h th e medium in t he MAM. The Owning Host T extual Name attribute indicates the host ser ver f rom which that Use r Medium T ext Label or iginates. The Media P ool attr ibute indicates the M e dia P o ol to whic h this mediu m belongs. The V olume User T ext Label is a vari able length attribute that is the user l e vel identifi er of the volume. ID For m at 00h No code specified (ASCII) 01h ISO/IEC 885 9-1 (Europe, La tin America) 02h ISO/IEC 885 9- 2 (Easter n Euro pe) 03h ISO/IEC 8859- 3 ( SE Europe/misce llaneo us ) 04h ISO/IEC 885 9-4 (Scandinavia/Ba l tic) 05h ISO/IEC 8859- 5 ( Cyr illic) 06h ISO/IEC 885 9-6 (Arabic) 0 7h ISO/I EC 885 9-7 (Greek ) 08h ISO/IEC 885 9-8 (Hebr ew) 09h ISO/IEC 8859- 9 ( Lat in 5) 0Ah ISO/IEC 8859-10 ( Latin 6) 0Bh– 7Fh Reserv ed 80h ISO/IEC 106 46 (Unicode) 81h ISO/IEC 106 46 -1, Amendment no. 2 (UTF-8) 82 h – F F h R e s e r v e d
Commands 109 Comman ds The P ar tition User T ext Label is a user level iden tifier for the partit i o n specif ied in the CDB P artition Number field The Load/Unload at P arti ti on attribute indicates whet her the med ia can be loaded or unloaded at the P a rtitio n specif ied in the CDB P a rtition Number fi eld. If loads/unloads are ena ble d f or th e spec if ied part iti on, th e v alue o f this par ameter shall b e 1h. If loads/unloads are not enabled fo r the specifi ed partition, t he value of this par ameter shal l be 0h . If Load/Unload at P artition is disabled , then load s/unloads are perfo rmed at the beginn ing of the media instead of at t he spec ifie d partition . If t his attr ibute is not set b y a ho st th en th e defa u lt acti on will be to loa d/unload at the b eginning of me dia .
110 Comman ds READ BL OCK LIM IT S 05h R EAD BLOCK LI M ITS tells the dri ve to r eturn data def ining the max imum block si ze th at it can support . Note that this is the max imum supporta ble, not t he fi x e d bloc k si ze . Pre-Ex ec ution Checks: Command Descri ptor Block: Read Bl ock L imits Data: Illegal Field Reservation Deferred Error Unit Attention 7 6 5 4 3 2 1 0 0 Operation Code (05h ) 1 Res er ve d ( 0) 2 3 4 5 Contr ol 7 6 5 4 3 2 1 0 0 00h 1 (MSB) Maximum Block Length (FFF FFFh) 2 3 (LSB) 4 (MSB) Minimum Block Length (0001h) 5 (LSB)
Commands 11 1 Comman ds READ BUFFER 3Ch R EAD BUFFER r eads data fr om the memory on the dr iv e and sends it to the initiator . The value of th e Mo de field determines whether only the 4 -byte descr iptor is r eturned , only the data is r eturned , or wheth er both ar e retur ned. Pre-Ex ec ution Checks: If an y of the follo wing rules ar e brok en then CHE CK C ON D I TIO N status is r eported. Sense data will be as descr ib ed in Illegal F ield Checks. Command Descr iptor Bl oc k: CDB Fields: Illegal Field Reservation Deferred Erro r Unit Attention 7 6 5 4 3 2 1 0 0 Operation Code (3Ch) 1 Res er ve d (0 ) M o de 2 Buffer ID 3 (MSB) Buffer Offset 5 (LSB) 6 (MSB) All ocation L ength 8 (LSB) 9 Contr ol Mode 00 000b A 4-by te de script or is returned, fo llowe d b y ( Allocation L e ngth - 4) bytes o f dat a.The data is read from the buffer identified by th e Bu ffer I D, start i ng fr om offs et zer o in the buffer . The Bu ffer ID an d Buffer Of fset must bo th be 00h. 00010b The drive returns Allocation Length bytes of data which is read from the buffer identified by the Buffe r ID , star ting fro m Buffe r Of fset bytes from the start of the buffer. Ther e are no restr ictio ns on the va lue of Buffer ID a nd Buff er Offset , excep t that the Buffer Offs et mu s t be ke pt wi thin t he buff er siz e.
112 Comman ds Mem ory S i z es: 0001 1b The driv e retur ns a 4 -byte d escrip tor fo r the b uffer identif ied by the Buff er ID field . Inva lid buffer IDs will r etu rn a buf fe r des crip tor of all zeros. The Bu ffer Offse t field must be z ero. 01010b The drive r e turns data f r om the Echo B uffer . The B uffer ID and Offset are ignored. 0101 1b T he drive returns the Ec ho B uffer descripto r . The Bu ffer I D and O ffset a re ignor ed. Buffer ID The Buffer ID indicates wh ich buff er is to be read. The buffers ar e define d as follows: Buffer I D Mem ory Ar ea Category Offset Bounda ry 00h Main bu ffe r memo r y RAM 1 b y te 01h Proces sor add ressable mem ory RAM 1 b y te 02 h S CS I bu r st buf fer or FC burst buffer RAM 4 b y tes 512 bytes 10h CM EEPROM EEP RO M 1 b y te 11h M echanical EE PROM EEP RO M 1 b y te 12h Head assem bly EEPR OM EEP RO M 1 b y te 13h PCA EEPROM EEP RO M 1 b y te 20h Main bu ffer segmen t 0 RAM 1 byte se e below for deta ils 21h Main bu ffer segmen t 1 RAM 1 byte se e below for deta ils 22 h Main buffer segm ent 2 RAM 1 byte se e below for deta ils 2 3h Main buffer se gment 3 RAM 1 byte se e below for deta ils Buffer Offset The Buffe r Offset fie ld may be set to any a ddress in the buffer , but m u st obey the specified Offs et Boundar y. Allocation Leng th The amount of data to return . Allocation Length Buffer Offset must be within the buffer size. Main Buff er Memo ry Siz e: 64 MB, repor ted s ize FFFFF Fh. Becaus e th e buff er i s gr eater than 16 M B, addition al bu ff er IDs have been def i ned to all ow the buffe r to be accessse d in 16 MB segmen ts. thes e are a s follows: Buffer I D Address 20h 0000 0000 h Buffer Off s et (same as Buf fe r ID 00h) 21h 0100 0000 h Buffer Offs et (in other word s, 16 MB) 22 h 0200 0000 h Buffer Offs et (in other word s, 32 MB)
Commands 11 3 Comman ds Returned Da ta: The f ormat o f the 4- b yte descr iptor f or Mode 00000 b is as f ollo ws: The f ormat o f the 4- b yte descr iptor f or Mode 00011 b is as f ollo ws: 23 h 0300 0000 h Buffer Offs et (in other word s, 48 MB) Proces so r Me mory Not all of the Proces sor Memory sp ace is accessible . The followin g table shows valid addres s segments: Seg ment Start A ddr ess Segm ent End Address Segmen t Si ze Segmen t De scrip tion 000000 h 13FFFFh 1 MB 256 KB Contr oller ASIC flash 180000 h 1BFFF Fh 512 KB. External SR AM ( if fitted) 200000 h 23FFFFh 25 6 KB F ormatter ASIC 2 400 00h 27FFFFh 2 5 6 KB Servo Contr oller ASIC 2 80000 h 29FFFFh 128 KB Host Interface ASIC (minus buffer) FF8000h FFEFF Fh 28 KB Contr ol ler int ernal SR AM SCSI Bur st Buffer SCSI drive s: 192 KB FC driv es: 7 F0000 b ytes LTO - Cartri d ge Memo ry Siz e = 4 K B Mech anism EE PROM Size = 8 K B Head A ssembly EE PROM Size = 8 KB PCA EEPRO M Siz e = 32 K B 7 6 5 4 3 2 1 0 0 Res er ve d ( 0) 1 (MSB) Buffer Capacity 2 3 (LSB) 7 6 5 4 3 2 1 0 0 Buffer Offset Bounda ry
114 Comman ds T he fo rma t of the 4 -b yte E c ho buffe r desc r ipt or f or Mode 01011b is as f ollo w s: 1 (MSB) Buffer Capacity 2 3 (LSB) 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 0 R eserv ed (0 ) EBO S (1) 1 (MSB) Ec h o Buffer Siz e ( 1000h) 2 3 (LSB)
Commands 11 5 Comman ds READ P O SIT I ON 34h Th e READ PO SI TION co m m an d ret u rn s d at a rep res e nt i n g t h e c u rren t lo g ic a l position t o the host . The positio n is the count of all marks and blocks between BOM and the cur r ent logical positi on. Th e fir st block is block 0. T wo f orms of t he command are supported , the ’tr aditional’ short fo rm with B T=0 a nd a ne w (SCSI- 2) long for m where a distinction bet w een pa rtitions , mark s and blocks is dr awn . The Read P os ition com mand is comp limented b y the LO C AT E com mand. Pre-Ex ec ution Checks: Command Descr iptor Bl oc k: CDB Fields: Ill ega l Fi el d Reserv at i o n De fer r ed Erro r Unit Attention Media Access Diagnostic Status 7 6 5 4 3 2 1 0 0 Operation Code (34h) 1 Re served(0) T CLP Long B T (0) 2 Res er ve d ( 0) 8 9 Contr ol TCLP Tota l Cu rre nt L og i c al P o s i t io n 0 The drive w i ll return data specifyin g th e first and last block location with the numb er of by tes an d block s in th e buff er. 1 The drive will return data sp ecifying the p artition, file , a nd se t nu mber with the current logical position. Long 0 The drive will re turn 20 bytes of da ta . 1 The driv e w ill return 32 bytes of data .
116 Comman ds The Lo ng bit a nd th e TCLP bi t must be equa l. If they a r e not, the c omm and will termi nate with CHE CK CONDI TION st atus . T he sense k ey wi ll be set to ILLE GAL REQUE ST with ad ditional sense of 2 400h (inv alid fi eld in CD B). Returned Da ta—Shor t Read P ositi on: The fo rm at of the 20 bytes o f data re turned in short for mat f or READ P O S I T ION is as f ollo ws: Retur ned Data Fields: BT Block address T ype 0 This bit is n ot sup ported and m ust be se t to zero. The offset into the current partition represents the cou nt of all blocks and filemarks between the beg inning of the m edia and the current l o gical position. 7 6 5 4 3 2 1 0 0 BO P E OP R eserv ed (0) B P U Re serv ed (0) 1 Pa r t i t i o n N u m b e r ( 0 ) 2 Res er ve d ( 0) 3 Res er ve d ( 0) 4 (MSB) F irst Block Loca ti on 7 (LSB) 8 (MSB) Last Bl ock Loca tion (same as First Block Location ) 11 (LSB) 12 Res er ve d ( 0) 13 (MSB) Numb er of block s in buffer (0) 15 (LSB) 16 (MSB) Numb er of bytes in buf fer (0) 19 (LSB) BOP 0 The current logical po sition is not at BOM (beginning of med i a). 1 The current logical position is at BOM. EOP 1 The current logical position is within the EW-EOM region.
Commands 11 7 Comman ds Returned Da ta—Long Read P osi tion: The f ormat of t he 3 2 byt es of data re turned in long for mat for READ POSIT ION is as f ollo ws: Retur ned Data Fields: Most o f the f ie lds ar e th e same as f or th e Short f or mat . The n ew f ie lds ar e as fol l ows: BPU Block Position Unkno wn 0 The Fir st and Last Block Location fields are va lid. 1 Block position is unkn own. F irst and Last Block L ocation f ields a re unde fined. This will only occur after a “hard” r ead error that has caused a sense key of MEDIUM ERR OR with additional sense of 3B00h (s equential pos itioning erro r). Partition Number This will a l ways be zero. First Blo c k Loc ation The First Block Location spec ifies the number of blocks and filemarks to the current position. Counting starts at ze ro , so BOM is block l o cation 0. Las t B lock Loc ation This is alw ays set to the valu e o f the First Block Location. 7 6 5 4 3 2 1 0 0 BOP EOP Reserved ( 0) MPU BPU Reserved (0) 1 Res er ve 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 Number 15 (LSB) 16 (MSB) Fi le N u mb e r 23 (LSB) 24 (MSB) Set Number(0) 31 (LSB)
118 Comman ds MPU Mark Position Un known 0 The F ile Nu mber a nd Set Numb er fields are v alid. 1 Mark positio n is unknown. If se t, then the File Number and Set Nu mber field s are undefined. This wou ld be set on ly after a “hard” rea d erro r which resulte d in the set ting of positio ning error se nse such a s 3B00h (seque ntial positioning error). Partition Number This will alwa ys be ze ro because U ltrium driv es do not support multiple partitions. Block Number The num ber of logical blocks b etwee n BOP (beginning of partitio n) and the curr ent logical position. Filemarks count as on e logical block ea ch. File Number The num ber of fi l emarks betwee n BOP and th e current l ogical po siti on. Set N umber The number of setmarks between BOP an d the current logi cal position .
Commands 11 9 Comman ds RECEI VE DIA GNOS T I CS RES UL TS 1Ch R EC EI V E D I AGN OSTIC R ESUL TS tel ls the d r iv e to return data fr om the last diagnostic test r equested through the SEND D IA GNOSTIC command. If none has been sent , the data re fer s to the pow er -on self-test . Pre-Ex ec ution Checks: Command Descr iptor Bl oc k: CDB Fields: Spec ific Status: If the d r iv e not is conn ected to a compatible enclo s ur e, a RE CEI VE DIA GNO S TIC command w ith a Enclo sur e Serv ices page number (01 to 0F) w i ll r eturn a CHE CK CONDI TION with S en se key of NO T READ Y and additio n al sense of 3502 h, “ e nc lo s ure s er vi ce s u na va il ab le” . Illegal Field Reservation Deferre d Error Unit Attention 7 6 5 4 3 2 1 0 0 Operation Code (1Ch) 1 Res er ve d ( 0 ) PCV ( 1) 2 Pa g e C o d e 3 (MSB) All ocation L ength 4 (LSB) 5 Contr ol PCV 1 The page co de is valid. This flag must be set. Page Co de 0 Identifie r for the diag no stic infor m ation pag e to be returned. Allocation Leng th 0 No dat a w ill be returned. This is not considered an e rro r. The drive wil l return allo catio n length bytes or the a mount of data th at is available, whichev er is least. >0 T he number o f bytes which the host has allocated for returned diagnostic da ta.
120 Comman ds If other inv alid pages are r equest ed , CHE CK CONDI T ION will resu l t wi th st atu s of ILLE G AL REQUE S T and additional sense of 2 601h, “ parameter no t supported” . Data Return ed P age Cod e 7 0h — Self- T est (Read/W rite) Pa g e F o r m a t f o r W r i t e : No parame ter s are needed. Se nding this page is equi val ent to a Send Diag nost ic command w ith both the SelfT est and UnitOf l bi ts set . P age For mat for Read: 7 6 5 4 3 2 1 0 0 Pa g e C o d e ( 70 h ) 1 Res er ve d ( 0) 2 (MSB) Pa r a m e t e r L i s t L e n g t h ( 0 ) 3 (LSB) 7 6 5 4 3 2 1 0 0 Pa g e C o d e ( 70 h ) 1 Res er ve d ( 0) 2 (MSB) Pa r a m e t e r L i s t L e n g t h ( 4 ) 3 (LSB) 4 (MSB) Err or Code 7 (LSB)
Commands 12 1 Comman ds RELEASE UNIT 17h/5 7h R ELEA SE UN I T e nables the host to r ele ase an y reservati o n it may hav e on the dr iv e. R eser v ing a dev ice is a wa y of en sur in g e xclu s i ve access to that dev ice fr om a sin gle initiator f or the peri od of the r eservati on. The dr iv e ma y be re s e r v e d u s i n g a RE SERVE comman d. The 10 -byte RELEASE U NIT comma nd is supported by all d r ives. Its functi onalit y is the same as for the 6- b y te c ommand , but it a lso su pports third- part y r eservation. Pre-Ex ec ution Checks: Command Descr iptor Bl oc k: 6- By te 10 -B yte Ill ega l Fi el d Defer r ed Error Unit Att en ti on 7 6 5 4 3 2 1 0 0 Oper ation Code (17h) 1 R ese r ved (0) 3r d Pty T h ir d-P arty De vice I D Rsv d(0) 2 Res er ve d ( 0) 4 5 Contr ol 3rdP ty This bit is always zero b e cause third-party reservation is not s u pported. Third-Par ty Device ID This bit is always zero b e cause third-party reservation is not s u pported. 7 6 5 4 3 2 1 0 0 Operati on Code (57h) 1 Reserved (0) 3 rd Pty Reserved (0) LongID R svd( 0)
12 2 Commands 10 -B y te Only Release Unit Spec ific Status: St atus is r eturned a s follo ws: ■ If the dr iv e is not r ese r v ed, GOOD status is r eported. ■ If the dri ve is r eserved b y another host , GO OD statu s is r eported. ■ If the dri ve is r eserved b y this host for t h is host , the res er v ation status is cleared . 2 Res er ve d ( 0) 3 Thi rd -P ar t y Devic e I D 4 Res er ve d ( 0) 6 7 (MSB) P a rameter List Leng th 8 (LSB) 9 Contr ol 7 6 5 4 3 2 1 0 3rd Pt y 0 Third-party r e lease is not r equested. 1 The initiator requests third-party release. The valu e i n the Thir d-Pa rt y Devi c e ID field is valid. Lon gID This is al wa ys zer o bec au se de vi ce ID s g reat e r than 255 are n o t sup p orte d. Third-Par ty Device ID This is required and us ed on ly wh en the 3rd Pty bit is set. The devi ce will pe rf or m the release operation only if the initiator ID, the 3rd Pty bit and the Third-Party Device ID are identical to tho s e in the RE S ERV E UNIT comma nd th at esta bl ish e d the r e s erva tion. The drive ignores any attemp t to release the reservation m ade by any other initiato r, including the initiator for which the reservation was made. If an initiator reserved the drive using a third-party reservatio n over itself, a non-third- party RELEA SE UNIT comm and cou ld al so re le ase the res e rvat ion .
Commands 123 Comman ds REPOR T DEN S ITY SUP P O RT 44h Th e Report Densit y Support c ommand r eturns details about the tape f o r mats supported b y the dri ve . The data is r eturned as a header and a ser ies of desc riptor bloc ks. Pre-Ex ec ution Checks Command Descr iptor Bl oc k CDB Fields Illegal Field Deferred Error Unit Attention 7 6 5 4 3 2 1 0 0 Operati on Code (44h) 1 R eserv ed (0) Media 2 Res er ve d ( 0) 6 7 (MSB) All ocation L ength 8 (LSB) 9 Contr ol Media 0 One descrip tor b loc k is return ed f or ea ch fo rmat suppor ted by the d rive. Th e ca pacity field in the descriptor block wil l indicate the capacity of the current media. 1 One descriptor bl ock is returned with the da ta for the currently lo aded tape. Th e capacity field will indica te the maximum for the f o rmat. If ther e i s no tape ins t erte d i n th e dr iv e, t h e drivr e ill ret u rn CHECK CON DITION wi th a sens ke y of NO T READ Y and add itional sense of 3A 00h (m edium n ot pr esen t). Allocation Leng th This specifie s the maximum number of b y tes which the drive sho uld return in its data-o u t phase. Either the en tire availab le data or al location le ngth bytes of the page are returned, whichever is leas t. 0 No data transfer will occur. Th is is not considered an error.
124 Comman ds Header The av ailable leng th gi ves the to ta l amount of dat a that is availab l e to be re t u r n e d . Descri ptor Blocks The header is follo wed b y one or mor e Report Density Suppo rt descrip tor blo cks wi th the following format: 7 6 5 4 3 2 1 0 0 (MSB) A vailable D en sit y Descriptor Lengt h 1 (LSB) 2 Res er ve d ( 0) 3 Res er ve d ( 0) 7 6 5 4 3 2 1 0 0 Prim a ry Density Code 1 Second ary Density Co de 2 WRT OK DUP (0) D EFL T Re s e rv e d (0) 3 Res er ve d ( 0) 4 Res er ve d ( 0) 5 (MSB) Bits per mm 7 (LSB) 8 (MSB) Me dia Width 9 (LSB) 10 (MSB) Tr a c k s 11 (LSB) 12 (MSB) Capacity ( MB) 15 (LSB) 16 (MSB) Ass i gning Or gani za ti on ( LTO-CVE ) 23 (LSB)
Commands 125 Comman ds The v a lues r eported for the Ultrium 2 f orm at tapes a r e as follo ws: 24 (MSB) Density Name 31 (LSB) 32 (MSB) Description 51 (LSB) 7 6 5 4 3 2 1 0 Primary Density Code 4 2h This i s re porte d via the MODE S E NSE comm and. Seco ndary Dens ity Cod e 42 h N o t u s e d WRT OK The Write OK flag indicates whether the driv e can write at the density indicated b y the Density Code . 0 The drive does not support writin g to a ta pe with this density. 1 The drive is cap able of writing at this density to the cur rent tape (if the Media bit in the CDB = 1) or for s ome tape (if Me dia = 0). DUP The Duplica t e fla g w ill be se t to zer o fo r ev ery descriptor block indicating that each density is only reported once. DEFLT The Default fla g will be set for the density for which the currently mounted medium is formatte d an d clea r for all other densities. Bits p er mm 36 60 Media Wi dth 12 7 Tape width is 1/ 2” or 12. 65 mm. The val ue in this fie ld is in tenths of millim eters rounded to the ne ar est 0.1 mm. Tracks 512 Capaci ty 200, 000 MB The m aximum capacity fo r the fo rm at (o r the capa city of th e m ed ia if th e Media bit is set) Assigning Orga nization L T O-C VE The CVE assigns these codes. Dens ity Name U- 28 The format of this is: [U/A]-[Format Generat ion: 1,2...][No of Tracks: 4,8,16...] Descr iptio n Ultr ium 2/ 8T A l ong er versio n of the above
12 6 Commands REPOR T L U NS A0h Desc ription: Th e Re po r t LUN S command allow s the host to r etri ev e in f ormati on about what logical units the dri ve supports. T he standar d dr iv e only has a single L U N. Pre-Ex ec ution Checks: Command Descri ptor Block: CDB Fields: Data Return ed: Illeg al Fi eld 7 6 5 4 3 2 1 0 0 Operation Code (A0h) 1 Res er ve d ( 0) 5 6 (MSB) All ocation L ength 9 (LSB) 10 Res er ve d ( 0) 12 Contr ol All ocatio n L ength Must be at least 16 bytes. If no t, the drive will return CH ECK COND ITION status and prov ide a sen se key of ILLE G AL RE QUE S T and a dd i tion al sense of 2400h (in va lid field in CDB) . 7 6 5 4 3 2 1 0 0 (MSB) LU N Li s t L e n g t h ( 0 8 h ) 3 (LSB) 4 (MSB) Res e r ved (0 ) 7 (LSB)
Commands 127 Comman ds Lis t of LUN s 8 (MSB) LU N 0 ( 0 ) 15 (LSB) 7 6 5 4 3 2 1 0
128 Comman ds REQUES T SENS E 03h Th e REQUEST SENSE command transfer s sense data held within the dr i ve to t he host dur ing a data-in phase . The data is valid in the fo llo wing cir cumstances: ■ Afte r reporting CHECK CON DITION statu s to the hos t. ■ A ft er a com mand h as te rmin ated wit h an une xpec ted BUS F RE E . ■ Immediately after t he follo wing commands that cause tape motio n: P ositional sense data is valid whenev er media is pres ent and loaded and no higher pr ior it y sense data is pr esent . An unsolicit e d r equest sense (that is, one wit h n o prec ed i ng CHE CK CONDI TION ) w i ll r esult in sense data with no v alid data , which will be all z eros. Note The dr i ve maintains v alid positional info rmati on f or nor mal read and wr ite commands only ( READ , WRI TE , SP A C E , WRITE FILEMARK S , REWIND ). If abnor mal com mands (such as WRI T E BUFFER ) ar e rece iv ed this positi onal sense infor mation is lost . See “Sen se Data Ma nagement ” on page 131 . T he dr iv e cl ears se nse da ta f or the h ost f oll ow ing e xec ut ion o f th e RE QUES T SENSE command for that host , un less the dat a is positional sense data. Pre-Ex ec ution Checks: Only Illegal Fi eld Che c k is perfor m ed befor e e xecu tion of the command. Command Descri ptor Block: READ SPACE VERI FY WRITE WRITE F ILEMARKS REWIND 7 6 5 4 3 2 1 0 0 Operation Code (03h) 1 Res er ve d ( 0) 3 4 Alloc ation Leng th 5 Contr ol
Commands 129 Comman ds CDB Fields: Request S ense D ata The f o llo wing diagram sho ws the form at of the data r eturned for the REQUES T SENSE comm and f oll ow ing the r epor ting of CH ECK C ONDITIO N b y th e dri ve: Log ic al Uni t Number This field is ignored. Allocation Leng th 0 No data is transferred to the hos t. >0 The max imum am ount of s ense data in by tes t hat shou ld be tran sf erre d to the host . T h e drive returns up to A llocation Le ngth bytes of data; an y extra sense data is lost. 7 6 5 4 3 2 1 0 0 Va l i d E r r o r C o d e 1 Segm ent Nu mber (0) 2 Ma r k E OM IL I R s vd( 0) Se nse K e y 3 (MSB) Inf or ma tion By tes 6 (LSB) 7 Addit ional Sen se Length (0Eh ) 8 (MSB) C omman d Spec if ic Info r matio n B ytes 11 (LSB) 12 Additional Sense Cod e 13 Additional Sen se Code Quali fi er 14 F ield Replaceable U n i t Code 15 SKS V C/D Reserved (0) BPV Bit P ointer 16 (MSB) F ield P ointer/Dr iv e Err or Code 17 (LSB) 18–20 Res e r ved ( 0) 21 Re s e r ve d ( 0 ) C L N Re s e r ve d ( 0 )
130 Comman ds Returned Sense Data Fields: Valid 1 Indicates that the information by tes cont ain va lid in form atio n as defin ed in the SCSI specification. Error Code 7 0h Indicates that the error is current , that is, it is associated with the command for w h ich CHECK CONDITION status has been repor t ed. 71h Indicates that the e rror is deferr ed . A defe rred error occur s when there is a fa ilu re for an oper ation that has al r eady been te r minate d with a GOOD status, o r when failure occurs in “clea nup” activity fol lowing an op eratio n that was termina t ed by BUS RELEASE . The co mman d for wh ich CHECK CONDITION sta tus wa s reported is theref ore unlikely to be the cause of the deferred e rro r. I t simply gives the drive th e opport unity to report CHECK CONDITION status for an error that alrea dy exists. Segm ent N u m b er This field is cleared to zero. Mark 1 The Mark bit is set to 1 if a SP AC E , READ or VERIF Y comm and did no t complete be cause a filema rk was read. This bit may only be set if the sense ke y is NO SE NSE . EOM 1 The End of M e dium flag is s et if a WRI TE or WRI T E FILE MARK S command completed in the early warning area. If no oth er error occur re d, the sense code wil l be set to NO SENSE with additional sense of 0002h (EOT). If another error occur r ed, the sense code and ad ditional sense will reflect that er r or. I t is al so set if BOP is encoun tered while spaci ng ov er bl ocks o r filemar ks in the reverse directi on. ILI 1 Indicates that the requested b l ock length did not match the actual block length. Only READ an d VER IFY can ca u se this bit to be set. Sense Key See “Sense Keys” on pag e 13 5 for detail s of sens e k eys that can be returne d. Information Bytes The Information Bytes field is only val i d if the Valid bit is s et. It contains residue informat ion followi ng t he fai lure of either a REA D , WRITE , WRI TE F ILEMA RKS or SPAC E command . The field can take a negative value, expressed in twos complement notation. See the description of the command that failed for the contents of the field. Additi o na l Se nse Leng th 0Eh Specifies the num ber of addition al sen se bytes to follow and is a lways set to 0 Eh. It is never truncated to reflect the actual Transfer Length. Command S pecific Information Bytes 0 Provides additional in formation spe cif ic to the failing command. The f ield is normally set to 0. Additi o na l Se nse Code and Q ualifier These two bytes p rovide ad ditiona l information about the cause of the CHECK CONDITION , or the current tape po sition when the REQUE ST SENSE is unsol icited. See “A dditional Sense Codes” o n page 136 . SKSV 0 The Sens e Key Sp ec ifi c Byt e s (b ytes 15 th ro u gh 17) are i n v al id . T h e C/D, BPV an d B i t pointer field s will be zero. Th e top byte of the Field Pointer will be zero, and the bottom byte will contain a product-specific error code.
Commands 13 1 Comman ds Se nse Data Man age ment The dr ive maintains thr ee s ets of sens e data for e very initiator on the bus. F or a single host the f o llo wing sense data is m aintained: ■ Cu rren t se n s e ■ U NIT A T TENTION sense 1 The Se nse Key Specific By tes are valid . This will only happen when th e bytes assume the role of Field Po inter Bytes as defined by ANSI. Th is occurs when an Illegal Fiel d check de tects an e rror in a command desc r iptor bl ock or a Pa rameter List check detects an error in a comma nd par am eter list. C/D Comman d Data . Only valid if the SKSV flag is set. 0 The Field Pointer information applies to the parameter list f or the command. 1 The Fi eld Poin ter information applies to the comman d descr iptor block. BPV Bit Pointer Valid 0 The Bit Pointer field is invalid. 1 The Bit Pointer field is valid . If the SKSV bi t is set then the BPV bit must be se t as well. Bit P ointe r Identifies the bit positio n of the field in e rror, wh ether it is a comm and descrip tor or a comm and pa rame t er lis t field . Whe n a mu lti- bit fi eld is in e rror, this will po int to the most significant b i t of that field. On ly valid when the SK SV flag is set. Field Poin te r /Driv e Er ror Code If SKSV = 1 , this field represents the Field Pointer, identifying in which byte of the command descri ptor or paramete r lis t an e rro r was detected. Note that the dr ive scan s f rom byte 0 bit 7 of a command or parameter list through to byte n bit 0. The fie ld and bit po inte rs are set to point to the most significant bit of the field that is in error . Se e th e illeg al field check and the param eter list ch eck. If SKSV = 0 , thi s field represen ts t he Dri ve E rror Code. The top byte of this field will be zero. The bottom byte contains the drive error code associated with the failure of the p revious comman d, or z ero in th e case o f no failur e and no appropri ate err or code. If the drive ’s power-o n se lf- test failed th en, i n th e ab sence of an error code associated with the m ost recent command, this byte will b e set to the error code generated by the f ailing test. Note: Drive error codes are provided for information on ly; they are intended to assist in pr oduct inte grat i on an d fault diag n osis . T h e code s shoul d not be rel i ed on by “gen eric” ho st dri v e rs, since thes e are speci fic t o the produ ct. Fo r a list of cod es, se e Chapter 10 of the H ard wa re Integration Guide , V olume 1 of the HP Ul tr ium T echnical Refe rence Manual . CLN 0 1 The drive is OK. The driv e requir es clean ing. T he front pa nel LEDs will be displaying a “clean m e” sequen ce or m essage. This bit is clear ed to ze r o after a cl eaning cartridge has been used.
13 2 Commands ■ D EFERRED ERR OR sen se Unless otherwise stat ed, all the follo wing descr iptions appl y to the sense data f or a si ngle ho st w hose c omman d is be ing e x ec ute d . Curre nt Sense Cu rren t se n s e is the data that is r eturned in r esponse to a RE QUE ST S ENSE command. It is modified or updat ed in the follo wing cir cumstances: ■ It i s clea r ed in respons e to th e arri v al of any co mma nd other t han REQ UES T SENSE or INQ UIR Y . ■ It is clear ed f ollow ing ex ecuti on of a RE QUES T SENSE co mmand . ■ If the cur rent command f a ils, sense is set accor ding to the failure and CHECK CON DITION is r eport ed to t he ho st th at sen t the comm and . ■ If the pr e vious command ter m inated with an une xpected BUS FREE , c u rre n t sense is set acc o r ding to the r eason fo r the bus r eleas e. ■ If the comm and fails its pr e-e xecu tion chec k for Unit A t ten tion , UNIT AT T E N T I O N sens e is cop ied to th e Cur r en t se nse , and CHECK COND ITION is r e por ted to the hos t tha t sen t the com ma nd. ■ If t he c om ma n d fai l s i t s p re -exe cu ti on ch ec k fo r D efe rre d E rror , DEFE RRE D ERROR sense is copied to th e Curr e nt sense, and CHE CK C ONDITIO N is r e por ted to the hos t tha t sen t the com ma nd. Clearing Current Sense: Cl eari ng th e Cur re nt se nse inv ol ves s etting se nse f iel ds as f oll o w s: Valid = 0 error code = 0x70 segme nt num ber = 0 ILI = 0 sense key = 0 infor mation bytes = 0 comma nd spe cific i nforma tion = 0 fru c ode = 0 SKSV = 0 UNIT A T TENTION Sense U NIT A T TENTION sense is set when one of the fo llowing Unit Attention cond i ti ons occur :
Commands 133 Comman ds ■ P ower On, S CSI Rese t , Bus Device Reset ■ Medi a inser ted ■ A load comma nd e xecut ed by a thir d pa rty ■ Mode S ense par ameter s changed by anot h er initiato r ■ Dr iv e firm war e has been updated U NIT A TTE NTION sense w ill persist f or a host until t h e ho st sends a command th at has Unit A tten ti on a s part o f its p re-e x ecu tio n ch ec ks. W he n the Un it At tention pre- execution check fail s, the UNIT A T TENTION sense is copied to the Cu rren t se n s e a n d CHECK CON DITION statu s is r epor ted to the h ost . T he UNIT AT T E N T I O N sense is clear ed. T he host is then e xpected to issue a REQU E S T SENSE com mand to recov er the UNIT A TTENT ION sense (whi ch is now t he new Cu rren t se n s e) . It i s pos sib le f or mu ltiple UNIT A TTENTION conditions to aris e (f or ex ample , after a pow er -on follo wed b y a tape load) , such th at the initiator does not r ead one condition bef or e the ne xt occu rs . In this case a pr ior iti zing sc heme is used . If a UNI T A TTENT ION condition ex ists and a new one occur s, then the UN IT AT T E N T I O N sense will be o verwr it ten b y t he ne w sense only if the new sense has a higher pri ority . The or der of pr ior it y is as follo ws: U NIT A TTE NTION s en se t ha t ari s es as a res u lt o f a c om m a nd exe cut i ng wi l l not be poste d to the s end ing in itia tor , but wi ll b e set for th e othe r i nit iators. DEFERRED ERROR Sense D EFERRED ERR OR sense is generated when an operati on fails a nd CH ECK CO ND ITIO N statu s cannot be re ported to the host f or one of the foll owing re a s o n s : ■ The oper ation had imm ediate-r eport on (for e xample , REWIND with th e Immed b it set , or LOA D ). ■ The oper ation wa s a wr i te that w as immediate- r eported on after its data wa s successf ully pla c ed in the w r ite -behind q ueue. Powe r-on, R es et Tape Lo aded Mode Para me ter s Chan g ed Mic rocod e Do wnlo aded highest pr i ority lo we st p ri ori t y
134 Comman ds ■ The oper ation w as abandoned witho ut status (that is, a bus r elease occur red) after what the dr ive per ceiv ed was a catas t r ophic err or or when an err or oc c urr ed follow ing the dr iv e’s honor ing of an ABORT mess age. F ollowing the b us r elease, the dr iv e perfor m ed “ cleanup ” acti vity that fa iled. T he D ef err e d Err or re fers t o the r eason fo r this f ail ur e. Whe n an y one of t he a bo v e occur s, the s ense ge ner ated w ill be DEF ERR ED ERROR sens e. T his sense per sists until th e host s ends a command tha t has Unit Attenti on as part of its pre-ex ecutio n chec ks. When the Def er red Er ro r pre- e x ec u t i on c h ec k f ails , th e DEFERRED ER RO R sense is mo v ed to the Cur r ent sense and CHECK CONDITION st atus is reported to the host. The host is t hen expected to issue a RE Q UE S T S EN S E command to r e co ver the new Cur rent sense data , otherwis e the data will be lost . W rite -Behind Deferr ed Error s: If the B uffer ed M ode field of the MOD E SE L ECT parameter header is not z ero , data buffer in g is enabled . If a n er ror occ u rs in fl ushing the writ e -beh i nd data , DEFERRED ERRO R sense is set for all hosts t hat the dri ve thinks have writ e - behind data in the buffer . F or eac h of these hosts, the f ollowing occ urs when its next command is to be ex e c uted: ■ If t he co mmand is WRI TE or WRITE FILEM ARKS the D EFE RRED E RR OR sense is cop ied t o Cur r ent se nse a nd t he er r or is ch ang ed t o a C urr ent er r or (th e Err or Code fi eld is set to 7 0h) . T he infor mation b ytes w ill contain r esidue infor mation r eflecting the siz e of the w r ite-beh ind queue plus the transf er si z e of the c ur ren t comm and . CHECK CON DITION is r eported. Whe n the host r eads sense data w i th a RE QUE S T SEN SE , it will see an err or fo r the WRI TE with r esidue informa t ion indicating data lo st for that w r ite and previous write s. ■ If the command is not a wr ite command and the Defer red Err or c heck is perfor med as part of t he pr e- e x ecu tion chec ks, CHE CK CO NDI T I ON statu s is r e ported. The DEFERRED ERROR se nse is cop ied t o Cur re nt se nse. T he DEFERRED ERROR s e nse is c le ar ed . T he ho st i s e xp ect ed to r etr i e v e th e se nse by se n di n g a RE Q UE S T SENS E , otherwise the data w il l be lost . Bus Relea se Deferred Err ors: The dr iv e will r ele ase the bus to ter minate a n opera tion (such as READ ) when the host sends an ABORT mess age o r w h en th e dr iv e fa ils t o sen d st atu s due to a catastr o phic er ror . In each case , t he operation does not terminate imm ediatel y s ince the lo gical position w i ll hav e to be esta bli shed on the other side of the block that w as
Commands 135 Comman ds about t o be tr ansfer red , or wa s being tr ansfer red . If a n er r or subs equen tly oc c urs while tr ying to c omplete the re ad, the s ens e ge ner ate d i s a DEFERRED ERROR . It is ther efor e possible but hi g hly unlik ely to hav e DEFERRED ERROR sense flagged f or a command witho ut immediate r eport . Sen se K e y s T he fo llo wing t abl e lis ts the sense k e ys t hat ma y be r etu rn ed by HP U ltr ium dr i ves . SCSI sense k ey s are 4 -bit codes r eturned in the sense data . They indicate in w hat gener al ar ea the pr oblem t hat has ju st been e xperi enced falls. F or a cleare r indication o f the nature of the pr oblem , ref er to the additional sense cod e . Code Nam e Desc ripti on ASC/Qs 0h NO SENSE T here is no real problem. The sense informatio n is probabl y indicating some condition (such as e ncounteri ng a file mark). 0000h, 0001h, 0002h, 8282 h 1h RECOVERED ERROR Returned if a Mode Sele ct par am ete r is truncated or if a TapeAle rt event is being reporte d. 5D00 h, 3 7 00h 2h NOT RE ADY The drive is n ot in a sta te to be able to execu te the re quest. See also the Media Access che ck. 0400h, 0401h, 0402h, 3003h , 30 0 7h, 3A00h, 3E00h 3h MEDIUM ERROR T he comm an d faile d, be lie ved to be caused by a pr ob lem with the tape. 0002h , 0004h, 040 7 h , 0410h, 0C00h, 1100 h , 1102h , 1400h, 3001h , 3002h , 3004h, 3100h , 3B00h, 5000h, 5 2 00h , 5 3 00h 4h HARDWA RE ERROR The comman d faile d, be lie ve d to be caus ed by a pr ob lem with the drive hardware.The FRU in the sense data sho u ld indicate which part of the hardware is faulty. 040 3h, 40 XX h , 4 400h, 5100h, 5 300h 5h ILLEGAL REQUEST The la st command sent to the drive or the data associated with the com mand violated co nditions imposed by the drive o n its acceptance. See also th e Illeg al Comm and, Illegal Field, Fixe d Bit, Re servation and Paramete r List p re- exec ut ion chec ks. 1A00h, 2000 h , 2 400h, 2 50 0h, 2 600 h, 2 601 h, 53 02 h, 8283 h 6h UNIT ATTENTION Indicates some condition of which the h ost needs to be made awa re. See als o the Unit Attention chec k. 280 0h, 290 X h, 2A01h, 3F01h, 5DFFh 7h DATA PROTEC T A request h as be en m ade to m od i fy th e me dia despite the media bein g write-prote cted. See also the Med ia Write check. 2 7 00h, 3000h
13 6 Commands Additional Sense C odes This secti on contains a list of al l the additional sense codes that a n HP Ultrium dr iv e can r etur n, in n umer ica l or der . Th e Sense K e ys un der w hi ch eac h code could appear are also listed . The AS CQ b ytes a r e pr esent at b ytes 12 and 13 of the sense data. 8h BLANK CHECK The drive trie d to read un wr itte n tape. 0005h, 1403h 9h VENDOR SPECIF IC Neve r retu rned by HP tape driv es Ah COPY AB ORTED Never re turned by H P tape dr ives Bh ABORTED COMMAND The driv e has stop ped try ing to a ct on a command, usua lly through some problem on the SCSI b us. 3D00h, 4300h , 4 500h, 4 7 00h, 4800h, 4 900h, 4A00h, 4B00h, 4E00h Ch EQUAL Never r eturned by HP tape drives Dh VOLUME OVERFLOW Data could not be written due to lack of remaining space on the tape. See the WRI TE and WRI TE FILE MARK S comm ands . 000 2h Eh MISCOM PARE Neve r returned by HP tape driv es Fh R ESERVED Neve r retu rned by HP tape drives Code Nam e Desc ripti on ASC/Qs Code Descri ption Explan ation 00 00h No additio nal sense The flags in the sen se data indicate the reaso n for comman d fa ilu re . 00 01h Filem a r k dete cted A READ or a SPA CE comm and terminat ed early be cause a filem ark has been e ncou ntered. Th e File M ark fla g w ill be set. 00 02h End of T ape detected A WRI T E or a WR I T E FI L E M A R K S command ende d in the early w arn ing area. or A command term inated earl y be cau se End of Tape or physical en d of tape was en counte red. The EOM flag will be se t. 00 04h Begi n nin g of Tape detec t e d A SPA CE command terminated early because beginning of tape was encounter ed. The EOM flag will be set. 00 05h End of Data detected A REA D or a SPA CE comman d ter mina ted early becaus e End of Da ta was encountered . 00 16h Imme diate mode comma nd i n pro gress An im mediat e ERAS E , LO C AT E , REW IND or VE RIFY is in prog ress .
Commands 1 3 7 Comman ds 04 00h LUN not ready, cau se not re po rta ble A tap e is presen t in the drive but is in the proce ss of being unlo aded. 04 01h LUN in process of becom ing ready A medium access comm and has been received durin g a load in itiated fr om the front panel or by a n immediate- reported LO AD command 04 02h LUN not ready, Initializ ing command required A tape is pr esent in the drive but is not lo gically loaded . A LO AD com mand is r e quired. 04 03h LUN not ready, m an ual intervention required A tape is present in th e drive bu t could not be loaded or unloade d without manual intervention. 04 0 7h Immed iate mo de comm a nd in progre ss The tape drive is cur r ently executin g an im mediate m ode comman d. 04 10h Media Auxilia ry Mem or y is not accessible MAM is not accessible. 0C 00h Wri te er ror A WRI T E operation has failed. This is proba b ly due to bad media but ma y be har dwa re relate d. 0C 0Bh Media Auxil iar y Memory write erro r An error has occurre d whil e a ttem pting to write to MAM. 11 00h Unrecov e red read error A READ ope r ation failed. Th is is prob ably due to bad media but ma y be har dwa re relate d. 11 12h Media Auxiliary Memory read error The Host A ttribute area in MAM is invalid. 14 00h Recorded entity not fou nd A SPA CE or Lo cate failed b ecause a fo rmat vio lation prevented the target of the operatio n from being found. 14 03h End of data no t found A read-ty pe oper ation failed b ecause a format violation related to a mi ssing EOD data set, or there w a s an attempt to read a brand new tape. 1A 00h Parame ter lis t length error The amou nt of data sent in a MODE S ELEC T or LOG SEL ECT command is incorre c t or The Mode He ade r indicate s a Mode Block Des c rip t or but no Mo de Bloc k Descripto r is sent. 20 00h Invali d command operation code The operatio n code in the comm and was not valid. 24 0 0 h Invali d fiel d in Comm an d Des c rip t or Block An invalid fiel d h as bee n de tecte d in a Comma nd Descrip tor Bl ock. 25 00 h LUN not sup ported The comman d was addre ssed to a non-existent logica l unit number. 2 6 00h Invalid field in parameter list A n invalid fiel d has be en det ected in the data se nt duri ng the data p hase 2 6 01h Paramete r not su pported The com mand was addr essed to a non-existent lo gical unit number. 2 7 00h Writ e-pr otec ted A writ e-t ype ope ratio n ha s been requ este d on a ta pe th at has be en write -protecte d. 28 00h Not ready to ready transition, medium m ay have ch anged A tap e has b een loade d successful ly into th e drive and is now r e ady t o be acc e sse d. 2 9 01h Power-on re set The dr ive has po wered on since the host last accesse d it. Code Descri ption Explan ation
138 Comman ds 29 02 h SCSI bus res e t SCSI d rives: Th e driv e has rece ived a SCSI res et signal since the host last accesse d it. FC d rives : The drive has received its first p r ocess login. The drive will be implicitly logged out after a Target Reset so this ASCQ will be posted afte r the host has perform ed port/pro ces s login. 2 9 03h Bus devi ce reset SCSI d r ives: The dr ive ha s received a SCSI bus de vice rese t mess age si nce t he host last acce s sed it . FC d rives : The d rive has receive d a process login when it was prev iously logged in for a p articu lar host. 2 9 04h In tern al firmware re boot The drive has reset itsel f. 2 9 05h Transcei vers to S E SC S I d rives: The tran scei vers o n the bus ha ve be en res et to Single-Ended. 2 9 06h Transceive rs to LVD SCSI driv es: The tra nscei vers o n the bus ha ve be en res et to LVD. 2A 01h Mode pa rameters cha n ged The Mode paramet ers for the drive ha ve been cha nged by an initiator other than the one issuing the command. 30 00h Incompatible medium in stalled A write-type operation could not be executed because it is not supp orted on the type of tape that is loaded. 30 01h Unknow n format An opera tion could not be carrie d out because the ta pe in the driv e is of a for mat not support ed by the drive. 30 02h Cannot re ad me dia: incom pa tible forma t An op er atio n cou ld n ot be com pl ete d b ecause the log ical format is not corr ect. 30 03h Clea ning cartr idge install ed An o perati on could no t be carr ied out be cause the t ape in the driv e is a cleaning cartridg e. 30 04h Cannot write med i um An attempt was made to write to a ca rtr idge that ha s Cartridg e M emory errors . 30 0 7h Cleaning failure A clea ning op era t io n was attempted but could not be comp le ted for some reas on . 31 00h Medium fo rmat cor rupt ed Data could n ot be r ead because the f orm at o n tape is not valid, altho ugh it is in a kno w n f ormat. 35 0 1 h Unsu pport ed enc losu re fun ctio n The drive cann ot respon d to th is Enc losur e Servic es request. 35 02 h Enclosure services unav ailable No comp atible enclosu re hard ware has bee n detecte d by the drive. 37 0 0 h Round ed pa ra me ter A MODE S ELECT comman d pa ramet er h as be en ro unde d beca use the dri ve can not store it with the accu racy of the comman d. 3A 00h Medium not prese nt A media-acce ss co mm an d h as be en r eceiv e d when th ere is no tape loaded . 3A 04h Media Au xiliary Memory n ot ready to access M A M is not ready to be acce ssed. This is li kely to be becau se there is no cart ridge pr esent . Code Descri ption Explan ation
Commands 1 3 9 Comman ds 3B 00h Sequent i al positionin g err or A comm and has f ailed and lef t the lo gical position at an unexpected location. 3D 00h Invali d bits in Identify mes sage A n illegal Ide ntify message has be en re ceived by the dri v e at th e st ar t of a c omma n d . 3E 00h Logical u nit has n ot self-co nfigured yet The drive h as just p o wered on an d has no t completed its self-tes t sequence, so it cannot p rocess command s. 3F 01h Microcode downlo ad Th e fir mw are in the drive has just be en chang ed by a WR I T E B U F F E R comman d. 3F 0 Fh Echo buffe r overrun A Read Buffer comma nd has been re ceived with Echo Buffer mode set, and the echo buffer has been overwritten by a dif fe ren t h os t fr om that which issued the R ead Buffer comman d. 3F 11h Media Au xiliary Memory a ccessible MAM is accessible but th e cartr idge is in the Hold position. Unit Attention is generated. 40 XX h Diagnostic failure on component XX A diag nost i c te st has f aile d. Th e Addi t ion al Sens e Code Qualifier is a vendo r -specific co de indicating the failing component. 43 00h Message error A me ssage coul d not be sent o r received be cause of exce ssiv e tran smi s sion er ror s. 44 00h Intern al targ e t failure A hardwar e failur e h as been detec ted in t he dri v e that has ca us ed the c om mand to fa il. 45 00 h Select or reselect failure An attempt to reselect an initiator in order to complete the comman d has fail ed. 47 0 0 h SCSI parity error A com mand fai led becau se of an e xcessi ve nu mber of parity errors on the SC SI interface. 48 00h Initia tor dete cted er ror messag e receiv ed A comman d failed be cause an I nitiator Detected E rror messag e was received . 4 9 00h Invali d me ssag e error The comma nd faile d beca us e an inva lid me ssa ge was receive d by the drive . 4A 00h Comman d pha se er ro r A comm an d co u ld n ot be exe cuted becau s e too man y parity errors occurred in the command phase 4B 00h Data ph ase error A co mmand could no t be comp lete d b ecaus e t oo man y errors occurred du r ing the data phase. 4E 00h Overla ppe d comm an d s attem pted An initiator selected the drive even thou gh it alread y had a command ou tstanding. 50 00h Writ e app end er ror A writ e-typ e comm and fa iled becau se the po int at whi ch to app end da ta wa s unre adabl e. 51 00h Erase failure An ER ASE command fai l ed t o er ase the r equ ir ed ar ea on the tape. 52 0 0 h Cart rid ge fa ul t A co mm an d could not b e completed beca us e of a fa ult in the tape cart ridge. 5 3 00h Media lo ad or eject fail ed An attempt to load or eject the tape failed b ecause of a problem with the tape. Code Descri ption Explan ation
140 Comman ds Error Codes The er r or codes that can be r eported in bytes 16 and 17 ar e listed in Chapt er 10 of t h e Hard ware Inte gration Guide , V olume 1 of t he HP Ultrium T echnical Ref erence Manual. 53 02 h Medium remo val prevente d An UNLOA D command has failed to eject the tape beca use med i um re mova l ha s been pr evente d. 5 5 03h Insufficie nt resources 5 5 06h Media Auxilia ry Mem ory full Ther e is insufficient space in the Host Attribute are a in MAM to fit the attribute that need to be written. 5D 00h Failu r e p re di ct i o n thre sh o ld exceeded F ailure Pre di ct i o n th re sh ol ds have been ex ceed ed indicating that a failure ma y occur soon. 5D FFh Failu re predict ion t hresh old exceed ed (false) A MOD E S ELECT comma nd has been used to test for the Failure Prediction system. 82 82 h Drive re quires cleani ng The driv e has det e cted t h at a cleaning op eratio n is advis able to m aint ain g ood op erat ion. 82 83 h Bad mi croc o de de t ecte d The da t a tran s ferre d to the dri v e d urin g a firm w are upgrade is corrupt or inco mpatible with the drive hardware . Code Descri ption Explan ation
Commands 14 1 Comman ds RESER VE UN IT 16h/5 6h This co mmand enables the ho st to r eserve the dr iv e. R eserving a dev ice is a wa y of ens uring e xclusive ac ces s to that d evice fr om a si ngle in it iator for th e p eri od o f th e res er vat i on . Once r eserv ed , t he dr i ve w ill e xec ute co mmands r ecei ved f r om the r eserv ing initiato r or fr om th e third-party initiator if t he 3rd-Pty opti on has been selected . Commands fr om other initiator s will hav e RE SERV A TI ON CON FLICT stat us r eported f or them, apart fr om INQU IR Y , RE QUES T SENS E , LO G S E N S E, REPOR T LU N S , REP ORT DEN SITY S UPP O R T , RE AD BL OCK LIMI T S and RELEASE UNI T . Th e INQU IR Y , REQU ES T SENSE , LO G S E N S E, PR EV E NT / AL L OW ME D IU M REMOV AL (Allo w= 0) , REPOR T L UNS, READ B L OCK LIMI T S and REPORT DE NSIT Y SUPPORT commands ar e immune to the eff e cts of a r eservati o n and will con ti n ue t o e x ec ut e f or al l h o s ts . T h e RELEAS E UNI T comma nd w ill ha v e GOOD status r eported fo r other hosts, but will hav e no ef f e ct on the reservati on. The 10- b yte R E S ER VE UNIT command is su pported by all dr iv es. Its functi onalit y is the same as for the 6- b y te c ommand , but it a lso su pports third- part y r eservation. The reservatio n will stay in effect unt il: ■ The r eser ving host sends another RESE RVE U NIT co mmand . ■ The reserving hos t sen ds a RELEASE UNIT command, clear ing t he re s e r v a t i o n . ■ A pow er -on, f irmw ar e upgr ade or f or ced eject . Pre-Ex ec ution Checks: If the dri ve is r eserved b y so me other ho st then r eservati on conflict stat us is r e por ted to the hos t . Command Descr iptor Bl oc k: 6- By te Illegal Field Deferred Error Unit Attention 7 6 5 4 3 2 1 0 0 Oper ation Code (16h)
14 2 Commands 10 -B yte 1 R ese rved (0) 3 r d Pty( 0) Th ir d-P arty D ev ice ID (0) Rs vd(0) 2 Res er ve d ( 0) 4 5 Contr ol 3rdP ty This is always zero because third- par ty reservation is not supported . Third-Par ty Device ID This is always zero because third- party res e rvation is no t suppor ted. 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 0 Operation Code (56h) 1 Reserved (0) 3rd Pty Reserved (0) LongID ( 0) R svd( 0 ) 2 Res er ve d ( 0) 3 Thi rd -P ar t y Devic e I D 4 Res er ve d ( 0) 6 7 (MSB) P a rameter List Leng th 8 (LSB) 5 Contr ol 3rd Pt y 0 Third-party r eservation is not reques ted. 1 The initiator req ues ts third -party reservat io n, that is, it will re serve the drive on behalf of another initiator. The value in the Third-Party Device I D field is valid. Lon gID This is al wa ys zer o bec au se de vi ce ID s g reat e r than 255 are n o t sup p orte d.
Commands 143 Comman ds Third-Par ty Device ID This is required and used on ly when the 3rd Pty bit is set, in which case this field specifies the SCSI ID o f the initiator to be gra n ted the reservation of the logical unit. The dr ive pre serves the rese rvatio n until one of the f ollow ing occ urs: ■ It is super seded b y an ot her v alid RE SERVE UNIT co mman d f r om the same initi at or . ■ It is r eleas ed b y the same initiat or w ith a thir d-party RELEASE UNIT co mm an d wit h th e sam e v alue in the T hird -P arty De vi ce ID f iel d. ■ I t i s rel e a s e d by a h a rd res e t o r a p owe r - c yc le . The drive ignores any attemp t to release the reservation m ade by any other initiato r, including the initiator for which the reservation was made. It is valid for a n initiato r t o reserve the d rive using a third-p arty reservation o ver its elf. In this case, a n on-third-party REL EA SE UNI T command could als o r e l eas e the reservation.
144 Comman ds REWI ND 01h R EWIND tells the dr iv e to position the ta pe at BOM (beginning of media). Befo re r ewinding , the dri ve writ es any w rite-b ehind data in the buffer t o tape. Once a r e w ind is started , it w ill complete ev en if the SCSI oper ation is aborted (for e xam ple , if the host selects and sends an abort message) . Pre-Ex ec ution Checks: Command Descri ptor Block: CDB Fields: Re wind Sp ecific S tatu s: If the r ew ind is suc cessful , unsolic i ted positi onal sense will indicate that t he ta pe i s at BOM b y the EOD bit being set and an additional sense code of 0004h (BOP) . Illeg al Fie ld Reservatio n Defe rred Er ror Unit Attention Media Access Diag n ostic Stat us 7 6 5 4 3 2 1 0 0 Oper ation Code (01h) 1 R eserv ed (0) Immed 2 Res er ve d ( 0) 4 5 Contr ol Immed 0 Status is returned after the rewind has completed. 1 The drive first writes any unwritten bu ffered data to tape. It then returns GOOD status to the hos t before beginni ng the actual rewind opera tion.
Commands 145 Comman ds SEND DIA GNO ST IC 1Dh S END DIA GNOS TIC tell s the driv e to perform ei ther it s sta ndard sel f-test , o r diagnosti cs specif ied i n the par ameter list on itself . The parameter list is tr a nsfer r ed to the dr iv e in a ser ies of data-out pha ses; each 8-byt e data-ou t phase spec i f ies a diagnostic to be perfor me d b y the dr iv e. It is not an err or to set Se lf- T est = 0 and to ha ve a z er o -length par ameter list . T he test r esults can be r etr iev ed wit h the RE CEIVE DIA G NOS TIC RE SUL T S comman d. Pre-Ex ec ution Checks: ■ If Self - T e st = 0, the UntOf fl bit m ust be set , ot herwise CHE CK CO NDI T ION is r e ported. Sense data will be as desc ribed in Illegal F ield Checks . ■ If Self - T est = 1, the P arame ter Lis t Length f ield mu st be ze r o. Ot herwise CHE CK CONDI TION is r eported. Sense data will be as desc ribed in Illegal Fi e l d C h e c k s . ■ It is not an er ror t o set Self- T est = 0 a nd t o hav e a z er o -length par a mete r list . Command Descr iptor Bl oc k: CDB Fields: Illegal Field Reservation De ferred Error Unit Attention 7 6 5 4 3 2 1 0 0 Operation Code (1Dh) 1 Reserved (0 ) PF (1) Rsvd(0 ) Self- T est D evOffL(0) Unit OffL 2 Res e r ve d ( 0) 3 (MSB) Pa r a m e t e r L i s t L e n g t h 4 (LSB) 5 Contr ol PF Pa ge Format. Specifies that the accompanying data foll ows the SCSI-3 Diagno stic Page f ormat. It must be set to 1.
146 Comman ds Data Requ ired No data is r e quir ed if the standard self -t est is t o be perfor med. Othe rwise , a single diagnostic page mu st be pr ov ided as a pa r ameter . Spec ific Status An y Send Diagnostic com mand re ceiv e d wit h a E nclosur e Ser vic es page number (01h to 0Fh) w ill gener ate CHE CK CONDI TION with s en se key of ILLE G AL REQUE S T and additional sense of 35 01h (unsuppor ted enclo sur e fu nc ti on ) . The dr ive r epo rts GOOD statu s i f th e diagno stics pass. It w ill r eport CHE CK CO ND ITI O N if the diagnosti cs fail , w ith a sense ke y of HARDW ARE ERROR and additional sense o f 4000h. More d eta ile d resu lts ca n the n b e rec ov ered using th e Rec eive Di ag n ost ic Res ul t s page . Self-T est 0 Pe rform the diagnostics spec ified in the para me ter list. The UnitOff L bit must be set, othe rwise CHECK CONDITION is r eported . The drive r eports status when the command has been co mple ted. 1 Perfo rm the st andard self-te st depending on the value of UnitO ffL (see above). Th e Parameter List Length must be 0 otherwise CHE CK C ONDIT ION is re ported. T he drive w ill report GOOD status followi n g th e pre -ex ecution che cks and be fo re ex ecu t in g t he comma nd. DevO ffl Device Offline bit. Must be clea re d to zero. UnitOffL Unit Offline bit 0 Indicates th at the host is n ot prep ared for the drive to perform tests that co uld affect lo gical position. 1 Indicate s that the h ost is pr epared for the dr iv e to p erf orm tests that could a f fect logical position, mod ify the tape or m odify cartridge stat us. This bi t must be set if the Self-Test bit is 0. Param eter List Leng th Indi c ates h o w many b yte s of diagn osti c para me ter data a re to be se nt to the drive. The length of the data phase for SEND DIAGNO ST IC is limited to 4 bytes o f header pl us 34 parame ters, each of which is 4 byte s long. This gi ves an upper limit for the parame ter list length of 136 bytes.
Commands 14 7 Comman ds Standa r d Self- T est With a t ape inserted: If Self- T est = 1 and UntOff l = 0, a test is perfor m ed that does not aff ect the conte nts of the tape . This test is a mo re e xtensiv e set of the tes ts carri ed out at pow er - on . If UntOffl = 1, the tape con tents can be o verwr itten and w ill be undefined after the test. A use r ca n re- use t he tap e a fter the t est. With no ta pe in the dr i ve: T he same se lf -tes t w ill be e xec ut ed re gar d le ss of t he s etting o f UntOff l. The r esults of an y self -test (pow e r on or not) can be determined b y r eading the Self- T est diagnosti c page befor e exec uting a diagnostic (w h ic h w ill ov erwrite the r esu lt ) .
148 Comman ds SP A CE 11h S PA C E pro vides a v ar iety of positioning fu ncti ons t hat ar e determined b y Code and Count f ields in the Command Descr i ptor Bloc k. Both f orwar d (tow ards EOM) and r ev erse (to wards BO M ) positioning ar e pr ov ided. An y u n wr it ten data in the buffer is f lushed to tape befo re the space is started. The logi cal m edia positi on is then modif ied accor ding to the Code and Count fields. O nce the spa ce ha s sta rte d , it will c omplete even if the SCSI o peratio n is aborted f or some r eason (fo r e xample , the host sel ects and sends an abort mes sage). Pre-Ex ec ution Checks: The C o de f ield m ust be 0, 1 or 3 . If it is not then CH ECK CONDITION stat us is r eported. Sense data will be as descr ib ed in the Il legal F ield Checks. Command Descri ptor Block: CDB Fields: Ill ega l Fi el d Reserv at i o n Deferred Er ro r Unit Attention Media Access Diagnostic S tatus 7 6 5 4 3 2 1 0 0 Oper ation Code (11h) 1 Res e r ved ( 0) Co de 2 (MSB) Count ( n ) 3 4 (LSB) 5 Contr ol Code The Code field indicates what is to be sp aced to: 000 Blocks —The nu mber of b locks crosse d is dict ated by Co unt. 001 Filemarks —The n umber of fi lemark s crossed is dictated by Count. 011 EOD —Space to th e end of data in the current active partition.
Commands 149 Comman ds Space Spec ific Statu s: If the dr iv e f a ils to s pace either f r om a med ium er ro r or fr om some so r t o f non- fa t a l drive e rror , CHE CK CON D ITIO N status is r e ported . The sense ke y will be set to MEDI UM ERR OR . Additional sense depends on the natu r e of the er r or . The two most common additional sense code and qualifi ers in this case w i ll be: 11 00h (unreco ver ed r ead err or ) and 3 B00h ( sequential posi tioning err or ). The dr i v e implements the follow ing pr ior ity scheme when a tape positio n point is encounter ed: ■ If “blank m edia ” is encounter e d during a space (in other wor ds, the dri ve attempted to space on an unfor mat ted ta pe) , the dri ve behav e s as if E OD was a t BO M. I t wil l t h en resp o nd wi th GOOD sta tus to a request to sp ace to EOD , and with CHE CK CON D ITI ON t o an y ot her f orw ar d spa c ing r eque st . Additi onal sense is set to 1403h ( End of data not found ). Count ■ When sp ac in g o ver blocks or fil e ma rk s this fi eld indicates ho w many bloc ks or marks should be cr ossed . Spac ing is forwar d (tow ards E OM) unless Count is negati ve (t w os complement) when the spacing is to war d s BOM. ■ When spacing to EOD the Coun t fi eld is igno red . ■ When not spacing t o E OD , if Count is ze r o, the SP ACE co mmand is trea ted as a null oper ation . The logical position r em ains unchanged, and un written data is not flushed to tape . Lowest pr iority Bloc ks Filemarks If the drive meets a fil emark while spacing to a block CHECK CONDITION is reported. The Mark bit in th e sen se data is set, and the sense key is NO SEN SE . Additional sense is 00 01h (file mark enco untered). The final position will be before or after th e file mark de pending on wh ether the space w as reverse or forwar d. EOD I f the dri ve meet s EOD while s pa cing to a blo c k or mar k, CHECK CONDITION is reported. The EOM bit in the sense data is se t. The sense key is BLANK CHECK and additional sense is 000 5h (EOD encountered). BOM If t he driv e meets BOM whi l e spaci ng, CHECK CONDITION is reported. The EOM bit and Valid bit in the sens e data ar e set to 1 and the information bytes set to the total number of blocks or filemarks that remain to be spaced over (in other words, the re quest ed number mi nu s the numb er that ha ve been s pa ced over) . The sen se key is NO S ENSE and add i tional sens e is 0004h (BO T dete cted). Hig hes t p riori t y EOM I f the dri v e meet s EOM whi l e spac i n g , CHECK CONDITION is re ported. T he EOM bit in the sense data is set. The sense key is M EDIUM ER ROR and additional sense is 0002h (EOP/M detected).
150 Comman ds ■ E arl y warning end of medi um infor mation is not r e ported . ■ If a space recor ds or space filemarks command fails then the sense data in for ma tion b y tes wil l b e s et to the absol ute val ue of the di ffer en ce b et ween th e re qu es t ed n u m be r of m a rk s / rec o rds a n d th e a ct u a l n u mb e r of m a rk s/ r ec or ds spaced over and the V alid bit set . The r esidue for a pr ematur ely ter minated Space to wards BO M w ill alwa ys be a positiv e value. Note: This v alue w ill only be accu rate if the se nse k ey is NO SENSE . ■ If the for mat of the data on tape is corr upt then CHE CK CONDI TION st atus is r eported . The sense k ey w i ll be set t o MEDIUM ER R OR . Additional sense wil l be set to 3001h (unknow n for mat) . ■ If the dri ve fails t o re ad data fr om tape due to either a MEDI UM ERROR or some sort of no n fatal dri ve err o r then CHE CK CONDI TION status is r e ported. The sense ke y will b e set to HARD W ARE ER ROR A dditi onal sens e will be set to 3B0 0h (sequential posi tioning err or ) .
Commands 15 1 Comman ds TES T UN I T READ Y 00h T EST U N IT R E ADY checks if the dri ve is r eady f or commands that access the tape . This is done b y the pr e -e x ecutio n Media Access chec k; it is not a r equest fo r a self-tes t. If the dr ive has a ta pe loaded, t he command r eturns a GOOD status. Other wise, CHE CK CO NDITIO N is r eported and the sense k ey is NO T READ Y . Pre-Ex ec ution Checks: Command Descr iptor Bl oc k: T est Unit Ready Specific Status: If all the p re-e xec uti on chec ks pass , GOOD status i s reported. Ill ega l Fi el d Reser va tion Defe rr e d Err or Unit Attention Media Access Media Information 7 6 5 4 3 2 1 0 0 Oper ation Code (00h) 1 Res er ve d ( 0) 4 5 Contr ol
15 2 Commands VERI FY 13h V ERIFY v er ifies on e or mor e blocks beginning with the next bl ock on the tape . The v erif icati on is m edi a v er ifi cation onl y . I t r eads data fr om the tape as it wo uld fo r a read bu t then immed ia t el y discards it . No data is transf err e d bet w e en the host and dri ve . The command is identical to th e READ comm and in mos t r espects. T he pre- e xec ut ion c hecks ar e id enti cal . Se nse dat a r eport ing o n er ro rs/ e x cepti ons is identical. T he only differences are: ■ No data phases occ u r dur ing ve r ifi cation . ■ Th e Ve r i f y command has no S ILI bit . When an illegal length r ecor d is encountered , Ve r i f y behaves lik e READ with th e SIL I bi t clea r . Note V erif y will not complet e until all data has been r ead. It does supp ort the ANSI “byte compa r e” or “ Imme d” options (see the ANSI SCSI specif icat ion). Pre-Ex ec ution Checks: Command Descri ptor Block: CDB Fields: Illeg al Fi eld Fixed Bit Reserva tion Def erred Error Unit Attention Me dia Access Diagnostic Status 7 6 5 4 3 2 1 0 0 Operation Code (13h) 1 R es erved (0) Immed (0) BCmp (0) F i xed 2 (MSB) V erif ication Leng th 3 4 (LSB) 5 Contr ol Immed 0 T he Immediate Reporting op tion is not suppo rted, so this bit must b e 0.
Commands 153 Comman ds BCmp 0 The Byte compare op tion is not supported , so this bit must be 0. Fixed 0 The Verificatio n Length field specifies the le ngth of the data t o be verified in bytes. 1 The Verification field specifies the length o f the data to b e verified in blocks. The size of each block (in bytes) is specified by the current block length specified in the Mode Par a mete r bloc k desc r ipto r. Verification Leng th 0 No da ta is ver ified. This is not considered an erro r and the curr ent logic al p o sition wil l be unchange d. >0 The amount o f data to be verified, in bytes o r blocks as sp ecified by the Fixed fie ld.
154 Comman ds WRITE 0Ah Ze r o or mor e blocks of data ar e tr ansfer red f r om the host to t ape starting at the cu rr ent logical positi on. It is r ecommend e d t ha t t h e B u ff e r ed Mode f iel d o f t he MODE SELECT Pa r a m e t e r is set to e ither 1 or 2 so that Immediate r eporting is en abled; upon a wr ite command the dr ive w ill r eport GOOD status o nce the data is succ essf u ll y tr a nsfer r ed to the dat a buffer (but not necessar ily to t ape ). Data hel d in the b uf fer is flushe d to tape in the fol lowing circ um stan ces : ■ A SC SI command is rece iv ed that f orc es a flush: ■ Buff er ed mode is n o t en a b l ed . If buff er ed mode h as n o t been se t t o 1 or 2 , the buf fer is fl ushe d be for e the com mand co mpletes. ■ The w r ite delay time is e x ceeded. Th is is defined b y the W rite Delay f ield o f the Device Con figu r a tion M od e S ele ct p age. I f th e d r ive i s id le for l ong er than this per iod (no oper a tions that access the t ape hav e been perfor med) , an y data in the buffe r is flushed to tape . Pre-Ex ec ution Checks: Command Descri ptor Block: ERASE LOAD LOCATE LOG SELECT MODE S ELECT READ REWIND SEND DIAGNOS TIC SPACE VERIFY WRITE BUFFER Illeg al Fi eld Fixed Bit Reserva tion Def erred Error Unit Attention Me dia Access Media Write Diagnostic Status 7 6 5 4 3 2 1 0 0 Operation Code (0Ah) 1 R eserv ed (0) F ix ed 2 (MSB) Tr a n s f e r L e n g t h 3 4 (LSB) 5 Contr ol
Commands 155 Comman ds CDB Fields: W rite Sp ec ific Statu s: See als o the “ Additional Sen se Codes ” on page 136 fo r a va rie t y of p os s ib l e hard er ro rs. An attempt t o wr ite to a wr ite -pr otected cartri dge will pr oduc e a CHE CK CO ND ITI O N wit h a s ens e key of DA T A P ROT EC T and additional sense of 2 7 00h (write- protecte d) . A n atte mpt t o wr ite t o a cartr idg e who se C artr idg e M em ory has f ail ed w ill produ ce a CHE CK CONDI TION with a se ns e ke y o f MED IUM ERROR and additional sense of 3004h (cannot wr ite me dium). I f , howe ver , the tape is not positioned at BO T , the dr i ve w ill r espond with sense dat a as if the tape is wr ite- pr otected . The WP fl ag in the M ode P arameter Header w il l also be set . If EOM (end of medium) is enc ounter e d during a wr ite, CHE CK CONDI TION statu s is reporte d. T he EOM fl ag will be set . The sense k ey w ill be se t to VO LU M E OV E R F LOW with ad ditional sense of 000 2h (EO T) . R esidue infor mation will be as belo w . The logical position w ill be EOD . Subs e q uent R equest Sens e commands will , how ev er , giv e tape positi on as EOP/M (end of partition/me dia). It may still be possible to wr ite a smaller quan tity of infor mati on at this poin t (suc h as f ilemar ks or a smaller bloc k) . T his is bec ause l ogica l po sit ion af ter fa ilu re to write a block returns to th e star t of the unwritte n bl ock. E arl y W arning EOM info rmation is r eported only if a wr ite operati on is successf ul. Th is is done by r eporting CHE CK CONDI TION status w ith a sens e key of NO SE NSE and additio na l sense of 0002h (EO T ). Residue infor mation is vali d and indicates z er o blocks/b ytes. Re sidu e Info rmat ion : R esidue info rmati on dep ends on t w o var ia bles: ■ F ix ed or V aria ble bloc k mode. Fixed 0 The Trans fer Lengt h fiel d specifies the length of the tran sfer in by tes. 1 The T ra ns fer Lengt h fiel d specifies the leng th o f t he tran s fer in b locks . The siz e of each blo ck (in by t es) is det er mine d by t h e c urr e nt Block Length given in the Mode Select Parameter b lo c k d escriptor . Transfe r Length 0 No data is tran sferred. The current logical position will be unchanged. >0 The amount of d ata to be tr ansferre d, in by tes or blocks as de termined by th e Fixed field.
15 6 Commands ■ Immediate or Non-I mmediate Repo rt (Bu ff er ed mode) . R esi due infor mati o n is set in the sense data byte , with the V alid bit set and the in for m at ion bytes set to the r esid ue. Bloc k Mod e Buffer ed Mode Residue V a ria ble 0 Number of unwritten bytes F ix ed 0 Num ber of u nwritte n block s V ariable not 0 T otal n umber of unwr itten byt es an d ma rks ( incl uding tho se buff ered b efor e the c omman d wa s recei ved) . The size can be greater than the comm and operation size. spec ifi call y 1 Contains residues of al l initiators with data in the buffer. F ix ed not 0 Total number of u nwritten bl ocks and marks (including those buff ered b efor e the c omman d wa s recei ved) . The size can be greater than the comm and operation size. spec ifi call y 1 Contains residues of al l initiators with data in the buffer.
Commands 157 Comman ds WRITE A TTR I BUTE 8Dh Th e WRITE A TTRIBUTE command allows an applic ation client to w rit e attr ibute v alues t o MA M (Medium A u xili a ry Memory) . A ppli catio n clien ts should issue READ A TTRI BUTE commands befo re using this command to discov er what suppor t the de vice s erve r has f or MAM. Pre-Ex ec ution Checks: If the comb inatio n of V olume Number and P artition Numbe r is not v alid , CHE CK CONDI TION is r eported with a sense k e y of ILLEG AL RE Q UE S T and additional sense o f 2 400h (in valid f ield in CDB) . If an y of the f ollo wing conditio ns occur , CHE CK C ONDI TIO N is rep o rt ed wi t h a sense ke y of ILLE G AL REQUE S T and addition al sense of 2 600h (inv alid f ield in par ameter list) . None of the attr ibutes are changed: ■  Th e application cli ent attempts t o wr ite an attr ibute that has the R ead- Onl y bit (se e “MAM A t tr ibu te Dat a ” on pa ge 103 ) set to one when r ead with th e RE AD A TTRIB UTE comma nd. ■  Th e application c lient sets t he length of an attribute incorr e ctl y . ■  Th e applicati on clien t sets an attribut e to an unsupported value . If a WRIT E A TTRIBUTE com m and is sen t with the length of an attr i bute set to z ero and the attribute is r ep orted as r e ad/wr i te (Read-Only=0) using the READ AT T R I B U T E command , the attribut e will be clear ed. It w ill th us eff ectiv ely no longer e x ist; it w ill not be r eturned in r esponse to a READ A TTRIBUT E co mman d and not r e ported wit h the RE AD A TTRIB UTE command , Attr ibute L ist servic e actio n. Th e WRIT E A TTRIBUTE command is ter minated in the fol lo wing c ir cumstances: ■ If th er e is no t enou gh space t o wr ite th e attr ibut es to t he MAM. C HEC K CO ND ITI O N is r eported w ith a sense k e y of ILLEG AL R E QUE ST and additional sense of 5 506h (M edia A ux i liary Memor y f u ll) . None of the attr ibutes ar e changed. ■ If the MAM is no t accessible becau se th er e is not tape in th e dr iv e . C HEC K CO ND ITI O N is r eported w ith a sense k e y of NO T R EAD Y and additional se nse of 3A00h ( medium not p r ese nt). No ne of the a ttr ibu te s ar e cha nged . Illegal Field Reservation Deferred Error Unit Attention Media Access
158 Comman ds ■ If the MA M is not ac cessi ble ev en though ther e i s a tape in the driv e. C HECK CONDITION is report e d w ith a sense k e y of MEDIUM ERROR and additional sense of 0410h (Media Au xiliary Memory not accessible). Non e of th e attr ibu te s ar e cha nged . ■ If the MAM has f aile d (for e xample fr om a bad checksum) . C HEC K CO ND ITI O N is reported with a sense k e y of MEDIUM ERROR and additional sense o f 0C0Bh (M edia A u xiliary Memory wr ite er r or ) . ■ If the P arame te r L ist Len gth r esults in the tr unca ti on o f an y attr ibut e . C HEC K CO ND ITI O N is r eported w ith a sense k e y of ILLEG AL R E QUE ST and additional sense of 1A00h (parameter list length err or ) . ■ If the attr ibutes ar e not in or der in the P ar ameter List . C HE CK C ONDI TION is r eported w ith a sense ke y of ILLEG AL REQUE S T and additional sense o f 2 600h (inv alid f ield in paramet er list) . None of the attr ibutes ar e changed. Command Descri ptor Block: 7 6 5 4 3 2 1 0 0 Operation Code (8Dh) 1 Res er ve d ( 0) 2 R e serv ed f or SM C - 2 de v i c e s (0) 4 5 Vo l u m e N u m b e r ( 0 ) 6 Res er ve d ( 0) 7 Pa r t i t i o n N u m b e r ( 0 ) 8 Res er ve d ( 0) 9 10 (MSB) P a rameter List Leng th 13 (LSB) 14 Res er ve d ( 0) 15 Contr ol
Commands 1 5 9 Comman ds CDB Fields: Pa r a m e t e r L i s t F o r m a t : The par ameter list has t h e f ollow ing f ormat . The attr ibutes should be sent in ascending numeri c al or der . F or details of at tr ibute data see “M AM Attr ibute Data ” on page 103 . Volume Number The numb er of th e volum e with i n the MAM . The numbe r of vol um es of th e MAM mus t be eq ua l to that of the tape. In the case of Ultrium, the only ha s a single volume, s o this field is b e set to 0. Partition Number The number of the partition within the MAM. Th e number of partiti ons o f the MAM must be equ al to that of the tape. I n the ca se of Ultrium, the only has a single partition, so this field is be set to 0. Param eter Lis t L e n gth The length in bytes o f the parameter list containe d in the Data-Out buffer. A Parameter List Length of zero indicates that 0 The Data-Out buffer is e mpty. This condition is not be considered an error. n The length in b ytes of the parameter list contained in the Data-Out buffer. 7 6 5 4 3 2 1 0 0 (MSB) P arame ter Data L ength ( n - 3) 3 (LSB) 4 Attr ibu te 1 a : : m At tri bu te x n Param eter Data L ength This is not ma ndatory and will be igno red by the de vice server beca use it du pli c at es th e Param ete r L ist Le n gth.
160 Comman ds WRI TE BUFFER 3Bh Wr i t e B u f f e r is used to tr ansfer data into memory on the dri ve f or the pu r p oses of diagno stics , tests or fir mwar e upgr ade. T he data is placed i nt o one of the dr iv e buffers depending on the Mo de and Buffer ID fi e lds of t he command. Caution D o no t at tempt to use th e bu ffer mo di fying funct ions of thi s command unless you r eal ly kno w what you ar e doing. Th e buffer modifying functi o ns ar e inte nded as a diagnosti c aid t o be used in conjunction with the Read Buffer comma nd . It is not possible to modify data in the buffer s o that it subsequently wr itten to media because all host data is flushed befo r e ex ecuting the command. The f irmw a r e dow nload functio ns are intended f or u se by manufac turing and b y cu stomer s using upgrade utiliti es suppli e d b y HP . Pre-Ex ec ution Checks: Command Descri ptor Block: Illegal Field Reservation Deferre d Error Unit Attention 7 6 5 4 3 2 1 0 0 Operation Code (3B h) 1 Res er ved ( 0 ) M od e 2 Buffer ID 3 (MSB) Buffer Offset 5 (LSB) 6 (MSB) P a rameter List Leng th 8 (LSB) 9 Contr ol
Commands 16 1 Comman ds CDB Fields: Mode This field can be se t to one of the following val ues: 00000 b The drive trans f ers a 4-byte h ea de r f rom the host ( wh i ch sho uld be set to zeros) , followe d by ( alloc atio n leng th - 4 ) bytes o f data. The data is written into the bu ffer identified by the Buffe r ID, s tarting from o ffset zero in the buffer. The Bu ffer I D and B uffer Offse t must bo th be zero. A llocation Len g th must not exceed ( buffer size 4). 00010 b The drive tr ansfers allocation length b ytes of d ata f rom the host, b ytes of data which is placed in the buffer indicated by Bu ffer ID, star ting from Bu ffer Offset from t h e sta r t of the buffer . No h e ader is sent . The Bu ffer Offse t and Allo cation Length mu st be kept within the buf fer size, and th e Buffer ID must to set to o ne of the valid values. 00100 b This mode is use d to trans f er new firmware to the drive. The dr ive recei ves Al location Length bytes of da ta from the host. The da ta is stored in the drive’s buffer.The location in the buffer at wh ich the data is w ritten is determined by the firmware. The firm ware ima g e is divided into a number of blocks of d ata which ar e sent to th e drive using multiple W rite B uffer comm ands. Al l the firm ware ima ge da ta s hould be t rans ferr ed us ing t his mode . The Bu ffer ID a n d Buffer Offset ar e ignore d. 00101b This mode is used to indica te tha t the complete firmw ar e image has been sent to the drive. This is the si gnal for entering the FLA SH reprog ramming stage o f the f irmware upgrad e proces s. Once this comma nd has been r ecei ved, and the asso ciat ed dat a stor ed in t he buf fer, t he resident firmware checks the validity of the image that has been received. If this seems to be cor rect, t he Firmw are Upgra de opera tion wi ll commen ce. If any faults are detect ed in the for mat of th e image, th e drive wil l report CHECK CON DITION to the host. T h e s ense key is AB ORTE D CO MMAND , and th e additional sense is set to 2600h (inv alid field in parame ter lis t). Caution Once th is co mm an d ha s bee n se n t an d com p l eted , th e dr i v e’s po wer sup p ly mu st no t be inte rr upted u ntil the dr iv e has co mpl eted the fir mw are u pgr ade . The Bu ffer ID a n d Buffer Offset ar e ignore d. 01010 b This mode is used to write to the 4KB Echo Bu ffer. The B u f fer ID an d Offs et are i g nored .
16 2 Commands Mem ory S i z es Main Bu ffer Me mo ry : T he Main Buffer Memory is 64 MB T wo ar eas of t he Main Buff er M emory (000000h–0FFFFFh and FC0000h– FFFFFF h) are u sed by the fir mw are . These should not be wr itten to and should not b e exp ected to retai n valu es th at a r e wr i tte n to them. A voi di ng these ar eas, W rit e and Read Buffer t e sts can be perfor me d to the addr ess r ange 1000 00h–FBFFFFh. Th ese types of te sts should be perf ormed while the dri ve is idle . I f the dri ve is reading or wr iting, the data being wr it ten or r e ad c an be corr upted . Since the dri ve has mor e than 16 MB of Main B uff er Memory , additional buffer IDs hav e been defined to allo w the whole b uffer to be accessed in 16 MB seg ments. These a r e def in ed as follow s: Buffer ID Specifies which buffer to read. 00h 01h 02h 13h 20h 21h 22h 23 h Main buffe r (RAM) Offset Boundary : 1 byte Proces sor addressa ble mem o ry (RAM) Offset Bou ndary: 1 byte SCSI bu r st buffer ( RAM) Offset Bo undary: 4 by tes or FC burst buffer (RAM) Offset boundary: 5 1 2 bytes PCA EEPRO M Off set B ounda ry: 1 byte Main bu ffer se gment 0 (R AM) — see be low for descr iption) Main bu ffer se gment 1 (R AM) — see be low for descr iption) Main bu ffer se gment 2 (R AM) — see be low for descr iption) Main bu ffer se gment 3 (R AM) — see be low for descr iption) Buffer Offset Where in the buffer the data should be writte n. Th is mus t be sm aller th an t he size of the buffe r and must o bey the s p ecified offset boundar y. When download in g new firmwar e, this field is ig n ored. Param eter Lis t L e n gth The amo unt of da ta. Thi s must be sm all er t h a n the d i ff erenc e betw een the Bu f fer Of fs et fiel d and the size of the buffer. Buffer ID Address 20h 00000000h Buffer Off set (same as Buffe r I D 00h) 21h 01000000h Buffer Off set (in other w or d s, 16MB) 2 2h 02000000h Buff er Offs et (in other w ords, 3 2MB) 2 3h 03000000h Buff er Offset (in oth er w or ds, 48MB)
Commands 163 Comman ds Mai n Pr oc es so r Me mo ry : Not a ll th e Proce ssor M emor y sp ace i s ac cessi ble. The following table shows vali d addr ess seg ments: SCSI Burst Buffer : The buff er is 192 Kb , that is , addr esses fr om 00000h thr ough 30000h. PCA EE PROM: The wr ite r a nge is limited to 100h b ytes, starting at 100h . St art Ad d r ess En d Address Size Descrip tion 180000h 1BFF FFh 25 6 KB max. Exter nal SR AM (if fitte d) 200000h 2 3FFF Fh 25 6 KB Fo rmatter AS I C 2 40 000h 2 7F FFFh 25 6 KB Servo Con trolle r AS IC 2 80000h 29FFFFh 128 KB White wate r ASIC (min us buffe r) FF80000h FFEFFFh 28 KB Ma in memo r y inte r na l SRAM
164 Comman ds WRITE FILEMARKS 10h W RITE FILEMARK S causes the specif ie d number of filemar ks to be wr it ten beginning at the cur ren t log i cal position on ta p e . If the Immed bit is set , GOOD statu s m a y be r eported and the marks left in the data buffer . Other wise , all buffer ed data and marks ar e wr it ten bef or e status is re p o r t e d . If z er o f ilemar k s ar e to be wr itten , the Immed bit mu st be ze r o. T he dr i ve w r ites an y buff er ed data and marks to ta pe befor e r eporting. This is the r e commended w ay f or a host to flush the buffer . Pre-Ex ec ution Checks: Command Descri ptor Block: CDB Fields: Spec ific Status: Wr i t e F i l e m a r k sense is i dentical t o statu s for t h e Wri t e command . Illegal Field Reservation Deferred Error Unit Atte ntion Media Acce ss Media Write Diagnostic Statu s 7 6 5 4 3 2 1 0 0 Oper ation Code (10h) 1 Res e r ved (0 ) WSmk I m me d 2 (MSB) Number of Filemarks 4 (LSB) 5 Contr ol Immed 0 Status will not be returned until the o peration is complete . 1 The driv e returns GOOD status fo llo wi n g th e pr e-e xec u t io n c h ecks (that is, bef ore the comman d starts ex ecuting). WSm k 0 This bit is not supported and must be set to zero. Number of Marks 0 Zero is valid only when imme diate rep o rt is disabl ed. >0 This n umber of file marks is to be written.
glossary 165 Glossary algorithm A r i gor ou s set of r ules fo r a pr ocedure . In the con t e xt of data com pr ession , t he r ules are f or transfo rming the way dat a is r epres ented. ANSI A merican National St andards Institute , wh i ch sets standar ds for , amongst other t h ings , SC SI a nd t he safety of electr ical dev ices . as ync hro no us se e data transfer phas e BOM Be ginning Of M edia . The f irst poin t on the tape th at can be access ed by the dr i ve . check sum The sum of a ser ies of b ytes wr it ten to the tape , whic h ca n be chec ked against the sum of th e sa me series of bytes whe n the tape is rea d in order to ident ify err o r s . compression A procedur e in whi ch data is tr ansfor m ed b y the r emov al of redundant info r mation in or der to r ed u ce the numbe r of b its r equir ed to re pr esent the data . co m pre s si o n ra ti o A meas ur e of ho w much compr ess ion has occurr e d , def ine d as the r atio of the amount of uncompr essed data to the amount o f compr essed data into which it is tr ansfor med. The L T O -DC algor ithm c an typi c ally achi eve a compr ession r atio of between 2:1 and 4:1 dep ending on the natur e of the data. data set A fi xed-si z e block of com pr essed hos t in f ormati on. ( 404, 35 2 byte s) data transf er phase On a SCS I bus, de vi ces put in r equests to b e a ble to tr an sf er infor mation . Once a dev ice is gr anted its r e quest , it a nd the tar get to which it w a nts t o send infor mation can tr a nsf er the data using one of thr ee pro tocols (assum ing both de vi ces support them) : as ync hro nous, s ync hro nous, and w ide. In as ynchr onou s tr ansfer s, the tar get contr ols the flo w of dat a. The initia tor can only se nd data when the tar get has acknow le dged r eceipt of the pr ev ious pack et. All S CSI de vice s mu st support as ynchr o no us tr ansfer . In s ynchr onous data tr ansfer , the initiato r and tar g et w ork in sy nchro ni z atio n , allow ing tr ansmi ssi on o f a pack e t of data t o start bef ore ac know ledgment of the pr ev ious tr ansmission. In w i de glossary
166 g lossary (16-b it) d ata tr ansf er , two b yte s ar e tr ansf er re d at t he same time ins tea d of a single byte . HP Ultrium dri ves su pport as ynchr onous, s ync hr onous and w ide tr ansfer s. decompression A pr ocedu r e in w hich the or iginal data is genera ted fr om compr essed data. DSIT Data Set Infor m ati on T able . P art of the data set that descr i bes its conten ts. ECMA Eur opean Compu t er Manufactur ers Assoc iatio n. The Eur opean equi valent of ANSI. enhanced commands S C S I commands that ar e v endor -unique and not part of the common SCS I set . EOD End Of Data . An ar ea that si gn if ies t he end of the valid data . If new data is wr itten ov er a la r ger quantity of old data , it is p ossible f or data to ex ist after EO D , bu t b ecau se it is a fter E OD, t h is old dat a is no longer v a li d . EOM End Of M edia for mat. T he l as t usable point on the tape . EW-EOM E arl y W arning End Of Media. A ph y sical mar k or a de v ic e- computed positi on on th e t ape th at tell s th e d ri ve th at i t is ap pr oa chin g EOM. filemark A mark wr itt en b y the host. It does not ne cess a r ily se par ate f iles; it is u p to the host to as sign a m ean ing to th e m ark. filemark cou nt The numbe r of f i lem arks w ritten since the beginning of the c urr ent tape up to and including the curr ent gr oup . FRU F ield Replac eable Unit, an assembl y or gro up of components that is r eplaced in its ent ir et y by Service Engineers when it contains a fault . host The host c omputer s ystem acting as contr oller for the dr iv e. immediate mode A mode of r esponding to SCS I commands wher e the dr i v e or other peripher al does not w ait until the command has f inished befo r e r eturning statu s infor mation back to the host . F or wr iting filemarks, Immediate mode can signif i cantl y im pr ov e the perfor mance of s y stems that do not se t the Immediate bit when sending a S CSI W rite F ilemarks comma nd . On the other ha nd , data is not flushed to t ape in r esponse to a f ilema r k command. load The pr ocess in wh i ch the dr ive tak es in an in serted cartr i dge and goes online . LU N Logical Unit Numb er , by which differ ent dev i ces at a partic ular SCSI ID can be addr essed indiv idually . The dr ive has a f ixed L UN of 0. LV D Low - V o ltage Differ ential. See SCS I .
glossary 16 7 glossary RA W see re ad - a f t er -w ri te read -aft er-write RA W impr ov es data integrity by r eading data imm ediatel y a fter it is wr itten and wr iting the data again if a n err or is f ound . reser ved Not gener ally av a ila ble for use w ith the dri ve . A re served fi eld should c ontain all zer o bits. SCSI Small Computer S ystem Inte rface—a standar d command specif ication and command se t that enabl es comput ers an d per ipherals to communicate with each other . H P’s Ul tr i um dri ves adhere to the SCSI specif ications (see Chap ter 1, “Interf ace Implementati on ” in V olume 3, The SC SI Interfa c e , of the HP Ultrium T e c hnical Ref erence Manual ) and support all features r e quir ed b y those st andard . Single-Ended and Low Voltage Differe ntial SCSI T hese t erms de f ine ho w the si gnals ar e transmitt ed along th e cable . With single -ende d (SE) SCS I, each si gnal tra vels o ver a single wir e and each signal's v alue is deter mine d b y c ompar in g the signal to a pa ir ed gro und wir e . Signal quality tends to decr e ase o ver longer cable lengths or at incr eased signal speed . With low voltage differen t ial (L VD) sign aling , signals tr avel al ong t wo w ires and the differ ence in voltage between the wire pa irs d etermi nes the s ig nal v alue . This enabl es f a st e r dat a r ates and lon ge r ca bl ing w ith l e ss sus cep t ibil ity to noise than SE signaling and reduced powe r consumption . Narrow and Wide, Fast, Ultra and Ultra2 SCSI Narr ow S CS I de vi ces can transf er data one b yte at-a-time (a nd ar e sometimes called “8-bit S CSI” de v ices). Th ey can conf orm t o eit h er t he SCSI- 2 or S CSI-3 pr otoc ols. The y hav e a 50 -pin co nnection to the S CSI bus. Wide S CSI de vi ces can transf er t wo b ytes of data sim ultaneously (“16 -bit S C S I”) . The y us uall y have a single, 68-pin connection to the SCS I bus. (T his ph ysical arr angement is pa rt of t he SCSI-3 spec ifi c atio n.) Th e y m a y support eithe r SC SI- 2 or S CSI-3 pr otocols. W ide and narr ow de vi ces can simultaneousl y b e connected to the same bus witho ut pr oblem, pr ov ided certain rules a r e follow ed. Fa s t SCS I can tr an sf er data at up to 20 MB/s wi de, using a cable of u p to 6 mete rs tota l len gth. Ultra SC SI can transfer dat a at up to 4 0 MB/s wide , but the cable length cannot ex ce ed 3 meters (it is al so kno wn as “ F ast20”) .
168 g lossary Ultra2 S CSI can transfer dat a at up to 80 MB/s wi de , using a cable of up to 2 5 meter s total length fo r a single de vice , or up to 12 meter s for t w o or mo re de vices (it is also kno wn as “F ast40”) . Ultra3 or Ult r a 160 can transfer dat a at up to 16 0 MB/ s w ide . Cable lengths ar e as fo r Ultra2 . Ultra4 or Ult r a 3 20 w ill tr an sf er at up t o 320 MB/s. Ultr a SC SI supports both SE and L V D inte rfaces. In normal situations, sl ow er de vi ces can coe x ist w ith f aste r de vi ces, and nar r o w dev ice s can be us ed on the same SC SI bu s as wi de devi c es u sing a suitable adapter . HP’s Gener ation 1 Ultr ium dr i ve s are Ultr a 2 , wide S CSI-3 co mpatible de vi ces. The y can be used wit h both L VD a nd SE host b us adapt ers. Gener ation 2 Ultr iu m dr ives ar e Ultra160, wi de SC SI-3 co mpatible . sense data Da ta return ed a fter the ex e cution of a S CSI co mma nd, tel lin g the host whether the tr ansacti on wa s successf ul , and if not , what w ent wr ong. sequential access Sequential access de vi ces stor e data sequentially in t he or der in which it is r ec e i ved . T ape dev ices ar e the most c o mmon sequenti al access de vice s. Dev ices such as disk dr ives ar e direct access de vices, wher e data is sto red in bloc ks, not nece ssaril y sequen tially . Direc t access allow s for s pe ed of r etr ie val , but is signif icantly mo re cos tly . single -ended see SCS I spacing Spac ing is mov i ng along the ta p e o ver a specif ied number o f bloc k s or fil emar ks, or to E O D , in orde r to find data qui ckl y . sub-data set One six teenth o f a data set (25 27 2 b y tes) s ync hronous see data transfer phas e T apeAler t A set of 64 flags is he ld in the T apeAlert l og that indicat e faults or pr edicte d fa u l t s wi t h t h e d ri ve o r t h e m e d i a. B y re a d i n g t h i s l o g, h o s t s o f t wa re c a n i n fo r m the user o f e xisting o r impending conditions, and can , f or ex ample, ad v ise t he user to change th e tape. vendor -unique The addition of commands to S CSI t h at ar e not included in the standard .
Index 16 9 Index A abort handling 16 Abo r t ed Comm and 136 ACK si gna l 24 addition al sense code s 13 0 , 136 addres sin g, fib re channel 20 alg orith ms 165 compressio n 83 decompre ssion 83 ANSI 3 , 165 appe nd erro r 13 9 asyn chro nou s 16 5 asynchronous data transfer 13 ATN s ign al 24 B Bad LUN check 32 bit pointer 131 BLANK CHECK 13 6 blank me dia , met durin g read 98 blo cks, s paci ng ove r 148 BOM 130 , 16 5 dete cted 136 met d uring spac e 149 BOP, met dur ing space 149 BPV bit 131 brac k et s, roun d, squ are 74 BSY signal 23 buff er ech o 112 , 161 reading 111 writing 157 , 160 buffered d ata, flushed to tape 154 burs t si ze 80 bus de vice deferre d errors 134 bus device reset 15 , 133 bus inactivity limit 80 bus parity erro rs 18 BUSY status 30 C cartridge me mory acc essi bl e in ho ld po sitio n 56 , 82 fail ed 56 , 155 size 113 cartridges fault y 13 9 remo va l prev ent ed 140 CDB 38 CHECK CONDI TION 29 checksum 16 5 cleaning 131 , 138 cleaning ca rtridge 13 8 clearing logs 60 CLN bi t 131 comman d des criptor bloc k 38 comman d phase erro r 13 9 comman ds 41 enhan ced 166 ERASE 42 INQUIRY 44 LOAD/UNLOAD 55 LOCATE 58 LOG SELECT 60 LOG SENSE 62 MODE SE LECT 72 MOVE MEDIUM 94 overl appin g 139 READ 95 index
17 0 Index READ ATT RI BUT E 99 READ BLO C K LIM I T S 110 READ BUFF E R 111 READ POSIT ION 115 RECEIVE DIAGNOSTI C RESULTS 119 RELE ASE U N IT 121 REPORT DENSITY SUPPORT 12 3 REP ORT LU N S 126 REQ UEST S E NSE 128 RES E RV E UNIT 141 REWI ND 144 SEND DIAG NOSTIC 145 SPACE 14 8 suppor ted 14 VERIFY 15 2 WRITE 154 WR ITE A TTRIB UTE 15 7 WRITE BUFFER 160 WRITE FILEMAR KS 164 compatibility 138 compressio n 16 5 alg orith m 83 ratio 165 control byte 38 control field 39 Contr ol Mode page 81 current sense 132 clearing 13 2 D Data Co mpression Capa ble bi t 82 Character istics Mode pa ge 82 Enable bit 82 log 70 SDCA 84 data comp res sion 16 5 alg orith m 83 data de compre ssi on al gorit hm 83 Data D ecompressio n Enable bit 83 data phase erro r 139 DATA PROTECT 13 5 data transfer asyn chro nou s 13 synch r onous 13 data transfe r phase 165 DCC bit 82 DCE bit 82 DDE bit 83 decompr ession 16 6 algor ithm 83 Deferred Erro r check 33 DEFERRED ERROR s ense 133 deferr ed errors 130 Device Configuration page 83 Diagnostic St atus check 33 diagnostics 119 fail ure 139 sending 145 disconn ect strateg y 19 Disconnect-Reconnect M ode page 79 docume nts, re lated 3 drive e rror code s 131 , 140 DSIT 166 E ech o bu ffer 112 , 161 ECMA 166 ejec tion f ailu re 13 9 enhan ced c omman ds 166 EOD 166 detected 136 met during locate 59 met during read 97 met d uring space 149 not found 13 7 spacing to 148 EOM 130 , 16 6 detected 136 met during locate 59 met during read 97 met d uring space 149 EOP, me t during space 149 ERASE command 42 eras e , fail ure 139 error code s 130 , 140 drive 131 error s bus device defe rr ed 134
Index 17 1 Index comman d phase 139 counters 65 , 66 data phase 139 def erred 130 invalid message 139 messa ge 139 pari ty 13 9 read, u nrecovere d 13 7 seq ue ntial pos i tioni n g 139 write 13 7 write ap pend 13 9 write-be hin d de fe rred 134 EVPD bit 44 EW-EOM 166 met during locate 59 F fai led c art ridge me mory 56 , 155 faults, predicting 67 fibr e chan nel addres sing 20 names 20 Fibre Chann e l Logi c al Unit Contro l Mode p age 86 fibre chan nel op er atio n 20 Fibr e Channel Port Co ntrol Mode page 87 fiel d poin ter 131 field replaceable units 23 fiel d, inva lid 13 7 file mark co unt 166 file marks 130 , 166 dete cted 136 met during read 97 met d uring spac e 149 spacing ov er 148 writing 164 Fixe d bit 96 , 155 Fixe d Bit c h eck 34 Flag L i nk check 34 flush , buff ered da ta 154 format, corrupt 138 FRUs 23 , 166 G GOOD status 29 grou p code 38 H hard resets 16 HARDW ARE ERROR 135 heads, clea ning 131 hold b it 56 hold positio n 56 , 82 Hos t 166 I IDENTIFY message, invalid bits 13 9 ILI bit 130 Illega l Comman d chec k 34 Illeg al Field check 34 ILLEGAL REQUEST 135 immediate mode 166 during writing 154 Inform ation Exceptio n s Mo de page 89 INQUIRY command 44 data pag es 45 Defined Identifier s pag e 52 Device Identificatio n page 51 drive co mp onent re vi s ion level s page s 53 Unit Seri al Num ber page 50 interface , SC SI 13 L librar ies, fibre chan nel addres sing 22 Load bit 56 LOAD/UNLOAD com ma nd 55 loa ding 166 fail ure 139 tape 56 LOCATE command 58 LOG SELECT command 60 LOG SENSE 62 Data Com p ression Log p age 70 paramete r pa ge s 63
17 2 Index Performance Data Log p age 70 Read Erro r Counters Log pa ge 66 Sequential Access D evice Log pag e 66 Suppo rted Log Pa ges page 64 Tape Ca pacit y L og pa ge 69 Tape Usage Log pag e 69 TapeAlert Log page 67 Writ e Err o r Co unters Log pag es 65 logs clearing 60 Data Co mpression 70 paramete r pages 63 Performance Data 70 reading 62 suppor ted 64 Tape Ca pacit y 69 Tape Usag e 69 TapeAlert 67 , 168 LUN 166 beco ming rea dy 13 7 not ready 13 7 not self-con f igured 139 not supported 13 7 LVD 166 M MAM acc essi ble 13 9 full 140 inaccessible 13 7 not ready to access 138 write erro r 13 7 Mark b it 130 Media Acce ss check 35 Media I nformation check 36 Media Wr ite check 37 MEDIUM ERROR 13 5 Medium Par titions Mo de pag e 85 messa ges 25 error 139 invalid 13 9 suppor ted 14 microcod e download 13 9 Mode Para me ter pages 74 MODE SE LECT command 72 Contr ol Mode page 81 Data Com pres sion Ch aracte ris t ics page 82 Device Configuration page 83 Disconnect-Reconnect p age 79 Fibr e Chann el Log ical Unit Con trol Mode pa ge 86 Fibr e Chan nel Por t Contro l Mod e page 87 Informatio n Exceptions Mode page 89 Medium Part itions pag e 85 Mode Parame ter header 75 Mode Para me ter pages 74 Read-Write Erro r Recovery page 78 monitoring co ndition 67 , 168 MOVE MEDIUM command 94 MSG sig nal 24 multi-initiator support 19 N names, fib re chann el 20 NO SENSE 135 NOT READY 135 O opcod e 38 unrecogniz ed 13 7 overl appi ng co mman ds 139 P parall el protocol reque st 28 Parame ter L ist check 37 parameter list, inv alid field 13 7 parameter rou nding 138 parity erro r 139 Performance Data log 70 power- on 133 PPR 28 pre- execu tion ch ecks 32
Index 17 3 Index Bad LUN 32 Defer red Error 33 Diagnostic Status 33 Fixe d Bit 34 Flag Li nk 34 Illeg al Com mand 34 Illeg al Fi eld 34 Media Acce ss 35 Media I nformation 36 Media Write 37 Parameter List 37 Res erva tion 37 Unit Attention 38 prev ent med i a re moval 140 prob lems, pred i c ting 67 R RAW 16 7 READ ATT RI BUT E comma nd 99 READ BLO C K LIM I T S com mand 110 READ B UFFER co mmand 111 READ com ma nd 95 Read Error Co unters Log p ag e 66 READ POSIT I ON co mmand 115 reading error 13 7 fail ure 59 , 98 logs 62 Read-Write Erro r Recovery Mode pag e 78 RECEIVE DIAGNOSTI C RESULTS command 119 RELE ASE U N IT com ma nd 121 REPORT DENSITY SUPPORT command 12 3 REP ORT LU N S com mand 12 6 REQ sig nal 24 REQ UEST S E NSE command 128 data 129 reselect fail ure 139 Res e r vat ion ch eck 37 RES E RVATI ON CO NFL I C T sta t us 30 reserv atio ns, relea sing 12 1 RESE RVE UNIT comma n d 141 reserv ed fie ld 39 , 16 7 reset 133 strategy 15 REWIN D co mmand 144 rounding 138 RST s ignal 24 S SCSI 3 , 13 , 16 7 comman ds 41 interface 13 messa ges 25 parity erro r 13 9 signals 23 suppor ted message s 14 SCSI-2, su pport 15 SCSI-3 13 SDTR 28 SEL signal 23 select fa ilure 139 self-test 119 , 145 SEND DI AGNOSTIC co mmand 145 sense DEFERRED ERR OR 133 UNIT ATTENTION 132 sense data 168 manage ment 131 sense ke ys 130 , 135 specific bytes 130 sequen tial ac cess 168 Sequential Access command set 13 Sequential Access De vice Log page 66 sequential positioning erro r 13 9 signals 23 SILI bit 96 error 97 SKSV bit 130 soft resets 15 SPACE command 148 spacing 168 status BUSY 30 byte 29
17 4 Ind ex CHECK C O NDIT ION 29 GOOD 29 RES ERVA T ION C ONF LIC T 30 Summary 31 suppor ted commands 14 Suppo rted Log Pa ges page 64 synch ronous 168 synch ron ou s data transf er 13 synch r onou s data transf er r e qu est 28 T tape fault y 13 9 incompatible 138 loa ded 133 loa ding 56 remo va l prev ent ed 140 unlo ading 57 Tape Ca pacit y lo g 69 Tape Usag e log 69 TapeAlert log 168 TapeAlert Log page 67 third-party , re serv ing for 121 U Unit Attention check 38 UNIT ATTENTION sens e 13 2 , 135 UNLOAD command 55 unloadin g tape 57 V Vendor-Unique 168 VERIFY command 15 2 Volume Overflow 136 W WDTR 28 wide data t r ansf e r requ est 28 write appe nd erro r 13 9 error 13 7 WR ITE A TTRIBU TE co mmand 157 WRITE BUFFER command 160 WRITE command 154 write de lay time 84 Writ e E rro r Counters Log pag e 65 WRITE FILEMAR KS command 164 write-be hind deferre d erro rs 134 writ e-pro tectio n 137 WSmk bit 164