HP Lto 5 Manual
Have a look at the manual HP Lto 5 Manual online for free. It’s possible to download the document as PDF or print. UserManuals.tech offer 1114 HP manuals and user’s guides for free. Share the user manual or guide on Facebook, Twitter or Google+.

01234567 Reserved(0)6 TargetPortCount(1)7 Reserved(0)8 9 RelativePortIdentifier(0)10 11 Port001hRelativePortIdentifier Port102h REPORTTIMESTAMPA3h(0Fh) TheREPORTTIMESTAMPcommandrequeststhedeviceservertoreturnthevalueofthelogical unit’stimestamp. Pre-executionchecks UnitAttentionDeferredErrorReservationIllegalField Commanddescriptorblock 01234567 OperationCode(A3h)0 ServiceAction(0Fh)Reserved(0)1 Reserved(0)2–5 AllocationLength6 9 Reserved(0)10 Control11 CDBfields Thedrivewillreturnuptothisnumberofbytes,truncatinganyparameterdataasnecessary.AllocationLength REPORTTIMESTAMPparameterdata 01234567 TimestampParameterDataLength(0Ah)0 1 TimestampOriginReserved(0)2 Reserved(0)3 REPORTTIMESTAMPA3h(0Fh)181

01234567 Timestamp4 9 Reserved(0)10–11 Thedrivewillreturnuptothisnumberofbytes,truncatinganyparameterdataasnecessary.TimestampParameter DataLength Timestampinitializedtozeroatpower-onastheresultofahardreset.000bTimestampOrigin Reserved001b TimestampinitializedbytheSETTIMESTAMPcommand.010b TimestampinitializedbytheDeviceTimemodepage(3Ch).011b Reserved100b–111b Thecurrentvalueofthetimestamp(thenumberofmillisecondsthathaveelapsedsincemidnight, 1January1970UT). Timestamp REQUESTSENSE03h TheREQUESTSENSEcommandtransferssensedataheldwithinthedrivetothehostduringa data-inphase.Thedataisvalidinthefollowingcircumstances: •AfterreportingCHECKCONDITIONstatustothehost. •Afteracommandhasterminatedunexpectedly. •Immediatelyafterthefollowingcommandsthatcausetapemotion: VERIFYSPACEREAD REWINDWRITEFILEMARKSWRITE Positionalsensedataisvalidwhenevermediaispresentandloadedandnohigherprioritysense dataispresent.Anunsolicitedrequestsense(thatis,onewithnoprecedingCHECKCONDITION) willresultinsensedatawithnovaliddata,whichwillbeallzeros. NOTE:Thedrivemaintainsvalidpositionalinformationfornormalreadandwritecommands only(READ,WRITE,SPACE,WRITEFILEMARKS,REWIND).Ifabnormalcommands(suchasWRITE BUFFER)arereceivedthispositionalsenseinformationislost.See“Sensedatamanagement” (page187). ThedriveclearssensedataforthehostfollowingexecutionoftheREQUESTSENSEcommandfor thathost,unlessthedataispositionalsensedata. Pre-executionchecks OnlyIllegalFieldCheckisperformedbeforeexecutionofthecommand. Commanddescriptorblock 01234567 OperationCode(03h)0 DESCReserved(0)LUN1 Reserved(0)2–3 182Commands

01234567 AllocationLength4 Control5 CDBfields Thisfieldisignored.LUN FixedFormatsensedatawillbereturned.0DESC DescriptorFormatsensedatawillbereturned.1 Nodataistransferredtothehost.0Allocation LengthThemaximumamountofsensedatainbytesthatshouldbetransferredtothehost.Thedrive returnsuptoAllocationLengthbytesofdata;anyextrasensedataislost. >0 REQUESTSENSEdata SensedataisrecoveredfromthedrivebymeansofaREQUESTSENSEcommandfollowingthe reportingofCHECKCONDITIONbythedrive.Therearetwoformatsinwhichthedatacanbe returned:FixedandDescriptor. Fixedformat TheFixedformatofthereturneddataisasfollows: 01234567 ErrorCodeValid0 SegmentNumber(0)1 SenseKeyRsvd(0)ILIEOMMark2 InformationBytes(MSB)3 (LSB)6 AdditionalSenseLength(10h)7 CommandSpecificInformationBytes(MSB)8 (LSB)11 AdditionalSenseCode12 AdditionalSenseCodeQualifier13 FieldReplaceableUnitCode14 BitPointerBPVReserved(0)C/DSKSV15 FieldPointer/DriveErrorCode(MSB)16 (LSB)17 Reserved(0)18–20 Reserved(0)CLNReserved(0)21 Padbytes(0)22 23 REQUESTSENSE03h183

