Page 12
NOTE: Using immediate mode with other commands does not improve performance and can cause problems when writing a driver. The SCSI specification requires that if a command is issued with the IMMEDIATE bit set to 0, the drive must flush its data buffer before it carries out the operation. This takes time.
Managing the use of tapes
The Ultrium format enables applications to monitor the performance of tapes closely, to indicate when tape heads need cleaning, and when a tape should be discarded.
See “Use of tapes” on page 19 for more information.
Information in Cartridge Memory
The LTO Cartridge Memory holds a number of pages of information that contain data about the tape’s history, such as the amount of data written to and read from the tape, the number of times a cartridge has been loaded and the tape threaded into a drive, and the number of read or write errors that have been encountered by drives with this tape. This information can be used to warn against backing up onto a tape of dubious quality, or one that is reaching the end of its life.
Cleaning tape heads
The ‘Clean’ LED on the front of HP Ultrium drives indicates when a cleaning cartridge should be used. There are two ways for backup applications to determine when the tape heads need cleaning and to prompt the user to clean the drive:
•Use TapeAlert—see“Monitoring the condition of the drive and media” on page 78 for details.
•Send a SCSI REQUEST SENSE command to look at the CLN bit in the sense data. If the bit is set, the drive needs cleaning.
In an automation context, the tape drive tells the automation controller that a cleaning tape needs to be used through two bits in the ACI Get Drive Status command.
•The Cleaning Needed bit signals deterioration in the write or read margin of the drive and indicates that a cleaning cartridge should be used as soon as possible. Once the drive has been cleaned successfully, the Cleaning Needed bit will be cleared.
•The Cleaning Required bit indicates that the drive is unable to read or write unless the drive is first cleaned, so a cleaning cartridge should be used immediately. Following a successful clean, the Cleaning Required bit will be cleared.
Monitoring tape use
Drives can report the actual amount of data that has been written to the tape, and the amount of available space on the tape. From this information, applications for Ultrium drives can be designed to calculate the percentage of tape used, and give the user feedback on the actual progress of the backup operation. This is a significant improvement over other technologies, such as DC6000 QIC products, that require the application to estimate what is going on.
12 Designing backup applications
HP restricted
Contents
volume 2 software integration
LTO 4 FC, SCSI and SAS drives
HP LTO Ultrium tape drives technical reference manual
HP restricted
Legal and notice information
Contents
1 Designing backup applications
2 Configuration and initialization
3 Use of tapes
5 Supporting Ultrium features
4 Factors affecting performance
6 Sense keys and codes
7 Exception handling
HP restricted
Related documents
Documentation map
Documents specific to HP Ultrium drives
Drives-general
Installation and configuration
Operation
Cartridges
Interface
Maintenance and troubleshooting
Dealing with errors
LTO Ultrium features
General documents and standardization
1 Designing backup applications
Non-immediate commands
Optimizing performance
Large data transfer size
Cleaning tape heads
Managing the use of tapes
Information in Cartridge Memory
Monitoring tape use
Design goals for LTO backup applications
Diagnostic logs
TapeAlert
Displaying drive information
Include the capability to download firmware
2 Configuration and initialization
Inquiry string recovery
Operating system drivers
Example
16 Configuration and initialization
SCSI protocol, regardless of transport or interface type
Support for additional LUN
Enabling additional LUN support
Supporting additional LUNs
18 Configuration and initialization
Using Cartridge Memory attributes
Using MODE SENSE
3 Use of tapes
LTO cartridge memory
Tape status and capacity
Finding the remaining capacity
Interpreting Log Sense data
Using the SET CAPACITY command
Command descriptor block
CDB fields
Changes to SCSI commands
WORM media
How WORM media works
New additional sense codes and TapeAlert flags
Error Usage page
ERASE commands rejected
SET CAPACITY command
Re-writing media labels
Using CM to check tape integrity
Behavior with a missing or inconsistent EOD value
Unique media identifier
Responding to Cartridge Memory data
Load count
Barcode support
RWW retry counts
Corrective action
4 Factors affecting performance
Ways of optimizing performance
Detecting the drive’s speed
Ensuring the recommended minimum transfer sizes
Using Cartridge Memory instead of tape headers
Using the Performance Log page for diagnosing problems
Time-out values
Media type identification
Recommended support of log pages
Factors affecting performance
Host-related factors
Example
Recommendation
where possible or a reasonably sized RAID system. More disks means
makes sense to split heavily used FC cards across separate PCI busses
Drive-related factors
Do not interleave write commands with other commands, such as READ
Format-related factors
Page
34 Factors affecting performance
5 Supporting Ultrium features
Cartridge Memory LTO-CM
Automation interface
Further information
Automation/Device Interface ADI
Automation Control Interface ACI
Modes of usage through ACI
Slave to a library controller
ACI command set
ACI commands that affect drive streaming performance
SCSI pass-through mode
New features in ACI
Backward compatibility
SCSI command
Encryption support
Further details
Supporting the ACI protocol
Recommended ACI time-out values
42 Supporting Ultrium features
Recommended power-up sequence
Treatment of reserved fields
Recommended load-unload configuration
Firmware upgrade via tape
Recommended Get Drive Status polling frequency
ACI protocol communications retry
Upgrading the drive firmware
Firmware upgrade via the primary host interface
Firmware upgrade via ACI
Library firmware upgrade via tape
Handling irregular cartridges
Cleaning cartridge HP-configured or Universal
Expired cleaning cartridge HP-configured or Universal
Non-HP Ultrium 1 cleaning cartridge
Unreadable data cartridge
Valid firmware upgrade cartridge
Data cartridge with unreadable CM
Cartridge fails to seat or load
Cartridge cannot be loaded
Frequently asked questions
Cleaning
Invalid firmware upgrade cartridge
Is there separate firmware for drives intended to go into libraries?
Backup software
Resetting drives
Resetting via the ACI Reset command
Resetting using the ACIRSTL line
Accessing Cartridge Memory without threading the tape
Controlling data compression
Other mode page information
Buffer size at EW-EOM
Rewind on reset
Write delay time
Partition size
52 Supporting Ultrium features
6 Sense keys and codes
Sense keys-actions to take
Action
Console Message
“3h-MEDIUM ERROR” on page 62 . Also see the Media Access
For additional sense codes, see “3h-MEDIUM ERROR” on
log the error, terminate I/O to the drive, and pass the appropriate
error to the calling application
Action
Console Message
Action
Console Message
page
Additional sense codes-actions to take
Physical
End-of-Tape
reached, unable to fit
0h-NO SENSE
1h-RECOVERED ERROR
2h-NOT READY
The software must issue a LOAD before media access
LUN not accessible, port in
The command cannot be executed because the specified
60 Sense keys and codes
mechanism tests are being executed. When the tests are
3h-MEDIUM ERROR
A READ , SPACE , WRITE or WRITE FILEMARKS command
62 Sense keys and codes
Send a console message that an unrecovered error on
and the drive. Based on this, ask the user to clean the
64 Sense keys and codes
Send a message to the console indicating that there is
The current command such as READ, SPACE, REWIND
66 Sense keys and codes
4h-HW ERROR
5h-ILLEGAL REQUEST
A MODE SELECT parameter list sent to the drive contains
68 Sense keys and codes
6h-UNIT ATTENTION
persistent reservation using the PERSISTENT RESERVE OUT
allowed to execute. In other words, some commands can
32 initiators to register, using PERSISTENT RESERVE OUT
Action
service action removed all reservations and the persistent
A PERSISTENT RESERVE OUT command was executed
WRITE BUFFER or MAINTENANCE OUT command
A SET DEVICE IDENTIFIER command has been successful
7h-DATA PROTECTION
Code
8h-BLANK CHECK
Bh-ABORTED COMMAND
READ BUFFER command
related to a missing EOD data set. The most likely cause
Dh-VOLUME OVERFLOW
A WRITE or WRITE FILEMARKS command has encountered
76 Sense keys and codes
Typical escalation procedure
1. Retrieve fault information
3. Allow the user to try recovery
4. Allow the user to reset devices
Monitoring the condition of the drive and media
Supporting TapeAlert
Flags
Type
Page
Page
Page
Page
Page
Page
Page
Designing software to use the TapeAlert log
TapeAlert models
Reading the TapeAlert log
TapeAlert polling usage model
TapeAlert informational exception usage model
One-Button Disaster Recovery OBDR
Responding to the ‘Clean’ LED
Supporting OBDR
Providing pass-through mode
Requirements for drivers and logical device managers
Glossary
see ”read-while-write”
Index
Page
Page
HP restricted