the SCSI interfacehp ultrium drivestechnical reference manualgeneration 2 SCSI and FC drivesvolume 3: the SCSI interfacePart Number: C7379–90900 Volum
10 Contents2 Messages 25Message Out Support (Parallel SCSI only) 25Message In Support (Parallel SCSI only) 26Extended Message Support 27Status 293 Com
100 CommandsCDB Fields:8(MSB)First Attribute ID9(LSB)10(MSB)Allocation Length13(LSB)14Reserved (0)15Control7 6 5 4 3 2 1 0Service Action Service actio
Commands 101CommandsReturned Data for Service Actions:Attribute Values Service ActionThis service reads the values of attributes for the specified vol
102 CommandsThe Available Data field specifies the length in bytes of the following data. If the amount of parameter data sent to the application clie
Commands 103CommandsThe Number of Volumes Available indicates the number of partitions available. Since Ultrium drives do not support multiple volumes
104 CommandsAttribute ID ValuesThe values in the Attribute ID field are assigned according to the source of changes or updates as follows.Device Commo
Commands 105CommandsRemaining Capacity in Partition andMaximum Capacity in PartitionThese are native capacities in MB, assuming no data compression.Lo
106 CommandsMedium Common AttributesThese attributes are hard coded into the MAM at manufacture time. The attributes defined are shown in Table 16. Al
Commands 107CommandsThe MAM Capacity is the total capacity of the MAM, in bytes, at manufacture time. It does not indicate the free space of a ‘blank’
108 Commandsattributes. In the absence of a formal registration procedure, T10 maintains a list of Vendor Identification codes in use. Vendors are req
Commands 109CommandsThe Partition User Text Label is a user level identifier for the partition specified in the CDB Partition Number fieldThe Load/Unl
Contents 11ContentsLOCATE 2Bh 58LOG SELECT 4Ch 60LOG SENSE 4Dh 62Log Page Format 63Supported Log Pages Page 64Write Error Counters Log Page 65Read
110 CommandsREAD BLOCK LIMITS 05hREAD BLOCK LIMITS tells the drive to return data defining the maximum block size that it can support. Note that this
Commands 111CommandsREAD BUFFER 3ChREAD BUFFER reads data from the memory on the drive and sends it to the initiator. The value of the Mode field det
112 CommandsMemory Sizes:00011b The drive returns a 4-byte descriptor for the buffer identified by the Buffer ID field. Invalid buffer IDs will return
Commands 113CommandsReturned Data:The format of the 4-byte descriptor for Mode 00000b is as follows:The format of the 4-byte descriptor for Mode 00011
114 CommandsThe format of the 4-byte Echo buffer descriptor for Mode 01011b is as follows:1(MSB)Buffer Capacity23(LSB)7 6 5 4 3 2 1 07 6 5 4 3 2 1 00R
Commands 115CommandsREAD POSITION 34hThe READ POSITION command returns data representing the current logical position to the host. The position is th
116 CommandsThe Long bit and the TCLP bit must be equal. If they are not, the command will terminate with CHECK CONDITION status. The sense key will b
Commands 117CommandsReturned Data—Long Read Position:The format of the 32 bytes of data returned in long format for READ POSITION is as follows:Return
118 CommandsMPU Mark Position Unknown0 The File Number and Set Number fields are valid.1 Mark position is unknown. If set, then the File Number and Se
Commands 119CommandsRECEIVE DIAGNOSTICS RESULTS 1ChRECEIVE DIAGNOSTIC RESULTS tells the drive to return data from the last diagnostic test requested
12 ContentsHost Common Attributes 107READ BLOCK LIMITS 05h 110READ BUFFER 3Ch 111READ POSITION 34h 115RECEIVE DIAGNOSTICS RESULTS 1Ch 119RELEASE UNIT
120 CommandsIf other invalid pages are requested, CHECK CONDITION will result with status of ILLEGAL REQUEST and additional sense of 2601h, “parameter
Commands 121CommandsRELEASE UNIT 17h/57hRELEASE UNIT enables the host to release any reservation it may have on the drive. Reserving a device is a wa
122 Commands10-Byte OnlyRelease Unit Specific Status:Status is returned as follows: If the drive is not reserved, GOOD status is reported. If the dr
Commands 123CommandsREPORT DENSITY SUPPORT 44hThe Report Density Support command returns details about the tape formats supported by the drive.The da
124 CommandsHeaderThe available length gives the total amount of data that is available to be returned.Descriptor BlocksThe header is followed by one
Commands 125CommandsThe values reported for the Ultrium 2 format tapes are as follows:24(MSB)Density Name31(LSB)32(MSB)Description51(LSB)7 6 5 4 3 2 1
126 CommandsREPORT LUNS A0hDescription:The Report LUNS command allows the host to retrieve information about what logical units the drive supports. T
Commands 127CommandsList of LUNs8(MSB)LUN 0 (0)15(LSB)7 6 5 4 3 2 1 0
128 CommandsREQUEST SENSE 03hThe REQUEST SENSE command transfers sense data held within the drive to the host during a data-in phase. The data is val
Commands 129CommandsCDB Fields:Request Sense DataThe following diagram shows the format of the data returned for the REQUEST SENSE command following t
Interface Implementation 13Interface ImplementationHP Ultrium drives use SCSI-3 as the interface to connect to the host system.This chapter gives an o
130 CommandsReturned Sense Data Fields:Valid 1 Indicates that the information bytes contain valid information as defined in the SCSI specification.Err
Commands 131CommandsSense Data ManagementThe drive maintains three sets of sense data for every initiator on the bus. For a single host the following
132 Commands DEFERRED ERROR senseUnless otherwise stated, all the following descriptions apply to the sense data for a single host whose command is b
Commands 133Commands Power On, SCSI Reset, Bus Device Reset Media inserted A load command executed by a third party Mode Sense parameters changed
134 Commands The operation was abandoned without status (that is, a bus release occurred) after what the drive perceived was a catastrophic error or
Commands 135Commandsabout to be transferred, or was being transferred. If an error subsequently occurs while trying to complete the read, the sense ge
136 CommandsAdditional Sense CodesThis section contains a list of all the additional sense codes that an HP Ultrium drive can return, in numerical ord
Commands 137Commands04 00hLUN not ready, cause not reportable A tape is present in the drive but is in the process of being unloaded.04 01hLUN in proc
138 Commands29 02hSCSI bus reset SCSI drives: The drive has received a SCSI reset signal since the host last accessed it.FC drives: The drive has rece
Commands 139Commands3B 00hSequential positioning error A command has failed and left the logical position at an unexpected location.3D 00hInvalid bits
14 Interface ImplementationSupported MessagesThe following messages are supported by the drives: ABORT BUS DEVICE RESET COMMAND COMPLETE DISCONNEC
140 CommandsError CodesThe error codes that can be reported in bytes 16 and 17 are listed in Chapter 10 of the Hardware Integration Guide, Volume 1 of
Commands 141CommandsRESERVE UNIT 16h/56hThis command enables the host to reserve the drive. Reserving a device is a way of ensuring exclusive access
142 Commands10-Byte1Reserved (0) 3rd Pty(0) Third-Party Device ID (0) Rsvd(0)2Reserved (0)45Control3rdPty This is always zero because third-party rese
Commands 143CommandsThird-Party Device ID This is required and used only when the 3rd Pty bit is set, in which case this field specifies the SCSI ID o
144 CommandsREWIND 01hREWIND tells the drive to position the tape at BOM (beginning of media). Before rewinding, the drive writes any write-behind dat
Commands 145CommandsSEND DIAGNOSTIC 1DhSEND DIAGNOSTIC tells the drive to perform either its standard self-test, or diagnostics specified in the para
146 CommandsData RequiredNo data is required if the standard self-test is to be performed. Otherwise, a single diagnostic page must be provided as a p
Commands 147CommandsStandard Self-TestWith a tapeinserted:If Self-Test = 1 and UntOffl = 0, a test is performed that does not affect the contents of t
148 CommandsSPACE 11hSPACE provides a variety of positioning functions that are determined by Code and Count fields in the Command Descriptor Block. B
Commands 149CommandsSpace Specific Status:If the drive fails to space either from a medium error or from some sort of non-fatal drive error, CHECK CON
Interface Implementation 15Interface ImplementationFor implementation details on these commands, see Chapter 3, “Commands—Introduction” and Chapter 4,
150 Commands Early warning end of medium information is not reported. If a space records or space filemarks command fails then the sense data inform
Commands 151CommandsTEST UNIT READY 00hTEST UNIT READY checks if the drive is ready for commands that access the tape. This is done by the pre-execut
152 CommandsVERIFY 13hVERIFY verifies one or more blocks beginning with the next block on the tape. The verification is media verification only. It re
Commands 153CommandsBCmp 0 The Byte compare option is not supported, so this bit must be 0.Fixed 0 The Verification Length field specifies the length
154 CommandsWRITE 0AhZero or more blocks of data are transferred from the host to tape starting at the current logical position.It is recommended that
Commands 155CommandsCDB Fields:Write Specific Status:See also the “Additional Sense Codes” on page 136 for a variety of possible hard errors.An attemp
156 Commands Immediate or Non-Immediate Report (Buffered mode).Residue information is set in the sense data byte, with the Valid bit set and the info
Commands 157CommandsWRITE ATTRIBUTE 8DhThe WRITE ATTRIBUTE command allows an application client to write attribute values to MAM (Medium Auxiliary Me
158 Commands If the MAM is not accessible even though there is a tape in the drive. CHECK CONDITION is reported with a sense key of MEDIUM ERROR and
Commands 159CommandsCDB Fields:Parameter List Format:The parameter list has the following format. The attributes should be sent in ascending numerical
16 Interface Implementationdefault setting. The known base state is defined in the SCSI-3 specification and includes the following: The current I/O p
160 CommandsWRITE BUFFER 3BhWrite Buffer is used to transfer data into memory on the drive for the purposes of diagnostics, tests or firmware upgrade
Commands 161CommandsCDB Fields:Mode This field can be set to one of the following values:00000b The drive transfers a 4-byte header from the host (whi
162 CommandsMemory SizesMain BufferMemory:The Main Buffer Memory is 64 MBTwo areas of the Main Buffer Memory (000000h–0FFFFFh and FC0000h–FFFFFFh) are
Commands 163CommandsMain ProcessorMemory:Not all the Processor Memory space is accessible. The following table shows valid address segments:SCSI Burst
164 CommandsWRITE FILEMARKS 10hWRITE FILEMARKS causes the specified number of filemarks to be written beginning at the current logical position on ta
glossary 165Glossaryalgorithm A rigorous set of rules for a procedure. In the context of data compression, the rules are for transforming the way data
166 glossary(16-bit) data transfer, two bytes are transferred at the same time instead of a single byte. HP Ultrium drives support asynchronous, synch
glossary 167glossaryRAW see read-after-writeread-after-write RAW improves data integrity by reading data immediately after it is written and writing t
168 glossaryUltra2 SCSI can transfer data at up to 80 MB/s wide, using a cable of up to 25 meters total length for a single device, or up to 12 meters
Index 169Index Aabort handling 16Aborted Command 136ACK signal 24additional sense codes 130, 136addressing, fibre channel 20algorithms 165compr
Interface Implementation 17Interface ImplementationGOOD status immediately. A REQUEST SENSE command will give NO SENSE. An INQUIRY command will return
170 IndexREAD ATTRIBUTE 99READ BLOCK LIMITS 110READ BUFFER 111READ POSITION 115RECEIVE DIAGNOSTIC RESULTS 119RELEASE UNIT 121REPORT DENSITY SUPPO
Index 171Indexcommand phase 139counters 65, 66data phase 139deferred 130invalid message 139message 139parity 139read, unrecovered 137sequenti
172 IndexPerformance Data Log page 70Read Error Counters Log page 66Sequential Access Device Log page 66Supported Log Pages page 64Tape Capacity L
Index 173IndexBad LUN 32Deferred Error 33Diagnostic Status 33Fixed Bit 34Flag Link 34Illegal Command 34Illegal Field 34Media Access 35Media In
174 IndexCHECK CONDITION 29GOOD 29RESERVATION CONFLICT 30Summary 31supported commands 14Supported Log Pages page 64synchronous 168synchronous d
18 Interface ImplementationBus Parity Errors (Parallel SCSI only)On detecting a bus parity error during a Command or Data Out phase or receiving an In
Interface Implementation 19Interface Implementationto ABORTED COMMAND with additional sense of 4800h (Initiator Detected Error).If the subsequent mess
2NoticeThe information contained in this document is subject to change without notice.Hewlett-Packard makes no warranty of any kind with regard to thi
20 Interface Implementationthe initiator that least recently connected before processing the command for the new initiator. See “Sense Data Management
Interface Implementation 21Interface ImplementationAddressesEach Fibre Channel port also has a Port Address which is assigned during loop initializati
22 Interface ImplementationThe values of the names can be obtained using the Device Identification Vital Product Information Page (part of the INQUIRY
Interface Implementation 23Interface Implementationstill tied low, so in this case it will use the soft name last downloaded. This will allow drive ac
24 Interface ImplementationTrue (low) Input to the initiatorFalse (high) Output from the initiator-MSGMessage Target Indicates a Message phase on the
Messages 25MessagesThis chapter includes all SCSI messages, both supported and unsupported. Parts of this chapter come from Section 5, Logical Charact
26 MessagesMessage In Support (Parallel SCSI only)Message Parity Error09h The initiator has detected a parity error in a message. The drive will retry
Messages 27MessagesExtended Message SupportIgnore Wide Residue23h This message is sent by the drive to the host to indicate that a byte on a wide bus
28 MessagesSynchronous Data Transfer RequestWide Data Transfer RequestParallel Protocol RequestParallel Protocol Request04h The drive will never initi
Messages 29MessagesFields:StatusA Status byte is sent from the drive to the host during the Status phase at the end of each command as specified in th
3The Purpose of this ManualThis is one of five volumes that document HP Ultrium drives. This volume provides background information for driver and app
30 Messages08h BUSY: The drive is unable to execute the command at this time. Try again later. The drive tries to avoid using this status code during
Commands—Introduction 31Commands—IntroductionThis chapter contains general notes relating to the SCSI commands listed in Chapter 4.SummaryThe followin
32 Commands—IntroductionCommand DetailsThe command descriptions in this section are listed in alphabetical order of command name. Each command is desc
Commands—Introduction 33Commands—Introduction If no IDENTIFY message is supplied, the LUN is taken from the host’s Command Descriptor Block. If an I
34 Commands—IntroductionFixed Bit CheckFor the READ, VERIFY and WRITE commands, a Fixed bit set to 1 indicates that the length parameter of the comman
Commands—Introduction 35Commands—Introduction The sense key specific bit is set and the sense key specific bytes will be a field pointer. The comman
36 Commands—IntroductionMedia Information CheckDuring power-on and following a SCSI reset, knowledge of the whereabouts of the cartridge is unavailabl
Commands—Introduction 37Commands—IntroductionMedia Write CheckThis checks whether the media is write-protected. If it is, CHECK CONDITION is reported
38 Commands—IntroductionUnit Attention CheckThis checks if a UNIT ATTENTION condition exists for the host which sent the command. If it does, the driv
Commands—Introduction 39Commands—IntroductionReserved A reserved field should always be set to zero. The drive checks reserved fields, and if one is n
4Documentation MapThe following will help you locate information in the 6-volume Technical Reference Manual:Drives—generalInstallation and Configurati
40 Commands—Introduction
Commands 41CommandsThis chapter describes all SCSI commands. Parts of the chapter are based on sections of the SCSI specification (see page 13).For ge
42 CommandsERASE 19hThe ERASE command is used to erase data on tape from the current logical position. The Long bit is used to decide whether the ‘ol
Commands 43CommandsWarning EOM (drive error code 2C98h) will only be given if the tape was logically positioned past EOT immediately prior to this com
44 CommandsINQUIRY 12hINQUIRY tells the drive to return information about the basic operating parameters to the host. These parameters cannot be chan
Commands 45CommandsINQUIRY Data PagesReturned Data:INQUIRY returns its standard data if the EVPD bit is zero, or returns a page of data as specified b
46 CommandsThe Standard Inquiry Data is based on the SCSI 3 standard for Standard Inquiry Data.For the LUN to which the drive is attached, the Periphe
Commands 47CommandsInquiry Data FieldsPeripheral Qualifier 000b011bThere is a device on the logical unit selected, so the LUN field in the identify me
48 CommandsWBus16 The Wide Bus 16 flag is set according to whether the hardware supports this bus feature. The flag is only valid for parallel SCSI an
Commands 49CommandsVendor Specific data may be sent after the Product Revision Level.Vital Product Data PagesThe following tables describe the vital p
5CartridgesInterfaceMaintenance and TroubleshootingSCSI Drives FC DrivesCartridge Memory (LTO-CM) 2 SW Integration: ch. 56 HW Integration: ch. 5Cartri
50 CommandsThis page contains a list of all the VPD page-codes supported by the drive.Unit Serial Number PageThe Unit Serial Number Page contains a si
Commands 51CommandsDevice Identification PageThe Device Identification page contains information that identifies the tape drive uniquely. For SCSI, a
52 CommandsDevice Serial Number (FC and SCSI)Port Name (FC only)Device Name (FC only)7 6 5 4 3 2 1 00Reserved (0) Code Set (2)1Reserved (0) Identifier
Commands 53CommandsPort Identifier (FC only)The Port Identifier will be set to 1 if the addressed port is port A, and set to 2 if the addressed port i
54 CommandsThe Drive Component Revision Levels pages contain details of the revisions of each of the major sub assemblies of the drive. For any given
Commands 55CommandsLOAD/UNLOAD 1BhThe LOAD/UNLOAD command allows the host to specify that a tape cartridge present in the drive is either made ready
56 CommandsLoad/Unload Specific Status:Following a successful LOAD command, CHECK CONDITION is posted to all initiators other than the initiator of th
Commands 57Commands If the Load was issued by some other host (or was an autoload) and completed successfully, CHECK CONDITION is reported, with a se
58 CommandsLOCATE 2BhThe LOCATE command moves the current logical position to the position specified by the command. The new position is specified by
Commands 59CommandsLocate Specific Status:Block AddressThe Block Address specifies the number of blocks and filemarks between BOM and the position to
6Dealing with ErrorsUltrium FeaturesSCSI Drives FC DrivesError Codes 1 HW Integration: ch. 10 1 HW Integration: ch. 6Handling errors 2 SW Integration:
60 CommandsLOG SELECT 4ChThe Log Select command causes log data on the drive to be reset to its default value or to be set to an initiator specific
Commands 61CommandsSP 0 The Save Page (SP) flag is not supported and must be set to 0.PC The Page Control field defines the type of parameter values t
62 CommandsLOG SENSE 4DhLOG SENSE allows the host to read the drive’s logs. A single log is returned with each invocation of LOG SENSE.Pre-Execution
Commands 63CommandsLog Page FormatAll log pages except Page 0 consist of a page code header followed by a number of parameters. The page header has th
64 CommandsSupported Log Pages PageThis SCSI log may be recovered using a Log Sense command with the PC field set to anything and the Page Code field
Commands 65CommandsWrite Error Counters Log PageThe Write Error Counters log is page 02h. The Page Length is 38h. There are seven parameters, 0 throug
66 CommandsRead Error Counters Log PageThe Read Error Counters log is page 03h. The Page Length is 38h. There are seven parameters, 0 through 6. Param
Commands 67CommandsA non-zero value of the cleaning required parameter indicates that a condition requiring cleaning has been detected and a subsequen
68 Commands15 Memory in Cartridge Failure Warning16 Forced Eject Critical17 Read-Only Format Warning18 Tape Directory Corrupted Warning19 Nearing Medi
Commands 69CommandsTape Usage Log PageThe Tape Usage Log Page code is 30h. There are nine parameters. These are all read directly from the LTO-CM Tape
7General Documents and Standardization Small Computer System Interface (SCSI-1), ANSI X3.131-1986. This is the ANSI authorized standard for SCSI impl
70 CommandsData Compression Log PageThe Data Compression Log Page code is 32h and the page length is 4Ch. There are ten parameters, 0 through 9. Param
Commands 71CommandsAll the parameters relate to the current tape. They are all cleared when the tape is unloaded, except Parameter 4, which is never c
72 CommandsMODE SELECT 15h/55hMODE SELECT is used to send configuration data to the drive. Both 6-byte and 10-byte versions of the command are suppo
Commands 73Commands10-Byte versionCDB Fields:Specific Status:Following a successful Mode Select command, Unit Attention status is posted to all initia
74 Commandskey is set to UNIT ATTENTION. Additional sense is set to 2A01h (mode parameters changed).Mode Parameter PagesMode data is recovered from th
Commands 75CommandsMode Parameter PagesHP Ultrium drives support the following pages: “Read-Write Error Recovery Mode Page” on page 78 “Disconnect-R
76 Commands10-byte HeaderThe 10-byte Mode Parameter header has the following format:Header Fields7 6 5 4 3 2 1 00(MSB)Mode Data Length1(LSB)2Medium Ty
Commands 77CommandsMode Block DescriptorThe format of the Mode Parameter block descriptor is as follows:Mode Parameter Block Descriptor Fields:2 The d
78 CommandsRead-Write Error Recovery Mode PageThe Read-Write Error Recovery Mode Page has the following format:Read-Write Error Recovery Page Fields:7
Commands 79CommandsDisconnect-Reconnect PageSCSI DrivesThe Disconnect-Reconnect Page has the following format for SCSI drives:Read Retry Count The num
8
80 CommandsFC DrivesThe Disconnect-Reconnect Page has the following format for FC drives:Disconnect-Reconnect Page Fields:7 6 5 4 3 2 1 00PS (0) Rsvd
Commands 81CommandsNote If the host does not grant disconnect privilege in its IDENTIFY message these parameters become meaningless. The drive will st
82 CommandsControl Mode Page Fields:Data Compression Characteristics PageThe Data Compression Characteristics Mode page is defined as follows:Data Com
Commands 83CommandsDevice Configuration PageThe drive supports the Device Configuration Page, which has the following format:DDE Data Decompression En
84 CommandsPre-Execution Checks:The only check made when this page is sent in Mode Select data is Parameter List.Changeable Parameters:Unchangeable Pa
Commands 85CommandsMedium Partitions Mode PageThe Medium Partitions Mode Page has the following format. Note that none of the fields are changeable. T
86 CommandsNone of the fields in this mode page are changeable.Fibre Channel Logical Unit Control Mode PageThis page is supported for Fibre Channel on
Commands 87CommandsFibre Channel Port Control Mode PageThis page is supported for Fibre Channel only:The Fibre Channel Port Control Page allows you to
88 CommandsDLM Disable Loop Master. The drive will never attempt to be a loop master.0 The target may become loop master during the loop initializatio
Commands 89CommandsInformation Exceptions Mode PageThe Information Exceptions Mode page is used to control exception reporting through the “TapeAlert
Contents 9The Purpose of this Manual 3Related Documents 3Documents Specific to HP Ultrium Drives 3Documentation Map 4General Documents and Standardiza
90 CommandsNote that if an attempt is made to set or clear a flag that is not supported by the drive, CHECK CONDITION will be reported with a sense ke
Commands 91CommandsMODE SENSE 1Ah/5AhMODE SENSE allows the drive to return its current configuration and report which configuration parameters can b
92 Commands10-Byte VersionCDB Fields:3Reserved (0)4Allocation Length5Control7 6 5 4 3 2 1 07 6 5 4 3 2 1 00Operation Code (5Ah)1Reserved (0) DBD Reser
Commands 93CommandsAny mode page codeThe drive returns that page.3Fh The drive returns all mode pages.Allocation LengthSpecifies the number of bytes t
94 CommandsPREVENT/ALLOW MEDIUM REMOVAL 1EhPREVENT/ALLOW MEDIUM REMOVAL tells the drive to enable or disable the removal of the cartridge.When cartri
Commands 95CommandsREAD 08hREAD transfers zero or more data blocks to the host starting at the current logical position.Pre-Execution Checks:If both
96 CommandsIf the fixed flag is set and the Transfer Length field is not zero and the Suppress Illegal Length Indicator (SILI) flag is clear, a sequen
Commands 97CommandsRead Specific Status:1 The Transfer Length field specifies the length of the transfer in blocks. The size of each block (in bytes)
98 CommandsNote Early warning end of medium information is not reported on reads.Residue Information:The Valid bit will be set. The information bytes
Commands 99CommandsREAD ATTRIBUTE 8ChThe READ ATTRIBUTE command allows an application client to read attribute values to MAM (Medium Auxiliary Memory
Comments to this Manuals