ReturnedSensedatafields IndicatesthattheinformationbytescontainvalidinformationasdefinedintheSCSI specification. 1Valid Indicatesthattheerroriscurrent,thatis,itisassociatedwiththecommandforwhich CHECKCONDITIONstatushasbeenreported. 70hErrorCode Indicatesthattheerrorisdeferred.Adeferrederroroccurswhenthereisafailurefor anoperationthathasalreadybeenterminatedwithaGOODstatus,orwhenfailure occursin“cleanup”activityfollowinganoperationthatwasterminatedbyBUS RELEASE.ThecommandforwhichCHECKCONDITIONstatuswasreportedistherefore unlikelytobethecauseofthedeferrederror.Itsimplygivesthedrivetheopportunity toreportCHECKCONDITIONstatusforanerrorthatalreadyexists. 71h Thisfieldisclearedtozero.SegmentNumber TheMarkbitissetto1ifaSPACE,READorVERIFYcommanddidnotcomplete becauseafilemarkwasread.ThisbitmayonlybesetifthesensekeyisNOSENSE. 1Mark TheEndofMediumflagissetifaWRITEorWRITEFILEMARKScommandcompleted intheearlywarningarea.Ifnoothererroroccurred,thesensecodewillbesettoNO SENSEwithadditionalsenseof0002h(EOT).Ifanothererroroccurred,thesense codeandadditionalsensewillreflectthaterror.ItisalsosetifBOPisencountered whilespacingoverblocksorfilemarksinthereversedirection. 1EOM Indicatesthattherequestedblocklengthdidnotmatchtheactualblocklength.Only READandVERIFYcancausethisbittobeset. 1ILI See“Sensekeys”(page189)fordetailsofsensekeysthatcanbereturned.SenseKey TheInformationBytesfieldisonlyvalidiftheValidbitisset.Itcontainsresidueinformation followingthefailureofeitheraREAD,WRITE,WRITEFILEMARKSorSPACEcommand.The fieldcantakeanegativevalue,expressedin2’scomplementnotationfortheSPACEcommand. Seethedescriptionofthecommandthatfailedforthecontentsofthefield. InformationBytes Specifiesthenumberofadditionalsensebytestofollow.Itisnevertruncatedtoreflect theactualTransferLength. 10hAdditionalSense Length Providesadditionalinformationspecifictothefailingcommand.Thefieldisnormally setto0. 0CommandSpecific InformationBytes ThesetwobytesprovideadditionalinformationaboutthecauseoftheCHECKCONDITION, orthecurrenttapepositionwhentheREQUESTSENSEisunsolicited.See“AdditionalSense codes”(page191). AdditionalSense CodeandQualifier TheSenseKeySpecificBytes(bytes15through17)areinvalid.TheC/D,BPVand Bitpointerfieldswillbezero.ThetopbyteoftheFieldPointerwillbezero,andthe bottombytewillcontainaproduct-specificerrorcode. 0SKSV TheSenseKeySpecificBytesarevalid.Thiswillonlyhappenwhenthebytesassume theroleofFieldPointerBytesasdefinedbyANSI.ThisoccurswhenanIllegalField checkdetectsanerrorinacommanddescriptorblockoraParameterListcheckdetects anerrorinacommandparameterlist. 1 CommandData.OnlyvalidiftheSKSVflagisset.C/D TheFieldPointerinformationappliestotheparameterlistforthecommand.0 TheFieldPointerinformationappliestothecommanddescriptorblock.1 BitPointerValidBPV TheBitPointerfieldisinvalid.0 TheBitPointerfieldisvalid.IftheSKSVbitissetthentheBPVbitmustbesetaswell.1 Identifiesthebitpositionofthefieldinerror,whetheritisacommanddescriptororacommand parameterlistfield.Whenamulti-bitfieldisinerror,thiswillpointtothemostsignificantbitof thatfield.OnlyvalidwhentheSKSVflagisset. BitPointer 184Commands

