HP Q153090901 Technical Reference Manual
HP Q153090901 Technical Reference Manual

HP Q153090901 Technical Reference Manual

Ultrium tape drives generation 3 drives volume 3-the scsi interface
Table of Contents

Advertisement

Quick Links

HP Ultrium tape drives
Technical reference manual
Generation 3 drives
Volume 3—the SCSI interface
Part Number: Q1530–90901 Volume 3
Edition 6, December 2004

Advertisement

Table of Contents
loading

Summary of Contents for HP Q153090901

  • Page 1 HP Ultrium tape drives Technical reference manual Generation 3 drives Volume 3—the SCSI interface Part Number: Q1530–90901 Volume 3 Edition 6, December 2004...
  • Page 2 July 2003 Edition 6 December 2004 This document is frequently revised and updated. To find out if there is a later version, please ask your HP OEM Representative. Changes Addition of Read and Write attribute commands and Drive Error Codes...
  • Page 3: Table Of Contents

    Documents specific to HP Ultrium drives ........
  • Page 4 Illegal Command check ..........31 Illegal Field/Request check .
  • Page 5 Read-Write Error Recovery mode page........76 Disconnect-Reconnect page.
  • Page 6 Fixed format........... . . 148 Descriptor format 152 Sense data management .
  • Page 7: Related Documents

    Related documents This is one of six volumes that document HP Ultrium drives. This volume provides background information for driver and application developers. The following documents provide additional information: Documents specific to HP Ultrium drives • Hardware Integration Guide, volume 1 of the HP Ultrium Technical Reference Manual Software Integration Guide, volume 2 of the HP Ultrium Technical Reference Manual •...
  • Page 8 Optimizing performance UNIX configuration Operation External drives (SCSI only) In Libraries In Servers (SCSI only) (SCSI only) In Tape Arrays Cartridges Cartridge Memory (LTO-CM) Cartridges Features Managing the use of cartridges Use of cartridges Interface SCSI Guide Commands Error codes Implementation Interpreting sense data Messages...
  • Page 9: Maintenance And Troubleshooting

    Maintenance and troubleshooting Cleaning External drives (SCSI only) In Libraries (SCSI only) In Servers (SCSI only) In Tape Arrays Monitoring drive and tape condition Software troubleshooting techniques Dealing with errors Error Codes Handling errors How error correction works Logs—see the LOG SENSE command Recovering from write and read errors Software response to error correction Software response to logs...
  • Page 10: General Documents And Standardization

    Software design Supporting Ultrium features Ultrium Format General documents and standardization Enhanced Small Computer System Interface (SCSI-2), ANSI X3T9.2-1993 Rev. 10L, • available through ANSI • http://www.t10.org/t10_main.htm Copies of documents of other standards bodies can be obtained from: Global Engineering Documents SCSI Drives 2 SW Integration: ch.
  • Page 11: Interface Implementation

    1 Interface Implementation HP Ultrium drives use SCSI-3 as the interface to connect to the host system. This chapter gives an overview of how the interface operates. Full details of the messages are given in Chapter The SCSI interface The Small Computer System Interface (SCSI) is an industry standard, approved by the American National Standards Institute (ANSI).
  • Page 12: Supported Commands

    • DISCONNECT • IDENTIFY IGNORE WIDE RESIDUE • • INITIATOR DETECTED ERROR MESSAGE PARITY ERROR • • MESSAGE REJECT • (no operation) NO-OP • PARALLEL PROTOCOL REQUEST (PPR) • RESTORE POINTERS SAVE DATA POINTER • • SYNCHRONOUS DATA TRANSFER REQUEST WIDE DATA TRANSFER REQUEST •...
  • Page 13: Scsi Features

    The following additional commands are supported for CD-ROM mode: READ 6 READ 10 READ CAPACITY For implementation details on these commands, see Chapter 4, “Commands”. SCSI features Design approach The features supported by the drive are based on standards, both official and de facto. The drive is fully compliant with the current SCSI standards: SPC3, SSC2, SAM2, and the relevant transport protocol (e.g.
  • Page 14: Abort Handling

    • UNIT ATTENTION The drive will respond to 250 ms of the reset line being released. The first command from any initiator (other than REQUEST SENSE REPORT LUNS sense data for the reset. Note that all commands will receive completed its internal reset. The Reset button on the front panel and the ACI_RESET_L line on the Automation Controller Interface are both connected to the Power-Up Reset interrupt on the processor.
  • Page 15: Lun Identification (Parallel Scsi Only)

    Command PREVENT/ALLOW MEDIUM REMOVAL READ READ BLOCK LIMITS READ BUFFER READ POSITION RECEIVE DIAGNOSTICS RESULTS RELEASE UNIT REQUEST SENSE RESERVE UNIT REWIND SEND DIAGNOSTIC SPACE TEST UNIT READY WRITE WRITE BUFFER WRITE FILEMARKS VERIFY LUN identification (parallel SCSI only) Identify messages are used to identify the LUN being addressed by the initiator, and to identify which LUN is reselecting the initiator.
  • Page 16: Disconnect Strategy

    If Information Units is enabled (parallel SCSI only), the drive will drop the bus on detecting a CRC error during a LQ_IU. If the CRC error occurs during the Information Units command phase or data out phase, the drive will return 4703h (Information Unit CRC error detected).
  • Page 17: Multi-Initiator Support

    Send data Execute cmd Reselect Send status Cmd complete Multi-initiator support All drives are design to operate within a multi-initiator environment. The maximum number of concurrently connected initiators is as follows: up to 15 initiators • Parallel SCSI drives: • up to 32 initiators shared across both ports Fibre Channel drives: CDB arrives...
  • Page 18: Fibre Channel Operation

    There at least eight different name formats distinguished by the Network Address Authority (NAA). Only one is used on HP Ultrium drives. This is the IEEE Registered Name (NNA=5) and has the following format: This name is made up of three fields: NAA Identifier (4 bits).
  • Page 19 The third name (last bits = 10) is used for the Device World Wide Name. • (These are assigned during manufacture from HP’s pool of names, although only the first will actually be stored in the drive NV-RAM). The port addresses will be assigned using the ‘standard’ AL_PA initialization mechanisms. The ‘Fibre Channel Port Control mode page’...
  • Page 20: Field Replaceable Units

    The values of the names can be obtained using the Device Identification Vital Product Information Page (part of the INQUIRY Implications for libraries • Normally a standalone drive will operate using its own ‘hard’ names. The drive knows it is in a library or other ‘managed’ environment since one of the signal •...
  • Page 21: Cd-Rom Emulation

    Although there are no actual Field Replaceable Units on HP Ultrium drives, the following sub- assemblies can be replaced at Repair Centres: • Drive PCA • Mechanism CD-ROM emulation The One Button Disaster Recovery (OBDR) functionality in HP Ultrium drives enables them to emulate CD-ROM devices in specific circumstances (also known as being in “Disaster Recovery”...
  • Page 22 A SCSI bus reset occurs following the reading of at least 100 blocks of CD-ROM data by a • host. • The user power-cycles the drive or resets it using the forced-eject mechanism. If the drive exits CD-ROM mode through either of the first two of these, the tape will NOTE: remain at the last logical position when in CD-ROM mode.
  • Page 23: Messages

    2 Messages This chapter includes all SCSI messages, both supported and unsupported. Parts of this chapter come from Section 5, Logical Characteristics, of the SCSI standards (see page 11). The message system provides an initiator and a target on the SCSI bus with a means of managing communication.
  • Page 24: Message In Support

    Message In support Name Command Complete Disconnect Extended Message Identify Ignore Wide Residue Message Reject Restore Pointers Save Data Pointers Messages Code Support This message is sent by the drive at the end of the status phase to indicate that a command is complete. Once the message is sent, the drive releases the bus and goes to Bus Free.
  • Page 25: Extended Message Support

    Extended Message support Name Code Support Synchronous Data Transfer Request Wide Data Transfer Parallel Protocol Request Synchronous Data Transfer Request Wide Data Transfer Request The drive can initiate a Synchronous data transfer negotiation. If the message is received after selection and before the command phase, it will then go to message-in phase and respond with a valid response to complete the negotiation.
  • Page 26: Status

    Parallel Protocol Request PComp_En Fields: Transfer Period Factor Req/Ack Offset This has a maximum value of 255. Transfer Width For ST transfers, this can be either 0 (Narrow) or 1 (Wide). Exponent For DT transfers, it must be set to 1. Precompensation enable bit.
  • Page 27 CONDITION MET: This status will never be returned by an HP Ultrium tape drive. 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 normal operation.
  • Page 28 Messages...
  • Page 29: Commands-Introduction

    3 Commands—introduction This chapter contains notes relating to the SCSI commands listed in Summary The following table is a summary of the SCSI commands for sequential access devices, showing the operation code: Opcode Command Name TEST UNIT READY REWIND REQUEST SENSE READ BLOCK LIMITS READ READ 6...
  • Page 30: Pre-Execution Checks

    Pre-execution checks In compliance with the SCSI specification, the drive terminates a command with a NOTE: status and sets the sense key to CHECK CONDITION field or code is received which is not zero. Before executing a command, the drive makes a number of checks. They fall into three categories: •...
  • Page 31: Diagnostic Status Check

    reported. If such an error exists, then the drive reports command is set to DEFERRED ERROR Note that if a UNIT ATTENTION initiator, the DEFERRED ERROR to the deferred error must have been older than that leading to the unit attention. The drive reports the conditions in the order in which they arose.
  • Page 32: Media Access Check

    a reserved field • • the control field two or more fields to logically conflicting values • If a field has been set to an illegal value: • HECK CONDITION additional sense of 2400h “invalid field in CDB”. The sense key specific bit is set and the sense key specific bytes will be a field pointer. •...
  • Page 33: Media Information Check

    Media Information check During power-on and following a SCSI reset, knowledge of the whereabouts of the cartridge is unavailable. It is not possible to execute commands which assume that this knowledge is available until the drive has recovered from the power-on or reset. The test checks whether the drive knows if a cartridge is physically present in the drive.
  • Page 34: Parameter List Check

    Parameter List check LOG SELECT MODE SELECT drive is in the form of parameter lists. These are described under the command names in the next chapter. Checks are performed to test the following: • Fixed and reserved fields have not been modified. Fixed fields are indicated by a number in round brackets following the field name.
  • Page 35: Command Descriptor Block

    Command descriptor block A SCSI command descriptor block (CDB) is a sequence of 6, 10, 12 or 16 bytes sent by a host to a SCSI target with the bus in command phase. The CDB tells the drive what action should be performed.
  • Page 36 Commands—introduction...
  • Page 37: Commands

    4 Commands This chapter describes all SCSI commands. Parts of the chapter are based on sections of the SCSI specification (see page 11). For general notes on the command descriptions, see Chapter...
  • Page 38: Erase

    ERASE command is used to erase data on tape from the current logical position. The Long bit ERASE is used to decide whether the ‘old’ data is physically overwritten or not. E long) to a drive containing a WORM cartridge will not overwrite or erase user data on tape. Pre-execution checks: Illegal Field Reservation...
  • Page 39: Inquiry

    INQUIRY tells the drive to return information about the basic operating parameters to the host. NQUIRY These parameters cannot be changed. The drive returns Inquiry data to the host in a data-in phase. NOTE: This command is immune from most of the pre-execution checks that other commands must pass (for example, it can be executed while the unit is reserved for another host).
  • Page 40: Inquiry Data Pages

    Version Number (5) NACA(0) HiSup(0) Additional Length (5Bh) TPGS (01b) 3PC (0) VS(0) MultiP(0) MChngr(0) WBus16 Sync Linked(0) Vendor Identification (“HP Product Identification Peripheral Device Type (01h) Response Data Format (2) Reserved (0) Obsolete Obsolete CmdQue(1) “) Protect(0) Adr16 VS(0) (LSB)
  • Page 41 (MSB) (MSB) OBDR string (“$DR-10”) or Reserved (0) if not supported Reserved (0) (MSB) (MSB) (MSB) The Standard Inquiry Data is based on the SCSI 3 standard for Standard Inquiry Data. For the LUN to which the drive is attached, the Peripheral Qualifier field is set to 000b, the Peripheral Device Type field is set to 01h, the Removable Medium (RMB) flag is set to 1 and the Device-type modifier is set to 0.
  • Page 42 For SCSI drives, with BQue = 0. A vendor-specific, 8-byte string of ASCII characters, left justified and padded with space characters “HP”. A left-justified, vendor-specific, 16-byte string field of ASCII characters with space character padding on the right. The string consists of two parts: •...
  • Page 43 Product Revision Level A vendor-specific string of four ASCII characters: “CNNV”: • C is the codename (G for a Gen 3 SCSI drive, L for Gen 3 FC drive) • NN are two digits that indicate the build of the variant. V is an ASCII character representing the OEM variant of the code.
  • Page 44: Vital Product Data Pages

    Vital Product Data pages The following tables describe the vital product data pages. These pages are returned by the command when the EVPD bit is set and the appropriate Page Code is set in the INQUIRY Command Descriptor Block. They contain vendor-specific product information. Supported Vital Product Data Pages page This is the data returned by the drive in response to an Inquiry command with its EVPD bit set to one and its Page Code field set to 0.
  • Page 45: Unit Serial Number

    Unit Serial Number page The Unit Serial Number page contains a single value which is a 10-byte ASCII string. The string, with the Vendor Identification and Product Identification fields in the standard Inquiry data, uniquely identifies the drive. Peripheral Qualifier (0) (MSB) Device Identification page The Device Identification page contains information that identifies the tape drive uniquely.
  • Page 46: Defined Identifiers

    1 The Protocol Identifier field is valid. This is set for an Association value of 1. 0 The Identifier field is associated with the addressed logical unit. Association 1 The Identifier field is associated with the port that received the request. 2 The Identifier field is associated with the SCSI target device that contains the addressed logical unit.
  • Page 47 Port Identifier (FC only) Protocol Identifier (0) PIV (1) Rsvd (0) Association (1) (MSB) The Port Identifier will be set to 1 if the addressed port is port A, and set to 2 if the addressed port is Port B. Target Name Protocol Identifier PIV (1)
  • Page 48: Extended Inquiry Data Vpd Page

    Extended INQUIRY Data VPD page This page provides an application client with a means of obtaining information about the drive. Peripheral Qualifier (0) SIMSUP The drive supports the Simple Task attribute. Sequential Access Device Capabilities page This page provides the application client with a means of determining which features are supported by the Device Server.
  • Page 49: Drive Component Revision Levels Pages

    Drive Component Revision Levels pages Peripheral Qualifier (0) (MSB) (MSB) (MSB) (MSB) The Drive Component Revision Levels pages contain details of the revisions of each of the major sub assemblies of the drive. For any given product, if these pages are the same then the drive has been built with the same components and with the same manufacturing process.
  • Page 50: Load/Unload

    LOAD/UNLOAD command allows the host to specify that a tape cartridge present in the drive LOAD UNLOAD is either made ready for data transfer (“loaded”) or disabled for data transfer (if Prevent Media Removal is set). It can also cause the cartridge to be ejected from the drive (“unloaded”). Pre-execution checks: Illegal Field Unit Attention...
  • Page 51: Loading A Cartridge

    Load/Unload specific status: Following a successful command, LOAD initiator of the command. The sense key is set to LOAD 2800h (not ready to ready transition). There is an exception to this: if a load occurs when the tape is already loaded, no UNIT ATTENTION Once is cleared, unsolicited positional sense is set.
  • Page 52 status is reported if the tape unloaded successfully. Otherwise, another unload operation is initiated on behalf of the host that issued the unload request. Following an unload, any media access commands will be rejected by the Media Access check. • If an unload request is received while the tape is in the process of unloading (for example, as a result of pressing the eject button), it will be queued until the unload is complete.
  • Page 53: Locate

    LOCATE command moves the current logical position to the position specified by the LOCATE command. The new position is specified by the offset from start of the media in terms of blocks. The first block (that is, BOT) is block address 0. Any unwritten data is written to tape before the command is executed.
  • Page 54 Change Partition. 0 The drive only reports status after the Locate command has completed. Immed 1 The drive reports status when it starts the command and continues with the positioning in the background. 0 This field is not supported. The Block Address specifies the number of blocks and filemarks between BOM and the Block position to be located.
  • Page 55: Log Select

    LOG SELECT command causes log data on the drive to be reset to its default value or to be set to Log Select an initiator specific value. Pre-execution checks: Illegal Field Reservation Command descriptor block: (MSB) CDB fields: The following are valid combinations of values for the PCR (Parameter Code Reset), Parameter List Length and PC (Page Control) fields: Parameter List Length >0...
  • Page 56 The Page Control field defines the type of parameter values to be selected: No operation is performed. The Parameter List Length must be zero. If it is not, check condition invalid field in CDB is set. 01b The drive will clear logs as specified by the parameter data. 11b The drive will clear all of its internal logs.
  • Page 57: Log Sense

    LOG SENSE allows the host to read the drive’s logs. A single log is returned with each invocation of LOG SENSE LOG SENSE Pre-execution checks: Illegal Field Deferred Error The Page Code must match one of the supported log page codes. If it does not, then status is reported.
  • Page 58: Log Page Format

    Parameter Pointer Allocation The Allocation Length field specifies the maximum number of bytes of data that should Length be returned to the host. The drive will return the entire log or Allocation Length bytes, whichever is the lesser. Log page format All log pages except Page 0 consist of a page code header followed by a number of parameters.
  • Page 59: Supported Log Pages Page

    Parameter Length The length of Parameter Bytes in bytes. The actual parameter data. Parameter Bytes Supported Log Pages page This SCSI log may be recovered using a the Page Code field set to 00h. The page lists the page codes of other logs supported by the drive. It can neither be reset nor written.
  • Page 60: Write Error Counters Log Page

    Write Error Counters log page The Write Error Counters log is page 02h. The Page Length is 38h. There are seven parameters, 0 through 6. All fields are four bytes long. All these counters are updated when the data set is physically written. They relate to the current tape and are cleared when the tape is unloaded.
  • Page 61: Sequential Access Device Log Page

    Sequential Access Device log page The Sequential Access Device Log page is page 0Ch. The Page Length is 40h. Five parameters are supported, all eight bytes long. With the exception of 0100h (cleaning required), they are updated when a data set is logically written and cleared at the start of tape load; the values of each parameter relate to the current tape.
  • Page 62: Temperature Log Page

    Temperature log page The Temperature Log page is page 0Dh. The following parameters are supported: Parm. Description The current temperature of the drive in ºC (binary value). If the temperature is less than 0, 0 is reported. If the temperature sensor is not functioning properly, FFh is reported. The maximum temperature in ºC (binary value) at which the drive can operate continuously without degrading reliability and operation.
  • Page 63: Very High Frequency Data (Vhf)

    Very High Frequency Data (VHF) (MSB) DU (0) DS (1) Rsvd (0) InXtm Rsvd (0) Host Initiated Unload bit MAcc If set, the MAM is accessible. MPrsnt must be set as well. Cmpr Compress bit. If set, the DTD currently has data compression enabled. Write Protect bit.
  • Page 64: Very High Frequency Polling Delay

    RRqst Recovery Requested. Set to 1 as long as a recovery procedure is available. In these circumstances, InXtn must be 0. Interface Changed. If set, the interface status has changed since the last time this page IntfC was retrieved. It is cleared to 0 when the page is retrieved for the initiator. TAFC If set, at least one TapeAlert Flag had Changed since the last time the TapeAlert flags were retrieved.
  • Page 65: Tapealert Log Page

    Fibre Channel Port 0 (MSB) DU (0) DS (1) CrrTop (MSB) 8–10 Rsvd Port 1 (MSB) DU (0) DS (1) CrrTop (MSB) 8–10 Rsvd TapeAlert log page The TapeAlert log page is page 2Eh. There are 64 parameters numbered from 1 through 64. Only parameters 1 through 18, 20 through 23, 29 through 39 and 55 have definitions for tape drives without attached loaders.
  • Page 66 condition and by a Log Select removed the condition that caused the flag to be set. The supported parameters are as follows: Parameter Description Read Warning Write Warning Hard Error Media Read Failure Write Failure Media Life Not Data Grade Write-Protect No Removal Cleaning Media...
  • Page 67: Tape Usage Log Page

    Parameter Description Drive Temperature Drive Voltage Predictive Failure Diagnostics Required Lost Statistics Tape Directory Invalid at Unload Tape System Area Write Failure Tape System Area Read Failure No Start of Data Loading Failure Unrecoverable load Failure Automation Interface Failure Firmware Failure WORM medium —...
  • Page 68: Tape Capacity Log Page

    Tape Capacity log page The Tape Capacity log page code is 31h. The Page Length is 20h. There are four parameters, 1 through 4. Parameters 2 and 4 are not supported and are returned as zero. All parameters are 4 bytes long.
  • Page 69: Performance Data Log Page

    Performance Data log page The Performance Data log page is 34h. This log is intended to report data of interest to a user/ application on how efficiently the drive is being used. Parameter Description Repositions per 100 MB Data rate into buffer Maximum data rate Current data rate Native data rate...
  • Page 70: Device Status Log Page

    Device Status log page The Device Status log page is 3Eh, with a page length of 28h. PCB = Parameter Control Byte. Parameter Description Device Type Device Status Bits Total Number of Loads Cleaning Cartridge Status Product Number Device Status Bits The parameter has the following format: Cleaning Required flag Cleaning Requested flag...
  • Page 71: Mode Select

    MODE SELECT is used to send configuration data to the drive. Both 6-byte and 10-byte versions of ODE SELECT the command are supported. The Mode Select parameter list is transferred from the host to the drive during the data-out phase. It contains zero or more bytes of information.
  • Page 72: Mode Parameter Pages

    10-byte version Reserved (0) (MSB) (MSB) CDB fields: Page Format Save Pages Parameter List Length >0 The length in bytes of the Specific status: Following a successful Mode Select command, Unit Attention status is posted to all initiators other than the initiator of the Mode Select command. The sense key is set to sense is set to 2A01h (mode parameters changed).
  • Page 73: Mode Page Representation

    Mode data consists of a 4-byte header, optionally followed by block descriptor and Mode Parameter pages: (MSB) (MSB) (MSB) Mode parameter pages HP Ultrium drives support the following pages: • 01h “Read-Write Error Recovery mode page” on page 76 02h “Disconnect-Reconnect page” on page 78 • •...
  • Page 74: Mode Parameter Header

    • (FC drives only) • (FC drives only) 1Ch “Information Exceptions mode page” on page 91 • • 3Ch “Device Time Mode Page” on page 92 • OBDR FW variants only: page 94 Return all pages (page 3Fh) — for •...
  • Page 75 Header fields MODE SELECT: Mode Data Length MODE SENSE: Medium Type 00h The usual medium type when the drive is in normal tape drive mode. 01h WORM media is loaded 80h The tape drive is in CD-ROM emulation mode for OBDR. Write Protect.
  • Page 76: Mode Block Descriptor

    Mode block descriptor The format of the Mode Parameter block descriptor is as follows: (MSB) (MSB) Mode Parameter block descriptor fields: Density Code This specifies the format of the media loaded in the drive. See “REPORT DENSITY SUPPORT 44h” on page 137 for details. Block Length This indicates the size of fixed blocks for fixed mode Read and Write commands.
  • Page 77 Post Error. Although this bit is changeable, the drive’s internal behavior always corresponds to PER=0. 0 The drive does not report CHECK CONDITION for recovered errors. The DTE bit must also be zero. 1 The drive reports CHECK CONDITION for recovered errors. Disable Transfer on Error 0 Always set to 0, meaning that the drive will not terminate the transfer for errors recovered within the limits established by the read-write error parameters.
  • Page 78: Disconnect-Reconnect Page

    Disconnect-Reconnect page SCSI drives The Disconnect-Reconnect page has the following format for SCSI drives: PS (0) Rsvd (0) (MSB) (MSB) (MSB) (MSB) 13–15 Disconnect-Reconnect page fields: Buffer Full Ratio Connect Time Limit Bus Inactivity Limit Disconnect Time Limit Connect Time Limit Maximum Burst Size DTDC If the host does not grant disconnect privilege in its...
  • Page 79: Control Mode Page

    Control mode page The Control Mode page is defined as follows: PS (0) Rsvd (0) TST (0) Queue Algorithm Modifier (0) Rsvd (0) RAC [0] (MSB) (MSB) (MSB) Control mode page fields: Autoload Mode 0 If a cartridge is inserted, the drive pulls it in and threads the tape. 1 or When a cartridge is inserted, the drive pulls it in but does not thread the tape.
  • Page 80 Data Compression Characteristics mode page fields: Data Compression Enable. This bit controls whether the drive uses compression when writing. The value has no meaning when reading, that is, if the tape contains compressed data, decompression will occur regardless of the setting of this bit. The bit is analogous to the Select Data Compression Algorithm field on the Device Configuration mode page (see page 81).
  • Page 81: Device Configuration Page

    Device Configuration page The drive supports the Device Configuration page, which has the following format: PS (0) Rsvd (0) Rsvd(0) Obsolete (MSB) DBR (0) BIS (1) EOD Defined (000) (MSB) Reserved WTRE Pre-execution checks: The only check made when this page is sent in Mode Select data is Parameter List. Changeable parameters: This field can be modified by a MODE SELECT command, and this change will be Write Delay...
  • Page 82 WTRE WORM Tamper Read Enable. Controls the behavior of the drive when reading WORM media if it appears that the integrity of the tape has been compromised by tampering. WTRE has no effect on reads of normal (non-WORM) media. Default: If tampering has been detected, no data is returned in response to a READ command or after the position of tamper.
  • Page 83: Medium Partitions Mode Page

    0 The Enable EOD Generation flag should be set since EOD generation is always enabled. 1 The Synchronize at Early Warning flag should be set since this feature is supported. Buffer Size at 0 The Buffer Size at Early Warning field should be zero as this cannot be set. Early Warning Medium Partitions mode page The Medium Partitions mode page has the following format.
  • Page 84: Fibre Channel Logical Unit Control Mode Page

    0 The target does not use the precise delivery function and ignores the contents of the CRN EPDC field in the Fibre Channel Extended Link Service FCP_CNTL. HP Ultrium drives support this feature by default. 1 The logical unit uses the precise delivery function defined in the FCP-2 standard. It makes use of the CRN field.
  • Page 85: Fibre Channel Port Control Mode Page

    Fibre Channel Port Control mode page NOTE: This page is supported for Fibre Channel only. The Fibre Channel Port Control page allows you to set the initialization and addressing behavior of the Fibre Channel interface. PS (0) Rsvd (0) Reserved (0) DTFD (0) PLPB(0) Resource Recovery Time-Out Value—RR_TOV (F0h, that is, 24s)
  • Page 86 RR_TOV Units follows: 000b No timer specified 001b 0.001s 011b 0.1s, units used by HP Ultrium drives 101b 10s The number of time units specified by the RR_TOV Units field that are used by the timer RR_TOV that performs the RR_TOV time-out functions.
  • Page 87: Scsi Port Control Mode Page

    SCSI Port Control Mode page NOTE: This page is supported for SCSI drives only, from Gen 3 onwards. Normal page If the Port Control mode page (19h) is requested via the MODE SENSE command with the Sub- Page code set to zero, the following data will be returned: PS (0) SPF(0) Reserved (0)
  • Page 88 Sub-page 01h—Margin Control Driver Strength (0) Driver Asymmetry (0) Driver Slew Rate (0) None of the fields are supported on this page, so they should all be zero. Sub-page 02h—Saved Training Configuration Values Commands Reserved (0) Reserved (0) Drive Precompensation (1h) Reserved (0) Reserved (0) Vendor Specific (0)
  • Page 89 All the fields on this page are vendor-specific. None are supported, so they should all be zero. Sub-page 03h—Negotiated Settings Reserved (0) Transfer Period Factor The negotiated transfer period factor. Req/Ack Offset The negotiated Req/Ack offset. The negotiated transfer width. Transfer Width Exponent Protocol Options Bits The negotiated protocol options:...
  • Page 90 Transceiver Mode Sent PCOMP_EN Received PCOMP_EN Sub-page 04h—Report Transfer Capabilities Minimum Transfer Period Factor 08h The smallest value of the transfer period factor supported. For Maximum Req/Ack Offset Maximum Transfer Width Exponent Protocol Option Bits Supported C3h. The protocol options supported. The value of C3h indicates that Commands The current bus mode: Code...
  • Page 91: Information Exceptions Mode Page

    Information Exceptions mode page The Information Exceptions Mode page is used to control exception reporting through the “TapeAlert log page” on page 65: PS (0) Rsvd (0) Perf (0) Reserved (0) (MSB) (MSB) 0 Informational exception operations that cause delays are acceptable. Perf Disable Exception Control.
  • Page 92: Device Time Mode Page

    MRIE Method of Reporting Informational Exceptions 3h This field indicates the method used by the target to report informational 0 Must be zero, indicating that the drive only reports an informational exception Interval Timer Report Count/Test 0 If the Test bit is zero, this field is the Report Count and must be zero, indicating Flag Number n If the Test bit is one, this field is the Test Flag Number, that is, the number of a Note that if an attempt is made to set or clear a flag that is not supported by the drive,...
  • Page 93 Power-on time descriptor (MSB) (MSB) World time descriptor Reserved (0) (MSB) Library time descriptor MODE SENSE 0 Power-on Time is invalid. 1 Power-on Time is valid. 0 World Time is invalid. 1 World Time is valid. 0 Library Time is invalid. 1 Library Time is valid.
  • Page 94: Cd-Rom Emulation/Disaster Recovery Mode Page

    MODE SENSE The number of times the drive has been Current Power-on powered on Count Power-on Time The number of seconds since the drive has been powered on World Time The number of seconds from 00:00:00 on January 1, 1970 0 The local timezone has been used.
  • Page 95 MODE SELECT This flag can be used to switch the drive between normal operation and CD-ROM emulation mode: • If this bit is set to its existing value, there is no change. • If this bit is changed from 0 to 1, the drive will enter CD-emulation mode.
  • Page 96: Mode Sense

    MODE SENSE allows the drive to return its current configuration and report which configuration ODE SENSE parameters can be changed through The mode sense header, block descriptor (optional), and zero or more of the are sent to the host. Mode pages contain drive configuration parameters. Some of these parameters are fixed, others are configurable (through the determine which drive parameters are configurable and what their current values are before using mode select to alter them.
  • Page 97 10-byte version Reserved (0) (MSB) CDB fields: Disable Block Descriptors flag Allows the drive to return the Prevents the drive from returning the Page Control—Indicates the type of page parameter values to be returned to the host, as shown in the following table: Description Report Current Values: the current values of the parameters are returned.
  • Page 98: Persistent Reserve In

    PERSISTENT RESERVE IN PERSISTENT RESERVE IN is used to obtain information about persistent reservations and reservation keys that are active within a tape drive logical unit Pre-execution checks: Illegal Field Reservation Command descriptor block: Reserved (0) (MSB) CDB fields: Service Action The service action types that are supported are: 00h Read Keys 01h Read Reservation Returns information on any current persistent reservation 02h Read Capabilities Returns details of the persistent reservation features supported...
  • Page 99 Returned data for service actions: Read Keys service action The drive will return a parameter list containing an 8-byte header and list of each currently registered I_T nexus’ reservation key. Each key is 8 bytes long. The format of the returned data is as follows: (MSB) n -7...
  • Page 100 PR Generation As for “Read Keys service action” on page 99. Reservation Key The key under which the persistent reservation is held. Scope Type The characteristics of the persistent reservation currently held. Persistent reservation types supported by the drive are: See PERSISTENT RESERVE OUT for more information and also the appropriate standards.
  • Page 101: Persistent Reserve Out

    PERSISTENT RESERVE OUT ERSISTENT RESERVE OUT logical unit within the tape drive for the exclusive or shared use of a particular I_T nexus. The command uses other service actions to manage and remove such persistent reservations. An I_T nexus performing Persistent Reserve Out service actions is identified by a reservation key. Pre-execution checks: Illegal Field Reservation...
  • Page 102 Type The characteristics of the persistent reservation currently held. Persistent reservation types supported by the drive are: Exclusive access Exclusive access, registrants only Exclusive access, all registrants The amount of data (in bytes) that should be sent to the drive from the host in parameter Parameter List Length list data.
  • Page 103: Additional Parameter Data

    For the Preempt and Preempt and Abort service actions, this field contains: The reservation key of registrations to be removed if this field also identifies a persistent reservation holder, the persistent reservation to be pre-empted. Valid only for the Register and Register and Ignore Existing Key service actions. SPEC_I_PT The Additional Parameter Data is ignored and the registration is applied only to the I_T nexus that sent the command.
  • Page 104 Fibre Channel Transport ID Format Code (00b) (MSB) Parallel SCSI Transport ID Format Code (00b) (MSB) (MSB) Commands Reserved (0) Reserved (0) World Wide Name Reserved (0) Reserved (0) Reserved (0) SCSI Address Relative Port Identifier (0) Reserved (0) Protocol Identifier (0) (LSB) Protocol Identifier (1h) (LSB)
  • Page 105: Prevent/Allow Medium Removal

    PREVENT/ALLOW MEDIUM REMOVAL PREVENT ALLOW MEDIUM REMOVAL cartridge. When cartridge removal is prevented, the front panel eject button is completely disabled (though a ‘forced eject’ will still work). An Unload command issued by a host will result in . The sense key will be CONDITION When cartridge removal is enabled, pressing the front panel eject button or sending an Unload command from a host will cause the media to be unloaded and ejected.
  • Page 106: Read

    READ transfers zero or more data blocks to the host starting at the current logical position. READ Pre-execution checks: Illegal Field Fixed Bit Unit Attention Media Access If both the SILI and Fixed bits are set, described in the Illegal Field Checks. The field pointers indicate the Fixed bit field. NOTE: Transfers of 4 bytes or less are not supported.
  • Page 107 described below). The current position is set after the last block that was returned or partially returned Suppress Incorrect Length Indicator SILI 0 The read operation is terminated when the length of a block (on the tape) differs from the Transfer Length.
  • Page 108 Read specific status: Event Status SILI error CHECK COND’N Filemark CHECK encountered during COND’N a read EOD encountered CHECK during a read COND’N EOP/M CHECK encountered during COND’N a read Failure to read data CHECK through media error COND’N or non-fatal drive error Corrupt data format CHECK COND’N...
  • Page 109: Read 6 (Cd-Rom Mode)

    READ 6 (CD-ROM mode) Transfer Length blocks of data are transferred to the host, starting from the current logical position specified by Logical Block Address. Any spacing performed to locate to the specified block address is performed with mark counting disabled. Requests falling within the first 250 kilobytes of data on tape will be performed with very little delay (less than 2 seconds) because the drive caches this data at load time.
  • Page 110: Read 10 (Cd-Rom Mode)

    READ 10 (CD-ROM mode) Transfer Length blocks of data are transferred to the host, starting from the current logical position specified by Logical Block Address. Any spacing performed to locate to the specified block address is performed with mark counting disabled. Requests falling within the first 250 kilobytes of data on tape will be performed with very little delay (less than 2 seconds) because the drive caches this data at load time.
  • Page 111: Read Attribute

    READ ATTRIBUTE command allows an application client to read attribute values to MAM READ ATTRIBUTE (Medium Auxiliary Memory). It should be executed before sending a Pre-execution checks: Illegal Field Deferred Error In order to execute a READ ATTRIBUTE only partially loaded, so that the MAM can be read. Command descriptor block: Reserved (0) (MSB)
  • Page 112 Element Address Set to zero to indicate that Ultrium tapes only support a single element. Element Type Code Set to zero to indicate that Ultrium tapes only support a single element. Volume Number Set to zero to indicate that Ultrium tapes only support a single volume. Partition Number Set to zero to indicate that Ultrium tapes only support a single partition.
  • Page 113 Attribute List service action This service action is used to retrieve the identifiers of all the attributes that are supported and exist. The First Attribute ID field in the CDB is ignored. The attribute identifiers are returned in ascending numerical order. The format of the returned data is as follows: (MSB) The Available Data field specifies the number of bytes of attribute ID data returned.
  • Page 114 Volume List service action The Volume List service action is used to report the number of volumes that the device server supports, which in the case of Ultrium drives is 1. The Volume Number, Partition Number and Attribute fields in the CDB are ignored. The information returned is as follows: (MSB) The First Partition Number is the first volume.
  • Page 115: Mam Attribute Data

    MAM attribute data Attribute data sent with a command has the following format: (MSB) Read-Only (MSB) (MSB) The format implies nothing about the physical representation of the data in the Medium Auxiliary Memory. Attribute Identifier The binary identifier for a single attribute. See “Attribute ID values” on page 116 for a description of attribute ID values.
  • Page 116: Attribute Id Values

    Attribute ID values Attributes can be Standard or Vendor-Unique. There are three groups of attributes: Device, Medium and Host attributes. Each group has a list of attributes, which characterize the group: Attribute ID Attribute Type 0000h–03FFh Device 0400h–07FFh Medium 0800h–0BFFh Host 0C00h–0FFFh Device...
  • Page 117 Attribute 0224h–03FFh Reserved Remaining capacity in partition and Maximum capacity in partition TapeAlert flags Load count MAM space remaining Assigning organization Formatted density code Device make/serial number at last load and Device make/serial number at load – n (MSB) (MSB) The same value as is returned in the SCSI Vendor Identification the device server, padded with ASCII spaces (20h).
  • Page 118: Standard Medium Type Attributes

    Standard medium type attributes Attribute 0400h Medium manufacturer 0401h Medium serial number 0402h Medium length 0403h Medium width 0404h Assigning organization 0405h Medium density code 0406h Medium manufacturer date 0407h MAM capacity 0408h Medium type 0409h Medium type information 040Ah – Reserved 07FFh Standard host type attributes...
  • Page 119 Attribute (bytes) 0807h Owning host textual name 0808h Media pool 0809h Partition user text label* 080Ah Load/unload at partition* 080Bh Application format version 080Ch– Reserved BFFh *0809h and 080Ah are optional for LTO drives because they only support a single partition. Text localization indentifiers The Text Localization Identifier defines the character set used for attributes with a text format: Format...
  • Page 120: Read Block Limits

    READ BLOCK LIMITS tells the drive to return data defining the maximum block size that it can EAD BLOCK LIMITS support. Note that this is the maximum supportable, not the fixed block size. Pre-execution checks: Illegal Field Reservation Command descriptor block: Read Block Limits data: (MSB) (MSB)
  • Page 121: Read Buffer

    READ BUFFER reads data from the memory on the drive and sends it to the initiator. The value of EAD BUFFER the Mode field determines whether only the 4-byte descriptor is returned, only the data is returned, or whether both are returned. Pre-execution checks: Illegal Field Reservation...
  • Page 122 SCSI burst buffer CM EEPROM Mechanical EEPROM Head assembly EEPROM PCA EEPROM Main buffer segment 0 Main buffer segment 1 Main buffer segment 2 Main buffer segment 3 Main buffer segment 4 Main buffer segment 5 Main buffer segment 6 Main buffer segment 7 Buffer Offset The Buffer Offset field may be set to any address in the buffer, but must obey the specified Offset Boundary.
  • Page 123: Returned Data

    400000h FF8000h SCSI Burst Buffer 3F8000h bytes Size = 4 KB LTO-Cartridge Memory Mechanism EEPROM Size = 8 KB Head Assembly EEPROM Size = 16 KB Size = 32 KB PCA EEPROM Returned data: The format of the 4-byte descriptor for Mode 00000b is as follows: (MSB) The format of the 4-byte descriptor for Mode 00011b is as follows: (MSB)
  • Page 124: Read Capacity (Cd-Rom Mode)

    READ CAPACITY transfers Read Capacity data to the host. EAD capacity Pre-execution checks: Illegal Field Fixed Bit Reservation Deferred Error If the drive is not in CD-ROM mode, the request will return key Illegal Command. Command descriptor block: Logical Unit Number (MSB) CDB fields: Logical Block Address This flag is ignored.
  • Page 125: Read Media Serial Number

    READ MEDIA SERIAL NUMBER EAD MEDIA SERIAL NUMBER of the cartridge currently loaded in the drive. Pre-execution checks: Illegal Field Reservation Command descriptor block: Reserved(0) (MSB) CDB fields: Service Action 01h The Service Action must be set to 01h. Allocation The maximum amount of data (in bytes) to be returned to the host.
  • Page 126 No barcode stored: (MSB) (MSB) (MSB) Cartridge Serial The serial number of 10 ASCII characters stored in the LTO-CM Cartridge Number Manufacturer’s Information page. Barcode stored: (MSB) (MSB) (MSB) (MSB) Barcode Number The barcode number of 32 ASCII characters stored in the LTO-CM Application Specific page.
  • Page 127: Read Position

    READ POSITION command returns data representing the current logical position to the host. READ POSITION The position is the count of all marks and blocks between BOM and the current logical position. The first block is block 0. The command causes no tape movement. The Read Position command is complimented by the Pre-execution checks: Illegal Field...
  • Page 128 Short Form Block ID (MSB) (MSB) (MSB) (MSB) Returned data fields: LOCU BYCU LOLU PERR Partition Number This will always be zero. First Block The number of blocks and filemarks from BOM to the current position. Counting starts at zero, so BOM is block location 0. Location Last Block Always set to the value of the First Block Location.
  • Page 129 Long Block Form ID Reserved (0) (MSB) (MSB) (MSB) (MSB) Returned data fields: Mark Position Unknown The File Number and Set Number fields are valid. The Partition Number and Block Number are valid. LONU Partition Number This will always be zero because Ultrium drives do not support multiple partitions. Block Number The number of logical blocks between BOP (beginning of partition) and the current logical position.
  • Page 130 Extended Block Form ID (MSB) (MSB) (MSB) (MSB) Commands LOCU (1) BYCU (1) Rsvd (0) Partition Number (0) Additional Length (1Ch) Reserved (0) Number of blocks in buffer (0) First Block Location Last Block Location (same as First Block Location) Number of bytes in buffer (0) LOLU (0) Reserved (0)
  • Page 131: Read Toc (Cd-Rom Mode)

    READ TOC (CD-ROM mode) transfers the Table of Contents data to the host. EAD TOC Pre-execution checks: Illegal Field Bad LUN Unit Attention If the drive is not in CD-ROM mode, the request will return key Illegal Command. The Track/Session Number must be set to 0 or 1. Any other value will result in status with sense data as described in Illegal Field Checks.
  • Page 132: Read Toc Data

    Read TOC data The following data is always returned: (MSB) (MSB) (MSB) Commands TOC Data Length (12h) First Track Number (1) Last Track Number (1) Reserved (0) ADR (1) Track Number (1) Reserved (0) Logical Block Address (00000000h) Reserved (0) ADR (1) Track Number (AAh) Reserved (0)
  • Page 133: Receive Diagnostics Results

    RECEIVE DIAGNOSTICS RESULTS ECEIVE DIAGNOSTIC RESULTS through the SEND DIAGNOSTIC command. If none has been sent, the data refers to the power-on self-test. Pre-execution checks: Illegal Field Reservation Command descriptor block: (MSB) CDB fields: The page code valid flag is ignored. Identifier for the diagnostic information page to be returned.
  • Page 134 Data returned Page code 70h — Self-Test (Read/Write) Page Format for Write: (MSB) No parameters are needed. Sending this page is equivalent to a both the SelfTest and UnitOfl bits set. Page format for Read: (MSB) (MSB) Commands Page Code (70h) Reserved (0) Parameter List Length (0) Page Code (70h)
  • Page 135: Release Unit

    RELEASE UNIT enables the host to release any reservation it may have on the drive. Reserving a ELEASE UNIT device is a way of ensuring exclusive access to that device from a single initiator for the period of the reservation. The drive may be reserved using a Pre-execution checks: Illegal Field Deferred Error...
  • Page 136 LongID Third-Party Device ID Release Unit specific status: Status is returned as follows: If the drive is not reserved, • • If the drive is reserved by another host, • If the drive is reserved by this host for this host, the reservation status is cleared. Commands This is always zero because device IDs greater than 255 are not supported.
  • Page 137: Report Density Support

    REPORT DENSITY SUPPORT Report Density Support The data is returned as a header and a series of descriptor blocks. Pre-execution checks Illegal Field Deferred Error Command descriptor block (MSB) CDB fields Media One descriptor block is returned for each format supported by the drive. The capacity field in the descriptor block will indicate the capacity of the current media.
  • Page 138 Descriptor blocks The header is followed by one or more Report Density Support descriptor blocks with the following format: WRTOK DUP (0) (MSB) (MSB) (MSB) (MSB) (MSB) (MSB) (MSB) The values reported for Ultrium 3 format tapes are as follows: Primary Density Code Secondary Density Code WRTOK...
  • Page 139 Ultrium 3/16T A longer version of the above Description If this command is sent to the HP Ultrium 3 drive with the Media bit set to 0, three descriptor blocks will be returned with key values as follows: Density Code WRTOK Tape width is 1/2”...
  • Page 140: Report Device Identifier

    REPORT DEVICE IDENTIFIER Description: REPORT DEVICE IDENTIFIER Pre-execution checks: Illegal Field Reservation Command descriptor block: Reserved (0) (MSB) CDB fields: Allocation Length The number of bytes that have been allocated for the Device Identifier The actual number returned will be the lower of the stored Device Identifier length and the allocation length specified in this command.
  • Page 141: Report Luns

    REPORT LUNS Description: command allows the host to retrieve information about what logical units the drive Report LUNS supports. The standard drive only has a single LUN. Pre-execution checks: Illegal Field Command descriptor block (MSB) CDB fields: Select Report The type of logical unit address that will be reported. Allowable values: 00h/02h Report all logical units accessible by the initiator through the address 03h–FFh Reserved.
  • Page 142 Data returned: (MSB) (MSB) (MSB) Commands LUN List Length (08h) Reserved (0) List of LUNs LUN 0 (0) (LSB) (LSB) (LSB)
  • Page 143: Report Supported Opcodes

    REPORT SUPPORTED OPCODES Description: REPORT SUPPORTED OPCODES logical unit that is addressed. Pre-execution checks: Illegal Field Reservation Command descriptor block: Reserved (0) (MSB) (MSB) CDB fields: Reporting Options Requested Operation Code Ignored for Reporting Option 000b. Requested Service Action Allocation Length command requests information on commands supported by Deferred Error Operation Code (A0h)
  • Page 144 Data returned The returned Parameter Data contains a 4-byte header followed by one or more command descriptors: (MSB) Command Data Length Each command descriptor contains either a supported Operation Code or an Operation Code/ Service Action combination. The format of each descriptor is as follows: (MSB) (MSB) Operation Code...
  • Page 145: Report Supported Task Management Functions

    REPORT SUPPORTED TASK MANAGEMENT FUNCTIONS Description: REPORT SUPPORTED TASK MANAGEMENT FUNCTIONS which task management functions are supported by the logical unit that is addressed. Pre-execution checks: Illegal Field Reservation Unit Attention Diagnostic Status Command descriptor block: Reserved (0) (MSB) CDB fields: Allocation Length Data returned: The returned Parameter Data is as follows:...
  • Page 146 CTSS The Clear Task Set task management function is supported. The Logical Unit Reset task management function is supported. LURS The Query Task task management function is not supported. The Target Reset task management function is not supported. The Wakeup task management function is not supported. WakeS Commands...
  • Page 147: Request Sense

    REQUEST SENSE command transfers sense data held within the drive to the host during a data- REQUEST SENSE in phase. The data is valid in the following circumstances: • After reporting CHECK CONDITION After a command has terminated with an unexpected •...
  • Page 148: Request Sense Data

    Allocation No data is transferred to the host. Length >0 The maximum amount of sense data in bytes that should be transferred to the host. The drive returns up to Allocation Length bytes of data; any extra sense data is lost. Request Sense data Sense data is recovered from the drive by means of a reporting of...
  • Page 149 71h Indicates that the error is deferred. A deferred error occurs when there is a failure for an operation that has already been terminated with a GOOD status, or when failure occurs in “cleanup” activity following an operation that was terminated by BUS RELEASE. The command for which CONDITION deferred error.
  • Page 150 71h Indicates that the error is deferred. A deferred error occurs when there is a Segment Number This field is cleared to zero. Mark Sense Key See “Sense Keys” on page 157 for details of sense keys that can be returned. The Information Bytes field is only valid if the Valid bit is set.
  • Page 151 The codes should not be relied on by “generic” host drivers, since these are specific to the product. For a list of codes, Chapter 10 of the Hardware Integration Guide, Volume 1 of the HP Ultrium Technical Reference Manual The drive is OK.
  • Page 152: Descriptor Format

    Descriptor format The Descriptor format of the returned data is as follows: Valid 4–6 (MSB) Returned Sense data fields: Response Code 72h The error is current, that is, it is associated with the command for which 73h The error is deferred. A deferred error occurs when there is a failure for an Additional Sense The number of additional sense bytes to follow, 244.
  • Page 153 Information Sense data descriptor Valid (1) Sense Key Specific Sense data descriptor Only one of these is reported: Field Pointer or Progress Indication. Field Pointer The Sense Key is set to Illegal Request. 2–3 SKSV (1) Progress Indication The Sense Key is set to No Sense or Not Ready. 2–3 SKSV (1) Process Indication...
  • Page 154: Sense Data Management

    Stream Commands Sense data descriptor 2–3 Mark Drive Error Code Sense data descriptor 2–3 Mark Cleaning Needed Sense data descriptor 2–3 Sense data management The drive maintains three sets of sense data for every initiator on the bus. For a single host the following sense data is maintained: •...
  • Page 155: Unit Attention Sense

    It is cleared in response to the arrival of any command other than • INQUIRY It is cleared following execution of a • • If the current command fails, sense is set according to the failure and reported to the host that sent the command. •...
  • Page 156: Deferred Error Sense

    It is possible for multiple followed by a tape load), such that the initiator does not read one condition before the next occurs. In this case a prioritizing scheme is used. If a one occurs, then the UNIT ATTENTION sense has a higher priority. The order of priority is as follows: Power-on, Reset Tape Loaded...
  • Page 157: Sense Keys

    Sense keys The following table lists the sense keys that may be returned by HP Ultrium drives. SCSI sense keys are 4-bit codes returned in the sense data. They indicate in what general area the problem that has just been experienced falls.
  • Page 158 See also the Media Write check. The drive tried to read unwritten tape. Never returned by HP tape drives Never returned by HP tape drives The drive has stopped trying to act on a command, usually through some problem on the SCSI bus.
  • Page 159: Additional Sense Codes

    Additional Sense codes This section contains a list of all the additional sense codes that an HP Ultrium drive can return, in numerical order. The Sense Keys under which each code could appear are also listed. The ASCQ bytes are present at bytes 12 and 13 of the sense data.
  • Page 160 Code Description 14 03h End of data not found 1A 00h Parameter list length error 20 00h Invalid command operation code 24 00h Invalid field in Command Descriptor Block 25 00h LUN not supported 26 00h Invalid field in parameter list 26 01h Parameter not supported 26 04h Invalid release of persistent reservation...
  • Page 161 Code Description 2A 04h Reservations released 2A 05h Registrations pre-empted 2C 00h Command sequence invalid 30 00h Incompatible medium installed 30 01h Unknown format 30 02h Cannot read media: incompatible format 30 03h Cleaning cartridge installed 30 04h Cannot write medium 30 05h Cannot write medium, incompatible format 30 07h Cleaning failure...
  • Page 162 Code Description 3E 00h Logical unit has not self-configured 3F 01h Firmware upgraded 3F 05h Device identifier changed 3F 0Fh Echo buffer overrun 3F 11h Media Auxiliary Memory accessible 40 XX h Diagnostic failure on component XX 43 00h Message error 44 00h Internal target failure 45 00h Select or reselect failure 47 00h SCSI parity error...
  • Page 163: Error Codes

    82 83h Bad microcode detected Error codes The error codes that can be reported in bytes 16 and 17 are listed in Chapter 10 of the Hardware Integration Guide, Volume 1 of the HP Ultrium Technical Reference Manual. Explanation FC interface only:...
  • Page 164: Reserve Unit

    RESERVE UNIT This command enables the host to reserve the drive. Reserving a device is a way of ensuring exclusive access to that device from a single initiator for the period of the reservation. Once reserved, the drive will execute commands received from the reserving initiator or from the third-party initiator if the 3rd-Pty option has been selected.
  • Page 165 10-byte Reserved (0) (MSB) Operation Code (56h) 3rd Pty Reserved (0) LongID(0) Rsvd(0) Reserved (0) Third-Party Device ID Reserved (0) Parameter List Length Control RESERVE UNIT 16h/56h 165 (LSB)
  • Page 166: Rewind

    REWIND causes the drive to write all buffered logical objects to tape and then positions the tape at EWIND BOM (beginning of media). Once a rewind is started, it will complete even if the SCSI operation is aborted (for example, if the host selects and sends an abort message). Pre-execution checks: Illegal Field Unit Attention...
  • Page 167: Seek (Cd-Rom Mode)

    SEEK (CD-ROM mode) is executed for 2Bh when the drive is in CD-ROM mode. When out of CD-ROM, the command, which shares the opcode, is executed. Assuming the pre-execution checks are passed, Pre-execution checks: Illegal Field Flag Link Deferred Error Unit Attention Command descriptor block: Logical Unit Number...
  • Page 168: Send Diagnostic

    SEND DIAGNOSTIC tells the drive to perform either its standard self-test, or diagnostics specified in END DIAGNOSTIC the parameter list on itself. The parameter list is transferred to the drive in a series of data-out phases; each 8-byte data-out phase specifies a diagnostic to be performed by the drive. It is not an error to set Self-Test = 0 and to have a zero-length parameter list.
  • Page 169: Standard Self-Test

    Indicates that the host is prepared for the drive to perform tests that could affect logical position, modify the tape or modify cartridge status. This bit must be set if the Self-Test bit is 0. Parameter List Indicates how many bytes of diagnostic parameter data are to be sent to the Length drive.
  • Page 170: Set Capacity

    SET CAPACITY This provides a means of changing the logical length of the currently-loaded media. The primary use envisaged is for testing purposes, although it may also be used in other circumstances where a shortened tape may be beneficial. Note that all data currently on the media will be lost following successful execution of this command.
  • Page 171: Set Device Identifier

    SET DEVICE IDENTIFIER allows a initiator to set the Device ID information to that supplied in the ET DEVICE IDENTIFIER Parameter List. This information can be later retrieved by the Upon successful completion the command will post sense key sense of 3F05h (device identifier changed) to all initiators except the one that issued the command.
  • Page 172: Space

    SPACE provides a variety of positioning functions that are determined by Code and Count fields in PACE the Command Descriptor Block. Both forward (towards EOM) and reverse (towards BOM) positioning are provided. Any unwritten data in the buffer is flushed to tape before the space is started. The logical media position is then modified according to the Code and Count fields.
  • Page 173 CDB fields: Code The Code field indicates what is to be spaced to: 000 Blocks—The number of blocks crossed is dictated by Count. 001 Filemarks—The number of filemarks crossed is dictated by Count. 011 EOD—Space to the end of data in the current active partition. When spacing over blocks or filemarks this field indicates how many blocks or Count •...
  • Page 174 respond with GOOD any other forward spacing request. Additional sense is set to 1403h ( • Early warning end of medium information is not reported. If a space records or space filemarks command fails then the sense data information bytes •...
  • Page 175: Start/Stop (Cd-Rom Mode)

    START/STOP (CD-ROM mode) is executed for 1Bh when the drive is in CD-ROM mode. When out of CD-ROM TART/STOP mode, the LOAD/UNLOAD Assuming that the pre-execution checks are passed, Pre-execution checks: Illegal Field Reservation Command descriptor block: Logical Unit Number CDB fields: Immed This flag is ignored.
  • Page 176: Test Unit Ready

    TEST UNIT READY checks if the drive is ready for commands that access the tape. This is done by EST UNIT READY the pre-execution Media Access check; it is not a request for a self-test. If the drive has a tape loaded, the command returns a sense key is NOT READY...
  • Page 177: Verify

    VERIFY verifies one or more blocks beginning with the next block on the tape. The verification is ERIFY media verification only. It reads data from the tape as it would for a read but then immediately discards it. No data is transferred between the host and drive. The command is identical to the identical.
  • Page 178: Write

    WRITE Zero or more blocks of data are transferred from the host to tape starting at the current logical position. It is recommended that the Buffered Mode field of the 2 so that Immediate reporting is enabled; upon a write command the drive will report status once the data is successfully transferred to the data buffer (but not necessarily to tape).
  • Page 179 Write specific status: See also the “Additional Sense codes” on page 159 for a variety of possible hard errors. An attempt to write to a write-protected cartridge will produce a key of and additional sense of 2700h (write-protected). DATA PROTECT An attempt to write to a cartridge whose Cartridge Memory has failed will produce a with a sense key of CONDITION...
  • Page 180: Write Attribute

    WRITE ATTRIBUTE command allows an application client to write attribute values to MAM WRITE ATTRIBUTE (Medium Auxiliary Memory). Application clients should issue using this command to discover what support the device server has for MAM. Pre-execution checks: Illegal Field Deferred Error For this command to be executed, there must be a tape in the drive, even if it is only partially loaded.
  • Page 181 Parameter list format: The parameter list has the following format. The attributes should be sent in ascending numerical order. For details of attribute data see “MAM attribute data” on page 115. (MSB) Parameter This is not mandatory and will be ignored by the device server because it duplicates the Data Length Parameter List Length.
  • Page 182 Description The parameter data attempts to change a read- only attribute, that is, one that has the Read-Only bit (see “MAM attribute data” on page 115) set to one when read with the command. None of the attributes are changed. parameter data contains an attribute with an incorrect Attribute Length field value.
  • Page 183: Write Buffer

    The firmware download functions are intended for use by manufacturing and by customers using upgrade utilities supplied by HP. Pre-execution checks: Illegal Field...
  • Page 184 0Ah/ Buffer ID Specifies which buffer to read. Buffer Offset Where in the buffer the data should be written. This must be smaller than the size of the buffer and must obey the specified offset boundary. When downloading new firmware, this field is ignored.
  • Page 185 Memory sizes Main buffer memory: The Main Buffer memory is 128 MB. Areas of the Main Buffer memory are used by the firmware. These should not be written to and should not be expected to retain values that are written to them. Any Write and Read Buffer tests can be performed while the drive is idle.
  • Page 186: Write Filemarks

    WRITE FILEMARKS causes the specified number of filemarks to be written beginning at the current RITE FILEMARKS logical position on tape. If the Immed bit is set, Otherwise, all buffered data and marks are written before status is reported. If zero filemarks are to be written, the Immed bit must be zero. The drive writes any buffered data and marks to tape before reporting.
  • Page 187: Glossary

    Glossary algorithm rigorous set of rules for a procedure. In the context of data compression, the rules are for transforming the way data is represented. ANSI American National Standards Institute, which sets standards for, amongst other things, SCSI and the safety of electrical devices. data transfer phase asynchronous Beginning Of Media.
  • Page 188 ECMA European Computer Manufacturers Association. The European equivalent of ANSI. enhanced commands SCSI commands that are vendor-unique and not part of the common SCSI set. End Of Data. An area that signifies the end of the valid data. If new data is written over a larger quantity of old data, it is possible for data to exist after EOD, but because it is after EOD, this old data is no longer valid.
  • Page 189 Small Computer System Interface—a standard command specification and command set that enables computers and peripherals to communicate with each other. HP’s Ultrium drives adhere to the SCSI specifications (see Chapter 1, “Interface Implementation” in Volume 3, The SCSI Interface, of the HP Ultrium Technical Reference Manual) and support all features required by those standard.
  • Page 190 SCSI bus as wide devices using a suitable adapter. HP’s Generation 1 Ultrium drives are Ultra2, wide SCSI-3 compatible devices. They can be used with both LVD and SE host bus adapters.
  • Page 191: Index

    Index abort handling Aborted Command additional sense codes 149, 150, 152, addressing, fibre channel algorithms compression decompression ANSI 7, append error ASC/Q asynchronous asynchronous data transfer asynchronous transfers attribute data attributes ID values standard device types standard host type standard medium type writing Bad LUN check bit pointer...
  • Page 192 SET DEVICE IDENTIFIER SPACE START/STOP 21, supported VERIFY WRITE WRITE ATTRIBUTE WRITE BUFFER WRITE FILEMARKS compatibility compression algorithm ratio control byte control field Control Mode page current sense clearing Data Compression Capable bit Characteristics Mode page Enable bit SDCA data compression algorithm data decompression algorithm Data Decompression Enable bit...
  • Page 193 GOOD status group code HARDWARE ERROR heads, cleaning hold bit hold position 50, Host IDENTIFY message, invalid bits identifying LUNs ILI bit 149, Illegal Command check Illegal Field check ILLEGAL REQUEST immediate mode during writing Information Exceptions Mode page Information sense data descriptor INQUIRY command...
  • Page 194 Read-Write Error Recovery page SCSI LUN Control Mode page SCSI Port Control Mode page monitoring condition 65, MOVE MEDIUM command multi-initiator support names, fibre channel Negotiated Settings mode sub- page NO SENSE NOT READY opcode unrecognized overlapping commands paced transfers parallel protocol request Parameter List check parameter list, invalid field...
  • Page 195 descriptor format fixed format management sense data descriptors Cleaning Needed Drive Error Code Information Sense Key Specific Stream Commands Sense Key Specific sense data descriptor sense keys 149, 150, specific bytes 149, sequential access Sequential Access command set Sequential Access Device Log page sequential positioning error service actions...
  • Page 196 Index...

Table of Contents