Hewlett-Packard makes no warranty of any kind with regard to this material, including, but not limited to, the implied warranties of
merchantab ility and fitness for a parti c u l ar purp ose. Hewlett -Packard shall not be liable for errors contained herein or direct,
indirect, special, incidental or consequential damages in connection with the furnishing, performance, or use of this document.
This document contains proprietary information which is protected by copyright. All rights reserved. No part of this document may
be photocopied, reproduced or translated to another language without the prior written consent of Hewlett-Packard.
Revision history
VersionDateChanges
Edition 1Nov. 2000All
Edition 2Mar. 2001Addition of Read and Write attribute commands and Drive Error Codes
Edition 3May 2002Inclusion of the Request Block Address command and the Control mode page, together
with numerous small changes
Edition 5July 2003Many small changes
Edition 6December 2004Generation 3 version
This document is frequently revised and updated. To find out if there is a later version, please ask your HP OEM Representative.
This is one of six volumes that document HP Ultrium drives. This volume provides background
information f or dri v er and applicati on dev eloper s. T he follo w ing doc uments pr ov i de 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
• Specifications, volume 4 of the HP Ultrium Technical Re f e rence Manual
• HP Ultrium Configuration Guide, volume 5 of the HP Ultrium Technical Reference Manual
• Background to Ultrium Drives, volume 6 of the HP Ultrium Technical Reference Manual
• HP Ultrium Technology White Paper, which describes the features and benefi ts of
HP Ultrium drives
Please contact your HP supplier for copies.
Documentation map
The following will help you locate information in the 6-volume Technical Reference Manual:
• Enhanced Small Computer Sy stem Interface (SCS I- 2), ANSI X3T9.2-1993 Rev. 10L,
available through ANSI
• See http://www.t10.org/t10_main.htm
for ANSI SCSI-3 and other specific ations
Copies of documents of other standards bodies can be obtained from:
ANSI
11 West 42nd Street
New York,
NY 10036-8002
USA
ISO
CP 56
CH-1211 Geneva 20
Switzerland
ECMA
114 Rue du Rhône
Tel: +41 22 849 6000
CH-1204 Geneva
Web URL: http://www.ecma.ch
Tel: 800 854 7179 or 714 261 1455
Global Engineering Documents
Switzerland
2805 McGaw
Irvine, CA 92714
USA
10
1Interface Imp lementation
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 2 and of commands in Chapter 3 and
Chapter 4.
The SCSI interface
The Small Computer System Interface (SCSI) is an industry standard, approved by the American
National Standards Institute (ANSI). You are recommended to read the ANSI standard document
in conjunction with this manual. The ANSI specification defines the interface in general while this
document describes the HP Ultrium implementation.
The SCSI implementation provides a drive with a standard set of features and functions. These
include the following:
• Synchronous data transfers
• Asynchronous data transfers
• Implementation of all mandatory and most optional commands of the Sequential Access
command set
• LVD (Low-Voltage differential) SCSI connectio n
• Ultra-320 wide SCSI
• Conformance to the following SCSI standards:
• SAM-2 ANSI INCITS .366:2003
• SPI-4 ANSI INCITS.362:2002
•SPC3
• SS C -2 ANSI INCITS.380:2003
Supported messages
The following messages are supported by the drives:
• ABORT
• BUS DEVICE RESET
• COMMAND COMPLETE
Interface Implementation
The SCSI interface
11
• DISCONNECT
• IDENTIFY
• IG NORE WIDE RESIDUE
• INITIATOR DETECTED ERROR
• MESSAGE PARI TY E RROR
• MESSAGE REJECT
• NO-OP (no operation)
• PARALLEL PROTOCOL REQUEST (PPR)
• RESTORE POINTERS
• SAVE DATA POINTER
• SYNCHRONOUS DATA TRANSFER REQUEST
• WIDE DATA TRANSFER REQUEST
For implementation details on these messages, see Chapter 2, “Messages”
Supported commands
The following commands are supported by the drives. They include all Mandatory and Extended
commands and most Optional commands.
19hERASE03hREQUEST SENSE
12hINQUIRY44hREPORT DENSITY SUPPORT
1BhLOAD/UNLOADA3h (05h) REPORT DEVICE IDENTIFIER
2BhLOCATEA0hREPOR T LUNS
4ChLOG SELECTA3h (0Ch) REPORT SUPPORTED OP CODES
4DhLOG SENSEA3h (0Dh) REPORT SUPPORTED TASK MNGMNT FUNCTNS
15h/55h MODE SELECT56h/16h RESERVE UNIT
1Ah/5Ah MODE SENSE01hREWIND
5EhPERSISTENT RESERVE IN1DhSEND DIAGNOSTIC
5FhPERSISTENT RESERVE OUT0BhSET CAPACITY
1EhPREVENT/ALLOW MEDIUM REMOVALA4h (06h) SET DEVICE IDENTIFIER
08hREAD11hSPACE
8ChREAD ATTRIBUTE00hTEST UNIT READY
05hREAD BLOCK LIMITS13hVERIFY
3ChREAD BUFFER0AhWRITE
ABh (01h) READ MEDIA SERIAL NUMBER8DhWRITE ATTRIBUTE
34hREAD POSITION3BhWRITE BUFFER
1ChRECEIVE DIAGNOSTIC RESULTS10hWRITE FILEMARK S
57h/17h RELEASE UNIT
Interface Implementation12
The following additional commands are supported for CD-ROM mode:
08hREAD 643hREAD TOC
28hREAD 102BhSEEK
25hREAD CAPACITY1BhSTART/STOP UNIT
For implementation details on these commands, see Chapter 3, “Commands—introduction” and
Chapter 4, “Commands”.
SCSI f eatures
Design approach
The features supported b y the dri v e are ba sed on standar ds, both off ici al and de fact o. T he dri ve is
fully compliant with the current SCSI standards: SPC3, SSC2, SAM2, and the relevant transport
protocol (e.g. SPI4 for the parallel SCSI drive). All mandatory commands and features are
supported, as well as some that are optional. In addition, some features from older standards are
still supported for backwards compatibility.
Power-on
The drive will respond to INQUIRY, TEST UNI T READY, REP OR T L UN S and RE QUEST SENSE commands
within 250 ms of power on. The first command received from an initiator (other than
REQUES T SE NSE) w ill r e sult in CHECK CONDITION status, with UNIT ATTENTION sense data reported
for the power on. Once the drive has completed its self-test and set-up procedures, it will attempt
to reload any tape that is already present in the drive. It may take some time to recover the tape,
especially if it wa s po sitioned near EO M when power was cy cl ed . Dur ing ta pe recovery, medium
access commands will result in a sense key of
in process of becoming ready).
Reset strategy
The drive supports reset as follows:
• The current I/O process is aborted
• Any queued I/O processes from other initiators are removed
• All negotiated settings are cleare d
• Mode parameters are cleared to their default values
• Any reservations are cleared (but not persistent reservations)
• Any buffered writes are flushed to tape
• The logical position becomes undefined, unless Rewind-On-Reset has been configured in
which case the drive will rewind to BOM
INQUIRY and
Interface Implementation
NOT READY, with additional sense of 0401h (drive
(parallel SCSI drives only)
SCSI features
13
• A UNIT ATTENTION condition is set, based on the type of reset
The drive will respond to
250 ms of the re set line being r elea sed. Th e fir st command f r om any initia tor (other than
REQUEST SENSE and REPORT LUNS) will result in CHECK CONDITION status with UNIT ATTENT ION
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_R ESET_L line on the Automation Controller
Interface are both connected to the Power-Up Reset interrupt on the processor. The effect is
equivalent to power-cycling the drive. The contents of the tape and cartridge memory may not be
consistent after the action and any data in the drive buffer will be lost.
Abort handling
If an abort condition is detected before a command phase completes, the bus is set to bus fr ee and
the command is not executed.
If an abort condition is detected between the end of the command phase and the start of the status
phase, the bus is set to bus free and the processing below is carried out.
If an abort condition is detected during status phase, the bus is set to bus free.
If a command (other than
abort but before the drive is ready to process the command, the behavior depends on whether
Disconnects are allowed.
• If disconnects are allo w ed, the dri v e w ill disconnect and w ait un til the abort pr ocessing has
completed before executing the command.
INQUIRY, TEST UNIT READY, REPORT LUNS and REQUEST SENSE within
INQUIRY,
BUSY status until the drive has
INQUIRY for standard data or REQUEST SENSE) is received after the
• If disconnects are not allow e d, a
CommandAbort Processing
ERASELong erase is aborted as quickly as possible without corrupting the tape
format. Short erase completes.
INQUIRYNone
LOAD/UNLOADLoad completes and logically positions the tape at BOT.
Unload is aborted leaving the logical position at BO T unless the operation
is past the “point of no return” in which case the tape is eject ed.
LOCATEThe logical position is set back to that at the start of the operation.
LOG SELECTIf data transfer is complete, the command is completed, otherwise no action
is taken
LOG SENSENone
MODE SELECTIf data transfer is complete, the command is completed, otherwise no action
is taken.
MODE SENSENone
Interface Implementation14
BUSY response will be returned.
CommandAbort Processing
PREVENT/ALLOW
MEDIUM REMOVAL
READThe logical position is set to that at the start of the operation.
READ BLOCK LIMITSNone
READ BUFFERNone
READ POSITIONNone
RECEIVE DIAGNOSTICS
RESULTS
RELEASE UNITThe command completes.
REQUEST SENSESense data is discarded.
RESERVE UNI TThe command completes.
REWINDThe command completes.
SEND DIAGNOSTICIf data transfer is complete, the command is completed, otherwise no action
SPACEThe logical position is set back to that at the start of the operatio n.
TEST UNIT READYNone
WRITEThe logical position is set back to that at the start of the operation.
WRITE BUFFERIf data transfer is complete, the command is completed, otherwise no action
The command completes.
None
is taken
is taken.
Interface Implementation
WRITE FILEMARKSThe logical position is set back to that at the start of the operation
VERIFYThe logical position is set back to that at the start of the operation
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. The old LUN field in the CDB from the SCSI-2 standards is
obsolete and should not be used (set to 0).
Bus parity or CRC errors
If the drive detects a bus parity error in a message out or command phase, it will still accept the
command, which will then return
error). Detection of a parity error during the data out phas e also causes the drive to r e turn
CONDITION
. Additional sense is set to 4701h (data phase CRC error detected) if the bus is in DT
mode or 4700h if not.
CHECK CONDITION. Additional sense is 4700h (SCSI parity
SCSI features
CHECK
15
If Information Units is enabled (parallel SCSI only), the dri ve 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 driv e will return
4703h (Information Unit CRC error detected).
CHECK CONDITION with a CRC error. Additional sense is set t o
On detecting an Initiator Detected error, the drive will return
sense of 4800h (initator detect ed error message received). The exception is when Information
Units mode is enabled (parallel SCSI only), when one of the following occurs:
• If an IDE message is received dur ing a LQ_IU, the dri ve dr ops the bus and retr ies the LQ_IU
pair.
• If the message is received dur i ng Status IU, the dri ve retries the LQ_Status pair.
• If the message is received during Data IU, the drive sends a LQ_Status with
CONDITION
and additional sense of 4800h.
Disconnect strategy
The disconnect strategy used by the drive is based on maximizing the use of the bus for large
sequential data transfers from a large data buffer. The drive will disconnect whenever it believes
that it will provide better bus use. This may be between command and data phases, between
bursts of data or before sending status. However, the drive will guarantee that it sends the
configured maximum burst size or the remaining data in the transfer in any single data phase
burst if the maximum burst size has been set to a value other than zero.
The following diagram gives an overview of the drive’s disconnect strategy:
CHECK CONDITION with additional
CHECK
Interface Implementation16
CDB arrives
Yes
REQUEST SENSE from
an initiator in CA or
INQUIR Y w ith EVP D=0
No
Disconnect
priv granted
Yes
DisconnectSend data
No
Reselect
Data transfer
required?
No
No
Yes
ReselectExecu te cmd
Transfer data &
execute c md
Previous cmd
still in progress?
Yes
Interface Implementation
Send status
Cmd completeCmd comp le te
Multi-initiator support
All drives are design to operate within a multi-initiator environment. The maximum number of
concurrently connected initiators is as follows:
•
Parallel SCSI drives: up to 15 initiators
•
Fibre Channel drives: up to 32 initiators shared across both ports
Send status
Cmd complete
Send BUSY
status
SCSI features
17
Sense Data, Unit Attention and Deferred Errors are maintained for each initiator. Mode
Parameters are common to all initiators.
The untagged queuing model implemented by the drives guarantees that all commands are
executed in strict order of receipt. Certain non-media access type commands, such as
READY
, INQUIRY, REQUEST SENS E and REPORT LUNS, are implicitly allowed to queue-jump other
media access type commands, such as
The parallel SCSI drive supports the full command queuing model with a queue depth of 1
(necessary for connectivity purposes). The FC drive supports the basic queuing model with a
queue depth of 4. See “Standard Inquiry Data format (LUN0)” on page 40 for details of the BQue
and CmdQue bits which define this support.
REWIND.
Fibre Channel operation
NOTE: This applies only to Fibr e Channel dr ives.
The following sections have information specific to Fibre Channel operation:
• “Fibre Channel Logical Unit Control mode page” on page 84
• “Fibre Channel Port Control mode page” on page 85
• “Vital Product Data pages” on page 44
TEST UNIT
Fibre Channel addressing
Before describing HP’s implementation of Fibre Channel addressing, the concepts of Names and
Addresses need to be clarified.
Names
Names are 64-bit identifiers assigned permanently to the tape dr iv e during manufactur e. T hey ar e
commonly referred to as World Wide Names since they must be guaranteed unique. The names
are typically used for identifying the device to operating systems, since addresses are assigned
dynamically. 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:
• IEEE Company ID (24 bits). Assigned by IEEE to the company.
• Vendor Specified ID (36 bits). Assigned by the company.
Addresses
Each Fibre Channel port also has a Port Address which is assigned during loop initialization
and/or Fabric Login. This is a 24-bit value in the following format:
The AL_PA is the Arbitrated Loop Physical Address. This is normally assigned dynamically during
loop initialization.
If the loop is not attached to a fabric (in other words, when it is private,) the top two bytes will be
zero. If the loop is attached to a fabric, the tape drive is assigned the top two bytes when it logs
into the fabric.
Together, the three bytes provide a unique address on the Fibre Channel fabric that is used for
frame addressing. It forms the equivalent of the Target ID or Initiator ID in SCSI.
HP’s implementation of names and addresses
The HP implementation uses three adjacent IEEE Registered Names:
• The first (last bits = 00) is used as the Port A World Wide Name.
• The second (last bits = 01) is used as the Port B Wor ld W ide Name.
• 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’ controls this. The drive has the ability to support hard
addresses as part of this scheme.
Interface Implementation
Fibre Channel operation
19
The values of the names can be obtained using the Device Identification Vital Product Information
Page (part of the
INQUIRY command).
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
lines on the ACI (Automation Control Interface) will be tied dow n.
In this case, the drive will not go on the FC loop until it is told to. The library can optionally
download a new, soft base name (Port A/Device Name) into the drive at this point. The drive
will then use this as the origin of its names. The library manufacturer would be responsible for
obtaining this IEEE Registered Name. It would be a property of the library, not the drive.
• If the library wants to ‘warm swap’ drives, it can. It just ‘tur ns off’ the drive with the soft
name using the ACI and then turns on the spare drive, downloading the same name to it.
• If a drive is removed from the library, it will not have the ACI signal tied low and so will
revert to its original hard name. It should forget the soft name in this case.
• If the library controller breaks , the dri ve w ill time out the A CI interf ace in ~10 seconds. The
drive still knows it is in a library since the ACI signal is still tied low, so in this case it will
use the soft name last downloaded. This will allow drive access without confusing the host.
Field replaceable units
An FRU code identifies which part of the hardware is considered to have failed. These codes turn
up in sense data byte 14 and as the sense code qualifier for sense codes 4400h (internal target
failure) and 40XX (diagnostic failure).
Interface Implementation20
Although there are no actual Field Replaceable Units on HP Ultrium drives, the following subassemblies can be replaced at Repair Centres:
• Drive PCA• Head Assembly
• Mechanism•Front Panel
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”
mode). The drive can then act as a boot device for PCs that support booting off CD-ROM.
A CD-ROM capable drive can be switched into CD-ROM mode by powering on with the eject
button held down. The drive then alters its behavior as follows:
• The front panel lights flash a “warbling” sequence.
• CD-ROM commands are executed (as opposed to tape drive mode when they would be
rejected). Commands specific to CD-ROM mode are
CAPACITY
(
LOCATE), these are interpreted as CD-ROM commands 08h (READ 6), 1Bh (ST ART/STOP)
and 2Bh (
. In the case of SCSI commands 08h (READ), 1Bh (LOAD/UNLOAD) and 2Bh
SEEK) respectively.
READ 10, READ TOC and READ
• Writing is disabled.
• Normal
emulation and to sw itch the peripheral device type field to indicate a CD-R O M drive .
• The mode header and mode block descriptor are modified.
• A CD-Emulation mode page is added.
• Mode data changes to reflect CD-ROM medium type and block size.
• Status reporting by the media access check is altered.
• The drive’s sense data when the media is not ready for access always indicates “loading”.
If a tape is inserted while the drive is in CD-ROM mode, the drive assumes that it will contain an
image of a CD offset 20 blocks into the tape. It reads the first 250 kilobytes of this image into
buffer space reserved for CD-caching. It then looks for a special message (“
SPECIFICATION
message, it ejects the tape and waits in CD-ROM mode for a properly-written CD-image tape to
be inserted.
The drive will remain in CD-emulation mode until one of the following occurs:
• A
mode page.
INQUIRY data is modified to add a field indicating that the drive supports CD
EL TORITO
”) at the 8th byte of the 18th record of the image. If the drive fails to find this
MODE SELECT command switc hes it back to ta pe drive mode using the CD-emulation
Interface Implementation
CD-ROM emulation
21
• A SCSI bu s r e set occurs following the reading o f at leas t 100 bloc ks of CD-R OM data by a
host.
• The user power-cycles the drive or resets it using the forced-eject mechanism.
NOTE: If the drive exits CD-ROM mode through either of the first two of these, the tape will
remain at the last logical position when in CD-ROM mode.
Interface Implementation22
2Messages
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 bu s wit h a means of managing
communication. The available messages are listed in this chapter.
Message Out support
NameCode Support
Abort06hAn abort condition is generated (see “Abort handling” on page 14).
Bus Device Reset0ChA reset condition is generated (see “Reset strategy” on page 13).
Extended Message01hSee “Extended Message Support” below.
Identify80h+ The Identify Out message is sent by the initiator to identify the Logical
Unit to be accessed and to set Disconnect Privilege.
Initiator Detected
Error
Message Parity Error09hThe initiator has detected a parity error in a mess age. The dri v e w ill r etry
Message Reject07hThis message is sent when the initiator does not support a message sent
No Operation08hThis message has no effect and is ignored.
05hThe initiator has detected an er ror in the data be ing sent in a C ommand,
Data or Status phase. The drive will send a restore data pointers
message to retry the data transfer. (See “Message In support” below for
details).
If the message is recei ved immediately after an Identify message or after
the Command Complete message has been sent, the drive will go Bus
Free.
the message. (S ee “Me ssage In support” below for details).
If the message is recei ved immediately after an Identify message or after
the Command Complete message has been sent, the drive will go Bus
Free.
by the drive or that the message is inappropriate. If the message being
rejected is Disconnect , Synchronous Data T r ansfer R eques t or Wi de Data
Transfer Request, the operation continues without those features. For all
other messages, the message is treated as an Abort message.
If the message is received during a Command, Data or Status phase,
immediately after an Identify message or after the Command Complete
message has been sent, the driv e will go Bus Free.
Messages
23
Message In support
NameCodeSupport
Command Complete00hThis message is sent by the drive at the end of the status phase to
Disconnect04hThis message is sent by the drive to indicate that it is about to
Ignore Wide Residue23hThis message is sent by the drive to the h ost to indicate that a byte on
Message Reject07hThis message is sent to the initiator when th e mess age r ece iv ed b y the
indicate that a command is complete. Once the message is sent, the
drive releases the bus and goes to Bus Free.
disconnect from the bus and go to Bus Free. During a Data phase, it is
always pre-ceded by a Save Data Pointers message. If a Message
Reject message is received in response to this message, then the
disconnect is prevented.
X
hThe Identify In message is sent to the initiator during reconnect to
indicate w hich Logical Unit is r econnecting.
a wide bus is not valid.
This is supported whenever a wide transfer is active. It should be sent
at the end of the data phase. The standard acti on of the drive is to
send this message between the data phase and the status phase with
no disconnect.
drive is unsupported or inappropr iate.
Restore Pointers03hThis message causes the initiator to reset its data transfer poin ters to
the values they held when the last save data poi nters message was
sent. It will be s ent w hen a parity error is detected on the bus or when
an Initiator Detected Error message is rece ived in order to retry the
data phase.
Save Data Pointers02hThis message instructs the initiator to save its current data transfer
pointers for use with a subsequent Restore pointers message . This
message will always be sent before a Disconnect message duri ng
data phases.
Messages24
Extended Message support
NameCode Support
Synchronous Data
Transfer Request
Wide Data Transfer03hThe drive can initiate a Wide data transfer negotiation. If the message
Parallel Protocol
Request
01hThe 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 re s ponse to
complete the negotiation.
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.
Note that SDTR negotiated parameter s w ill become asy nc hro nous after
a WDTR.
04hThe drive will never initiate a Parallel Protocol Request transfer
negotiation but will expect the initiator to do so.
If the message is receiv ed afte r selection and before the command
phase, it will then go to message-in phase and respond with a valid
response to complete the negotiation.
RTIRetain Training Information bit. Supported.
Rd_Strm0Read streaming and read flow control enable bit. Not supported, so the
Wr_Flow0Write flow control enable bit. Not supported; the drive will always return
Hold_MCS0Hold Margin Control S ettings bit. Not supported; the dri v e w ill alw ay s r etur n
QAS_Req0QAS enable request bit. Not supported; the drive will always return zero.
DT_ReqThis bit determines whether DT mode has been requested, in other words,
IU-ReqInformation units enabled request bit. Supported.
08h Transfer period of 6.25 ns, Paced Information Unit transfers
09h Transfer period of 12.5 ns (FAST-80). Only valid when DT transfers have
been requested
0Ch Transfer period of 50 ns (FAST-20) — LVD/SE drives only
19h Transfer period of 100 ns (FAST-10)
32h Transfer period of 200 ns (FAST-5)
For ST transfers, this can be either 0 (Narrow) or 1 (Wide).
For DT transfers, it must be set to 1.
drive will always return zero.
zero.
zero.
packetized data transfers. Supported.
Status
A Status byte is sent from the drive to the host during the Status phase at the end of each
command as specified in the SCSI specification, unless the command has been cleared by an
ABORT message, by a BUS DEVICE RESET message, or by a hard reset.
Messages26
The Status bytes that the drive returns are as follows:
00hGOOD: This status indicates that the drive has successfully completed the command.
02hCHECK CONDITION: Any err or , e xceptio n, or abnormal condition that causes sense data to be
set returns CHECK CONDITION. The REQUEST SENSE command should be sent following
this status to determine the nature of the error.
04h CONDITION MET: This status will never be returned by an HP Ultrium tape drive.
08hBUSY: T he drive is unable to ex ecute the command at this time. Try again later. The drive tries
to avoid using this status code during normal operation. It can sometimes be used after
commands have been aborted, during power-on and if there are multiple selecting initiators.
10h INTERMEDIATE: This status will never be returned by an HP Ultrium tape drive.
14h INTERMEDIATE CND: This status will never be returned by an HP Ultrium tape drive.
18hRESERVAT ION CONF LICT: Returned if the drive is reserved by another party. See the
Reservation check.
22h COMAND TERMINATED: This status will never be returned by an HP Ultrium tape drive.
28h QUEUE FULL
Status
Messages
27
Messages28
3Commands—introduction
This chapter contains notes relating to the SCSI commands listed in Chapter .
Summary
The following table is a summary of the SCSI commands for sequential access devices, showing
the operation code:
OpcodeCommand NameOpcodeCommand Name
00h
TEST UNIT READY
01h
REWIND
03h
REQUEST SENSE
05h
READ BLOCK LIMITS
08h
READ
08h
READ 6 (CD-ROM)
0Ah
WRITE
0Bh
SET CAPACITY
10h
WRITE FILEMARKS
11h
SPACE
12h
INQUIRY
13h
VERIFY
15h
MODE SELECT
16h
RESERVE UNIT
17h
RELEASE UNIT
19h
ERASE
1Ah
MODE SENSE
1Bh
LOAD/UNLOAD
1Bh
START/STOP UNIT (CD-ROM)
1Ch
RECEIVE DIAG RESULTS
1Dh
SEND DIAGNOSTIC
1Eh
PREVENT MEDIUM REMOVAL
25h
READ CAPACITY (CD-ROM)
28h
READ 10 (CD-ROM)
2Bh
2Bh
34h
3Bh
3Ch
43h
44h
4Ch
4Dh
55h
56h
57h
5Ah
5Eh
5Fh
8Ch
8Dh
A0h
A3h (05h)
A3h (0Ch)
A3h (0Dh)
A4h (06h)
ABh (01h)
LOCATE
SEEK (CD-ROM)
READ POSITION
WRITE BUFFER
READ BUFFER
READ TOC (CD-ROM)
REPORT DENSITY SUPPORT
LOG SELECT
LOG SENSE
MODE SELECT (10)
RESERVE UNIT (10)
RELEASE UNIT (10)
MODE SENSE (10)
PERSISTENT RESERVE IN
PERSISTENT RESERVE OUT
READ ATTRIBUTE
WRITE ATTRIBUTE
REPORT LUNS
REPORT DEVICE IDENTIFIER
REPORT SUPPORTED OPCODES
REPORT SUPPORTED TASK MGMNT FNS
SET DEVICE ID
READ MEDIA SERIAL NUMBER
Command details
The command descriptions in Chapter 4 are listed in alphabetical order of command name. Each
command is described briefly. This is followed by a list of pre-execution checks which are
described below. The Command Descriptor Block (CDB) is then given, with details of the various
parameter bits and fields.
Summary
Commands—introduction
29
Pre-executio n checks
NOTE: In compliance with the SCSI specification, the drive term inates a command with a
CHECK CONDITION status and sets the sense ke y to ILLEG AL RE QUEST when a reserved bit , byt e,
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:
• Checks on the command sent by the host. These ensur e that no reserved or f ix ed fields hav e
been set to illegal values. They check the syntax of commands, in other words the cross
dependency of fields. For example, the Flag bit must not be set if the Link bit is not set.
• Checks to ensure that there are no outstanding
posted for the host that has sent the command.
• Checks on media access abilities. Th ese are performed for commands re quiring access to
the cartridge. A command is rejected if it attempts to access the cartridge when no
cartridge is present or the cartridge is unloaded.
The checks are described below in alphabetical order. The usual order of executi on is Illegal Field ,
Fixed Bit, Flag Link, Bad LUN, Reservation, Deferred Error, Unit Attention, Media Access, Media
Write, Diagnostic Status, Humidity, Parameter List.
Bad LUN check
For all commands except INQUIRY 12h, this checks that the LUN specified by the host is zero. The
LUN is taken from the lowest 5 bits of the host’s
• If no
• If an
• If the LUN is unsupported, and the host command is not
• If the LUN is unsupported, and the host command is
IDENTIFY message is supplied, the LUN is taken from the host’s Command Descriptor
Block.
IDENTIFY message is supplied, the LUN in the host’s Command Descript or Bloc k is
ignored
CONDITION
sense of 2500h (logical unit not supported).
data is replaced with a sense key of
(logical unit not supported). This new sense data is returned to the host. Once the
command has completed successfully, the sense data is cleared.
is reported to the host with a sense ke y of ILLEGAL REQUEST, and additional
UNIT ATTENTION or DEFERRED ERROR events
IDENTIFY message.
REQUEST SENSE, CHECK
REQUEST SENSE, the original sense
ILLEGAL REQUEST, and additional sense of 2500h
Deferred Error check
A deferred error is generated when a command with immediate report fails after the report has
been returned. The check looks to see if a deferred error exists for the host which sent the
command, in other words, a deferred error for which
Commands—introduction30
CHECK CONDITION status has not yet been
Loading...
+ 166 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.