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+.

DescriptionTaskManagementFunctionCode PerformstheCLEARTASKSETtaskmanagementfunctionwith: L=LogicalUnitNumberfield CLEARTASKSET04h PerformstheLOGICALUNITRESETtaskmanagementfunctionwith: L=LogicalUnitNumberfield LOGICALUNITRESET08h SupportedbyFCforlegacyFChostdrivers.TARGETRESET10h I_TNEXUSRESET10h Reserved20h NotsupportedCLEARACA40h PerformstheQUERYTASKtaskmanagementfunctionwith: L=LogicalUnitNumberfield Q=TagofTasktoBeManagedfield QUERYTASK(SASonly)80h QUERYTASKSET81h QUERYASYNCHRONOUS EVENT 82h Reservedothers Taskmanagementfunctions21

4Introductiontocommands ThischaptercontainsnotesrelatingtotheSCSIcommandslistedin“Commands”(page29). Summary ThefollowingtableisasummaryoftheSCSIcommandsforsequentialaccessdevices,showing theoperationcode: CommandNameOpcode TESTUNITREADY00h REWIND01h REQUESTSENSE03h FORMATMEDIUM04h READBLOCKLIMITS05h READ08h READ6(CD-ROM)08h WRITE0Ah SETCAPACITY0Bh WRITEFILEMARKS10h SPACE11h INQUIRY12h VERIFY13h MODESELECT15h RESERVEUNIT16h RELEASEUNIT17h ERASE19h MODESENSE1Ah LOAD/UNLOAD1Bh START/STOPUNIT(CD-ROM)1Bh RECEIVEDIAGNOSTICRESULTS1Ch SENDDIAGNOSTIC1Dh PREVENTMEDIUMREMOVAL1Eh READCAPACITY(CD-ROM)25h READ10(CD-ROM)28h LOCATE2Bh SEEK(CD-ROM)2Bh READPOSITION34h WRITEBUFFER3Bh READBUFFER3Ch 22Introductiontocommands

CommandNameOpcode READTOC(CD-ROM)43h REPORTDENSITYSUPPORT44h LOGSELECT4Ch LOGSENSE4Dh MODESELECT(10)55h RESERVEUNIT(10)56h RELEASEUNIT(10)57h MODESENSE(10)5Ah PERSISTENTRESERVEIN5Eh PERSISTENTRESERVEOUT5Fh READATTRIBUTE8Ch WRITEATTRIBUTE8Dh REPORTLUNSA0h SECURITYPROTOCOLINA2h REPORTDEVICEIDENTIFIERA3h(05h) REPORTTARGETPORTGROUPSA3h(0Ah) REPORTSUPPORTEDOPCODESA3h(0Ch) REPORTSUPPORTEDTASKMANAGEMENTFUNCTIONSA3h(0Dh) REPORTTIMESTAMPA3h(0Fh) EnhancedFIRMWAREUPGRADEREPORTIMAGEINFORMATIONA3h(1Fh) READLOGGED-INHOSTTABLEA3h(1Fh) REPORTSNAPSHOTSAVAILABLEA3h(1Fh) READSNAPSHOTLOGA3h(1Fh) READSTTFLOGA3h(1Fh) REPORTSNAPSHOTCOMMANDSA3h(1Fh) REPORTSNAPSHOTCONFIGURATIONA3h(1Fh) REPORTEnhancedSNAPSHOTCONFIGURATIONA3h(1Fh) SETEnhancedSNAPSHOTCONFIGURATIONA3h(1Fh) READFIRMWARETRACELOGA3h(1Fh) REPORTIPCONFIGURATIONA3h(1Fh) SETIPCONFIGURATIONA3h(1Fh) MANAGEMENTARMSELF-TESTA3h(1Fh) REPORTNETWORKSTATISTICSA3h(1Fh) SETDEVICEIDA4h(06h) SETTIMESTAMPA4h(0Fh) EnhancedFIRMWAREUPGRADEDOWNLOADFIRMWARESEGMENTA4h(1Fh) EnhancedFIRMWAREUPGRADEREBOOTA4h(1Fh) Summary23