IfSKSV=1,theinterpretationofthisfielddependsonthesensekeyreported.ForSenseKey =5(ILLEGALREQUEST),thisfieldrepresentstheFieldPointer,identifyinginwhichbyteofthe commanddescriptororparameterlistanerrorwasdetected. Notethatthedrivescansfrombyte0bit7ofacommandorparameterlistthroughtobyten bit0.Thefieldandbitpointersaresettopointtothemostsignificantbitofthefieldthatisin error.Seetheillegalfieldcheckandtheparameterlistcheck. ForSenseKey=0(NOSENSE)or2(NOTREADY),thisfieldrepresentstheProgressIndication, wherethereturnedvalueisanumeratorthathas65536(10000h)asitsdenominator.This reflectstheprogressbeingmadethroughthetotaloperation. IfSKSV=0,thisfieldrepresentstheDriveErrorCode.Thetopbyteofthisfieldwillbezero. Thebottombytecontainsthedriveerrorcodeassociatedwiththefailureoftheprevious command,orzerointhecaseofnofailureandnoappropriateerrorcode.Ifthedrive’spower-on self-testfailedthen,intheabsenceofanerrorcodeassociatedwiththemostrecentcommand, thisbytewillbesettotheerrorcodegeneratedbythefailingtest. Note:Driveerrorcodesareprovidedforinformationonly;theyareintendedtoassistinproduct integrationandfaultdiagnosis.Thecodesshouldnotbereliedonby“generic”hostdrivers, sincethesearespecifictotheproduct.Foralistofcodes,seeChapter10oftheHardware IntegrationGuide,Volume1oftheHPLTOUltriumTechnicalReferenceManual. FieldPointer/Drive ErrorCode ThedriveisOK. Thedriverequirescleaning.ThefrontpanelLEDswillbedisplayinga“cleanme” sequenceormessage.Thisbitisclearedtozeroafteracleaningcartridgehasbeen used. 0 1 CLN Descriptorformat TheDescriptorformatofthereturneddataisasfollows: 01234567 ResponseCodeValid0 SenseKeyReserved(0)1 AdditionalSenseCode2 AdditionalSenseCodeQualifier3 Reserved(0)4–6 AdditionalSenseLength(n–7)7 SenseDataDescriptor0(MSB)8 (LSB): : SenseDataDescriptorX: n ReturnedSensedatafields Theerroriscurrent,thatis,itisassociatedwiththecommandforwhichCHECK CONDITIONstatushasbeenreported. 72hResponseCode Theerrorisdeferred.Adeferrederroroccurswhenthereisafailureforanoperation thathasalreadybeenterminatedwithaGOODstatus,orwhenfailureoccursin “cleanup”activityfollowinganoperationthatwasterminatedbyBUSRELEASE.The commandforwhichCHECKCONDITIONstatuswasreportedisthereforeunlikely tobethecauseofthedeferrederror.Itsimplygivesthedrivetheopportunitytoreport CHECKCONDITIONstatusforanerrorthatalreadyexists. 73h REQUESTSENSE03h185

