LTO3
LTO3
LTO3
Date
Changes
Edition 1
May 2007
For LTO 2 and 3 half-height and full-height FC, SCSI and SAS drives
This document is frequently revised and updated. To find out if there is a later version, please ask your HP OEM Representative.
HP LTO Ultrium 2 & 3 drives UNIX, Linux and OpenVMS configuration guide
Contents
Related documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Documents specific to HP Ultrium drives. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Documentation map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Drivesgeneral . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Installation and configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Cartridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Maintenance and troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Dealing with errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
LTO Ultrium features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General documents and standardization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3
3
3
3
3
4
4
4
5
5
5
6
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Purpose of this manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Ultrium drives in a library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SAS drives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Backup applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
..
..
..
..
7
7
7
7
.
.
.
.
..
..
..
..
.
.
.
.
..
..
..
..
..
..
..
..
.
.
.
.
..
..
..
..
..
..
..
..
.
.
.
.
..
..
..
..
.
.
.
.
..
..
..
..
..
..
..
..
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
...
...
...
...
23
23
24
25
..
..
..
..
..
..
.
.
.
.
.
.
..
..
..
..
..
..
..
..
..
..
..
..
.
.
.
.
.
.
..
..
..
..
..
..
.
.
.
.
.
.
..
..
..
..
..
..
..
..
..
..
..
..
.
.
.
.
.
.
..
..
..
..
..
..
..
..
..
..
..
..
.
.
.
.
.
.
..
..
..
..
..
..
.
.
.
.
.
.
..
..
..
..
..
..
..
..
..
..
..
..
.
.
.
.
.
.
..
..
..
..
..
..
..
..
..
..
..
..
.
.
.
.
.
.
..
..
..
..
..
..
.
.
.
.
.
.
..
..
..
..
..
..
..
..
..
..
..
..
.
.
.
.
.
.
..
..
..
..
..
..
...
...
...
...
...
...
31
31
31
31
32
34
Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Related documents
The following documents provide additional information:
Documentation map
The following will help you locate information in the Technical Reference Manual. A reference like
1 HW Integration: ch. 7 means Volume 1, Hardware Integration Guide, of the HP LTO Ultrium
Technical Reference Manual, chapter 7.
Drivesgeneral
FC Drives
SCSI Drives
SAS Drives
Connectors
1 HW Integration: ch. 4
1 HW Integration: ch. 7
1 HW Integration: ch. 3
1 HW Integration: ch. 6
Specifications
4 Specifications
1 HW Integration: ch. 4
n/a
1 HW Integration: ch. 7
1 HW Integration: ch. 5
1 HW Integration: ch. 1
In Servers
n/a
In Tape Arrays
n/a
Linux configuration
OpenVMS configuration
SAS Drives
2 SW Integration: ch. 2
In Libraries
Modes of Usage
SCSI Drives
1 HW Integration: ch. 4
1 HW Integration: ch. 3
n/a
1 HW Integration: ch. 8
n/a
HP LTO Ultrium 2 & 3 drives UNIX, Linux and OpenVMS configuration guide
FC Drives
SCSI Drives
SAS Drives
n/a
1 HW Integration: ch. 8
n/a
Optimizing performance
2 SW Integration: ch. 4
UNIX configuration
Operation
FC Drives
External drives
SCSI Drives
1 HW Integration: ch. 5
n/a
In Libraries
SAS Drives
1 HW Integration: ch. 1
In Servers
n/a
In Tape Arrays
n/a
1 HW Integration: ch. 4
1 HW Integration: ch. 3
n/a
Cartridges
FC Drives
Cartridge Memory (LTO-CM)
Cartridges
SCSI Drives
SAS Drives
2 SW Integration: ch. 5
1 HW Integration: ch. 5
1 HW Integration: ch. 9
2 SW Integration: ch. 1
Use of cartridges
2 SW Integration: ch. 3
Interface
FC Drives
SCSI Drives
3 Host Interface
Commands
Error codes
Implementation
1 HW Integration: ch. 10
3 Host Interface: ch. 1
2 SW Integration: ch. 3
Mode pages
see the MODE SENSE command
Pre-execution checks
2 SW Integration: ch. 6
SAS Drives
n/a
SCSI Drives
SAS Drives
2 SW Integration: ch. 5
2 SW Integration: ch. 7
External drives
1 HW Integration: ch. 5
n/a
In Libraries
1 HW Integration: ch. 1
In Servers
n/a
In Tape Arrays
n/a
1 HW Integration: ch. 4
1 HW Integration: ch. 3
2 SW Integration: ch. 7
2 SW Integration: ch. 1
n/a
SCSI Drives
1 HW Integration: ch. 6
SAS Drives
1 HW Integration: ch. 10
Handling errors
2 SW Integration: ch. 5
2 SW Integration: ch. 7
2 SW Integration: ch. 3
2 SW Integration: ch. 3
TapeAlert log
2 SW Integration: ch. 7
SCSI Drives
Autoload
1 HW Integration: ch. 2
1 HW Integration: ch. 2
1 HW Integration: ch. 2
2 SW Integration: ch. 5
2 SW Integration: ch. 5
2 SW Integration: ch. 7
Performance optimization
n/a
SAS Drives
1 HW Integration: ch. 8
2 SW Integration: ch. 1
2 SW Integration: ch. 4
Software design
2 SW Integration: ch. 1
2 SW Integration: ch. 5
HP LTO Ultrium 2 & 3 drives UNIX, Linux and OpenVMS configuration guide
New York,
NY 10036-8002
USA
ISO CP 56
CH-1211 Geneva 20
Switzerland
CH-1204 Geneva
Switzerland
USA
Introduction
SAS drives
SAS drives are only supported on Redhat and SLES Linux.
Backup applications
For optimum performance it is important to use a backup application that supports the drives
features within your systems configuration.
For details of which backup applications are supported with your tape drive and system, visit the
HP Tape Compatibility website:
http://www.hp.com/products1/storage/compatibility/tapebackup/index.html
Follow the Software compatibility link then click a tick in the appropriate matrix to drill down into
detailed application support information.
See the Getting Started Guide for more information about usage models.
HP LTO Ultrium 2 & 3 drives UNIX, Linux and OpenVMS configuration guide
Introduction
The output should look similar to the following, which shows SCSI drives (in the tape line, n will be
2 or 3 depending on the drive type):
Class
I H/W Path
Driver
S/W State
H/W Type
Description
=================================================================================
root
0
root
CLAIMED
BUS_NEXUS
ioa
0 0
sba
CLAIMED
BUS_NEXUS
System Bus Adapter (880)
ba
0 0/0
lba
CLAIMED
BUS_NEXUS
Local PCI-X Bus Adapter (783)
OO
0 0/0/1/0
UsbOhci
CLAIMED
INTERFACE
PCI SerialBus (10330035)
OO
1 0/0/1/1
UsbOhci
CLAIMED
INTERFACE
PCI SerialBus (10330035)
OO
2 0/0/1/2
UsbEhci
CLAIMED
INTERFACE
PCI SerialBus (103300e0)
sideba
0 0/0/2/0
side_multi
CLAIMED
INTERFACE
CMD IDE controller
ext_bus
0 0/0/2/0.0
side
CLAIMED
INTERFACE
IDE Primary Channel
1. Note that HP does not support disk drives and tape drives sharing the same SCSI bus.
HP LTO Ultrium 2 & 3 drives UNIX, Linux and OpenVMS configuration guide
target
2
disk
1
ext_bus
1
ba
1
ext_bus
2
target
0
disk
0
ext_bus
3
lan
0
ba
2
ext_bus
4
ext_bus
5
target
1
tape
1
ba
3
ext_bus
6
A6829-60001
ext_bus
7
A6829-60001
ba
4
ba
5
ba
6
tty
0
tty
1
unknown
-1
memory
0
ipmi
0
processor
0
processor
1
0/0/2/0.0.0
0/0/2/0.0.0.0
0/0/2/0.1
0/1
0/1/1/0
0/1/1/0.0
0/1/1/0.0.0
0/1/1/1
0/1/2/0
0/2
0/2/1/0
0/2/1/1
0/2/1/1.3
0/2/1/1.3.0
0/3
0/3/1/0
tgt
sdisk
side
lba
c8xx
tgt
sdisk
c8xx
igelan
lba
mpt
mpt
tgt
stape
lba
c8xx
CLAIMED
CLAIMED
CLAIMED
CLAIMED
CLAIMED
CLAIMED
CLAIMED
CLAIMED
CLAIMED
CLAIMED
CLAIMED
CLAIMED
CLAIMED
CLAIMED
CLAIMED
CLAIMED
DEVICE
DEVICE
INTERFACE
BUS_NEXUS
INTERFACE
DEVICE
DEVICE
INTERFACE
INTERFACE
BUS_NEXUS
INTERFACE
INTERFACE
DEVICE
DEVICE
BUS_NEXUS
INTERFACE
HP
Ultrium n-SCSI
Local PCI-X Bus Adapter (783)
SCSI C1010 Ultra160 Wide LVD
TEAC
DV-28E-N
IDE Secondary Channel
Local PCI-X Bus Adapter (783)
SCSI C1010 Ultra160 Wide LVD
HP 73.4GST373454LC
SCSI C1010 Ultra160 Wide LVD
HP PCI 1000Base-T Core
Local PCI-X Bus Adapter (783)
SCSI Ultra320 A6961-60011
SCSI Ultra320 A6961-60011
0/3/1/1
c8xx
CLAIMED
INTERFACE
0/4
0/6
0/7
0/7/1/0
0/7/1/1
0/7/2/0
8
16
128
129
lba
lba
lba
asio0
asio0
CLAIMED
CLAIMED
CLAIMED
CLAIMED
CLAIMED
UNCLAIMED
CLAIMED
CLAIMED
CLAIMED
CLAIMED
BUS_NEXUS
BUS_NEXUS
BUS_NEXUS
INTERFACE
INTERFACE
UNKNOWN
MEMORY
INTERFACE
PROCESSOR
PROCESSOR
memory
ipmi
processor
processor
NOTE: If you are installing a SCSI drive onto a Storage Area Network (SAN), the fibre
channel/SCSI router will also appear in the list of attached devices.
For a given SCSI device in the ioscan listing, the SCSI bus ID and the drives SCSI ID and LUN ID
can be decoded from the H/W path (hardware path)/ For example:
Class
tape
I
1
H/W Path
2/0/1.5.0
Driver
stape
S/W State
CLAIMED
H/W Type
DEVICE
Description
HP
Ultrium 2-SCSI
10
The output should look similar to the following1 (SCSI interface drives are shown in this example)
Class
I Lun H/W Path
Driver S/W State
H/W Type
Health Description
=====================================================================================
disk
2 64000/0xfa00/0x0
esdisk CLAIMED
DEVICE
online HP 73.4GST373454LC
0/1/1/0.0x0.0x0
/dev/disk/disk2
/dev/rdisk/disk2
disk
3 64000/0xfa00/0x3
esdisk CLAIMED
DEVICE
online TEAC
DV-28E-N
0/0/2/0.0.0x0.0x0
/dev/disk/disk3
/dev/rdisk/disk3
tape
5 64000/0xfa00/0xa
estape CLAIMED
DEVICE
online HP
DLT VS160
0/2/1/1.0x5.0x0
/dev/rtape/tape5_BEST
/dev/rtape/tape5_BESTb
/dev/rtape/tape5_BESTn
/dev/rtape/tape5_BESTnb
tape
9 64000/0xfa00/0x12
estape CLAIMED
DEVICE
online HP
C5683A
0/1/1/1.0x2.0x0
/dev/rtape/tape9_BEST
/dev/rtape/tape9_BESTb
/dev/rtape/tape9_BESTn
/dev/rtape/tape9_BESTnb
tape
0 64000/0xfa00/0x16
estape CLAIMED
DEVICE
online HP
Ultrium n-SCSI
0/3/1/1.0x3.0x0
/dev/rtape/tape0_BEST
/dev/rtape/tape0_BESTb
/dev/rtape/tape0_BESTn
/dev/rtape/tape0_BESTnb
tape
12 64000/0xfa00/0x1a
estape CLAIMED
DEVICE
online HP
SDLT600
0/2/1/0.0x3.0x0
/dev/rtape/tape12_BEST
/dev/rtape/tape12_BESTb
/dev/rtape/tape12_BESTn
/dev/rtape/tape12_BESTnb
For a particular SCSI device, you can decode the SCSI bus ID and the drives SCSI ID and LUN ID
from the lunpath hardware path. For example:
Class
I Lun H/W Path
Driver S/W State
H/W Type
Health Description
=====================================================================================
tape
0 64000/0xfa00/0x16
estape CLAIMED
DEVICE
online HP
Ultrium n-SCSI
0/3/1/1.0x3.0x0
The lunpath hardware path for the above tape drive is 0/3/1/1.0x3.0x0.
SCSI bus ID is 0/3/1/1 (including all the numbers separated by /).
From the remaining 0x3.0x0 portion:
Tape drive SCSI ID = 3 (decimal value from hexadecimal 0x3)
Tape drive SCSI LUN = 0 (decimal value from hexadecimal 0x0)
Fibre Channel drives have a slightly different format in ioscan output, similar to the following
segment:
Class
I Lun H/W Path Driver S/W State
H/W Type
Health Description
===============================================================================
tape
10 64000/0xfa00/0x14
estape CLAIMED
DEVICE
online HP
Ultrium n-SCSI
0/4/1/0.0x50060b0000b7f3c8.0x0
/dev/rtape/tape10_BEST
/dev/rtape/tape10_BESTb
/dev/rtape/tape10_BESTn
/dev/rtape/tape10_BESTnb
For a given FC device, the FC bus ID, the World Wide Name (WWN) and the LUN ID can be
decoded from the Lun H/W Path. For example:
1. Note that device files (such as /dev/rtape/tape9_BEST) may or may not be in place initially.
HP LTO Ultrium 2 & 3 drives UNIX, Linux and OpenVMS configuration guide
11
Adding stape and schgr (autoloader driver) to the kernel using sam
For HP-UX 11i v1, 11i v2
If your tape drive or autoloader does not appear in ioscan listing or is listed with H/W Type
UNKNOWN you may need to install the appropriate drivers.
Use the sam utility. Sam runs as a mouse driven GUI (Figure 1) on a system with full graphics
capability, or as a console text-based interface (Figure 2). If you use the text-based interface, use the
Tab and arrow keys to navigate, and the Return key to select.
Figure 1 SAM GUI
12
HP LTO Ultrium 2 & 3 drives UNIX, Linux and OpenVMS configuration guide
13
3. Highlight the stape driver. If the driver has not been added to the kernel, both Current State
and Planned State will read unused.
4. Type m to modify the stape driver and s to set it to static. The Planned State will now read
static.
5. The stape driver is now added to the kernel.
6. If you are going to attach an autoloader, use a similar procedure to change schgr to static.
7. Reboot the system.
This will attempt to launch a web browser. Mozilla browser1 is the default when HP-UX 11i v3 is
installed.
2. From the SMH Tools page (see Figure 3), select Modules from the Kernel Configuration section.
Figure 3 SMH web-based interface (HP-UX11i v3)
3. In the Search box on the Kernel Configuration page, type stape and execute the search.
The search results list will include both estape and stape modules. If either of these modules is
not installed both Current State and Next Boot State will be shown as unused. A state of
static indicates that the module is installed.
1. If Mozilla is being invoked for the first time you may be asked to agree to license terms for the software.
14
4. Select the estape module1 radio button. Its details will appear in a panel below the modules
list. From the right hand panel on the web page, click the Modify Module link.
5. On the Modify Kernel Module: estape page, for Next Boot State, select the static radio button.
Check the box entitled Backup to create a backup copy of the existing kernel (see Figure 4).
Figure 4 Adding estape driver to the kernel
6. If you wish, type in a Reason for Change, such as Initial estape installation May
1st 2007 and then select the Modify tab.
7. Click the OK button at the Operation Successful page. Both estape and stape drivers will
now be shown with Next Boot State as static.
8. For autoloaders, use a similar procedure to prepare the eschgr (with schgr ) module.
9. From the right-hand panel on the Kernel Configuration page, click View Pending Changes and
reboot and proceed to reboot the system as directed.
10.Following the reboot ,re-run SMH and search again for the driver as in step 3 above. Current
State and Next Boot State should both be listed as static.
1. The estape and stape modules are linked, so it is sufficient to select the estape module alone for installation.
HP LTO Ultrium 2 & 3 drives UNIX, Linux and OpenVMS configuration guide
15
Peripheral Devices
Tape Drives
sam will then scan the system for any tape drives connected.
For example, when an HP LTO Ultrium 2 drive is found, it will be displayed as something like:
Hardware Path
Driver
Description
===========================================================
8/0/2/0.3.0
stape
HP Ultrium 2-SCSI
3. Highlight the drive and select the following from the tool bar:
Actions
Create Device Files
Create Default Device Files
This will create default device files for the drive. To view the device files that have been created,
select:
Actions
Create Device Files
Show Device Files
4. When you have exited sam , run ioscan to see the tape drive:
%/sbin/ioscan fnC tape
smh w
This will attempt to launch a web browser. Mozilla browser1 is the default when HP-UX 11i v3 is
installed.
2. From the SMH Tools page (see Figure 3 on page 14), select Manage Peripheral Devices from
the Peripheral Devices section.
1. If Mozilla is being invoked for the first time you may be asked to agree to license terms for the software.
16
3. Select tape from the Class drop down box on the HP-UX Peripheral Device Tool page. Select the
tape device (radio button) requiring device files from the resulting list. If device files are not
already present this will be indicated under the Properties header (see Figure 5)1.
Figure 5 Selecting a tape device to create its device files (Agile View)
4. From the right-hand panel on the HP-UX Peripheral Device Tool page, click on Reinstall Device
Files. At the next page, click the Reinstall button. When the browser returns to the HP-UX
Peripheral Device Tool page, click the Refresh button one or more times until the list of device
files appears under the Properties header.
What next?
Once device files have been created, you should confirm that your new tape drive is working
properly. Chapter 8 on page 37 provides instructions on backing up and restoring a sample file to
test your installation.
1. Depending on how SMH was last used the HP-UX Peripheral Device Tool page will display either the Agile View or the
Legacy View as described at the beginning of this chapter (page 9). To switch between these views use the Toggle
Global Device View link on the right hand side of the HP-UX Peripheral Device Tool page. In this chapter, the Agile View
is assumed. The process is similar for the Legacy View.
HP LTO Ultrium 2 & 3 drives UNIX, Linux and OpenVMS configuration guide
17
18
Device
Status
Online
Error
Count
0
Volume
Label
0
""
00000000
0
default
Operations completed
0
Owner UIC
[SYSTEM]
Dev Prot
S:RWPL,O:RWPL,G:R,W
Default buffer size
2048
Format
Normal-11
What next?
You are now ready to begin using your tape drive. Please consult your OpenVMS system
documentation for details.
HP LTO Ultrium 2 & 3 drives UNIX, Linux and OpenVMS configuration guide
19
20
What next?
Once device files have been created, you should confirm that your new tape drive is working
properly. Please consult your Tru64 operating system documentation and Chapter 8 on page 37 for
instructions on testing your installation.
HP LTO Ultrium 2 & 3 drives UNIX, Linux and OpenVMS configuration guide
21
22
This will produce output similar to the following for each device:
Attached Devices
Host: SCSI0 Channel: 00 Id:00 Lun:00
Vendor: HP Model -----------Type: Direct-Access ANSI SCSI Revision 02
Size
4376
7200
30792
53316
24656
52096
136184
Used by
1
0
1
1
0
1
2
The tape driver. Its presence shows that the tape driver is loaded.
sym53c8xx The SCSI chipset driver for the LSI Logic family of HBAs (amongst others).
aic7xxx
The SCSI chipset driver for the Adaptec 7xxx chipset family (such as Adaptec
29160LP).
Latest SCSI controller drivers for Linux are available from the manufacturers web site.
In order to communicate with a tape device, the operating system needs to have drivers for the tape
and the underlying transport mechanism (the host bus adaptor) loaded. Ensure that both are
available as either loadable modules (for example, usable with insmod and visible with lsmod)
or are statically built into your kernel.
HP LTO Ultrium 2 & 3 drives UNIX, Linux and OpenVMS configuration guide
23
NOTE: To add drivers to the statically built kernel you need the Linux source code available on disk
and knowledge of how to use the kernel building tools that ship with various Linux distributions. This
should not be attempted by novice users.
In order to determine if the drive has been detected by the tape driver at module load time, execute:
dmesg | grep "st"
to load it. This should happen naturally if your system is rebooted after attaching the drive.
When the ST driver module has been added, a list of tape device files will be created
automatically. They reside in the /dev/ directory and have the syntax:
/dev/stp or dev/nstp
where:
p
Instance number of the device file (0 if only one drive is connected to the system)
To enable large transfers under Linux (>64 KB per write), edit the file
/usr/src/linux/drivers/scsi/st_options.h and change the definition of
ST_BUFFER_BLOCKS.
If you want requests to space to end of data (EOD) to be faster, you should also enable
ST_FAST_MTEOM in the same file. After changing this file, rebuild the modules and install the new
binary. At the very least, this requires:
make modules
make modules_install
What next?
Once device files have been created, you should confirm that your new tape drive is working
properly. Chapter 8 on page 37 provides instructions on backing up and restoring a sample file to
test your installation.
HP LTO Ultrium 2 & 3 drives UNIX, Linux and OpenVMS configuration guide
25
26
The SCSI ID is in the series 00-00-0S-X,0, where X is the SCSI ID. Review the list of existing SCSI
IDs and choose an available ID to assign to the new tape drive.
If no device has been configured at this address before, select add a tape drive to set
up the address.
Otherwise, select change/show characteristics of a tape drive
HP LTO Ultrium 2 & 3 drives UNIX, Linux and OpenVMS configuration guide
27
Select ost or Other SCSI tape drive as the tape drive you wish to change.
If no device has been configured at this address before, choose connection addresses as
appropriate.
4. The following details are displayed:
If no device has been configured at this address before, select add a tape drive to set
up the address.
Otherwise, select change/show characteristics of a tape drive
3. A pop-up window is displayed:
Select ost or Other SCSI tape drive as the tape drive you wish to change.
If no device has been configured at this address before, choose connection addresses as
appropriate.
4. The following details are displayed:
HP LTO Ultrium 2 & 3 drives UNIX, Linux and OpenVMS configuration guide
29
Once device files have been created, you should confirm that your new tape drive is working
properly. Chapter 8 on page 37 provides instructions on backing up and restoring a sample file to
test your installation.
Rewind on Close
Retension on Open
Compression
/dev/rmtn
Yes
No
enabled
/dev/rmtn.1
No
No
enabled
/dev/rmtn.2
Yes
Yes
enabled
/dev/rmtn.3
No
Yes
enabled
/dev/rmtn.4
Yes
No
disabled
/dev/rmtn.5
No
No
disabled
/dev/rmtn.6
Yes
Yes
disabled
/dev/rmtn.7
No
Yes
disabled
The n in the filename is the instance number assigned to the drive by the operating system, where 0
is the first device, 1 is the second and so on.
30
Rewind on Close
Normally, the drive repositions the tape to BOT (Beginning of Tape) when the
device file is closed. Using the no rewind option is useful when creating and
reading tapes that contain multiple files.
Retension on Open
Compression
tape
connected
configured
unknown
This indicates that the drive is configured and the device files built. In this example
c3::50060b000xxxxxxx is the attachment point identifier with 50060b000xxxxxxx being
the WWN of the drive port attached to the SAN and visible to the HBA.
If you do not see anything similar to the example above, recheck the SAN connections and the
zoning configuration to ensure that the HBA and drive ports are visible to each other.
If the tape device shows as unconfigured, type the following:
% cfgadm -c configure c3::50060b000xxxxxxx
This will build the necessary device file in the /dev/rmt directory.
To verify the particular devices associated with a specific WWN then use the following command.
% ls -al /dev/rmt | grep 50060b000 xxxxxxx
SCSI drives
Determining the SCSI ID
Before you configure your system to support an HP LTO Ultrium drive, determine which SCSI ID to
use. IDs must be unique for each device on attached to the SCSI bus.
1. Use the modinfo command to identify SCSI controller drivers installed on the system:
# modinfo | grep "HBA Driver"
HP LTO Ultrium 2 & 3 drives UNIX, Linux and OpenVMS configuration guide
31
102b3
1272c
50
228
1
1
For the adapter to which the new tape drive is attached, you need to determine what SCSI IDs
are already used.
2. Determine the SCSI IDs of existing devices attached to the SCSI controller:
For all adapters:
# dmesg | egrep ".*xxx.*target" | sort | uniq
where xxx = the type of adapter (esp, glm, fas, qus or isp), as appropriate.
For example, for an ESP-based adapter:
# dmesg | egrep ".*esp.*target" | sort | uniq
This indicates that SCSI IDs 0 and 6 are used for existing devices. SCSI ID 7 is generally used for
the adapter itself. Here, you would choose a SCSI ID from 1 to 5 for the new tape drive.
where X is the SCSI ID. Identify the line for the tape drive. For example, if the drive was at SCSI ID 2,
look for the line containing st@2,0. This might be as follows (but on a single line):
lrwxrwxrwx 1 root root 63 Mar 1 00:00 /dev/rmt/0m
../../devices/sbus@1f,0/espdma@e,8400000/esp@e, 8800000/st@2,0:m
Here you could use /dev/rmt/0m (shown underlined above) as the device file.
For optimal performance, ensure that you have the following minimum patch number:
Minimum patcha
Solaris 8
108725-13
Solaris 9
113277-11
Solaris 10
Generic_118822-30
Upgrading to the minimum patch level will ensure that the necessary support for officially supported
drives is included in the driver. You can view your existing patch level using the command
uname -a. To access Solaris patch upgrades, you need to set up an Online Account with Sun.
For additional information on changes to Solaris 8, 9 and 10 Software Update access, see
SunSolve InfoDoc #83061 at
http://sunsolve.sun.com/search/document.do?assetkey=1-9-83061-1
If for some reason you cannot upgrade to the minimum patch level, you can make the following file
modifications to enhance performance:
32
"@(#)st.conf
1.6
93/05/03 SMI"
add the following depending on which version of operating system you are installing (there are
6 significant spaces between HP and Ultrium in line 2):
where X is the SCSI target address of the device you have attached.
LTO 3 drives:
tape-config-list =
"HP
Ultrium 3","HP Ultrium LTO 3","HP_LTO_GEN_3";
HP_LTO_GEN_2 = 1,0x36,0,0xd639,4,0x00,0x00,0x00,0x44,3;
name="st" class="scsi"
target=X lun=0;
where X is the SCSI target address of the device you have attached.
where X is the SCSI target address of the device you have attached.
See HP-data values on page 34 below for the values of the parameters in these lines.
LTO 3 drives:
tape-config-list =
"HP
Ultrium 3","HP Ultrium LTO 3","HP_LTO_GEN_3";
HP_LTO_GEN_2 = 2,0x3B,0,0x18659,4,0x44,0x44,0x44,0x44,3,60,1200,
600,1200,600,600,18000;
name="st" class="scsi"
target=X lun=0;
where X is the SCSI target address of the device you have attached.
See HP-data values on page 34 below for the values of the parameters in these lines.
HP LTO Ultrium 2 & 3 drives UNIX, Linux and OpenVMS configuration guide
33
2. If you are replacing an existing tape device on the same SCSI ID, remove the contents of the
/dev/rmt directory as follows:
# cd /dev/rmt
# rm *
For further details, see How do you load st.conf changes without rebooting, SunSolve
document 18010, on
http://sunsolve.sun.com/search/document.do?assetkey=1-9-18010-1&searchclause=18010
4. You should now be able to use the drive.
Use /dev/rmt/Xcb if you require a compression rewind device file, where X is the
relevant device address.
Use /dev/rmt/Xcbn when you require a compression non-rewind device.
Once the device files have been created, you should confirm that your new tape drive is working
properly. Chapter 8 on page 37 provides instructions on backing up and restoring a sample file to
test your installation.
HP-data values
The values for HP_LTO_GEN_n and name, which provide normal LTO mode, have the following
meanings:
The syntax for HP_LTO_GEN_n on Solaris 8/9/10 is:
<drive type> = <version>, <type>, <bsize>, <options>,
<no. of densities>, <density 0>, <density 1>,
<density 2>,<density 3>, <default density>,
<non-motion timeout>, <read/write timeout>,
<rewind timeout>, <space timeout>, <load timeout>,
<unload timeout>, <erase timeout>
34
where:
Parameter
Value
Meaning
<version>
1 or 2
<type>
0x36 or
0x3B
<bsize>
<options>
0x008
0x010
0x020
0x040
HP LTO Ultrium 2 & 3 drives UNIX, Linux and OpenVMS configuration guide
35
Parameter
Value
Meaning
<density
n>
0x00
<density
3>
LTO 2: 0x42 The density code for data compression enabled by default.
LTO 3: 0x44
<default
density>
Density 3 (0x42 for LTO 2 drives, 0x44 for LTO 3 drives) is the
default.
All timeouts are in seconds
<X
timeout>
36
Value
Meaning
target
lun
HP LTO Ultrium 2 & 3 drives UNIX, Linux and OpenVMS configuration guide
37
The arguments follow the cvf options in the command line. Their values depend on the
operating system; suggested values are given the appropriate operating system chapter.The
arguments are as follows:
<device file>
<file>
NOTE: Make sure you prefix the file name with . when you back it up to tape. If you do not, the
restore operation in step 3 will overwrite the original copy on disk.
3. Read the file back from tape:
% cd /tmp
% tar xvf <device file>
This compares the files byte by byte. If they are the same, there should be no output, and this
verifies that the installation is correct. The arguments are:
<original file>
<retrieved file> The name of the file retrieved from the archive.
Example: stand/vmunix
Example
Suppose you are verifying the installation of an HP LTO Ultrium tape drive on an HP-UX 11.X system.
The procedure would be as follows.:
1. Use ioscan to obtain the tape drive device file options:
%/sbin/ioscan -fnC tape
HP LTO Ultrium 2 & 3 drives UNIX, Linux and OpenVMS configuration guide
39
40
Glossary
AT&T mode
Berkeley and AT&T functional modes differ in read-only close functionality. In AT&T
mode, a device close operation will cause the tape to be repositioned just after next
filemark on the tape (the start of the next file).
Berkeley mode
BOT
Beginning Of Tape. The first point on the tape that can be accessed by the drive.
buffered mode
A mode of data transfer in write operations that facilitates tape streaming. It is selected
by setting the Buffered Mode Field to 1 in the SCSI MODE SELECT Parameter List
header.
compression
data transfer phase On a SCSI bus, devices put in requests to be able to transfer information. Once a
device is granted its request, it and the target to which it wants to send information can
transfer the data using one of three protocols (assuming both devices support them):
asynchronous, synchronous, and wide.
In asynchronous transfers, the target controls the flow of data. The initiator can only
send data when the target has acknowledged receipt of the previous packet. All SCSI
devices must support asynchronous transfer.
In synchronous data transfer, the initiator and target work in synchronization, allowing
transmission of a packet of data to start before acknowledgment of the previous
transmission.
In wide (16-bit) data transfer, two bytes are transferred at the same time instead of a
single byte.
HP Ultrium drives support asynchronous, synchronous and narrow (8-bit) wide
transfers.
HP LTO Ultrium 2 & 3 drives UNIX, Linux and OpenVMS configuration guide
41
fibre channel
filemark
A mark written by the host to the tape that can be searched for, often using the drives
fast-search capability. It does not necessarily separate files. It is up to the host to assign
a meaning to the mark.
immediate mode
A mode of responding to SCSI commands where the drive or other peripheral does not
wait until the command has finished before returning status information back to the
host. For writing filemarks, Immediate mode can significantly improve the performance
of systems that do not set the Immediate bit when sending a SCSI WRITE FILEMARKS
command. On the other hand, data is not flushed to tape in response to a filemark
command.
infinite flush
By default, the buffer in the drive is flushed every 5 seconds. Infinite flush avoids
frequent starting and stopping of the mechanism when using a very slow application.
It also avoids losing capacity through the flushing of partly written groups. On the
other hand, infinite flush means that data can remain in the buffer for very long
periods of time, and could be lost in the event of a power failure.
LUN
Logical Unit Number. A unique number by which a device is identified on the SCSI
bus. A tape drive has a fixed LUN of 0. In an autoloader, the changer mechanism is
LUN1.
SAN
sequential access
Sequential access devices store data sequentially in the order in which it is received.
Tape devices are the most common sequential access devices. Devices such as disk
drives are direct access devices, where data is stored in blocks, not necessarily
sequentially. Direct access allows speedy retrieval, but is significantly more costly.
42
Index
A
immediate mode 42
infinite flush 42
installation, verifying 37
agile addressing 9
AIX 27
ANSI 3
asynchronous data transfer 41
AT&T mode 41
L
Linux 23
determining SCSI ID 23
LUN 42
B
Berkeley mode 41
BOT 41
buffered mode 41
M
mode
AT&T 41
Berkeley 41
immediate 42
C
compression 41
confirming installation 37
data transfer 41
device files
AIX 30
IBM (AIX) 27
Sun workstations 32
direct access 42
documents, related 3
dsf formats 9
P
persistent dsf 9
F
fibre channel 42
filemarks 42
filenames under AIX 30
H
HP Alpha 21
HP-UX systems 9
determining attached devices 9
I
IBM (AIX) 27
determining SCSI ID 27
device files 27
SAN 42
SCSI 3
SCSI ID, determining
IBM (AIX) 27
Linux 23
Sun workstations 31
sequential access 42
storage area network 42
Sun workstations
data values 34
determining SCSI ID 31
device files 32
synchronous data transfer 41
systems
HP-UX 9
Linux 23
HP LTO Ultrium 2 & 3 drives UNIX, Linux and OpenVMS configuration guide
43
V
verifying installation 37
W
wide data transfer 41
44