CommandNameOpcode FORCEDEJECTA4h(1Fh) FORCESNAPSHOTA4h(1Fh) SETSNAPSHOTCOMMANDSA4h(1Fh) SETSNAPSHOTCONFIGURATIONA4h(1Fh) READMEDIASERIALNUMBERABh(01h) SECURITYPROTOCOLOUTB5h SAS-specificVendor-UniqueENABLETLRSC2h Commanddetails Thecommanddescriptionsin“Commands”(page29)arelistedinalphabeticalorderofcommand name(ignoringwordslike“Enhanced”and“Vendor-unique”).Eachcommandisdescribedbriefly. Thisisfollowedbyalistofpre-executioncheckswhicharedescribedbelow.TheCommand DescriptorBlock(CDB)isthengiven,withdetailsofthevariousparameterbitsandfields. Pre-executionchecks NOTE:IncompliancewiththeSCSIspecification,thedriveterminatesacommandwithaCHECK CONDITIONstatusandsetsthesensekeytoILLEGALREQUESTwhenareservedbit,byte,field orcodeisreceivedwhichisnotzero. Beforeexecutingacommand,thedrivemakesanumberofchecks.Theyfallintothreecategories: •Checksonthecommandsentbythehost.Theseensurethatnoreservedorfixedfieldshave beensettoillegalvalues.Theycheckthesyntaxofcommands,inotherwordsthecross dependencyoffields.Forexample,theFlagbitmustnotbesetiftheLinkbitisnotset. •CheckstoensurethattherearenooutstandingUNITATTENTIONorDEFERREDERRORevents postedforthehostthathassentthecommand. •Checksonmediaaccessabilities.Theseareperformedforcommandsrequiringaccesstothe cartridge.Acommandisrejectedifitattemptstoaccessthecartridgewhennocartridgeis presentorthecartridgeisunloaded. Thechecksaredescribedbelowinalphabeticalorder.TheusualorderofexecutionisIllegalField, FixedBit,FlagLink,BadLUN,Reservation,DeferredError,UnitAttention,MediaAccess,Media Write,DiagnosticStatus,Humidity,ParameterList. BadLUNcheck ForallcommandsexceptINQUIRY12h,thischecksthattheLUNspecifiedbythehostiszero.The LUNistakenfromtheCOMMANDframethatencapsulatesthecommanddescriptorblock. •IftheLUNisunsupported,andthehostcommandisnotREQUESTSENSE,INQUIRYorREPORT LUNS,CHECKCONDITIONisreportedtothehostwithasensekeyofILLEGALREQUEST, andadditionalsenseof2500h(logicalunitnotsupported). •IftheLUNisunsupported,andthehostcommandisREQUESTSENSE,theoriginalsensedata isreplacedwithasensekeyofILLEGALREQUEST,andadditionalsenseof2500h(logical unitnotsupported).Thisnewsensedataisreturnedtothehost.Oncethecommandhas completedsuccessfully,thesensedataiscleared. 24Introductiontocommands