Thenumberofadditionalsensebytestofollow,≤244.Itisnevertruncatedtoreflecttheactual TransferLength. AdditionalSense Length AdditionalinformationaboutthecauseoftheCHECKCONDITION,orthecurrenttapeposition whentheREQUESTSENSEisunsolicited.See“AdditionalSensecodes”(page191). AdditionalSense CodeandQualifier Atleastonedescriptorissent(DriveErrorCode),theothersmayormaynotbesentdepending onthenatureoftheCHECKCONDITION. SenseData Descriptor InformationSensedatadescriptor 01234567 DescriptorType(00h)0 AdditionalLength(0Ah)1 Reserved(0)Valid(1)2 Reserved(0)3 InformationBytes4 11 SenseKeySpecificSensedatadescriptor Onlyoneoftheseisreported:FieldPointerorProgressIndication. FieldPointer TheSenseKeyissettoIllegalRequest. 01234567 DescriptorType(02h)0 AdditionalLength(06h)1 Reserved(0)2–3 BitPointerBPVReserved(0)C/DSKSV(1)4 FieldPointer5 6 Reserved(0)7 ProgressIndication TheSenseKeyissettoNoSenseorNotReady. 01234567 DescriptorType(02h)0 AdditionalLength(06h)1 Reserved(0)2–3 Reserved(0)SKSV(1)4 ProgressIndication5 6 Reserved(0)7 186Commands

Thepercentcompleteindicationinwhichthereturnedvalueisanumeratorthathas65,536 (10000h)asitsdenominator.Theprogressindicationisbasedonthetotaloperation. ProcessIndication StreamCommandsSensedatadescriptor 01234567 DescriptorType(04h)0 AdditionalLength(02h)1 Reserved(0)2–3 Reserved(0)ILIEOMMark4 DriveErrorCodeSensedatadescriptor(VendorSpecific) 01234567 DescriptorType(80h)0 AdditionalLength(02h)1 Reserved(0)2–3 Reserved(0)ILIEOMMark4 DriveErrorCode4 11 CleaningNeededSensedatadescriptor(VendorSpecific) 01234567 DescriptorType(81h)0 AdditionalLength(02h)1 CLN(1)Reserved(0)2–3 Reserved(0)4 Sensedatamanagement Thedrivemaintainsthreesetsofsensedataforeveryinitiatorthathasloggedin.Forasinglehost thefollowingsensedataismaintained: •Currentsense •UNITATTENTIONsense •DEFERREDERRORsense Unlessotherwisestated,allthefollowingdescriptionsapplytothesensedataforasinglehost whosecommandisbeingexecuted. Currentsense CurrentsenseisthedatathatisreturnedinresponsetoaREQUESTSENSEcommand.Itismodified orupdatedinthefollowingcircumstances: •ItisclearedinresponsetothearrivalofanycommandotherthanREQUESTSENSEor INQUIRY. •ItisclearedfollowingexecutionofaREQUESTSENSEcommand. REQUESTSENSE03h187

•Ifthecurrentcommandfails,senseissetaccordingtothefailureandCHECKCONDITION isreportedtothehostthatsentthecommand. •Ifthecommandfailsitspre-executioncheckforUnitAttention,UNITATTENTIONsenseis copiedtotheCurrentsense,andCHECKCONDITIONisreportedtothehostthatsentthe command. •Ifthecommandfailsitspre-executioncheckforDeferredError,DEFERREDERRORsenseis copiedtotheCurrentsense,andCHECKCONDITIONisreportedtothehostthatsentthe command. Clearingcurrentsense ClearingtheCurrentsenseinvolvessettingsensefieldsasfollows: Valid = 0 error code = 0x70 segment number = 0 ILI = 0 sense key = 0 information bytes = 0 command specific information = 0 fru code = 0 SKSV = 0 UNITATTENTIONsense UNITATTENTIONsenseissetwhenoneofthefollowingUnitAttentionconditionsoccur: •FCdrives:PowerOn,TargetReset,LogicalUnitReset,ProcessLogin(PRLI) •SASdrives:PowerOn,SCSIReset,(HARD_RESETprimitive),LogicalUnitReset •Mediainserted •Aloadcommandexecutedbyathirdparty •ModeSenseparameterschangedbyanotherinitiator •Drivefirmwarehasbeenupdated UNITATTENTIONsensewillpersistforahostuntilthehostsendsacommandthathasUnitAttention aspartofitspre-executionchecks.WhentheUnitAttentionpre-executioncheckfails,theUNIT ATTENTIONsenseiscopiedtotheCurrentsenseandCHECKCONDITIONstatusisreportedto thehost.TheUNITATTENTIONsenseiscleared.ThehostisthenexpectedtoissueaREQUEST SENSEcommandtorecovertheUNITATTENTIONsense(whichisnowthenewCurrentsense). ItispossibleformultipleUNITATTENTIONconditionstoarise(forexample,afterapower-on followedbyatapeload),suchthattheinitiatordoesnotreadoneconditionbeforethenextoccurs. Inthiscaseaprioritizingschemeisused.IfaUNITATTENTIONconditionexistsandanewone occurs,thentheUNITATTENTIONsensewillbeoverwrittenbythenewsenseonlyifthenewsense hasahigherpriority. Theorderofpriorityisasfollows: highestpriority lowestpriority Power-on,Reset TapeLoaded ModeParametersChanged MicrocodeDownloaded UNITATTENTIONsensethatarisesasaresultofacommandexecutingwillnotbepostedtothe sendinginitiator,butwillbesetfortheotherinitiators. 188Commands

