LTO-2 SCSI Interface Guide, 50004524 Rev. A, September 2006, Made in USA.
Quantum Corporation provides this publication “as is” without warranty of any kind, either express or
implied, including but not limited to the implied warranties of merchantability or fitness for a particular
purpose. Quantum Corporation may revise this publication from time to time without notice.
COPYRIGHT STATEMENT
Copyright 2006 by Quantum Corporation. All rights reserved.
Your right to copy this document is limited by copyright law. Making copies or adaptations without prior
written authorization of Quantum Corporation is prohibited by law and constitutes a punishable violation of
the law.
TRADEMARK STATEMENT
Quantum, the Quantum logo, DLT, DLTtape, and the DLTtape logo are registered trademarks of Quantum
Corporation in the U.S. and other countries. LTO and Ultrium are trademarks of HP, IBM and Quantum in
the U.S. and other countries.
All other trademarks are the property of their respective companies.
Table 232WRITE FILEMARKS Completion Status ............................................ 282
LTO-2 SCSI Interface Guidexviii
Preface
This document describes the SCSI interfaces for the LTO-2 tape drive.
AudienceThis guide is designed for use by software engineers who have a basic
understanding of SCSI principles and technology.
PurposeThis manual describes the SCSI specifications for the LTO-2 tape drive.
For drive-specific installation and operational information, including
connector information, refer to the Installation Guide or Product Manual
for the specific model of your drive.
Document
Organization
LTO-2 SCSI Interface Guidexix
This guide is organized as follows:
• Chapter 1, SCSI Interface
relates to drive function.
• Chapter 2, SCSI Commands
manual along with their operation codes. It also describes the format
of Command Descriptor Blocks, Operation Codes, the Control Byte,
and the Status Byte. It describes in detail all the SCSI commands
discusses SCSI interface operation as it
, lists the SCSI Commands detailed in this
supported by the LTO-2 tape drive. Each command is described, its
Command Descriptor Block (CDB) is illustrated, and the Completion
Status is given.
• Appendix A, Message Codes
This guide concludes with an index.
Preface
Conventions Used
In This Manual
0
This manual uses the following conventions:
•Notes:
Note:Notes emphasize important information related to the
main topic.
• All binary numbers are succeeded by “b”
• All hexadecimal numbers are succeeded by “h”
• Error or attention conditions are represented in parenthesis that
translate as follows:
(SK=S ASC=AA ASCQ=QQ)
where:
S = hexadecimal sense key value
AA = hexadecimal additional sense code
QQ = hexadecimal additional sense code qualifier
LTO-2 SCSI Interface Guidexx
Preface
Related
Documents
Manuals associated withthe LTO-2 tape drive:
Document
NumberTitleDescription
81-81382-01 LTO-2HH Tape
Drive User’s Guide
Provides specifications,
installation instructions,
and troubleshooting
information for the LTO2HH tape drive.
81-81389-01LTO-2HH Tape
Drive Installation
Guide
50001007LTO-1/LTO-2 Tape
Drives User Guide
Provides installation
instructions for the LTO2HH tape drive.
Provides specifications,
installation instructions,
and troubleshooting
information for the LTO-1
and LTO-2 tape drives.
6464215-01Installing a DLT,
SDLT, VS, LTO, or
DAT Tape Drive Into
a Linux Operating
Provides instructions on
how to integrate specific
tape drives into a Linux
system.
System
Available on the
Downloads page
for LTO-2 tape
drives on
www.quantum.com
Install Guide
Addendum —
Manually Removing
an LTO Cartridge
Provides instructions on
how to manually remove
an LTO cartridge from a
Quantum tape drive.
SCSI-2 Specification
The SCSI-2 specification is the American National Standard for
information systems, dated March 9, 1990. Copies may be obtained from:
Global Engineering Documents
15 Inverness Way, East
Englewood, CO 80112
(800) 854-7179 or (303) 397-2740
LTO-2 SCSI Interface Guidexxi
0
ContactsQuantum company contacts are listed below.
Preface
Quantum Corporate Headquarters
To order documentation on the LTO-2 or other products contact:
Quantum LTO drives are designed for computer environments requiring
high performance, ultra-high capacity data storage. The drives are
available in 5.25-inch internal configurations or as an external subsystem.
Quantum LTO drives contain an embedded Small Computer Systems
Interface (SCSI) controller. The parallel SCSI drives provide synchronous
or asynchronous SCSI with high speed burst transfers of up to 160
megabytes/second. The internal drives are tailored for easy installation
in today's computers and the full-featured embedded controller facilitates
easy integration into a variety of systems.
This chapter discusses interface operation as it pertains to drive
functions.
Overview1
ANSI Standards1 SCSI is a set of standard interfaces established to support peripheral
equipment such as printers, tape drives, magnetic disks, optical disks for
microcomputers and other computer systems. The Parallel SCSI bus can
support up to sixteen devices consisting of any multiple of host adapters
and peripheral devices.
LTO-2 SCSI Interface Guide1
Chapter 1 SCSI Interface
Parallel SCSI Interface
Quantum LTO drives comply with SCSI-2 and SCSI-3 specifications. In a
few cases, vendor unique features are available. These features are
compatible with the SCSI standards.
LTO drives support LUN 0 in stand-alone mode and can support LUN 1
when installed in a media changer (tape autoloader or library).
In addition to the information presented in this manual, we recommend
that you review the applicable SCSI-3 standards before writing host
software drivers. Also, see the conformance statements, which are given
in the Product Description Manual for each model of LTO drive.
Cabling and Connectors1 The cabling requirements and pin assignments for the SCSI connector for
the internal drive models are given in the respective installation guide
and product manual for each model of LTO drive.
General Features1 The LTO tape drive supports the following:
• Operation in both single and multi-initiator systems
• Fixed and variable block transfer lengths
• Space blocks, filemarks, and EOD
•
LOG SENSE and LOG SELECT for managing soft error reporting
• Multiple LUN support for command forwarding of LUN 1 command
to libraries
• Multiple Initiator support
Parallel SCSI Interface1
General Features1 The LTO tape drive supports the following:
• Integrated single-ended and low voltage differential SCSI
transceivers
• ST data transfers with parity protection running a max rate of
80Mbytes/sec
LTO-2 SCSI Interface Guide2
Chapter 1 SCSI Interface
Parallel SCSI Interface
• DT data transfers with CRC protection running a max rate of
160Mbytes/sec
• 16 bit SCSI arbitration
• Disconnect/reconnect
•Hard reset
Disconnect/Reconnect
Function
When the drive is performing a task not requiring communication with
the Initiator or when the tape drive determines that a relatively long time
1
has passed with no bus activity, it disconnects from the SCSI bus.
Examples are:
• When rewinding the tape.
• When writing to the tape and the buffer is full.
• When reading from the tape and the buffer is empty.
• When spacing, locating, or generally performing any tape motion
when data cannot be transferred on the SCSI bus.
During the time the Target is disconnected for one of these functions, the
bus is free for use by other devices. Both disconnect and reconnect are
initiated by the Target.
If the tape drive is selected while disconnected, it only allows the
following actions:
• If the command is from a different initiator or is from the same
initiator but to a different LUN, the tape drive accepts the command
and immediately disconnects if the command is a media-access
command. If the new command is a
TEST UNIT READY, then the new command is executed immediately.
REQUEST SENSE, INQUIRY or
• Immediately following the selection, the Initiator may send the
Identify, No Op, Abort, or Bus Device Reset messages to the drive.
• If the command is from the same initiator to the same LUN, the
current command terminates with a Check Condition and an Abort
Sense Key.
LTO-2 SCSI Interface Guide3
Chapter 1 SCSI Interface
Parallel SCSI Interface
SCSI Messages1 The SCSI message codes, descriptions, and directions are given in the
following table. Each of these SCSI messages are supported by the
Quantum LTO drive.
Table 1 SCSI Message
Codes
CodeDescriptionDirection
00hCommand CompleteIn
01hExtended Message
b
a
In/Out
c
02hSave Data PointerIn
03hRestore PointersIn
04hDisconnectIn
05hInitiator Detected ErrorOut
06hAbortOut
07hMessage RejectIn/Out
08hNo OperationOut
09hMessage Parity ErrorOut
0ChBus Device ResetOut
23hIgnore Wide ResidueIn
80h+IdentifyIn/Out
a. In = Drive to host.
b. Only three extended messages are supported: Parallel Protocol Request,
Synchronous Data Transfer Request, and Wide Data Transfer Request.
c. Out = Host to drive.
LTO-2 SCSI Interface Guide4
Chapter 1 SCSI Interface
Parallel SCSI Interface
Inbound Messages1 Table 2 lists drive-to-host SCSI messages and their definitions.
Table 2 Drive to Host SCSI
Messages
Hex
Message
Command
Complete
CodeDefinition
00hThis 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
Disconnect04hThis message is sent by the drive to indicate
that it is about to disconnect from the bus
and go to Bus Free. During a Data phase, it
is always preceded by a Save Data Pointers
message. If a Message Reject message is
received in response to this message, then
the disconnect is prevented.
Extended
01hSee Extended Messages
on page 8.
Message
Identify80h+An Identify in message is sent to the initiator
during reconnect to indicate which Logical
Unit is reconnecting. The Disconnect
Privilege and LUNTAR flags will both be
clear
Ignore Wide
Residue
23hThis message is sent by the drive to the
initiator to indicate that a byte on a wide bus
is not valid. This will be supported
whenever a wide transfer is active.
Message
Reject
07hThis message is sent to the initiator when the
message received by the drive is
unsupported or inappropriate.
LTO-2 SCSI Interface Guide5
Message
Chapter 1 SCSI Interface
Parallel SCSI Interface
Hex
CodeDefinition
Restore
Pointers
03hThis message causes the initiator to reset its
data transfer pointers to the values they held
when the last Save Data Pointers message
was sent. It will be sent when a parity error
is detected on the bus or when an Initiator
Detected Error message is received in order
to retry the data phase.
Save Data
Pointer
02hThis message instructs the initiator to save
its current data transfer pointer for use with
a subsequent Restore pointers message. This
message will always be sent before a
Disconnect message during data phases.
Outbound Messages1 Table 3 lists host-to-drive SCSI messages and their definitions.
Table 3 Host to Drive SCSI
Messages
Message
Hex
CodeDefinition
Abort06hAn abort condition is generated. See
Message Exception Handling
on page 12.
Bus Device
Reset
Extended
0ChA reset condition is generated. See Message
Exception Handling on page 12.
01hSee Extended Messages
on page 8.
Message
Identify80h+The Identify Out message is sent by the
initiator to identify the Logical Unit to be
accessed and to set Disconnect Privilege. The
LUNTAR flag must be zero.
The Identify Out message must be sent as the
first thing after selection. If it is sent at any
other time, the drive will respond with a
message reject message and go to Bus Free.
LTO-2 SCSI Interface Guide6
Message
Chapter 1 SCSI Interface
Parallel SCSI Interface
Hex
CodeDefinition
Initiator
Detected
Error
Message
Parity
Error
Message
Reject
05hThe initiator has detected an error in the data
being sent in a Message Command, Data or
Status phase. The drive will retry the data
burst or message.
If the message is received immediately after
an Identify message or after the Command
Complete message has been sent, the drive
will go Bus Free.
09hThe initiator has detected a parity error in a
message. The drive will retry the 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 drive will go Bus Free.
07hThis message is sent when the initiator does
not support a message sent by the drive or
considers the message inappropriate. If the
message being rejected is Disconnect,
Synchronous Data Transfer Request or Wide
Data Transfer Request, the operation
continues without those features. For all
other messages except Restore Pointers, 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 drive will go Bus Free.
No
08hThis message has no effect and is ignored.
Operation
LTO-2 SCSI Interface Guide7
Chapter 1 SCSI Interface
Parallel SCSI Interface
Extended Messages1 The following table lists extended SCSI messages and their definitions.
Table 4 Extended SCSI
Messages
Hex CodeMessageDefinition
Synchronous
Data Transfer
Request
01hThis message negotiates an agreement
between the initiator and the drive on
which is the best data period and
offset.
If the message is received after
selection and before command phase,
it will then go to Message In phase and
respond with a valid response to
complete the negotiation.
If the message is received at any other
time, a Message Reject is sent in
response.
Wide Data
Transfer
Request
03hThis message negotiates an agreement
between the initiator and the drive on
which is the best data width - 8-bit
narrow or 16-bit wide.
If the message is received after
selection and before Command phase,
it will then go to Message In phase and
respond with a valid response to
complete the negotiation.
If the message is received at any other
time, a Message Reject is sent in
response.
LTO-2 SCSI Interface Guide8
Hex CodeMessageDefinition
Chapter 1 SCSI Interface
Parallel SCSI Interface
Parallel
Protocol
Request
04hThis message negotiates an agreement
between the initiator and the drive on
which is the best data transfer period,
offset, width and type. This is the
message to request DT (Ultra160)
synchronous transfers.
If the message is received after
selection and before Command phase,
it will then go to Message In phase and
respond with a valid response to
complete the negotiation.
If the message is received at any other
time, a Message Reject is sent in
response.
Parity Errors1 Table 5 describes the operation for each of the possible cases of parity
error.
Table 5 Parity Error Cases
State or PhaseDescription
Bus Free StateThe drive does not detect nor react to parity errors on the SCSI bus while the
drive is in a bus free state.
Arbitration PhaseThe drive does not detect nor react to parity errors on the SCSI bus while
arbitration is being performed.
Selection PhaseThe drive does not detect nor react to parity errors on the SCSI bus while the
drive is being selected.
Selection, Message Out
Phase (Identify
If the drive detects a parity error while the host is sending an Identify
message, the drive retries forever.
Message)
LTO-2 SCSI Interface Guide9
State or PhaseDescription
Chapter 1 SCSI Interface
Parallel SCSI Interface
Reselection, Message In
Phase (Identify
Message)
If the drive is attempting to reconnect to the host and the host asserts ATN
because it detected an error, the drive:
• Switches the host to the Message Out Phase.
• Waits for the host to send a 09 (Parity Error Message).
The drive then performs the retry option by:
• Switching the host to the Message In Phase.
• Resending the Identify Message.
Command PhaseIf the drive detects a parity error while the host is transferring a CDB, the
drive:
• Switches the host to Message In phase
• Sends Restore Data Pointers (03h) message
• Switches the host to Command phase to retry the command.
If a parity error occurs on the retry the host:
• Terminates the transfer.
• Switches the host to the Status Phase and sends a Check Condition.
• Switches the host to the Message In Phase and sends a Command
Complete.
• Sets the Sense Key = B and ASC/ASCQ = 47-00 (SCSI-2 only).
Data In PhaseIf the host detects a parity error while data is being transferred from the
drive and asserts ATN, the drive:
• Terminates the transfer of data.
• Switches the host to the Message Out Phase.
• Waits for the host to send a 05 (Host Detected Error).
• Switches the host to the Status Phase and sends a Check Condition.
• Switches the host to the Message In Phase and sends a Command
Complete.
• Sets the Sense Key = B and ASC/ASCQ = 48-00 (SCSI-2 only).
LTO-2 SCSI Interface Guide10
Chapter 1 SCSI Interface
Parallel SCSI Interface
State or PhaseDescription
Data Out PhaseIf the drive detects a parity error while the host is transferring data, the
drive:
• Terminates the transfer of data.
• Switches the host to the Status Phase and sends a Check Condition.
• Switches the host to the Message In Phase and sends Command Complete.
• Sets the Sense Key = B and ASC/ASCQ = 47-00 (SCSI-2 only).
Status PhaseIf the host is in the Status phase and detects an error in the status byte and
asserts ATN, the drive:
• Switches the host to the Message Out Phase and waits for the host to send
05 (Initiator Detected Error).
• Switches the host to the Status Phase and sends a Check Condition.
• Target sends restore pointers and resends Status.
Message In PhaseIf the host is in the Message In Phase and detects an error on a message bytes
an asserts ATN, the drive:
• Switches the host to the Message Out Phase.
• Waits for the host to send 09 (Parity Error Message).
• Switches the host to the Message In Phase and resends the message.
Message Out PhaseIf the host is in the Message Out Phase and sends a message bytes and the
drive detects a parity error, the drive retries forever.
An Initiator that accommodates disconnect/reconnect can indicate this
capability to the tape drive during the Selection phase by asserting both
its own Initiator SCSI ID bit as well as the tape drive's SCSI ID bit (allows
the tape drive to know with which Initiator to reconnect). The Initiator
must also assert ATN before exiting the Selection phase (prior to
releasing SEL) and send an Identify message out of C0h to the tape drive.
This sequence causes the drive to enter the Message-Out phase when the
Selection phase completes.
The first message sent by the host after the Selection phase is an Identify
message. Under normal conditions, the first message sent by the tape
drive after a Reselection phase is also Identify. Under certain exceptional
conditions, the host may send the Abort message or the Bus Device Reset
message instead of Identify as the first message.
LTO-2 SCSI Interface Guide11
Chapter 1 SCSI Interface
Parallel SCSI Interface
Message Exception
Handling
1
Message exceptions are handled as described in table 6 and table 7. The
numbers in the tables identify the actions that the drive takes when an
exception under the identified conditions occurs. The actions and action
codes are defined in table 8
Table 6 IN Phase Durin g Wh i c h
ATN is Raised #1
Message Reject message. The drive goes Bus
Free without setting up sense data.
retries unless retry count exhausted.
data.
observes the disconnect-privilege bit in the
Identify message and then continues.
13If the drive is continuing an operation after
sending a Message in Reject, then the drive
issues Check Condition status and sets up
sense data indicating an Aborted command
(Action 5); if not, then the drive goes Bus Free
without setting up sense data (Action 2).
Standards Conformance1
The Small Computer System Interface is described in standards including
several versions and a number of individual documents. The original
Small Computer System Interface Standard, X3.131-1986, is referred to
herein as SCSI-1. SCSI-1 was revised resulting in the Small Computer
System Interface - 2 (X3.131-1994), referred to herein as SCSI-2. The set of
SCSI-3 standards are collectively referred to as SCSI-3.
SCSI-3 Medium Changer Commands (SMC) NCITS.314:1998
SCSI Medium Changer Commands - 2 (SMC-2) INCITS 382-2004
SCSI Medium Changer Commands - 3 (SMC-3) in development
SCSI-3 Stream Commands (SSC) NCITS 335:2000
SCSI Stream Commands - 2 (SSC-2) INCITS 380-2003
SCSI Stream Commands - 3 (SSC-3) in development
Note:The term SCSI is used wherever it is not necessary to
distinguish between the versions of SCSI.
LTO-2 SCSI Interface Guide16
Chapter 1 SCSI Interface
LTO Conformance
LTO Conformance1
Quantum LTO drives conform to the requirements of the Generation 1
SCSI Common Command Set Advisory Document (AU1-SCSI) for
Ultrium format devices.
General Behaviors1
This sections describes the general behaviors of the LTO tape drive.
Reset Condition 1 When a reset is issued to the tape drive, the drive clears all uncompleted
commands, releases all SCSI device reservations, and sets the tape drive
to default modes. The Parallel SCSI drive returns to the Bus Free phase.
Unit Attention Condition 1 The Unit Attention condition in the tape drive typically results from the
following conditions:
• A Reset was previusly issued to the drive.
• The drive has just been powered on.
• A cartridge has been inserted.
• A log exception condition occurred.
• The mode pages have been changed.
• The cartridge has been loaded or unloaded to the Hold position, and
the Medium Auxiliary Memory (MAM) is accessible.
The Unit Attention Condition persists for each Initiator until that Initiator
issues a command other than
with a Check Condition Status. If the next command from that Initiator
following the Check Condition Status is
attention sense key is returned.
If the
INQUIRY command is received from an Initiator with a pending
Unit Attention Condition before the tape drive reports Check Condition
LTO-2 SCSI Interface Guide17
INQUIRY for which the tape drive returns
REQUEST SENSE, then the unit
Chapter 1 SCSI Interface
General Behaviors
Status, the tape drive performs the INQUIRY Command and does not clear
the Unit Attention Condition.
If the
REQUEST SENSE command is received from an Initiator with a
pending Unit Attention Condition before the tape drive reports Check
Condition Status, the tape drive reports unit attention sense key and
clears the Unit Attention Condition for that Initiator.
Contingent Allegiance
Condition
The Contingent Allegiance condition shall exist following the return of
Check Condition and may exist following an unexpected disconnect. The
1
contingent allegiance condition shall be preserved for the I T x nexus
until it is cleared. The contingent allegiance condition shall be cleared
upon the generation of a hard reset condition or by an Abort message, a
Bus Device Reset message, or any subsequent command for the I T x
nexus. While the contingent allegiance condition exists the drive shall
preserve the sense data for the initiator.
While the contingent allegiance condition exists, the drive shall respond
to any other requests for access to the logical unit from another initiator
with a Busy status. Execution of queued commands shall be suspended
until the Contingent Allegiance condition is cleared.
Buffered Mode 1 Buffered Mode allows the most efficient operation of a tape drive. The
drive defaults to Buffered mode. In this mode, the drive signals
Command Complete when all requested data for a Write command has
been transferred from the host to the tape drive buffer. This mode
provides data to maintain operation while the host readies a new Write
Command.
If an error occurs in writing data to the tape after the tape drive signals
Command Complete, an error status is sent on the next Command issued.
Immediate Commands 1 For Initiators that do not support the disconnect feature, the Immediate
bit in certain commands provides a means of returning status while the
drive is busy completing a function such as repositioning the tape. For
the Parallel SCSI interface, this allows the bus to be released. If a
command is sent by the Initiator after a previous immediate command
was accepted, the drive continues the immediate command it is currently
performing and may disconnect, execute, or reject the new command
depending on the new command.
LTO-2 SCSI Interface Guide18
Chapter 1 SCSI Interface
General Behaviors
An immediate bit of zero means that the status is returned to the Initiator
when the operation is completed. (For example, the status is returned
when the tape has been repositioned.) An Immediate bit of one means
that the status is returned to the Initiator as soon as the function is started.
Residual Length Function 1 When performing a WRITE command, the drive returns a Good Status
and Command Completion Message when the last byte requested by the
command is placed in the Data Buffer, rather than when it is written onto
tape. If an error occurs while data is being written onto tape, the drive
calculates the Residual Length and places this value in the information
bytes of the Sense Data Block. Also, the Residual Length functions for
other commands, such as Read.
Residual Length is calculated by: RL = TL - AL
Where:
AL (Actual Length) =Blocks transferred from the host to the tape
drive.
TL (Transfer Length) = The Transfer Length from bytes 2-4 of the Write
command (Request Transfer Length).
RL (Residual Length) = The amount of blocks or bytes not written to
tape.
Early Warning Function1 Early Warning on the LTO drive is a logical warning given when 64
megabytes of storage space remain on the tape. The position is calculated
by the drive. When this physical position is reached on a tape, the
following occurs.
1 The command completes with a Check Condition and a 40h Sense
data meaning EOM and no Sense Key.
2 Subsequent WRITE commands write data and complete with check
condition with EOM Status and No Sense Key until the physical tape
end is encountered.
Error Reporting1 Soft errors are generally tape-quality related and occur more frequently
during write operations than during read operations. Soft errors indicate
repeated attempts by the drive to read or write data on the tape. Some
soft errors are normal, but an increase in the usual count can indicate
LTO-2 SCSI Interface Guide19
Chapter 1 SCSI Interface
General Behaviors
deteriorating tape quality. If the soft error count remains higher than
normal, use a cleaning cartridge to clean the read/write heads. If this
procedure does not clear the problem, change to a new tape cartridge.
If a hard error (unrecoverable error) occurs during operation, the drive
terminates operation immediately and returns a Check Condition. The
Initiator should cease any further read or write functions and issue a
REQUEST SENSE command to determine the type of error.
When the drive detects a write error, it attempts to rewrite the data up to
128 times.
After the 128th attempt, the error is considered unrecoverable and the
operation terminates. When a hard error is encountered, replace the tape
with a new cartridge and repeat the function or clean the heads with a
cleaning cartridge.
Variable and Fixed Mode
Recording
The LTO drive can write either fixed or variable block sizes. The
recording mode is determined by the Fixed bit in the SCSI
1
READ commands.
If the Fixed bit is set, the
MODE SELECT command sets the size of the next
WRITE and
block or multiple blocks to be written with the next Write command.
When a Write command is issued with the Fixed bit set, the current block
size is implemented. The transfer length specifies the number of blocks to
be written with this size. If a Write command is issued with the Fixed bit
set and the current block size set to 0, the LTO drive returns a Check
Condition with Illegal Request Sense Key. When writing with the Fixed
bit set, each Write command specifies the number of contiguous blocks to
be written of a fixed size, resulting in fixed-mode blocks. If the Fixed bit is
reset, then only one block can be written on the tape per SCSI Write
command CDB. In that case, the Write command CDB transfer length
specifies the size of the block to be written in bytes. With the Fixed bit
reset, the current block size specified with the last
MODE SELECT
command is ignored.
Setting the block size to 0 in the Mode Select page descriptor is not
required. Therefore, with the Fixed bit reset, each SCSI
WRITE command
may specify a different byte count, resulting in variable-mode blocks.
The host may switch between fixed and variable mode recording. By
issuing the
MODE SELECT command to specify different block sizes,
blocks can be written to the tape with different block sizes in the fixed
mode. Also, the host may change the block size after BOM, allowing onthe-fly block-size changes.
LTO-2 SCSI Interface Guide20
Chapter 1 SCSI Interface
General Behaviors
The READ command fixed bit also specifies fixed or variable mode. When
reading in variable mode, the host must know the size of the block to be
read from the tape in advance in order to avoid causing the LTO drive to
return a Check Condition with Incorrect Length indicated in the Sense
data (ILI). Also, the data transfer may be truncated (cut off) when the
recorded block does not match the transfer length in variable mode or the
current block size in fixed mode.
The
READ command includes a SILI bit to Suppress ILI Check conditions.
When the SILI bit is set, the host usually specifies the maximum block
size before reading so that the data blocks are not truncated, and no
Check Conditions are generated.
The SCSI
READ BLOCK LIMITS command returns the minimum and
maximum block sizes that the LTO drive can support. The Block Limits
data is not modified to reflect the current mode of writing-fixed or
variable. The Block Limits returned data is not modified to reflect the
current block size for the next fixed-mode Write. The
MODE SENSE
command is used for that purpose.
Library Features1 This section describes featues available in libraries that support LTO tape
drives.
Auto Unload Mode
The LTO drive has an Auto Unload Mode that may be accessed via a
Mode command to Mode Page 21h. The purpose of the Auto Unload
mode is to allow the drive to be configured to work in Library systems or
as a standalone drive. The Auto Unload mode allows the drive to control
how the tape is unloaded in “automatic” type situations. There are four
possible Auto Unload modes:
• Do Nothing - Stay threaded at BOT (mode 0).
• Unthread Only (mode 1).
1
• Unthread and unload (mode 2).
• Unthread and unload non data cartridges, data cartridges go to BOT
(mode 3). Basically data cartridges behave as for mode 0 and non data
cartridges behave according to mode 2.
Here are the possible “automatic” situations where the ejection process
will be controlled using the Auto Unload mode. As shown in the list
LTO-2 SCSI Interface Guide21
Chapter 1 SCSI Interface
General Behaviors
below, this covers not only power on situations, but also how cleaning
tapes, incompatible tapes and firmware tapes are handled.
• Powering on or power cycling while the tape is inside the drive.
• Cleaning tape has finished the cleaning cycle.
• Unsupported data tape has been loaded.
• Unsupported cleaning tape has been loaded.
• Microcode download from a firmware tape.
• Microcode download via the SCSI Write Buffer command while a
tape is loaded.
Host Unload Override
The LTO drive has a Host Unload Override mode that may be accessed
via a Mode command to Mode Page 21h. The purpose of the Host Unload
Override mode is to allow the Library system to set the drive into a mode
where the drive will not eject the cartridge should the host issue a SCSI
UNLOAD command. A SCSI UNLOAD command from the host will cause
the tape to be unthreaded but the cartridge will remain in the drive. The
Library
UNLOAD command will cause the cartridge to be ejected.
ID Modification
Tape libraries require the ability to change the SCSI ID of installed tape
drives without opening the library and changing address jumpers. To
change the SCSI ID of the LTO drive, issue a
MODE SELECT command to
Mode Page 22h to change the Next Selection ID field to the desired ID.
Then reset or power cycle the drive, and it will begin responding to the
new ID. This new ID will persist through additional resets and power
cycles.
If the address jumpers are changed and the drive's power is cycled, the
drive will respond to the new address on the jumpers. The value in the
Next Selection ID field will be that on the jumpers, even though the field
may have been changed immediately before the power cycle.
1
1
LTO-2 SCSI Interface Guide22
Chapter 1 SCSI Interface
General Behaviors
LUN 1 Command Forwarding1
A tape library or autoloader containing a LTO can receive its SCSI
commands via the LTO drive. This function is called "Command
Forwarding" and is enabled via the "CmdFwd" field in the Interface
Control mode page (22h). When enabled, commands received via the
SCSI bus and addressed to LUN 1 are immediately transmitted to the
library via the RS-422 interface. LTO acts as a bridge, passing commands,
data, and status between the initiator and the library, as specified in the
Library Interface Encapsulated SCSI Protocol Manual.
In SCSI Medium Changer terminology, the library or autoloader appears
as an "independent medium changer," because the tape drive and
medium changer are at different LUNs. Medium changer commands
addressed to LUN 0 are rejected with Check Condition and sense data of
Illegal Request / Invalid Command Operation Code (05/20/00).
In the Parallel SCSI drive, because of the relatively slow communication
on the RS-422 interface, LTO will disconnect from the SCSI bus after
receiving a command, after receiving data-out, and after sending status.
Data-in and status are sent to the initiator without disconnecting between
them.
If the link fails between the LTO and the library, the failed command will
receive a status of Check Condition and sense data of Aborted Command
/ Logical Unit Communication Failure (0B/08/00).
If a SCSI bus reset or a Target Reset task management request is received,
then either a Target Reset or Logical Unit Reset task management request
is transmitted to the library. The library must be capable of processing
either request.
When command forwarding is disabled in mode page 22h, commands
addressed to LUN 1 will receive a status of Check Condition and sense
data of Illegal Request / Logical Unit Not Supported (05/25/00).
After Command Forwarding is enabled or disabled, the drive will
respond to the next command with a Check Condition and sense data of
Unit Attention / Reported LUNs Data Has Changed (06/3F/0E).
LTO-2 SCSI Interface Guide23
Chapter 2
2SCSI Commands
This chapter describes the supported SCSI commands implemented in
the LTO-2 tape drive. This chapter does not fully reiterate the entire ANSI
SCSI standards; for information of this nature, refer to the SCSI standard
itself.
The Web sites
information.
www.scsita.org and www.t10.org are also helpful sources of
Command Set2
The following table shows the SCSI commands for sequential access
devices implemented by the drive.
Table 9 SCSI Command Set
GroupCodeCommandPage
000h
001h
003h
005h
TEST UNIT READY
REWIND
REQUEST SENSE
READ BLOCK LIMITS
265
247
215
177
LTO-2 SCSI Interface Guide24
Chapter 2 SCSI Commands
Command Set
GroupCodeCommandPage
006h
008h
00Ah
00Bh
010h
011h
012h
013h
015h
016h
017h
019h
01Ah
01Bh
PARK UNPARK
READ
WRITE
SET CAPACITY
WRITE FILEMARKS
SPACE
INQUIRY
VERIFY
MODE SELECT(6)
RESERVE UNIT
RELEASE UNIT
ERASE
MODE SENSE(6)
LOAD UNLOAD
162
167
272
256
281
260
36
268
119
243
201
32
151
62
01Ch
01Dh
01Eh
12Bh
134h
13Bh
13Ch
LTO-2 SCSI Interface Guide25
RECEIVE
DIAGNOSTIC
RESULTS
SEND DIAGNOSTIC
PREVENT ALLOW
MEDIUM REMOVAL
LOCATE
READ POSITION
WRITE BUFFER
READ BUFFER
194
250
164
69
187
276
180
Chapter 2 SCSI Commands
Command Descriptor Blocks
GroupCodeCommandPage
244h
24Ch
24Dh
255h
256h
257h
25Ah
3A0h
REPORT DENSITY
SUPPORT
LOG SELECT
LOG SENSE
MODE SELECT(10)
RESERVE UNIT
RELEASE UNIT
MODE SENSE(10)
REPORT LUNS211
205
73
81
119
243
201
151
Command Descriptor Blocks2
A host makes a request of the tape drive by sending a Command
Descriptor Block (CDB). Some commands also require a parameter list. If
the CDB or the parameter list contains an invalid parameter, the drive
terminates the command, returning a Sense Key of Illegal Request,
without altering the medium.
This chapter covers the following topics:
• Command Descriptor Block Formats
• Operation Code Format
• Control Byte Format
Command Descriptor Block
Formats
LTO-2 SCSI Interface Guide26
SCSI 6-byte Command Descriptor Blocks are arranged in the format
shown in table 10
2
. The position and length of each field is indicated by
the Byte and Bits columns in the Field Descriptions table (see table 12
).
Chapter 2 SCSI Commands
Command Descriptor Blocks
Table 10 SCSI 6-Byte
Command Descriptor Block
Data Format
Table 11 SCSI 10-Byte
Command Descriptor Block
— Data Format
SCSI 10-byte Command Descriptor Blocks are arranged in the format
shown in table 11
Byte and Bits columns in the Field Descriptions table (see table 12
. The position and length of each field is indicated by the
T able 12 Command Descriptor
Block — Field Descriptions
FieldByteBitsDescription
Operation
Code
0The Operation Code is made up
of the Group Code and the
Command Code (see table 13
Ignored
Logical Unit
15-7The LUN field is vestigial from
the SCSI-1 standard and is
ignored.
Command
Dependent
1
2-4 or
0-4See the specific command.
2-8
ReservedAll reserved bits must be 0.
ControlLastThe Control byte is made up of
the Vendor Unique, Flag and
Link bits. See Control Byte
Format on page 29.
Fields that are one byte or longer have no entry in the Bits column.
).
Operation Code Format2 The Operation Code is composed of the Group Code and Command
Table 13 Operation Code
Format — Data Format
Code (see table 13
Bit
and table 14).
76543210
Byte
0Group CodeCommand Code
Table 14 Operation Code
Format—Field Descriptions
FieldByteBitsDescription
Group Code05-7The SCSI command group.
Command Code00-4The SCSI command code.
LTO-2 SCSI Interface Guide28
Control Byte Format2 The Control Byte is the last byte in any CDB.
Chapter 2 SCSI Commands
Command Descriptor Blocks
Table 15 Control Byte Format
Table 16 Control Byte Format
—Field Descriptions
Bit
76543210
Byte
Last
Vendor
Unique
Reserved
NACA
FlagLink
FieldByteBitsDescription
Vendor
Last6-7Not used, always 0.
Unique
ReservedLast3-5All reserved bits must be 0.
NACALast2Not supported; reserved.
FlagLast1This bit is not supported by the LTO
drive.
LinkLast0This bit is not supported by the LTO
drive.
LTO-2 SCSI Interface Guide29
Chapter 2 SCSI Commands
Command Status
Command Status2
When the tape drive competes a command it responds with a status byte.
The format of the status byte is shown below.
Table 17 Status Byte Format
Table 18 Status Byte Field
Descriptions
Bit
Byte
0
FieldByteBitsDescription
Reserved06-7Always 0
Status
Code
76543210
ReservedStatus Code
00-5The command status, as defined in table
19.
LTO-2 SCSI Interface Guide30
Chapter 2 SCSI Commands
Command Status
Table 19 Status Codes
DescriptionValueWhen returned
Good Status00hThe command completed
without problems.
Check Condition02hA problem occurred during
command execution. The
sense data should be
examined to determine the
nature of the problem.
Busy08hThe drive is unable to accept
the command at this time. This
is only returned during the
power-on sequence or if there
are commands from too many
initiator ports outstanding.
Reservation Conflict18hThe drive is reserved for an
initiator port other than the
one sending the command.
LTO-2 SCSI Interface Guide31
Chapter 2 SCSI Commands
ERASE Command
ERASE Command 2
The ERASE command marks the tape, from the current position to the
end of tape, as erased.
Table 20 ERASE Command
Descriptor Block — Data
Format
Table 21 ERASE Command
Descriptor Block — Field
Descriptions
Bit
76543210
Byte
0Operation Code (19h)
1Ignored LUNReserved
Immed
Long
2Reserved
3Reserved
4Reserved
5Control
FieldBytesBitsDescription
Operation
Code
Ignored
Logical Unit
0The Operation Code for
ERASE is
19h.
15-7The LUN field is vestigial from the
SCSI-1 standard and is ignored.
Immed110 = Status is not returned until the
tape is erased.
1 = Status is returned as soon as the
operation is initiated.
LTO-2 SCSI Interface Guide32
Chapter 2 SCSI Commands
ERASE Command
FieldBytesBitsDescription
Long100 = Short Erase is performed and
EOD is recorded at the current tape
position.
1 = Long data-security Erase is
performed, and EOD is recorded
from the current tape position to
the end of the tape.
ReservedAll reserved bits must be 0.
ControlSee Control Byte Format on
page 29.
If the Immediate (Immed) flag is set to 1, then the drive validates the
command and waits for any previous command from any host to
complete including any immediate commands currently being processed
and for any buffered data to be flushed to tape. It will then report a
deferred error for any preceding command or buffered data if
appropriate. If there is no deferred error, the drive reports good status
and initiates the command. If the Immediate (Immed) flag is set to 0,
status is not returned until after the command has completed.
If the Long bit is set, EOD is written at the current position. Data Set
Separators are then written from EOD to the end of the medium to
overwrite any data currently on the tape. If the Long bit is clear, then an
EOD is written at the current position marking it as end of data.
Completion Status2 Table 22 shows the completion codes and messages for the ERASE
command.
LTO-2 SCSI Interface Guide33
Chapter 2 SCSI Commands
ERASE Command
Table 22 ERASE Command
Completion Status
CodeMessageDescription
00hGood Status• The drive remains in any previously
set modes.
• The drive is ready to perform any
appropriate command.
Note:If Immed is 1, then Good Status
only indicates that the command
is valid.
02hCheck
Condition
Use the
REQUEST SENSE command to
retrieve status information. Possible
Sense Keys are:
CodeMessageDescription
02hNot Ready No cartridge is in
the drive.
03hMedia ErrorUnrecoverable
data error
encountered.
04hHardware
Error
Parity error on
the SCSI bus or
drive hardware
failure.
05hIllegal
Request
Both the
Immediate bit
and the Link bits
are 1, or the
Command
Descriptor Block
is invalid.
LTO-2 SCSI Interface Guide34
CodeMessageDescription
CodeMessageDescription
Chapter 2 SCSI Commands
ERASE Command
06hUnit
Attention
07hWrite
Protect
The cartridge
was changed, or
the drive was
reset prior to this
command.
The tape is writeprotected.
LTO-2 SCSI Interface Guide35
Chapter 2 SCSI Commands
INQUIRY Command
INQUIRY Command 2
The INQUIRY command requests that the drive return information about
itself. If an
pending Unit Attention Condition (before the drive reports Check
Condition status), the drive performs the
not clear the Unit Attention Condition.
INQUIRY command is received from an Initiator with a
INQUIRY command and does
Table 23 INQUIRY Command
Descriptor Block — Data
Format
Table 24 INQUIRY Command
Descriptor Block — Field
Descriptions
FieldBytesBitsDescription
Operation
Code
Ignored
Logical
Unit
Bit
76543210
Byte
0Operation Code (12h)
1IgnoredReserved
CmdDt
EVPD
2Page or Operation Code
3Reserved
4Allocation Length
5Control
0The Operation Code for
INQUIRY is 12h.
15-7The LUN field is vestigial from the SCSI-1 standard and
is ignored.
CmdDt11Command Support Data (CmdDt) bit
0 = Requests Inquiry data
1 = Requests command support data specified by
operation code.
LTO-2 SCSI Interface Guide36
Chapter 2 SCSI Commands
INQUIRY Command
FieldBytesBitsDescription
EVPD10Enable Vital Product Data (EVPD) bit
0 = Requests Standard Inquiry Data.
1 = Requests data page specified by the Page Code.
Page Code200h = Requests Supported Vital Product Data Page
80h = Requests Unit Serial Number Page
83h = Requests Device Identification Page
C0h = Requests SCSI Firmware Revision Page
C1h = Requests Servo Firmware Revision Page
C2h = Requests Head Assembly Serial Number Page
C3h = Requests Reel Motor 1 Serial Number Page
C4h = Requests Reel Motor 2 Serial Number Page
C5h = Requests Board Serial Number Page
C6h = Requests Base Mechanical Serial Number Page
DFh = Requests Drive Status Page
Operation
Code
Allocation
Length
2Command Descriptor Block operation code when
CmdDt is set to one.
4Specifies the amount of data to be returned, in bytes. A
value of 0 is a valid entry and returns no data.
The drive transfers the number of bytes specified up to a
maximum of 38h for Standard Inquiry.
ReservedAll reserved bits must be 0.
Control5See Control Byte Format on page 29
.
If the Enable Vital Product Data (EVPD) and Command Support Data
(CmdDt) bits are clear and the Page Code is zero, Standard Inquiry Data
is returned (see Standard Inquiry Data Page
on page 38).
If the Enable Vital Product Data (EVPD) flag is set and the Page Code is
zero, the Supported Vital Product Data Pages page is returned (see
Supported Vital Product Data (VPD) Page (00h)
LTO-2 SCSI Interface Guide37
on page 42).
Chapter 2 SCSI Commands
INQUIRY Command
If both EVPD and CmdDt are set then the drive will return CHECK
CONDITION status with a sense key of ILLEGAL REQUEST.
If CmdDt is set and EVPD is clear then the drive will return the
Command Support Data for the specified operation code (see Command
Support Data on page 59).
If the EVPD flag is set and the Page Code is not zero and there is a vendor
defined Inquiry Data Page corresponding to that page code, then that
page is returned. Otherwise, Check Condition status is returned. The
Sense Key is set to Invalid Request (5) and the additional Sense to Invalid
Field in CDB (2400).
Standard Inquiry Data
Page
The INQUIRY command returns Standard Inquiry Data in the format
shown in table 25
2
.
The Standard Inquiry Data is based on the SCSI 3 standard for Standard
Inquiry Data. This allows for setting certain bits in byte 6 to indicate
features that were non-standard in SCSI 2. The only supported SCSI 3
field is Multi Port (MultiP).
The Multi-Port (MultiP) flag is set if the device has multiple interface
ports. Parallel SCSI devices do not have multiple interface ports and have
this flag clear.
The 16 Bit Address (Addr16) and Wide Bus 16 (WBus16) flags are set
depending on whether the hardware supports these bus features. These
flags are only valid for Parallel SCSI and are clear for all other interfaces.
LTO-2 SCSI Interface Guide38
Table 25 Standard Inquiry
Data Page — Data Format
Chapter 2 SCSI Commands
INQUIRY Command
Byte
16-31
32-35
36-55
0
1
2
3
4
5
6
7
8-15
Bits
7 6 5 4 3 2 1 0
Peripheral QualifierPeripheral Device Type
RMBReserved
Version
AERCObsoleteNACAHiSupResponse Data Format
Additional Length
Reserved
BQueEncServVSMultiPMChgrObsoleteObsoleteAddr16
RelAdrObsoleteWBus16SyncLinkedTransDisCmdQVS
Vendor Identification
Product Identification
Product Revision Level
Vendor Specific
56
57
58-73
LTO-2 SCSI Interface Guide39
ReservedClockingQASIUS
Reserved
Version Descriptors
Table 26 Standard Inquiry
Data Page — Field
Descriptions
FieldBytesBitsDescription
Chapter 2 SCSI Commands
INQUIRY Command
Peripheral
05-7Always 000b.
Qualifier
Peripheral
Device Type
00-4Normally 01h to indicate a sequential access device.
7Fh indicates that a logical unit is not present. This value is returned
when an invalid LUN was in the last Identify message.
RMB17Always 1, indicating Removable Media.
Version2Always 3
AERC37Always 0, indicating Asynchronous Event Reporting Capability is
not supported.
NACA350 = Normal ACA (NACA) is not supported
HiSup34Always 0, indicating Hierarchical Support is not supported.
Response
Data Format
Additional
Length
30-3Always 2, indicating support of the standard that the version
indicates.
4Always 45h, indicating that 69 bytes of additional
INQUIRY command
parameters follow, beginning in Byte 5. This value does not change if
the Allocation Length in the CDB is too small or too large to
accommodate the entire response.
BQue670 = Basic Queuing is not supported
EncServ66Always 0, indicating Enclosure Services is not supported.
VS65Always 0, indicating this feature is not supported.
MuiltiP640 = Multiple Interface Ports not available
MChgr63Always 0, indicating Medium Changer is not supported.
Addr16601 = 16 Bit Address supported
RelAdr77Always 0 because Relative Addressing is not supported.
WBus16751 = Wide Bus16 supported
LTO-2 SCSI Interface Guide40
Chapter 2 SCSI Commands
INQUIRY Command
FieldBytesBitsDescription
Sync741 = Synchronous Transfer is supported
Linked73Always 0, indicating Linked Command is not supported.
CmdQue710 = Command queuing is not supported
1 = Command queuing is supported
VS70Always 0, indicating this feature is not supported.
Vendor
8-158 bytes of ASCII data: “CERTANCE”.
Identification
Product
16-3116 bytes of ASCII data: “ULTRIUM 2“ followed by 7 spaces.
Identification
Product
32-354 bytes of ASCII data indicating the SCSI firmware version.
Revision
Level
Vendor
36-55This field may contain additional vendor specific information.
Specific
Clocking562-3Always 3, indicating that single transition and double transition are
supported.
QAS561Always 0, indicating that quick arbitration and selection are not
supported.
IUS560Always 0, indicating that information unit transfers are not
supported.
Version
Descriptors
58-738 sets of 2-byte descriptors indicating conformance to up to eight
standards. Reference SPC-3 for a listing of descriptor values.
ObsoleteAlways 0
ReservedAlways 0
LTO-2 SCSI Interface Guide41
Chapter 2 SCSI Commands
INQUIRY Command
Supported Vital Product
Data (VPD) Page (00h)
Table 27 Supported Vital
Product Data Inquiry Page —
Data Format
The Supported Vital Product Data Page lists the following eleven VPD
pages including itself:
• Drive Component Serial Number Page (C2, C3, C4, C5, C6h)
• Drive Status Page (DFh)
Bits
Byte
0
1
2
3
7 6 5 4 3 2 1 0
Peripheral QualifierPeripheral Device Type
Page Code
Reserved
Page Length
4
5
6
7
8
9
10
11
12
LTO-2 SCSI Interface Guide42
Supported Vital Product Data Page Code
Unit Serial Number Page Code
Device Identification Page Code
SCSI Firmware Revision Page Code
Servo Firmware Revision Page Code
Head Assembly Serial Number Page Code
Reel Motor 1 Serial Number Page Code
Reel Motor 2 Serial Number Page Code
Board Serial Number Page Code
Chapter 2 SCSI Commands
INQUIRY Command
Table 28 Supported Vital
Product Data Inquiry Page —
Field Descriptions
Bits
Byte
13
14
7 6 5 4 3 2 1 0
Base Mechanical Serial Number Page Code
Drive Status Page Code
FieldBytesBitsDescription
Peripheral
05-7Always 000b.
Qualifier
Peripheral
Device Type
00-4Normally 01h to indicate a
sequential access device.
7Fh indicates that a logical unit is
not present. This value is returned
when an invalid LUN was in the
last Identify message, or the LUN
field of the Identify CDB.
Page Code1Always 0, indicating the
Supported Vital Product Data
Inquiry Page
Reserved2Always 0
Page Length3Always 0Bh to indicate 11 listed
pages.
Supported Vital
Product Data
Page Code
Unit Serial
Number Page
4Always 00h, the page code of the
Supported Vital Product Data
Inquiry Page
5Always 80h, the page code of the
Unit Serial Number Page
Code
Device
Identification
6Always 83h, the page code of the
Device Identification Page
Page Code
LTO-2 SCSI Interface Guide43
Chapter 2 SCSI Commands
FieldBytesBitsDescription
INQUIRY Command
SCSI Firmware
Revision Page
Code
Servo Firmware
Revision Page
Code
Head Assembly
Serial Number
Page
Reel Motor 1
Serial Number
Page
Reel Motor 2
Serial Number
Page
Board Serial
Number Page
Base Mechanical
Serial Number
Page
7Always C0h, the page code of the
SCSI Firmware Revision Page
8Always C1h, the page code of the
Servo Firmware Revision Page
9Always C2h, the page code of the
Head Assembly Serial Number
Page.
10Always C3h, the page code of the
Reel Motor 1 Serial Number Page.
11Always C4h, the page code of the
Reel Motor 2 Serial Number Page.
12Always C5h, the page code of the
Board Serial Number Page.
13Always C6h, the page code of the
Base Mechanical Serial Number
Page.
Unit Serial Number Page
(80h)
Drive Status
Page
The Unit Serial Number Page contains a single value, which is a 12-byte
ASCII string. The string, with the Vendor Identification and Product
2
14Always DFh, the page code of the
current drive and cartridge state.
Identification fields in the Standard Inquiry Data, uniquely identifies the
drive.
LTO-2 SCSI Interface Guide44
Chapter 2 SCSI Commands
INQUIRY Command
Table 29 Unit Serial Number
Page (80h) — Data Format
Table 30 Unit Serial
Number Page (80h) —
Field Descriptions
Bit
76543210
Byte
0Peripheral QualifierPeripheral Device Type
1Page Code
2Reserved
3Page Length
4—15Drive Serial Number
FieldBytesBitsDescription
Peripheral
05-7Always 000b.
Qualifier
Peripheral
Device
Type
00-4Normally 01h to indicate a sequential
access device.
7Fh in byte 0 indicates that a logical unit
is not present. This value is returned
when an invalid LUN is specified.
Page Code1Always 80h, indicating the Unit Serial
Number Page
Reserved2Always 0
Page
Length
Drive
Serial
3Always 0Ch to indicate 12 additional
bytes of data.
4-1512 bytes of ASCII data giving the unit
serial number.
Number
Device Identification Page
(83h)
LTO-2 SCSI Interface Guide45
The Device Identification Page contains one or more device identification
descriptors that uniquely identify the particular device.
2
Chapter 2 SCSI Commands
INQUIRY Command
Table 31 Device Identi fication
Page (83h) — Data Format
Table 32 Device
Identification Page (83h) —
Field Descriptions
Bits
Byte
0
1
2
3
4-...
...-...
...-...
7 6 5 4 3 2 1 0
Peripheral QualifierPeripheral Device Type
Page Code
Reserved
Page Length
Identification Descriptor
...
Identification Descriptor
FieldBytesBitsDescription
Peripheral
05-7Always 000b.
Qualifier
Peripheral
Device Type
00-4Normally 01h to indicate a sequential
access device.
7Fh indicates that a logical unit is not
present. This value is returned when
an invalid LUN is specified.
Page Code1Always 83h, indicating the Device
Identification Page
Reserved2Always 0
Page Length3n-3, indicating the total length of all
Identification Descriptors following.
Identification
Descriptor
LTO-2 SCSI Interface Guide46
4-nOne or more Identification Descriptor
(see table 33
and table 34).
Chapter 2 SCSI Commands
INQUIRY Command
Table 33 Identification
Descriptor — Data Format
Table 34 Identification
Descriptor — Field Descriptions
Vendor ID and Product ID from
Standard Inquiry Data Page,
followed by Serial Number from
the Unit Serial Number Page.
2 = Identification Descriptor is an
IEEE Extended Unique Identifier.
4 = Relative target port (4 bytes)
Association14-50 = Identifier field is associated with
the addressed physical or logical
device.
1 = Identifier field is associated with
the port that received the request.
Identifier
Length
LTO-2 SCSI Interface Guide47
3n-3, indicating the length of this
Identification Descriptor.
FieldBytesBitsDescription
Chapter 2 SCSI Commands
INQUIRY Command
Drive Component
Revision Levels Pages
(C0h, C1h)
Table 35 Drive Component
Revision Levels Pages (C0h,
C1h) — Data Format
Identification
Descriptor
4-nBinary or ASCII data (depending on
Code Set).
ReservedAlways 0.
The Drive Component Revision Levels Pages contain details of the
revisions of each of the components of the drive. For any given product, if
these pages are the same then the drive has been built with the same
2
components and with the same manufacturing process.
Component4-2926 bytes of ASCII data, identifying the
component.
“SCSI FIRMWARE“ = SCSI
Firmware Revision Page
“SERVO FIRMWARE“ = Servo
Firmware Revision Page
Version30-4819 bytes of ASCII data, “VNNNN-
MMM”
Date49–7224 bytes of ASCII data,
“YYYY/MM/DD”
YYYY = 4 digits of year
MM = 2 digits of month
DD = 2 digits of day
Variant73–9523 bytes of ASCII data
LTO-2 SCSI Interface Guide49
Chapter 2 SCSI Commands
INQUIRY Command
Drive Component Serial
Number Page (C2, C3, C4,
C5, C6h)
Table 37 Drive Component
Serial Number Page (C2, C3,
C4, C5, C6h) — Data Format
Table 38 Drive Component
Serial Number Page (C2, C3,
C4, C5, C6h) —Field
Descriptions
The Drive Component Serial Number Page contains a single value, which
is a 12 byte ASCII string. The string, with the drive component fields in
the standard Inquiry data, uniquely identifies the component.
2
Bits
Byte
0
1
2
3
4-15
7 6 5 4 3 2 1 0
Peripheral QualifierPeripheral Device Type
Page Code
Reserved
Page Length
Component Serial Number
FieldBytesBitsDescription
Peripheral
05-7Always 000b.
Qualifier
Peripheral
Device
00-4Normally 01h to indicate a sequential
access device.
Type
Page Code1 C2h, indicating the Head Assembly
Serial Number Page
C3h, indicating the Reel Motor 1
Serial Number Page
C4h, indicating the Reel Motor 2
Serial Number Page
C5h, Board Serial Number Page
C6h, Base Mechanical Serial Number
Page
LTO-2 SCSI Interface Guide50
FieldBytesBitsDescription
Reserved2Always 0
Chapter 2 SCSI Commands
INQUIRY Command
Page
Length
Drive
Serial
Number
3Always 0C to indicate 12 additional
bytes of data.
4-1512 bytes of ASCII data giving the unit
serial number.
LTO-2 SCSI Interface Guide51
Chapter 2 SCSI Commands
INQUIRY Command
Drive Status Page (DFh) 2 The Drive Status Page provides a snapshot of the current state of the
drive and cartridge. It provides an extract of selected mode and log
pages. The page code is DFh.
Table 39 Drive Status Page
(DFh) — Data Format
Bits
Byte
7 6 5 4 3 2 1 0
0Peripheral QualifierPeripheral Device Type
1Page Code
2Reserved
3Page Length
4Drive State
5
6
CmdFwdAlertsRsvd
Reserved
Threaded
NoRem
ov
Lun1-
Cmd
Unit
Rsvd
7Reserved
8Cartridge Type
9Cartridge Format (0)
RsvdClean
Autoload Mode
10Cartridge Capacity, MSB
11Cartridge Capacity, LSB
12Port A Transport Type
13Reserved
14Reserved
LTO-2 SCSI Interface Guide52
Chapter 2 SCSI Commands
INQUIRY Command
Bits
Byte
7 6 5 4 3 2 1 0
15Port A Selection ID
16Reserved
17Reserved
18
19
Reserved
Reserved
(MSB)
20–23
24-31
32-63
Table 40 Drive Status Page
(DFh) — Field Descriptions
FieldBytesBitsDescription
Operating Hours Since Manufacture
Initiator ID
Cartridge Serial Number
(LSB)
Peripheral
05-7Always 000b.
Qualifier
Peripheral
Device
00-401h, indicating a sequential access
device.
Type
Page Code1Always DFh, indicating the Drive
Status Page
Page
3Always 3Ch
Length
Drive State4Contains one of the values shown in
the Drive State Field Values table
below.
LTO-2 SCSI Interface Guide53
Chapter 2 SCSI Commands
INQUIRY Command
FieldBytesBitsDescription
Cmd Fwd56-70 = Command Forwarding is disabled.
1 = Command Forwarding is enabled.
Command Forwarding is controlled by
the Interface Control Mode Page
Alerts55Lun1Cmd indicates that the drive has
received a command over the primary
interface that is addressed to LUN 1.
This field will contain a value of 1 until
the Forwarded Command packet has
been transmitted to the library and the
packet acknowledgement byte
received. If multiple commands have
been received — such as untagged
commands from multiple initiators —
the field will remain 1 until all
Forwarded Command packets have
been transmitted. If CmdFwd is zero,
then Lun1Cmd will always be zero, as
commands to LUN 1 are rejected by
the drive.
0 = Alerts are disabled.
1 = Alerts are enabled. (Alerts are not
implemented, so this field never has a
value of 1.)
Alerts would be controlled by the
Interface Control Mode Page.
NoRemov530 = Removal of the cartridge is enabled
1 = Removal of the cartridge has been
disabled with the
MEDIUM REMOV AL
LTO-2 SCSI Interface Guide54
PREVENT ALLOW
command.
Chapter 2 SCSI Commands
INQUIRY Command
FieldBytesBitsDescription
Unit Rsvd520 = The unit is not reserved. The
Initiator Selection Address field is
invalid.
1 = An initiator has reserved the
device. The Initiator Selection Address
field contains the Selection Address of
the initiator.
Clean500 = Cleaning is not needed.
1 = Cleaning is needed.
Threaded640 = Tape is not threaded.
1 = Tape is threaded. (It may still be
wrapping and not yet ready.)
Lun1Cmd630 = No unforwarded command exists
for LUN 1.
1 = One or more LUN 1 commands are
awaiting forwarding via RS-422.
Autoload
Mode
62-00 = Load and thread when cartridge is
inserted.
1 = Load and do not thread when
cartridge is inserted.
2 = Do not load when cartridge is
inserted.
Autoload Mode is controlled by the
Control Mode Page.
Cartridge
Type
Cartridge
Format
a
Cartridge
Capacity
LTO-2 SCSI Interface Guide55
8Contains one of the values shown in
the “Cartridge Type Field Values”
table (see table 42
).
9Always 0, indicating an LTO tape
cartridge.
10-11Uncompressed capacity of the
cartridge, in multiples of 10
9
bytes.
FieldBytesBitsDescription
Chapter 2 SCSI Commands
INQUIRY Command
Port A
Transport
Type
Port A
Selection
120 = Port A link is down.
3 = Parallel SCSI Ultra-160 interface
15The SCSI ID to which the drive
responds.
ID
Operating
Hours
20-23Total number of hours of head-tape
contact time.
Since
Manufacture
Initiator ID24-31Identification of the initiator holding a
reservation on the drive, when the Unit
Rsvd field is 1. The least-significant
byte contains the initiator’s SCSI ID. If
Unit Rsvd is zero, then this field is
zero.
Cartridge
Serial
Number
32-63
32 bytes of ASCII data, right-filled with
blanks. This is the cartridge serial
number as defined by attribute
number 0201h of the SPC-2
ATTRIBUTE
ATTRIBUTE
command (the READ
command is not
READ
supported).
ReservedAlways 0.
a.As there is only one LTO format defined at this time, the Cartridge
Format value is always zero. During insertion, data cartridge type is
unknown between the time the cartridge is seated and the drive
completes winding to BOT; the length calculation takes place during
winding.
LTO-2 SCSI Interface Guide56
Chapter 2 SCSI Commands
INQUIRY Command
Drive State Field Values2 The Medium Auxiliary Memory (MAM) can be accessed only in the states
indicated.
Table 41 Drive State Field
Values
MAM
ValueStateDescription
Accessible?
0DRIVE NOT READYNo commands may be issued and
cartridge may not be inserted.
1DRIVE EMPTY READYNo cartridge in drive. Commands
will be accepted and a cartridge
may be inserted.
2DRIVE MEDIA LOADABLECartridge is in carrier and loading
may be initiated by issuing a SCSI
LOAD or a library LOAD
CARTRIDGE
command.
3DRIVE LOADINGDrive is loading and threading the
cartridge.
4DRIVE LOADED HOLDDrive is loaded to Hold point.Y
5DRIVE LOADED READYDrive can accept non-status
commands.
6DRIVE WRITINGDrive can accept only status and
UNLOAD commands.
7DRIVE READINGDrive can accept only status and
UNLOAD commands.
8DRIVE BUSYDrive can accept only status and
UNLOAD commands.
N
N
N
N
Y
Y
Y
Y
9DRIVE UNLOADINGTape is being unthreaded and
Y
ejected.
10DRIVE MEDIA REMOVABLECartridge has been ejected and is
N
ready for extraction by the library.
LTO-2 SCSI Interface Guide57
ValueStateDescription
Chapter 2 SCSI Commands
INQUIRY Command
MAM
Accessible?
11DRIVE LOAD FAILED
EJECTED
Loading failed and the cartridge
was returned to the
loadable/removable position.
12DRIVE LOAD FAILEDLoading failed.N
13DRIVE LOAD FAILED HOLDLoading failed and the cartridge is
in the drive at the Hold position.
14DRIVE EJECT FAILEDEjection failed.N
15DRIVE EJECT FAILED HOLDEjection failed and the cartridge is
in the drive at the Hold position.
16DRIVE STATE UNKNOWN.N
17DRIVE CLEANING FAILEDCleaning cartridge expired or
cleaning failed for another reason.
Tape may be threaded.
Cartridge Type Field
Values
2
N
Y
Y
Y
Table 42 Cartridge Type Field
Values
ValueMeaning
0Empty – no cartridge is present
1Cleaning cartridge
2Unknown data cartridge
3Firmware cartridge
4Ultrium 1 Type A data cartridge
5Ultrium 1 Type B data cartridge
6Ultrium 1 Type C data cartridge
LTO-2 SCSI Interface Guide58
Command Support Data 2
Chapter 2 SCSI Commands
INQUIRY Command
7Ultrium 1 Type D data cartridge
8Ultrium 2 Type A data cartridge
Table 43 Command Supp or t
Data — Data Format
Table 44 Command Supp or t
Data — Field Descriptions
Bits
Byte
0
1
2
3
4
5
6
N
7 6 5 4 3 2 1 0
Peripheral QualifierPeripheral Device Type
ReservedSUPPORT
VERSION
Reserved
Reserved
CDB SIZE (n-5)
CDB USAGE DATA
CDB USAGE DATA
FieldBytesBitsDescription
Peripheral
05-7Always 000b.
Qualifier
Peripheral
Device
00-4Normally 01h to indicate a sequential
access device.
Type
Reserved13-7Always 0
LTO-2 SCSI Interface Guide59
Chapter 2 SCSI Commands
INQUIRY Command
FieldBytesBitsDescription
SUPPORT10-23 = indicates SCSI operation code in
conformance to SCSI standard.
5 = indicates SCSI operation code in
conformance to vendor unique SCSI
standard.
VERSION2Always 3
Reserved3-4Always 0
CDB SIZE5Number of bytes in Command
Descriptor Block (CDB).
CDB
USAGE
DATA
6-nInformation about the CDB for the
operation code being queried.
LTO-2 SCSI Interface Guide60
Chapter 2 SCSI Commands
INQUIRY Command
Completion Status2 Table 45 shows the completion codes and messages for the INQUIRY
command.
Table 45 INQUIRY Command
Completion Status
CodeMessageDescription
00hGood Status• The tape is not moved; the current
position is maintained.
• The drive remains in any previously
set modes.
• The drive is ready to perform any
appropriate command.
02hCheck
Condition
Use the
REQUEST SENSE command to
retrieve status information. Possible
Sense Keys are:
CodeMessageDescription
04hHardware
Error
Parity error on
the SCSI bus or
drive hardware
failure.
05hIllegal
Request
The Command
Descriptor Block
is invalid.
LTO-2 SCSI Interface Guide61
Chapter 2 SCSI Commands
LOAD UNLOAD Command
LOAD UNLOAD Command2
The LOAD UNLOAD command may be used to load or unload a cartridge.
This command may also be used to request that the retension function be
performed.
Table 46 LOAD UNLOAD
Command Descriptor Block —
Data Format
Table 47 LOAD UNLOAD
Command Descriptor Block —
Field Descriptions
Bits
Byte
7 6 5 4 3 2 1 0
0Operation Code (1Bh)
1
Ignored LUNReserved
2Reserved
3Reserved
4ReservedHoldEOT
5Control
Field BytesBitsDescription
Operation
Code
Ignored
Logical Unit
0The Operation Code for the
UNLOAD
command is 1Bh.
15-7The LUN field is vestigial from the
SCSI-1 standard and is ignored.
Reten
LOAD
Imm
ed
Load
Immed100 = Status is not returned until the
operation has completed.
1 = Status is returned as soon as
buffered data and filemarks are
written to the medium and the CDB
has been validated.
LTO-2 SCSI Interface Guide62
Chapter 2 SCSI Commands
LOAD UNLOAD Command
Field BytesBitsDescription
Hold431 = Requests that the medium be
positioned to the Medium Auxiliary
Memory Accessible position where
the medium is seated into the drive
but the tape is not threaded to BOT.
EOT42Not supported. Must be set to 0.
Reten411 = Requests that the retension
function be performed on medium.
Load400 = requests that the medium be
unloaded.
1 = requests that the medium be
loaded.
ReservedAll reserved bits must be 0.
Control5See Control Byte Format on page 29
.
Medium Position2 The drive has three possible states where the medium may be positioned.
The locations, defined in the following sections, are:
• Medium Loadable Position
• Medium Auxiliary Memory Accessible Position
• Medium Loaded and Ready Position
If the Prevent Medium Removal state has been set using the PREVENT
ALLOW MEDIUM REMOVAL
command and a LOAD UNLOAD command is
issued that requests the medium be unloaded to the Medium Loadable
position, then a check condition status will be returned. The sense key
will be set to Illegal Request(05) and the additional sense data will be set
to Medium Removal Prevented (5302).
If the Immediate (Immed) flag is 1, then the drive validates the command
and waits for any previous command from any host to complete,
including any immediate commands currently being processed, and for
any buffered data to be flushed to tape. It will then report a deferred error
for any preceding command or buffered data if appropriate. If there is no
LTO-2 SCSI Interface Guide63
Chapter 2 SCSI Commands
LOAD UNLOAD Command
deferred error, the drive reports good status and initiates the command.
If the Immediate flag is 0, status is not returned until after the command
has completed.
Medium Loadable
Position
Table 48 Medium Loadable
Position
This position is where the medium is inserted into the drive but has not
been seated into the drive and the tape has not been threaded to BOT.
2
Hold RetenLoadDescription
000No action taken, Good Status is returned.
001Load the medium to the Loaded position.
The medium will be ready at BOT.
010Check condition, sense data 02/3A/03.
011Load the medium to the Loaded position and
perform the retension operation. The
medium will be ready at BOT.
100Load the medium to the Medium Auxiliary
Memory Accessible position.
101Load the medium to the Medium Auxiliary
Memory Accessible position.
110Check condition, sense data 02/3A/03.
111Check condition, sense data 02/3A/03.
LTO-2 SCSI Interface Guide64
Chapter 2 SCSI Commands
LOAD UNLOAD Command
Medium Auxiliary Memory
Accessible Position
Table 49 Medium Auxiliary
Memory Accessible Position
This position is where the medium has been seated into the drive but the
tape has not been threaded to BOT.
2
Hold RetenLoadDescription
000Unload the medium to the Loadable
position.
001Load the medium to the Loaded position.
The medium will be ready at BOT.
010Check condition, sense data 02/3A/04.
011Load the medium to the Loaded position and
perform the retension operation. The
medium will be ready at BOT.
100No action taken, Good Status is returned.
101No action taken, Good Status is returned.
110Check condition, sense data 02/3A/04.
111Check condition, sense data 02/3A/04.
LTO-2 SCSI Interface Guide65
Chapter 2 SCSI Commands
LOAD UNLOAD Command
Medium Loaded and
Ready Position
Table 50 Medium Loaded and
Ready Position
This position is where the medium has been seated into the drive and the
tape has been threaded to BOT. The medium is ready to use.
2
Hold RetenLoadDescription
000Unload the medium to the Loadable position.
001Rewind the medium to the Loaded position.
The medium will be ready at BOT.
010Perform the retension operation and unload
the medium to the Loadable position.
011Perform the retension operation. The
medium will remain at the Loaded position
ready at BOT.
100Unload the medium to the Medium Auxiliary
Memory Accessible position.
101Unload the medium to the Medium Auxiliary
Memory Accessible position.
110Perform the retension operation and unload
the medium to the Medium Auxiliary
Memory Accessible position.
111Perform the retension operation and unload
the medium to the Medium Auxiliary
Memory Accessible position.
LTO-2 SCSI Interface Guide66
Chapter 2 SCSI Commands
LOAD UNLOAD Command
Completion Status2 Table 51 shows the completion codes and messages for the LOAD
UNLOAD
command.
Table 51 LOAD UNLOAD
Command Completion Status
CodeMessageDescription
00hGood Status• The tape is positioned as requested.
• The drive remains in any previously
set modes.
• The drive is ready to perform any
appropriate command.
Note:If Immed is 1, then Good Status
only indicates that the command
is valid.
02hCheck
Condition
Use the
REQUEST SENSE command to
retrieve status information. Possible
Sense Keys are:
CodeMessageDescription
02hNot Ready No cartridge is in
the drive;
cartridge is in the
Loadable
position; or the
cartridge is in the
Medium
Auxiliary
Memory
Accessible
Position.
04hHardware
Error
Parity error on
the SCSI bus or
drive hardware
failure.
LTO-2 SCSI Interface Guide67
CodeMessageDescription
CodeMessageDescription
Chapter 2 SCSI Commands
LOAD UNLOAD Command
05hIllegal
Request
06hUnit
Attention
Medium
Removal
Prevention has
been set, or the
command
Descriptor Block
is invalid.
The cartridge
was loaded or
unloaded to the
Medium
Loadable,
Medium
Auxiliary
Memory
Accessible, or
Medium Loaded
at BOT positions.
LTO-2 SCSI Interface Guide68
Chapter 2 SCSI Commands
LOCATE Command
LOCATE Command2
The LOCATE command moves to a specified position on the tape.
Before the locate operation is performed, all buffered data and filemarks
are transferred to tape. On completion, the logical position is before the
specified location.
Table 52 LOCATE
Command Descriptor Block
— Data Format
Byte
Bits
0
7 6 5 4 3 2 1 0
Operation Code (2Bh)
1
2
3–6
7
8
9
Ignored LUNReservedImm
ed
Reserved
(MSB)
Block Address
(LSB)
Reserved
Reserved
Control
LTO-2 SCSI Interface Guide69
Chapter 2 SCSI Commands
LOCATE Command
Table 53 LOCATE Command
Descriptor Block — Field
Descriptions
FieldBytesBitsDescription
Operation
0The operation code for
LOCATE is 2Bh
Code
Ignored
Logical
15-7The LUN field is vestigial from the
SCSI-1 standard and is ignored.
Unit
Immed100 = Status is not returned until the tape
is positioned.
1 = Status is returned as soon as the
operation is initiated.
Block
Address
3-6The
logical position on tape to be set to the
LOCATE command causes the
value indicated by the Block Address
field. Block 0 is the first block on tape.
The value indicates the total number of
records and marks between BOT and
the desired logical position. A value of
0 will cause the tape to be positioned at
BOT.
ReservedAll reserved bits must be 0.
Control9See Control Byte Format on page 29
.
If the Immediate (Immed) flag is set to 1, then the drive validates the
command and waits for any previous command from any host to
complete including any immediate commands currently being processed
and for any buffered data to be flushed to tape. It will then report a
deferred error for any preceding command or buffered data if
appropriate. If there is no deferred error, the drive reports good status
and initiates the command. If the Immediate (Immed) flag is set to 0,
status is not returned until after the command has completed.
LTO-2 SCSI Interface Guide70
Chapter 2 SCSI Commands
LOCATE Command
Completion Status2 Table 54 shows the completion codes and messages for the LOCATE
command.
Table 54 LOCATE Command
Completion Status
CodeMessageDescription
00hGood Status• The filemarks have been sent to the
buffer.
• The drive remains in any previously
set mode.
Note:If Immed is 1, then Good Status
only indicates that the command
is valid.
02hCheck
Condition
Use the
REQUEST SENSE command to
retrieve status information. Possible
Sense Keys are:
CodeMessageDescription
02hNot Ready No cartridge is in
the drive.
03hMedia ErrorUnrecoverable
data error
encountered.
04hHardware
Error
Parity error on
the SCSI bus or
drive hardware
failure.
05hIllegal
Request
The Command
Descriptor Block
is invalid.
LTO-2 SCSI Interface Guide71
CodeMessageDescription
CodeMessageDescription
Chapter 2 SCSI Commands
LOCATE Command
06hUnit
Attention
The cartridge
was changed, or
the drive was
reset prior to this
command.
08Blank CheckThe drive
encountered
EOD.
LTO-2 SCSI Interface Guide72
Chapter 2 SCSI Commands
LOG SELECT Command
LOG SELECT Command2
The LOG SELECT and LOG SENSE commands work in conjunction to
allow the host to control and obtain statistical information about cartridge
usage and error rates. This information consists of counters of particular
events.
The
LOG SELECT command is used to reset the log counters to their
default values. A SCSI Bus Reset, Bus Device Reset, or cartridge loading
is also used to reset these counters (of pages 02h, 03h, 0Ch, and 32h.)
Multiple pages are reset by a single
affects pages 02h, 03h, 2Eh, and 32h only. (See chapter 2, LOG SENSE
Command for information about log pages and their format.)
LOG SELECT command. LOG SELECT
Table 55 LOG SELECT
Command Descriptor Block —
Data Format
Byte
7–8
Bits
0
1
2
3
4
5
6
9
7 6 5 4 3 2 1 0
Operation Code (4Ch)
Ignored LUNReservedPCRRsvd
PCReserved
Reserved
Reserved
Reserved
Reserved
(MSB)
Parameter List
(LSB)
Control
LTO-2 SCSI Interface Guide73
Chapter 2 SCSI Commands
LOG SELECT Command
Table 56 LOG SELECT
Command Descriptor Block —
Field Descriptions
Field BytesBitsDescription
Operation
Code
Ignored
Logical
0The Operation Code for
4Ch
15-7The LUN field is vestigial from the SCSI-
1 standard and is ignored.
Unit
Parameter
Code
Reset
(PCR)
110 = Reset values as specified by PC. Do
not clear the DU (Disable Update, see
Log Parameters
parameters of log pages 02h, 03h, 2Eh,
and 32h. With page 2Eh log parameters
are set to 0 only when PC = 11b.
1 = Reset log parameters on pages 02h,
03h, 2Eh, and 32h. All accumulated
values are set to 0; all threshold values
are set to maximums except page 2Eh.
DU bits of the parameters of these log
pages are also cleared.
Page
Control
(PC)
26-700b = Check Condition if Parameter List
Length > 0.
01b = Check Condition if Parameter List
Length > 0.
LOG SELECT is
on page 76) bits of the
10b = All thresholds are set to
maximums. Check Condition if
Parameter List Length > 0.
11b = All accumulated values are set to 0.
Check Condition if Parameter List
Length > 0.
This field is ignored if PCR is not 0.
Parameter
List
Length
7-8Always 0. Specifies the length (in bytes)
of the parameter list to be transferred
during the Data Out phase. A 0 length
indicates that no parameter data is to be
transferred.
LTO-2 SCSI Interface Guide74
Chapter 2 SCSI Commands
LOG SELECT Command
Field BytesBitsDescription
ReservedAll reserved bits must be 0.
Control9See Control Byte Format on page 29
Note:Pages 00h, 0Ch, 14h, 16h, 30h, 31h, and 33h, 3Ah, and 3Ch
cannot be reset by
LOG SELECT.
The drive does not maintain a separate set of log parameters for each
initiator. Therefore, a
LOG SELECT command affects all initiators.
Note:The subsequent section discusses the LOG SENSE command.
The log page codes and the log parameter codes are described
in that section.
Log Pages2 A log page is made up of a 4-byte page header and one or more log
parameters.
The following table shows the log page header format.
Table 57 Log Page Header —
Data Format
Byte
Bits
7 6 5 4 3 2 1 0
.
0
1
ReservedPage Code
Reserved
(MSB)
2–3
Page Length, MSB
(LSB)
LTO-2 SCSI Interface Guide75
Chapter 2 SCSI Commands
LOG SELECT Command
Table 58 Log Page Header —
Field Descriptions
FieldBytesBitsDescription
Page
00-5Identifies the page.
Code
Page
Length
2-3Indicates the length of log parameters
(in bytes) that follow the page header.
ReservedAll reserved bits must be 0.
Log Parameters2 A log parameter is made up of a 4-byte parameter header and one or
more associated parameter data bytes.
The following table shows a typical log parameter format.
Table 59 Log Parameter —
Data Format
Byte
Bits
7 6 5 4 3 2 1 0
(MSB)
0–1
Parameter Code
(LSB)
2
3
4
n
LTO-2 SCSI Interface Guide76
DUDSReserved
Parameter Length (n-3)
Parameter Value
Parameter Value
Loading...
+ 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.