DeferredErrorcheck Adeferrederrorisgeneratedwhenacommandwithimmediatereportfailsafterthereporthas beenreturned.Thechecklookstoseeifadeferrederrorexistsforthehostwhichsentthecommand, inotherwords,adeferrederrorforwhichCHECKCONDITIONstatushasnotyetbeenreported. Ifsuchanerrorexists,thenthedrivereportsCHECKCONDITION.Thesensedataforthecommand issettoDEFERREDERROR(whichwasgeneratedwhensomepreviouscommandfailed). NotethatifaUNITATTENTIONconditionandaDEFERREDERRORconditionbothexistforan initiator,theDEFERREDERRORconditionwillbereportedfirst.Thisisbecausetheoperationleading tothedeferrederrormusthavebeenolderthanthatleadingtotheunitattention.Thedrivereports theconditionsintheorderinwhichtheyarose. DiagnosticStatuscheck Thisensuresthatthedriveisinafitstatetoaccessthemedia.Itdoesthisbycheckingthatthere isnoDIAGNOSTICFAILstatuswithinthedrive. Ifthedrivehasfaileddiagnostics,CHECKCONDITIONisreportedwithasensekeyofHARDWARE ERRORandadditionalsenseof400Xh(diagnosticfailureoncomponentX). FixedBitcheck FortheREAD,VERIFYandWRITEcommands,aFixedbitsetto1indicatesthatthelengthparameter ofthecommandisforfixedblockmode.Iffixedblockmodeisselectedthentheblocksizeinthe ModeSelectblockdescriptormustnotbezero.OtherwiseCHECKCONDITIONisreportedand thesensedataissetasdescribedfortheILLEGALFIELDcheck. FlagLinkcheck ThischeckensuresthatthehosthasnotsettheFlagbitinthecontrolbyteofthecommandwithout settingtheLinkbitaswell.IfthetestfailsthenCHECKCONDITIONisreportedwithasensekey ofILLEGALREQUESTandadditionalsenseof2400h(invalidfieldinCDB).TheFlagfieldis identifiedasthebadfield. IllegalCommandcheck Ifthedrivedoesnotrecognizetheopcodeofthecommandthatithasbeensent,itwilldooneof thefollowing: •ReportCHECKCONDITIONstatus.ThesensekeywillbesettoILLEGALREQUESTandthe additionalsensecodewillbesetto2000h(invalidcommandopcode). •Reportaninvalidfieldinthecommanddescriptorblock.ThesensekeywillbesettoILLEGAL REQUEST,theadditionalsensecodewillbesetto2400h(invalidfieldinCDB)andthefield pointerinthesensedatawillbezero. IllegalField/Requestcheck Checksareperformedtoensurethehosthasnotsetanyofthefollowinginthecommanddescriptor block: •afixedfield •areservedfield •thecontrolfield •twoormorefieldstologicallyconflictingvalues Pre-executionchecks25

Ifafieldhasbeensettoanillegalvalue: •CHECKCONDITIONstatusisreportedtothehostwithasensekeyofILLEGALREQUESTand additionalsenseof2400h“invalidfieldinCDB”. •Thesensekeyspecificbitissetandthesensekeyspecificbyteswillbeafieldpointer. •Thecommand/databitisset,indicatingthattheillegalparameterwasinthecommand. NOTE:Commanddescriptorblocksarescannedfromleft(bit7)toright(bit0),anddown (frombyte0tobyten).Thefieldpointerwillbesettopointtothefirstbitofthefirstillegal fieldencounteredusingthisscanningroute.Insomecases,wheremultiplefixedfieldsare contiguous,thefieldpointermightbesettopointtothefirstbitofthefirstfixedfieldinthe groupoffixedfields,whereastheactualillegalitymaylieinalaterbit. MediaAccesscheck Thischecksifthedriveisabletoperformmediaaccesscommands.Ifthemediaisinaccessible thenCHECKCONDITIONstatusisreportedwithasensekeyofNOTREADY.Theadditionalsense willbesettooneofthecodesassociatedwiththeNOTREADYkey. MediaInformationcheck Duringpower-onandfollowingaSCSIreset,knowledgeofthewhereaboutsofthecartridgeis unavailable.Itisnotpossibletoexecutecommandswhichassumethatthisknowledgeisavailable untilthedrivehasrecoveredfromthepower-onorreset. Thetestcheckswhetherthedriveknowsifacartridgeisphysicallypresentinthedrive. Ifinformationaboutthetapecartridgeisnotavailable,thetestfailswithCHECKCONDITION,a sensekeyofNOTREADY,andadditionalsenseof3E00(logicalunithasnotself-configuredyet). MediaWritecheck Thischeckswhetherthemediaiswrite-protected.Ifitis,CHECKCONDITIONisreportedwitha sensekeyofDATAPROTECTandadditionalsenseof2700h(write-protected). 26Introductiontocommands