DEFERREDERRORsense DEFERREDERRORsenseisgeneratedwhenanoperationfailsandCHECKCONDITIONstatus cannotbereportedtothehostforoneofthefollowingreasons: •Theoperationhadimmediate-reporton(forexample,REWINDwiththeImmedbitset,or LOAD). •Theoperationwasawritethatwasimmediate-reportedonafteritsdatawassuccessfully placedinthewrite-behindqueue. •Theoperationwasabandonedwithoutstatus(thatis,anSASorFCconnectionwasclosed) afterwhatthedriveperceivedwasacatastrophicerrororwhenanerroroccurredfollowing thedrive’shonoringofanABORTmessage.Followingthebusrelease,thedriveperformed “cleanup”activitythatfailed.TheDeferredErrorreferstothereasonforthisfailure. Whenanyoneoftheaboveoccurs,thesensegeneratedwillbeDEFERREDERRORsense.This sensepersistsuntilthehostsendsacommandthathasUnitAttentionaspartofitspre-execution checks.WhentheDeferredErrorpre-executioncheckfails,theDEFERREDERRORsenseismoved totheCurrentsenseandCHECKCONDITIONstatusisreportedtothehost.Thehostisthen expectedtoissueaREQUESTSENSEcommandtorecoverthenewCurrentsensedata,otherwise thedatawillbelost. Write-behinddeferrederrors IftheBufferedModefieldoftheMODESELECTparameterheaderisnotzero,databufferingis enabled.Ifanerroroccursinflushingthewrite-behinddata,DEFERREDERRORsenseissetforall hoststhatthedrivethinkshavewrite-behinddatainthebuffer.Foreachofthesehosts,thefollowing occurswhenitsnextcommandistobeexecuted: •IfthecommandisWRITEorWRITEFILEMARKStheDEFERREDERRORsenseiscopiedto CurrentsenseandtheerrorischangedtoaCurrenterror(theErrorCodefieldissetto70h). Theinformationbyteswillcontainresidueinformationreflectingthesizeofthewrite-behind queueplusthetransfersizeofthecurrentcommand.CHECKCONDITIONisreported.When thehostreadssensedatawithaREQUESTSENSE,itwillseeanerrorfortheWRITEwith residueinformationindicatingdatalostforthatwriteandpreviouswrites. •IfthecommandisnotawritecommandandtheDeferredErrorcheckisperformedaspartof thepre-executionchecks,CHECKCONDITIONstatusisreported.TheDEFERREDERRORsense iscopiedtoCurrentsense.TheDEFERREDERRORsenseiscleared.Thehostisexpectedto retrievethesensebysendingaREQUESTSENSE,otherwisethedatawillbelost. Busreleasedeferrederrors Thedrivewillreleasethebustoterminateanoperation(suchasREAD)whenthehostsendsan ABORTmessageorwhenthedrivefailstosendstatusduetoacatastrophicerror. Ineachcase,theoperationdoesnotterminateimmediatelysincethelogicalpositionwillhaveto beestablishedontheothersideoftheblockthatwasabouttobetransferred,orwasbeing transferred.Ifanerrorsubsequentlyoccurswhiletryingtocompletetheread,thesensegenerated isaDEFERREDERROR.ItisthereforepossiblebuthighlyunlikelytohaveDEFERREDERRORsense flaggedforacommandwithoutimmediatereport. Sensekeys ThefollowingtableliststhesensekeysthatmaybereturnedbyHPLTOUltriumdrives.SCSIsense keysare4-bitcodesreturnedinthesensedata.Theyindicateinwhatgeneralareatheproblem REQUESTSENSE03h189