ParameterListcheck ForLOGSELECT,MODESELECTandsomediagnosticcommands,theassociateddatasenttothe driveisintheformofparameterlists.Thesearedescribedunderthecommandnamesinthenext chapter.Checksareperformedtotestthefollowing: •Fixedandreservedfieldshavenotbeenmodified.Fixedfieldsareindicatedbyanumberin roundbracketsfollowingthefieldname. •Afieldhasbeensettoaninvalidvalue. •Thesyntaxofthepageofparametershasbeenviolated—forexample,whereaparticular valueinonefieldimposeslimitationsonthevalidrangeforanotherfield. Ifafieldhasbeensettoanillegalvalue,CHECKCONDITIONisreportedtothehostwithasense keyofILLEGALREQUESTandadditionalsenseof2600h(invalidfieldinparameterlist). ThedrivescansthedataintheCommandDescriptionBlockfrom“left”(bit7)to“right”,and “down”(frombyte0tobyten).Itsetsthefieldpointerstothefirstbitofthefirstbadfield encountered.Ifthebadfieldiscontainedinacontiguousgroupoffixedfields,thepointersindicate thefirstbitofthefirstfieldinthegroup,eventhoughtheerrormaybeinalaterfieldinthegroup. NOTE:WithMODESELECT,thedrivecheckstheintegrityofthewholeparameterlistbefore actingonanyparameters,soallthemodeparametersneedtobecorrectbeforeanyofthemare implemented. Reservationcheck Thischeckstoseeifthedrivehasbeenreservedforusebyahost,andifithas,whetherthehost isthesamehostthatsentthecommandbeingexecuted. IfthedrivehasbeenreservedforsomeotherhostthenRESERVATIONCONFLICTstatusisreported. Seethecommands“PERSISTENTRESERVEOUT5Fh”(page120),“RELEASEUNIT17h/57h” (page157)and“RESERVEUNIT16h/56h”(page197). UnitAttentioncheck ThischecksifaUNITATTENTIONconditionexistsforthehostwhichsentthecommand.Ifitdoes, thedrivereportsCHECKCONDITIONstatuswithasensekeyofUNITATTENTION.Theremaining sensedatawillbesetaccordingtotheunitattentionconditionwhichexists.SeeUnitAttention Senseinthedescription“REQUESTSENSE03h”(page182). Commanddescriptorblock ASCSIcommanddescriptorblock(CDB)isasequenceof6,10,12or16bytessentbyahost toaSCSItargetwiththebusincommandphase.TheCDBtellsthedrivewhatactionshouldbe performed. 01234567 OperationCodeGroupCode0 Reserved(0)1 Multi-ByteParameter(MSB)2 (LSB)n-1 Link(0)Flag(0)NACA(0)Reserved(0)VendorUnique(0)n Commanddescriptorblock27

ThereareanumberoffieldsinaCDBwhicharecommontoallcommands.Theseareshownin thefollowingtable. Theoperationcodeuniquelyidentifiesthecommand.Thetopthreebitsoftheoperationcode areknownasthegroupcodeandthesedefinethelengthofthecommanddescriptorblock: GroupCodeand OperationCode Six-bytecommands Ten-bytecommands Ten-bytecommands Six-bytecommands Sixteen-bytecommands Twelve-bytecommands Vendor-uniquecommands notsupported Group0 Group1 Group2 Group3 Group4 Group5 Group6 Group7 Areservedfieldshouldalwaysbesettozero.Thedrivechecksreservedfields,andifoneis non-zerothenitwillrejectthecommandwithCHECKCONDITION. Reserved Amulti-byteparameterfieldinacommandis“big-endian”,thatis,bit7ofthefirstbyteofthis fieldisthemostsignificant. Multi-ByteParameter Thecontrolfieldismainlyconcernedwiththeuseoflinkedcommands.Thesearenotsupported bytheLTOSCSIcommandset,soaCHECKCONDITIONwillbegeneratedifthisfieldisset toanythingotherthanzero. Control ThisfieldisignoredbythefirmwareVendor-Unique TheNormalACAflagis0,indicatingthatitisnotsupported.0NACA 0Flag Linkedcommandsarenotsupported.0Link 28Introductiontocommands