thathasjustbeenexperiencedfalls.Foraclearerindicationofthenatureoftheproblem,referto theadditionalsensecode. ASC/QsDescriptionNameCode 0000h,0001h, 0002h,0004h, 0016h,0018h, 0019h,001Ah,8282h Thereisnorealproblem.Thesenseinformationis probablyindicatingsomecondition(suchas encounteringafilemark). NOSENSE0h 3700h,5D00h,5DFFhReturnedifaModeSelectparameteristruncatedor ifaTapeAlerteventisbeingreported. RECOVEREDERROR1h 0400h–0402h,0409h, 040Ch,0412h, 0B01h,3003h, 3A00h,3A04h,3E00h Thedriveisnotinastatetobeabletoexecutethe request.SeealsotheMediaAccesscheck. NOTREADY2h 0002h,0C00h, 1100h,1112h, 1400h,1403h, 3000h–3002h,3004h, 3007h,300Dh, 3100h,3B00h,5000h, 5200h,5300h,5304h Thecommandfailed,believedtobecausedbya problemwiththetape. MEDIUMERROR3h 40XXh,4400h, 53010h,8283h Thecommandfailed,believedtobecausedbya problemwiththedrivehardware.TheFRUinthe sensedatashouldindicatewhichpartofthe hardwareisfaulty. HARDWAREERROR4h 1A00h,2000h, 2400h,2500h, 2600h,2604h, 2C00h,2C0Bh, 3B0Ch,5302h, 5503h,5504h,5506h Thelastcommandsenttothedriveorthedata associatedwiththecommandviolatedconditions imposedbythedriveonitsacceptance.Seealsothe IllegalCommand,IllegalField,FixedBit,Reservation andParameterListpre-executionchecks. ILLEGALREQUEST5h 2800h,2901h–2907h, 2A01h–2A05h, 2A0Dh,2A10h, 2A11h,2A12h, 3F01h,3F05h,3F0Eh Indicatessomeconditionofwhichthehostneedsto bemadeaware.SeealsotheUnitAttentioncheck. UNITATTENTION6h 2601h,2700h, 2A13h,3000h, 3005h,300Ch, 300Dh,7400h–7405h, 7409h,740Ah, 740Bh,7461h–7464h, 746Eh,746Fh,7480h Arequesthasbeenmadetomodifythemedia despitethemediabeingwrite-protected.Seealso theMediaWritecheck. DATAPROTECT7h 0005h,1403hThedrivetriedtoreadunwrittentape.BLANKCHECK8h NeverreturnedbyHPtapedrivesVENDORSPECIFIC9h NeverreturnedbyHPtapedrivesCOPYABORTEDAh 0800h,2F00h,3F0Fh, 4700h,4701h, 4703h,4800h,4B00h, 4B02h,4B05h, 4D00h,4E00h,7408h Thedrivehasterminatedacommand.Thiscouldbe duetoaproblemrelatedtotheSCSIbusorFibre Channellink.Forexample,itisreportedifatarget orLUNreceivesasecondcommandfromthesame hostbeforethepreviouscommandfromthathosthas completed. ABORTEDCOMMANDBh NeverreturnedbyHPtapedrivesEQUALCh 190Commands