5Commands ThischapterdescribesallSCSIcommands.PartsofthechapterarebasedonsectionsoftheSCSI specification(see“Generaldocumentsandstandardization”(page233)). Forgeneralnotesonthecommanddescriptions,see“Introductiontocommands”(page22). Vendor-uniqueENABLETRANSPORTLAYERRETRIES(SASdrivesonly) C2h ThisprovidesafastbenigncommandtoenableSASTransportLayerRetries.Thestateofthe TransportLayerRetriessetbythiscommandforagivenhostisreflectedintheProtocol-Specific LogicalUnitmodepageforSASSSP(18h)forthathost. Pre-executionchecks IllegalField Ifthecheckpasses,GOODstatusisreported. Commanddescriptorblock 01234567 OperationCode(C2h)0 EnableReserved(0)1 Reserved(0)2–4 Control5 CDBfields EnablesordisablesSASTransportLayerRetriesforthisinitiator:Enable Disabled0 Enabled1 EnhancedFIRMWAREUPGRADEDOWNLOADFIRMWARESEGMENT A4h(1Fh) TheEnhancedFIRMWAREUPGRADEDOWNLOADFIRMWARESEGMENTcommandallowsthe applicationclienttodownloadafirmwareimage,viaaninternalcachebuffer,totheSecondary Imagebank.Noimageshouldbeconsideredwrittentotheflashuntilthiscommand,sentwith LAST=1,returnsGOODstatus. Pre-executionchecks DeferredErrorReservationIllegalFieldUnitAttention Commanddescriptorblock 01234567 OperationCode(A4h)0 ServiceAction(1Fh)Reserved(0)1 Vendor-uniqueENABLETRANSPORTLAYERRETRIES(SASdrivesonly)C2h29

01234567 HPLTOVUMIOpcode(05h)2 SegmentOffset(MSB)3 (LSB)5 SegmentLength(MSB)6 (LSB)8 Reserved(0)9 LastReserved(0)10 Control11 CDBfields Theoffsetwithinthebankatwhichthissegmentwillbestored.Theapplicationclientmust setthistozeroforthefirstdownloadsegmentcommand.(Itispossibletore-startthefirmware downloadprocessmanytimesbysettingSegmentOffsettozero).Thefieldhasthefollowing restrictions: •Itmustbeamultipleof4bytes. •Itmustresidewithinthebanksize(1.91MB). SegmentOffset Theapplicationclientisstartingafirmwaredownloadprocess.0 Thelengthinbytesallocatedofthesegmenttransferred.SegmentLength Thesegmentwillbecopiedtotheinternalcachebufferatthespecifiedoffset.0Last ItisassumedthatthelastbyteoftheimageisSegmentOffset+SegmentLength. Thenthewholeimageisvalidated,andifcorrect,transferredfromthecache buffertoflash.Statuswillnotbereturneduntilthefirmwarehasbeensuccessfully writtentotheSecondaryImagebank. 1 EnhancedFIRMWAREUPGRADEREBOOTA4h(1Fh) TheEnhancedFIRMWAREUPGRADEREBOOTcommandcausesthedrivetoresetandbootfrom thePrimaryImagebank.Statuswillbereturnedbeforereboottakesplace.Beforethereboot,all bufferedwritedataiswrittentotape,andthetapeisunloaded,orunthreadeddependingon configurationsettings. Pre-executionchecks DeferredErrorReservationIllegalFieldUnitAttention Commanddescriptorblock 01234567 OperationCode(A4h)0 ServiceAction(1Fh)Reserved(0)1 HPLTOVUMIOpcode(06h)2 SwapReserved(0)3 Reserved(0)4 10 Control11 30Commands