IBM Tape Device Drivers
IBM Tape Device Drivers
IBM Tape Device Drivers
GC27-2130-09
IBM Tape Device Drivers
GC27-2130-09
Note!
Before using this information and the product that it supports, be sure to read the general information under “Notices” on
page 323.
Related Information
Reference material, including the Adobe® PDF version of this publication, is
available at the following url: http://www-01.ibm.com/support/
docview.wss?rs=577&uid=ssg1S7002972
A companion publication covering programming aspects for the device drivers is:
Current® Products
IBM TotalStorage Enterprise Tape System 3592 Publications
The following publications relate to the IBM TotalStorage® Enterprise Tape System
3592:
v IBM TotalStorage Enterprise Tape System 3592 Operator Guide, GA32-0465
v IBM TotalStorage Enterprise Tape System 3592 Introduction and Planning Guide,
GA32-0464
v IBM TotalStorage Silo Compatible Tape Frame 3592 Introduction, Planning, and User's
Guide, GA32-0463
v IBM TotalStorage Enterprise Tape System 3592 Hardware Reference, GA32-0466
AIX
The following URL points to information about IBM System p® (also known
asERserver pSeries®) servers:
http://www-1.ibm.com/servers/eserver/pseries
HP-UX
The following URL relates to HP HP-UX systems:
http://www.hp.com
Linux
The following URLs relate to Linux® distributions:
http://www.redhat.com
http://www.suse.com
Solaris
The following URL relates to Sun Solaris systems:
http://www.sun.com
Microsoft Windows
The following URL relates to Microsoft® Windows® systems:
http://www.microsoft.com
Legacy Products
IBM TotalStorage Ultrium External Tape Drive 3580
The following publications relate to the IBM TotalStorage Ultrium External Tape
Drive 3580:
v IBM 3580 Ultrium Tape Drive Setup, Operator, and Service Guide, GA32-0415
Preface xi
IBM TotalStorage 3582 Tape Library (also known as IBM
TotalStorage Ultrium Tape Library 3582)
The following publications relate to the IBM TotalStorage 3582 Tape Library:
v IBM TotalStorage 3582 Tape Library Setup, Operator, and Service Guide, GA32-0458
Preface xiii
Tru64
The following URL points to information about Tru64 systems:
http://www.hp.com
SGI
The following URL relates to SGI systems:
http://www.sgi.com
Other Publications
IBM Storage Area Network Data Gateway Installation and User's Guide, SC26-7304
Additional Information
The following publication contains additional information related to the IBM tape
drive, medium changer, and library device drivers:
v American National Standards Institute Small Computer System Interface
X3T9.2/86-109 X3.180, X3B5/91-173C, X3B5/91-305, X3.131-199X Revision 10H,
and X3T9.9/91-11 Revision 1
Note: When selecting the page range for the section you wish to print, note that
the print page range is based on the page controls for Adobe Acrobat, not
the page printed on the actual document. Enter the Adobe page numbers to
print.
Attention: There is only one Table of Contents and one Index for this entire book.
If you wish to print those items, you must repeat the process above, entering the
page range for the Table of Contents and the Index page range, respectively.
Preface xv
xvi IBM Tape Device Drivers Installation and User’s Guide
Chapter 1. Introduction
| This publication describes the IBM Tape and Medium Changer Device Drivers and
| IBM Tape Diagnostic Tool (ITDT) for various operating systems. Not all devices are
| supported by ITDT and all operating systems drivers. Refer to the specific chapters
for details.
Purpose
The IBM tape and medium changer device drivers are designed specifically to take
advantage of the features provided by the IBM tape drives and medium changer
devices. The goal is to give applications access to the functions required for basic
tape functions (such as backup and restore) and medium changer operations (such
as cartridge mount and demount), as well as to the advanced functions needed by
full tape management systems. Whenever possible, the driver is designed to take
advantage of the device features transparent to the application. Please note that
some independent software vendor (ISV) applications have certain device driver
requirements. Before you install the device drivers, please refer to the ISV web site
for their support to find out what device drivers should be used for the ISV.
Current Products
Figure 1 on page 2 illustrates the attachment of various current products to an
open systems server.
3
2
4
11
5
System
Storage
10
6
8
9
7
SystemSto
rage
dd000004
Figure 1. Current Attachment Array
Medium
IBM Changer
Tape Drive Robot
Open
Systems
Server Tape
IBM Cartridges
IBM Tape Library
Tape Drive
a250116
IBM Tape Device Driver
The IBM System Storage TS2240 Tape Drive is an excellent tape storage solution
for businesses requiring backup or low-cost, real-time archival storage of their
data. The TS2240, with a half-high form factor, offers the same high capacity of
full-high LTO 4 tape drives. The TS2240 has a physical storage capacity of up to 1.6
TB (with 2:1 compression) in conjunction with the IBM System Storage LTO
Ultrium 800 GB data cartridge, which provides up to double the capacity of
Ultrium 3 cartridges. The native data transfer performance of the TS2240 Tape
Drive has increased over the previous LTO half-high generation to up to 120
MB/sec. The TS2240 Tape Drive continues to provide an excellent alternative to
Chapter 1. Introduction 3
Introduction
slower and smaller capacity 1/4-inch, 4 mm and 8 mm DLT/SDLT tape drives. The
TS2240 provides added security features by supporting encryption of data with 3
Gbps SAS connectivity.
| The IBM System Storage TS2250 Tape Drive is an excellent tape storage solution
| for businesses requiring backup or low-cost, real-time archival storage of their
| data. The TS2250, with a half-high form factor, offers the same high capacity of
| full-high LTO 5 tape drives. The TS2250 has a physical storage capacity of up to 3.0
| TB (with 2:1 compression) in conjunction with the IBM System Storage LTO
| Ultrium 1500 GB data cartridge for LTO5, which provides nearly double the
| capacity of IBM System Storage LTO Ultrium 800 GB data cartridge for LTO4. The
| native data transfer performance of the TS2250 Tape Drive has increased over the
| previous LTO half-high generation to up to 140 MB/sec. The TS2250 Tape Drive
| continues to provide an excellent alternative to slower and smaller capacity
| 1/4-inch, 4 mm and 8 mm DLT/SDLT tape drives. The TS2250 provides added
| security features by supporting encryption of data with 6 Gbps SAS connectivity.
| The IBM System Storage TS2350 Tape Drive [also known as IBM LTO5] is a
| high-performance, high-capacity data-storage device for the midrange open
| systems environment. It is designed to increase maximum tape drive throughput
| native data rate performance up to 140 MB/sec compared to the IBM LTO
| generation 4 Tape Drive (Ultrium 4) at 120 MB/sec native data transfer rate. In
| addition, with the use of the new IBM LTO Ultrium 1500 GB Data Cartridge, the
| Ultrium 5 Tape Drive doubles the tape cartridge capacity up to 1500 GB native
| physical capacity (3000 GB with 2:1 compression). It is available with Small
| Computer System Interface (SCSI) or Serial Attached SCSI (SAS) interface. The
| Ultrium 5 SAS Tape Drive is encryption-capable and designed to support
| Application Managed Encryption.
The IBM LTO Ultrium 3-H Tape Drive and IBM LTO Ultrium 4 Half-High Tape
Drive are high-performance, high-capacity data-storage devices in a half-height
form factor that are designed to backup and restore open systems applications.
Both drives can be integrated into an enclosure, such as a desktop unit, tape
autoloader, or tape library. They are available with a Small Computer Systems
Interface (SCSI) or with a Serial Attached SCSI (SAS) interface. The IBM LTO
Ultrium 3-H Tape Drive has a native storage capacity of 400 GB per cartridge (800
GB at 2:1 compression). The IBM LTO Ultrium 4 Half-High Tape Drive has a native
storage capacity of 800 GB per cartridge (1600 GB at 2:1 compression).
The IBM System Storage TS1130 Tape Drive features storage capability to help you
establish easy access to data, better security, long-term retention and data
governance and regulatory compliance. The TS1130 tape drive offers
high-performance flexible data storage with support for data encryption.
Chapter 1. Introduction 5
Introduction
Drives Model 3592-E05 (Machine Type 3592, Model E05), which are ordered
separately. It comes with 4 Gbps dual-ported switched fabric Fibre Channel
attachment. The TS1120 Tape Drive has a native data transfer rate of up to 100
MB/ sec. per drive.
Legacy Products
IBM TotalStorage Ultrium Scalable Tape Library 3583
The IBM TotalStorage Ultrium Scalable Tape Library 3583 is an automated tape
library that incorporates IBM Ultrium tape drives in either a stand alone or
optional rack mount configuration. Three different library models are available
with storage capacities of 18 through 72 slots and one to six Ultrium tape drives.
The IBM TotalStorage Ultrium Scalable Tape Library 3583 can be used for save,
restore and mass storage archives where multi-terabyte capacities are required.
The Model L28 comes with a LVD Ultra160 SCSI attachment, while the Model F28
comes with a Native Switched Fabric Fibre Channel attachment, for connection to a
wide spectrum of open systems servers.
Note: The 3590 drive has two Fibre Channel addressing modes. When attaching an
open systems server to a 3590 Fibre Channel drive, you must use the hard
addressing mode. When attaching a 3590 drive directly to a host (without a
switch), use lower addresses for hosts and higher addresses for drives.
IBM TotalStorage Virtual Tape Server (Models B10, B18, and B20)
The IBM TotalStorage Virtual Tape Server (VTS) product delivers an increased level
of storage capability to the traditional storage product hierarchy. To the host
software, a VTS subsystem looks like a 3490E Enhanced Capability Tape Subsystem
with associated Cartridge System Tape or Enhanced Capacity Cartridge System
Tape.
Chapter 1. Introduction 7
Introduction
Purpose
This chapter provides general information about the IBM Device Drivers. Refer to
the specific operating system chapters for details on device support.
Supported Hardware
| The tape drivers are developed to support various versions of different platforms.
| For details on supported tape attachment please refer to the System Storage
| Interoperation Center website at
| http://www.ibm.com/systems/support/storage/config/ssic/
Supported Applications
If you use a third party application, consult with your application provider as to
the compatibility with IBMtape.
ftp://service.boulder.ibm.com/storage/tape/lto_isv_matrix.pdf
For detailed requirements for each operating system, refer to the appropriate
chapter. To obtain the most current service and documentation for this software,
refer to Appendix A, “Accessing Documentation and Software Online,” on page
317.
Path Failover is supported on certain tape products with the latest IBM device
drivers available on the following website:
www.ibm.com/support/fixcentral
Automatic Failover
The automatic failover support provides error recovery on an alternate path when
a permanent error occurs on the primary path. This is transparent to the running
application. There are two types of Path Failover, Data Path Failover (DPF) and
Control Path Failover (CPF). They are closely related however the difference is that
DPF is an automatic failover support for the transfer of data, which provides error
recovery for systems connected to tape drives while CPF is an automatic failover
support for the transfer of commands to move tape cartridges. Below are examples
of different configurations that can be constructed.
Mulit-Port Drive
(DPF)
Dual HBA
X Library
(CPF) Drive
Library
Fabric X Drive
Controller
Drive
Dual HBA
Single-Port Drive
(DPF and CPF)
X Drive
Library
Drive
a2500256
Figure 4. Multiple HBA and single ports
Mulit-Port Drive
(DPF)
Single HBA
X Library
(CPF) Drive
Library
Fabric X Drive
Controller
Drive
a2500257
Figure 5. Single HBA and multi-port devices
At startup or configuration, the system detects multiple logical devices of the tape
drive. Each logical device is a physical path to the same tape drive. A backup and
restore application can open and use only one logical device at a time because they
represent the same physical device.
When the path failover support is enabled on all logical devices, the device driver
configures them internally as a single device with multiple paths. The application
can still open and use only one logical device at a time. If an application opens the
primary device and a permanent path error occurs, the device driver initiates
failover error recovery automatically on an alternate path. If successful, the current
operation continues on an alternate path without interrupting the application. The
data path failover error recovery first restores the previous device state, SCSI
Reservation, and tape position, and then retries the failing operation.
For example, consider a machine with two Host Bus Adapters, HBA1 and HBA2,
with multiple tape drives attached. Each tape drive is connected to both HBA1 and
HBA2. Initially, there are no tape drives currently in use. When the first application
opens a tape drive for use, the device driver assigns the application to use HBA1.
When a second application opens a tape drive for use, the device driver assigns
the second application to use HBA2. A third application would be assigned to
HBA1 and a fourth application would be assigned to HBA2. There would be two
applications using HBA1 and two applications using HBA2.
If the first application finishes and closes the device, there would now be one
application using HBA1 and two applications using HBA2. When the next
application opens a tape drive, it would be assigned to HBA1, so again there
would be two applications using HBA1 and two applications using HBA2.
Likewise, if the second application finishes and closes the device, HBA2 would
have one application using it and the next application that opens a tape drive
would be assigned to HBA2.
The dynamic load balancing support is independent from the automatic failover
support. Regardless of the path assigned initially for load balancing, if that path
fails, the automatic failover support attempts recovery on the next available path.
Note:
1. Path failover is not supported on parallel SCSI (except for some parallel
SCSI drives on AIX operating systems). Path Failover is only supported
on SAS devices attached to Windows and Linux for Intel/AMD
processor based servers.
2. Path failover is not supported on Virtual Tape Libraries (except for those
listed in Table 2 on page 13) that emulate IBM tape devices.
Data Encryption
| It is required to use the latest device drivers available. Please refer to Appendix A,
| “Accessing Documentation and Software Online,” on page 317 for downloading
| drivers.
| Note: The abbreviation EKM for the driver configuration file is used generically to
| refer to any encryption key manager.
| It is required to use the latest device drivers available on our web site. Please see
| Appendix A, “Accessing Documentation and Software Online,” on page 317 for
| instructions.
Verify that Drive Encryption Key Manager is set to Tivoli Storage Manager.
| After installing the device driver, then an encryption key manager needs to be
configured. The servers are configured in a text file ibmekm.conf that is installed in
the /etc directory by the device driver if a current configuration file does not
already exist.
The following shows the different entry formats for IPv4 and IPv6 addresses in the
ibmekm.conf configuration file:
v IPv4 format: “EKMserver timeout IPv4_address Port_number”
v IPv6 format: “EKMserver timeout IPv6_address Port_number”
Table 3. Interoperability between IPv4 and IPv6 Clients and Servers (continued)
IPv4 EKM IPv6 EKM IPv4 EKM IPv6 EKM
server IPv4-only server IPv6-only server server
host host dual-stack host Dual-stack host
IPv6 (no) IPv6 (no) IPv6
Client/IPv6-only
host
IPv4 Client IPv4 (no) IPv4 IPv4
dual-stack host
IPv6 Client IPv4 IPv6 (no) IPv6
dual-stack host
The timeout value in seconds is used when a request is sent to the server and the
time for the server to respond in case no response is received.
After configuring servers in the ibmekm.conf file then specific tape drives need to
be configured to the device driver for system-managed encryption. The device
driver default does not enable encryption. Refer to the following sections for
specific information depending on the operating system.
Bulk Rekey
For customers using Library-Managed Encryption with 3592 Enterprise Tape
Drives and IBM tape and changer drivers running on open systems operating
system (AIX, HP-UX, Linux, Solaris, Windows), sample code for performing bulk
rekey operations is available. The sample code packages are provided "as-is" with
limited testing, and are provided to give customers guidance on bulk rekey
operations.
For Unix operating systems, a sample script (rekey_unix.sh) is provided and must
be used in conjunction with the tapeutil version bundled in the same package. For
Windows operating systems, a sample c program (rekey_win.c) is provided. Both
of these sample programs must be used in conjunction with both the IBM tape and
changer drivers. In addition, data cartridges must be located in storage cells, not in
I/O station cells or tape drives.
For more information and to download the sample code packages, see
http://www.ibm.com/support/fixcentral/.
This chapter describes the IBM AIX Enhanced Tape and Medium Changer Device
Driver (Atape) for IBM tape devices.
Purpose
The IBM AIX Enhanced Tape and Medium Changer Device Driver is designed
specifically to take advantage of the features provided by the IBM tape drives and
medium changer devices. The goal is to give applications access to the functions
required for basic tape operations (such as backup and restore) and medium
changer operations (such as mount and demount the cartridges), as well as to the
advanced functions needed by full tape management systems. Whenever possible,
the driver is designed to take advantage of the device features transparent to the
application. Please note that some independent software vendor (ISV) applications
have certain device driver requirements. Before installing the device drivers, please
refer to the ISV web site or their support to find out what device drivers should be
used for the ISV.
Data Flow
The software described in this chapter covers the AIX Enhanced Device Driver
(Atape device driver) and the interface between the application and the tape
device. For data flow, refer to Figure 7.
Product Requirements
The following hardware and software components are supported by IBM.
Hardware Requirements
The following hardware is supported by the Atape device driver:
v One or more of the following IBM RS/6000® or System p (also known as
pSeries) SCSI host bus adapters for libraries containing Ultrium tape drives:
– PCI-X DDR Dual -x4 SAS Adapter (FC 5900 and FC 5912)
– PCI Dual Channel Ultra-3 SCSI Adapter (LVD) (FC 6203)
– PCI Differential Ultra SCSI Adapter (HVD) (FC 6207)
– PCI Universal Differential Ultra SCSI Adapter (HVD) (FC 6204)
– Integrated Ultra2 SCSI Adapter for LVD attachment (with a VHDCI
connector):
- System p (also known as pSeries) 620 (7025 - 6F0, 6F1)
- 7025 - F80
- System p (also known as pSeries) 660 (7026 - 6H0, 6H1, 6M1)
- System p (also known as pSeries) 640 (7026 - B80)
- 7026 - H80, M80
- 7044 - 170, 270
– Integrated Ultra3 SCSI Adapter for LVD attachment (with a VHDCI
connector):
- System p (also known as pSeries) 610 (7028 - 6C1, 6E1)
- System p (also known as pSeries) 630 (7028 - 6C4, 6E4
- System p (also known as pSeries) 650 (7038 - 6M2)
- System p (also known as pSeries) 655 (7039 - 651)
- 9112 - 265
– PCI Dual Channel Ultra-2 SCSI Adapter (LVD) (FC 6205)
– PCI-X Dual Ultra320 SCSI Blind Swap Adapter (FC 5710)
– PCI-X Dual Channel Ultra 320 SCSI Adapter (FC 5712)
– PCI-X Dual Channel Ultra 320 SCSI Adapter (FC 5736)
v One or more of the following IBM RS/6000 or System p (also known as pSeries)
FC-AL host bus adapters for TS1120 tape drives and all IBM libraries:
– Gigabit Fibre Channel Adapter (PCI) (FC 6227)
– Gigabit Fibre Channel Adapter for 64–bit PCI bus (FC 6228)
Note: Using a single Fibre Channel host bus adapter (HBA) for concurrent tape
and disk operations is generally not recommended. Tape and disk devices
require incompatible HBA settings for reliable operation and optimal
performance characteristics. Under stress conditions (high I/O rates for
either tape, disk, or both) where disk and tape subsystems share a common
HBA, stability problems have been observed. These issues are resolved by
separating disk and tape I/O streams onto separate HBAs and using SAN
zoning to minimize contention. IBM is focused on assuring server/storage
configuration interoperability. We strongly recommend that your overall
implementation plan includes provisions for separating disk and tape
workloads.
Software Requirements
The AIX Enhanced Device Driver (Atape device driver) supports AIX 5L™ Version
| 5.3 and later releases on IBM POWER-based AIX servers.
To obtain the most current service and documentation for this software, refer to
Appendix A, “Accessing Documentation and Software Online,” on page 317.
Instructions for uninstalling the device driver are outlined below in “Uninstalling”
on page 26.
0503-292 This update does not fully take effect until after a system reboot.
installp: bosboot process completed.
This message is referring to the updates to the boot record only. If the installation
summary shows that the Atape driver was installed successfully, it is not necessary
to reboot the machine at this time.
If the installation summary shows that the install failed, you should reboot the
machine and attempt to install the Atape driver a second time.
Installation Procedure
For information on obtaining the latest version of device drivers and the latest
documentation, refer to Appendix A, “Accessing Documentation and Software
Online,” on page 317.
Preinstallation Considerations
Before proceeding with the installation, verify the following items:
1. The tape device is properly functioning, properly attached to the server, and is
powered up.
2. You have logged onto the server on an account which has root authority.
3. You have a command shell window open on the server to perform the
installation procedure.
4. Make sure the current path is defined in the command shell PATH variable.
This can be accomplished in the korn shell using the following command:
EXPORT PATH=.:$PATH
5. If the tape device was configured previously by another device driver (not
Atape), remove any existing device definitions for it. The following command
is an example: rmdev -l ost1 -d
Installation Procedure
Enter the following command to list the currently installed Atape.driver version:
lslpp -l Atape.driver
Enter the following command to install the Atape driver in the current directory
for example
installp -acXd Atape.x.x.x.x Atape.driver
Note: If the tape device was configured previously by another SCSI device driver,
such as OST (Other SCSI Tape), issue the following command to remove the
device definition before performing the following steps:
rmdev -l [device]
Deconfigure the medium changer device using one of the following procedures:
1. The first method leaves the device defined in the configuration database. It is
similar to bringing the device offline.
Enter the following command to bring the /dev/smcn medium changer device
offline, but leave it defined in the device database:
rmdev -l smcn
2. The second method brings the medium changer device offline and removes its
definition from the device database.
Enter the following command:
rmdev -l smcn -d
The device driver is not unloaded from the kernel until the last device is
deconfigured.
Uninstalling
Attention: All devices that use the Atape driver must be closed and cannot be in
use when Atape is uninstalled or the uninstall fails.
You can uninstall the Atape device driver using the smit command menu to
uninstall software and selecting Atape.driver or using the following installp
command:
installp -u Atape.driver
Configuration Parameters
The operating parameters for the tape drive and device driver are set and changed
by configuration parameters. The installation defaults are provided for all
parameters initially. The AIX smit command is used to set these parameters when
configuring a device or to change these parameters. The AIX chdev command is
used to change the configuration parameters.
The configuration parameters are used to set the operating mode of the tape drive
| and device driver when a device is opened. These parameters can be queried by an
application. Some parameters can be temporarily changed during the open
subroutine by an application, but they are always restored to the configuration
values when a device is closed. The configuration parameters are:
v Alternate Pathing
v Autoloading
v Emulate autoloader (359x devices only)
v Block size
v Buffered mode (359x devices only)
v Compression
v Fail degraded media (359x devices only)
v Logging
v Maximum size of the log file
v New logical name
v Read error recovery time (359x devices only)
v Record space mode
| v Reservation key
| v Reservation type
v Rewind immediate
| v System encryption
| v System encryption for Write Commands
v Trailer labels
Alternate Pathing
This parameter enables or disables the path failover support when a device is
configured. “Data Path Failover and Load Balancing Support for Tape Drives” on
page 38 for a description of the path failover and failover support.
Autoloading
This parameter enables the autoloading feature of the device driver. It is used with
the autoloading capability of the autoloader, ACF, ACL, or CSL installed on the
tape device.
Note: The autoloading feature is not supported on the IBM 3584 UltraScalable Tape
Library and the IBM 3583 Ultrium Scalable Tape Library with more than one IBM
3580 Ultrium Tape Drive installed.
Note: The autoloading feature is supported only on the following device types and
configurations:
v IBM 3490E Models C11, C22, E01, E11, F01, and F11
v IBM TotalStorage Enterprise Tape System 3590, Models B11, E11, and H11
If the parameter is set to on, then the tape stacker acts as one large virtual tape.
During a read, write, or forward space file operation, no end of tape is detected by
the application. When the end of tape is reached, the device driver automatically
rewinds and unloads the tape, loads the next tape, then continues reading or
writing the next tape. The following conditions are required to use this feature:
v The autoloading parameter must be set to On.
v The cartridge stacker must be loaded with one or more tapes.
v The ACF, ACL, or CSL must be set to Automatic, System, or Random mode.
This feature allows multivolume backups (with commands such as tar) without
prompting for a volume change.
Emulate Autoloader
This parameter controls how the device driver operates when the ACF on the IBM
TotalStorage Enterprise Tape System 3590, the IBM Magstar MP tape device, or the
IBM 3490E Model Fxx is set to Random mode. If this parameter is set to On and the
ACF is in Random mode, the device driver emulates an autoloading tape drive.
When an unload command is sent to the device driver to unload a tape, the tape is
unloaded, returned to the magazine, and the next tape in the magazine is loaded
automatically into the tape drive. If this parameter is set to Off, the normal unload
operation occurs, and the tape remains in the drive.
The emulate autoloader parameter can be used for legacy applications written for
the IBM 3490E Automated Cartridge Loader (ACL) when the IBM TotalStorage
Enterprise Tape System 3590, the IBM Magstar MP 3570, or the IBM 3490 Model F
autoloader is set to Random mode. This eliminates the need to re-configure the
autoloader of the device Random or Automatic operation.
Note: On IBM Magstar MP 3570 Models B02, C02, and C12, this feature is
supported only when the two drives are configured in Split mode, or in Base
mode with only one drive configured and available to AIX. This feature
does not work in Base mode if both drives are in the available state to AIX.
Block Size
This parameter specifies the block size used for read and write operations. A value
of zero is the variable block size. Any other value is a fixed block size.
The installation default is zero (use variable length) except for the IBM 7332 4mm
Tape Cartridge Autoloader, for which the default is a fixed block size of 1024 bytes.
Buffered Mode
When a write command is processed, the data is either stored directly on the
physical tape or buffered in the tape device. Buffering can increase the device
performance.
Compression
Hardware compression is implemented in the device hardware. This parameter
turns the compression feature On and Off. If compression is enabled, then the
effective performance can increase based on the compressibility of the data.
The installation default is Off (do not fail the tape operation if degraded media is
detected).
Logging
This parameter turns the volume information logging on and off. If logging is set
to On, the statistical information about the device and media is saved in a log file
when a tape is unloaded. If logging is set to Off, the information is not saved. This
parameter has no effect on error logging because error logging is always enabled.
For more information, refer to “Device and Volume Information Logging” on page
42.
The installation default is Off (do not limit the read error recovery time).
The SCSI mode is the default mode of operation. When a forward or backward
space record operation is issued to the driver and a filemark is encountered, the
device driver returns -1 and the errno variable is set to input/output error (EIO).
The tape is left positioned after the filemark (the end-of-tape side of the filemark
on the forward space and the beginning-of-tape side of the filemark on the
backward space).
The AIX mode returns the same EIO errno value as the SCSI mode when a filemark
is encountered except that the tape is left positioned before the filemark (the
beginning-of-tape side of the filemark on the forward space and the end-of-tape
side of the filemark on the backward space).
| Reservation type
| This parameter specifies the SCSI Reservation type that will be used by the device
| driver, either a SCSI Reserve 6 command or a SCSI Persistent Reserve command.
| Note: This parameter is not used if the Alternate Pathing (path failover) parameter
| is set to yes. The device driver will use SCSI Persistent Reserve when the
| Alternate Pathing parameter is set to yes.
| Reservation key
| This parameter specifies the SCSI Persistent Reservation key that will be used by
| the device driver when either the Reservation Type parameter is SCSI Persistent
| Reserve and the Alternate Pathing parameter is set to no or when the Alternate
| Pathing parameter is set to yes.
| If the Reservation Key parameter is specified as blank (NULL) then the device
| driver will use an internal unique key for all devices on the host they are
| configured on. Another AIX host sharing the same devices would also have an
| internal unique key for all devices if the Reservation Key parameter was blank
| (NULL).
| If the default above is not used then the Reservation Key value can be specified as
| either a 1-8 character ASCII alphanumeric key or a 1-16 hexadecimal key that has
| the format 0xkey. If less than 8 characters are used for an ASCII key such as host1,
| the remaining characters will be set to 0x00 (NULL). If less than a 16 hexadecimal
| key is used, the remaining bytes will be set to 0x00.
| Note: When specifying a Reservation Key on each host sharing a device, the key
| must be unique to each host.
| Rewind Immediate
This parameter turns the immediate bit On and Off in rewind commands. If it is
set to On, then the rewind tape operation executes faster, but the next command
takes a long time to finish unless the rewind operation is physically complete.
Setting this parameter reduces the amount of time that it takes to close a device for
a Rewind on Close special file.
The installation default is Off (no rewind immediate) except for the IBM 7332 4mm
Tape Cartridge Autoloader, for which the default is On (rewind immediate).
| System encryption
| This parameter specifies if System-Managed Encryption should be used. For more
| information refer to “System-Managed Encryption” on page 40.
Trailer Labels
If this parameter is set to On, then writing a record past the early warning mark
on the tape is allowed. The first write operation to detect EOM fails, and the errno
variable is set to ENOSPC. No data is written during the operation. All subsequent
write operations are allowed to continue until the physical end of the volume is
reached and EIO is returned.
This parameter can also be selected using one of three device special files that
allow trailer-label processing. The special files are rmtx.40, rmtx.41, and rmtx.60,
where x is the name of the device (for example, rmt0.40).
Media Parameters
The ability to set or change media parameters is a tape diagnostic and utility
function, refer to Chapter 9, “IBM Tape Diagnostic Tool (ITDT),” on page 231.
The media parameters can be queried and set by ITDT or the tape diagnostic and
utility function using the Query/Set Parameters option in the window.
Capacity Scaling
This parameter sets the capacity or logical length of the current tape on IBM
TotalStorage Enterprise Tape System 3590, IBM TotalStorage Enterprise Tape
System 3592, or Magstar MP tape subsystems. By reducing the capacity of the tape,
the tape drive can access data faster at the expense of data capacity.
Capacity scaling can be set at 100% for the entire tape (which is the default) or set
at 75%, 50%, or 25% of the tape or any device specific hexadecimal value. For
example on IBM 3592, to change capacity scaling from a 300 GB format tape
(100%) to a 60 GB format tape, select the capacity scaling option, then select the
option to enter a hexadecimal value and enter 35. Capacity scaling remains with
the tape across mounts until it is changed.
Notes:
1. The tape position must be at the start of the tape to change this parameter from
its current value.
2. Changing this parameter destroys any existing data on the tape.
3. Attempting to set capacity scaling that is not supported by a device or the
current media loaded always returns 100% and cannot be changed. For
example, 60 GB media for the IBM 3592 cannot be capacity scaled and is
always 100%.
Associated protect remains only while the current tape is mounted or associated
with the tape drive. It is reset when the tape is unloaded or the tape drive is reset.
Persistent protect remains or persists with the tape across mounts until it is reset.
WORM protect also remains with the tape across mounts, but (unlike persistent
protect) it cannot be reset on the tape. After a tape is WORM protected, it can
never be written on again.
Notes:
1. The tape position must be at the start of the tape to change this parameter from
its current value.
2. Attempting to set logical write protect that is not supported by a device or the
current media loaded always returns "No" and cannot be changed.
Special Files
Once the driver is installed and a tape device is configured and available for use,
access is provided through the special files. These special files, which consist of the
standard AIX special files for tape devices (with other files unique to the Atape
driver), are in the /dev directory.
Note: The asterisk (*) represents a number assigned to a particular device (such as
rmt0).
For tape drives with attached SCSI medium changer devices, the rmt*.smc special
file provides a separate path for issuing commands to the medium changer. When
this special file is opened, the application can view the medium changer as a
separate SCSI device.
Both this special file and the rmt* special file can be opened at the same time. The
file descriptor that results from opening the rmt*.smc special file does not support
the following operations:
v Read
v Write
v Open in Diagnostic mode
v Commands designed for a tape drive
If a tape drive has a SCSI medium changer device attached, then all operations
(including the medium changer operations) are supported through the interface to
the rmt* special file. For detailed information, refer to Table 5.
Table 5. Special Files for Tape Devices
Rewind on Retension on Bytes per Inch Unload on
Special File Name Close (Note 1) Open (Note 2) (Note 3) Trailer Label Close
/dev/rmt* Yes No N/A No No
/dev/rmt*.1 No No N/A No No
/dev/rmt*.2 Yes Yes N/A No No
/dev/rmt*.3 No Yes N/A No No
/dev/rmt*.4 Yes No N/A No No
/dev/rmt*.5 No No N/A No No
/dev/rmt*.6 Yes Yes N/A No No
/dev/rmt*.7 No Yes N/A No No
/dev/rmt*.10 (Note 4) No No N/A No No
Notes:
1. The Rewind on Close special files write filemarks under certain conditions before rewinding.
2. The Retension on Open special files rewind the tape on open only. Retensioning is not performed because these
tape products perform the retension operation automatically when needed.
3. The Bytes per Inch options are ignored for the tape devices supported by this driver. The density selection is
automatic.
4. The rmt*.10 file bypasses normal close processing , and the tape is left at the current position.
5. The rmt*.null file is a pseudo device similar to the /dev/null AIX special file. The input/output control (ioctl) calls
can be issued to this file without a real device attached to it, and the device driver returns a successful
completion. Read and write system calls return the requested number of bytes. This file can be used for
application development or debugging problems.
6. The rmt*.smc file can be opened independently of the other tape special files.
Table 6 shows the attributes of the special file. The asterisk (*) represents a number
assigned to a particular device (such as smc0). The term smc is used for a SCSI
medium changer device. The smc* special file provides a path for issuing
commands to control the medium changer robotic device. For more information,
refer to Table 6.
Table 6. Special Files for Medium Changer Devices
Special File Name Description
/dev/smc* Access to the medium changer robotic device
/dev/smc*.null Pseudo medium changer device
Note: The smc*.null file is a pseudo device similar to the /dev/null AIX special file. The
commands can be issued to this file without a real device attached to it, and the device
driver returns a successful completion. This file can be used for application development
or debugging problems.
The file descriptor that results from opening the smc special file does not support
the following operations:
v Read
v Write
v Commands designed for a tape device
When the AIX operating system is booted, the HBA performs a device discovery
and assigns a default logical name to each device found in a sequential order. For
example, if there are three tape drives attached to a parallel SCSI adapter, each
with a LUN ID of 0 and a target address of 0, 1, and 2 respectively, the HBA
would initially configure them as Available with the following logical names:
On the next reboot, for example, if the existing rmt1 target 1 device is powered off
or not connected, the HBA would initially configure two devices as Available with
the following logical names:
If the previous rmt1 target 1 device is powered on after reboot and the cfgmgr
command is run, the HBA configures the device as rmt2 instead of rmt1:
This is one example, but there are other cases where the logical names of devices
could change when the system is rebooted. For applications that need a consistent
naming convention for all attached devices, this is accomplished with persistent
naming support by defining a unique logical name (other than the AIX default
names) that are associated with the specific SCSI ID, LUN ID, and HBA that the
device is connected to.
For example, a default rmt0 logical name for a tape drive could be changed to
rmt-0, tape0, or any descriptive name desired. In this example, if the three tape
drives are changed to rmt-0, rmt-1, and rmt-2 respectively, and the system is then
rebooted with rmt-1 powered off, the HBA detects that there are unique names
predefined for the attached devices, and the HBA uses those names. In this case,
the devices would configure as follows:
Since rmt-1 is not detected by the HBA but has been predefined at the SCSI ID and
LUN ID, it remains in the defined state and is not configured for use, but the next
rmt-2 tape drive configures as the same name at the same location after reboot.
Note: When path failover is enabled, changing the logical name for either a
primary or alternate device only changes that individual device name.
The Atape device driver path failover support configures multiple physical control
paths to the same logical library within the device driver and provides automatic
failover to an alternate control path when a permanent error occurs on one path.
This is transparent to the running application.
To enable or disable the support on a single logical device, use the smit menu to
Change/Show Characteristics of a Tape Drive, select the logical device to change
such as smc0, smc1, and so on, then select Yes or No for Enable Path Failover
Support. The support can also be enabled or disabled using the chdev command,
for example:
chdev -l smc0 -aalt_pathing=yes
chdev -l smc1 -aalt_pathing=yes
chdev -l smc0 -aalt_pathing=no
chdev -l smc1 -aalt_pathing=no
When a second logical device is configured with path failover support enabled for
the same physical device, it configures as an alternate path. On SCSI attached
devices, -A is appended to the location field. On Fibre attached devices, -ALT is
appended to the location field of the device.
A third logical device is also configured as an alternate path with either -A or -ALT
appended, and so on. The device driver supports up to 16 physical paths for a
single device.
For example, you can easily determine how many physical devices are configured
with path failover support.
Note: Display the primary and alternate path configuration for any device using
tape diagnostic and utility functions, refer to Chapter 9, “IBM Tape
Diagnostic Tool (ITDT),” on page 231.
Logical devices that are configured as primary paths can also be unconfigured and
reconfigured at any time after initial configuration is run. However, the operation
is different for a primary device. When a primary device is unconfigured, the
following events occur:
1. All alternate devices are unconfigured as described previously.
2. The primary device is unconfigured.
3. The -P or -PRI appended to the location field is removed.
These methods provide the ability to unconfigure and reconfigure physical devices
on the system when device connections or addressing changes are made.
Data Path Failover and Load Balancing Support for Tape Drives
Notes:
1. Some devices require a path failover feature code installed prior to enabling the
path failover support in the Atape device driver. Refer to “Automatic Failover”
on page 10 for what feature code may be required for your machine type.
2. DPF keys do not need to be added if you are running the latest drive code on
Ultrium-3 and Ultrium-4 drives.
3. This function is not supported for devices that are attached through an IBM
San Data Gateway or on the IBM Virtualization Engine TS7510.
4. The AIX operating system only supports a static configuration of devices,
which also applies to the Path Failover and Failover Support. When devices are
initially configured at a specific SCSI ID and physical connection (drive port,
host bus adapter, and switch number/port, if applicable) and in the Available
state, changing the physical device address/connection without either rebooting
or unconfiguring and reconfiguring the devices has unpredictable results and is
not supported.
Path failover support can be enabled on all configured devices at one time, or it
can be enabled or disabled selectively by logical device. It may be desirable at
times to configure some, but not all, logical paths to a device with the support
enabled.
To enable the support globally on all currently configured devices, run the
command:
/usr/lpp/Atape/instAtape -a
This unconfigures all devices that have path failover set to No, and reconfigures all
devices, setting path failover to Yes.
To enable or disable the support on a single logical device, use the smit menu to
Change/Show Characteristics of a Tape Drive, then select Yes or No for Enable
Path Failover Support. The support can also be enabled or disabled using the
chdev command, for example:
chdev -l rmt0 -aalt_pathing=yes
For example, if rmt0 is configured first, then rmt1, the lsdev -Cc tape command
output is similar to the following:
rmt0 Available 20-60-01-PRI IBM 3590 Tape Drive and Medium Changer (FCP)
rmt1 Available 30-68-01-ALT IBM 3590 Tape Drive and Medium Changer (FCP)
If rmt1 is configured first, then rmt0, the command output is similar to the
following:
rmt0 Available 20-60-01-ALT IBM 3590 Tape Drive and Medium Changer (FCP)
rmt1 Available 30-68-01-PRI IBM 3590 Tape Drive and Medium Changer (FCP)
To see this, run the lsdev -Cc tape command and look at the location field in the
data. By running lsdev -Cc tape | grep PRI, for example, you can easily determine
how many physical devices on the RS/6000 or System p (also known as pSeries)
server are configured with path failover support.
Logical devices that are configured as primary paths can also be unconfigured and
reconfigured at any time after initial configuration is run. However, the operation
is different for a primary device. When a primary device is unconfigured, the
following events occur:
1. All alternate devices are unconfigured as described previously.
2. The primary device is unconfigured.
3. The PRI appended to the location field is removed.
4. The device is changed to the Defined state.
5. All alternate devices that were unconfigured are reconfigured. The first device
that is reconfigured becomes the new primary device. All remaining alternate
devices are reconfigured as alternate paths.
These methods provide the ability to unconfigure and reconfigure physical devices
on the system when device connections or addressing changes are made.
System-Managed Encryption
The wrt_encryption attribute controls whether the device driver can set the tape
drive to encryption enabled for write commands. When set to off, the tape drive
uses encryption for read operations; write operations do not use encryption. When
set to on, the tape drive uses encryption for both read/write operations. When set
to custom, the device driver does not modify current tape drive setting. The
custom setting is intended for applications using system-managed encryption to
control write encryption without device driver intervention.
Note: If wrt_encryption is set to on, an application can not open a tape drive
using the append mode.
This is a tape diagnostic and utility function, refer to Chapter 9, “IBM Tape
Diagnostic Tool (ITDT),” on page 231
Error Logging
Encryption errors are logged along with other tape operation errors using the
standard TAPE_ERR1 Template “Tape Operation Error” with associated sense data
in the detail data.
An encryption failure is indicated when the asc/ascq in the sense data is EFxx or
EExx. Refer to the tape drive hardware reference for specific information on the
asc/ascq being reported. The asc/ascq can be found in the first column of the
second row in detail sense data. For example:
Detail Data
SENSE DATA
0A00 0000 5A08 25FF 0000 00FF FF00 0000 0000 0000 F000 0600 0000 1458 0000 0000
EF11 FF02 D105 0000 0009 0191 0002 0000 0000 0A00 0000 0000 0000 0000 0000 0000
0000 0000 0000 FFFF FF00 0000 FFF0 B7E3 0001 2127 0000 0000 0000 0000 3930 3220
2020 2000 0041 4A00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
Problem Determination
A set of tools is provided with the device driver to determine if the device driver
and the tape device are functioning correctly. The standard AIX interface is
provided for problem determination.
To establish the rmt1 tape device as a secondary dump device, enter the following
command:
sysdumpdev -s /dev/rmt1
To perform a dump operation, use the sysdumpstart command. To send the dump
data to the secondary dump device, enter the following command:
sysdumpstart -s
Note: This command stops the system. Use the sync command to ensure that the
cache is flushed before issuing the sysdumpstart -s command.
After the dump data is placed on the tape, copy it to a file on the disk before using
the crash command to process it. For example:
dd if=/dev/rmt1 of=tapedump1 ibs=4096 obs=512
crash tapedump1
If the block size of the tape device is larger than the block size sent during the
dump process, the dump operation fails. Set the block size to zero on the tape
device and experiment with the ibs value for the dd command.
This process is a separate facility from error logging. Error logging is routed to the
system error log. Device information logging is sent to a separate file.
Refer to “Tape Drive, Media, and Device Driver Parameters” on page 26 for a
description of these parameters.
Each time the rewind and unload sequence occurs or the STIOC_LOG_SENSE ioctl
command is issued, an entry is added to the log. Each time a new cartridge is
loaded, the values in the device log buffers are reset with the Log Sense command.
The log data is gathered on a per-volume basis.
Log File
The data is logged in the /usr/adm/ras directory. The file name is dependent on each
device; therefore, each device has a separate log. An example of the rmt1 device
file is:
/usr/adm/ras/Atape.rmt1.log
The files are in binary format. Each entry has a header followed by the raw Log
Sense pages as defined for a particular device.
The first log page is always page 0x00. This page, as defined in the SCSI-2 ANSI
specification, contains all pages the device supports. Page 0x00 is followed by all
pages specified in page 0x00. The format of each following page is defined in the
SCSI specification and the device manual.
The contents of the log file are displayed as standard output. To save the log in a
file, use the AIX redirection function. For example:
tapelog -l rmt0 > rmt0.log
Where the first xxxxxxxx is the actual reserve key and the second xxxxxxxx is the
reserving host initiator WWPN.
After initially logging the reserving host WWPN, subsequent reservation conflicts
from the same reserving host WWPN will not be logged to prevent multiple
entries in the error log until either the reserving host WWPN is different than the
one initially logged or the device driver has reserved the device and then another
reservation conflict occurs.
If the Persistent Reserve In command fails then the detail data will contain the
following entry with the errno from the failing Persistent Reserve In command:
Unable to obtain reserving host information, errno x
Error Logging
The device driver provides logging to the AIX system error log for various errors.
The error log can be viewed for specific devices using the Error Log Analysis
utility provided with the tape drive service aids. Refer to “Error Log Analysis” on
page 49. The error log can also be viewed using the smit or the errpt command.
Error Labels
Errors are logged with an associated error label and error ID. The error label
indicates the basic type of error:
v TAPE_ERR1
Tape media error
v TAPE_ERR2
Tape hardware error
v TAPE_ERR4
SCSI Adapter detected error
v TAPE_ERR5
Unknown error
v RECOVERED_ERROR
Temporary tape hardware or media error
v SIM_MIM_RECORD_3590
3590 Service/Media Information Message (Log Page X'31')
v TAPE_SIM_MIM_RECORD
Tape drive Service/Media Information Message (Log Page X'31')
v DEV_DUMP RETRIEVED
Device dump retrieved
v TAPE_DRIVE_CLEANING
Tape drive needs cleaning
v RESERVE_CONFLICT
Reservation conflict
Detail Data
Detail data is logged with the associated error that identifies the cause of the error.
Detail data for the SIM_MIM_RECORD_3590 or TAPE_SIM_MIM_RECORD entries
contain the raw data from Log Sense Page X'31'. Refer to the hardware reference
manual for the format of this entry. All other error log entries use the following
format for detail data:
Detail Data
SENSE DATA
aabb xxxx ccdd eeee eeee eeee eeee eeee ffgg hhxx ssss ssss ssss ssss ssss
ssss ssss ssss ssss ssss ....
Where:
aa Length of the command descriptor block (CDB)
bb SCSI target address
xx Unused or reserved
cc Start of CDB, cc is the operation code (byte 0)
dd Logical unit (byte 1) in the CDB
When the device is first configured, the dump name is set to dump1. If more than
three dumps occur, the driver starts over at dump1; therefore the last three dumps
are always kept.
Trace Facility
The AIX trace facility is supported for the device driver. The trace event is
identified with a hookword. The hookword used by the device driver is 326. The
trace can be initiated at any time before an operation on a tape device.
This command starts the trace in the background and collects only the trace events
with the 326 hookword (Atape device driver).
This command stops the trace after the tape operations are performed.
This command formats the trace output into a readable form and places it into a
file for viewing.
Component Tracing
Later releases of AIX 5.3 and above support component tracing. Unlike system
tracing that needs to be started and stopped, component tracing by default is on
all the time and runs continually.
To dump and format the current component trace to a file (for example, actrc.out)
into the current directory, run the following commands:
ctctrl -D -c Atape
trcrpt -l Atape -o actrc.out
The Atape component trace can also be retrieved from a system dump. This
eliminates the need to start the Atape system trace prior to a system dump or to
recreate an AIX system dump when a system trace is not running. The AIX system
dump is normally stored in the /var/adm/ras directory as a vmcore.x.BZ file, where x
is a dump number 1, 2, and so on.
To retrieve and format the Atape component trace from a dump file (for example,
vmcore.1.BZ) to a file (for example, actrc.dump) into the current directory, run the
following commands:
dmpuncompress /var/adm/ras/vmcore.1.BZ
trcdead -c /var/adm/ras/vmcore.1
trcrpt -l Atape -o actrc.dump
Tape drive service aids are also available using the "IBM Tape Diagnostic Tool
(ITDT)". Refer to Chapter 9, “IBM Tape Diagnostic Tool (ITDT),” on page 231.
The Force Microcode Dump operation starts, and a window opens when the
operation is completed.
Read Dump
This utility transfers the dump data from the device to a file, a diskette, or a tape
cartridge.
Note: On certain terminal types, it may be necessary to press the Esc key and
the number 7 key instead of F7.
The Read Dump operation starts, and a window opens when the operation is
completed.
Microcode Load
This utility downloads microcode to the device from a file or a diskette (AIX
format only).
Note: To download the microcode from a DOS diskette, you must first use the AIX
dosread command to transfer the file from the DOS diskette to the AIX file.
Then you can use the Microcode Load utility to download the AIX file to
the tape drive.
Note: On certain terminal types, it may be necessary to press the Esc key and
the number 7 key instead of F7.
5. If the current microcode on a tape drive is Federal Information Processing
Standard (FIPS) code, then a window opens and displays the following:
If you do not want to download the new code, press either F3 to cancel or F10
to exit without downloading new code. Otherwise, press Enter to continue with
the download code procedure.
The Microcode Load operation starts, and a window opens when the operation is
completed.
Reset Drive
This utility resets the tape drive.
Performance Considerations
This chapter describes the parameters and issues that may affect the perceived
performance of the tape drive. In general, AIX applications that operate at a file
level to move data between disk storage devices and tape do not exploit the full
capabilities of a high end tape device. The goal of this discussion is to give an
overview of the data path components involved in moving data between disk
storage devices and tape. The following chapter describes basic techniques and
common utilities in a specific environment that can be used to understand how a
Data Path
The simplified model in Figure 8 shows the components involved in the data path
for moving data at a file level between disk storage devices and tape.
Note: The device parameters should not be changed from the defaults for most
applications.
The following guidelines typically result in good tape path performance for use
with AIX utilities:
1. Hardware compression should be enabled for maximum performance if the
data sent to the device is uncompressed.
2. The block_size parameter should be set to variable (block_size=0) and command
or application parameters specified to a block size appropriate for the device.
3. Block sizes of 128 KB or greater should be used to improve performance.
Path Failover feature, only the primary path for the tape drive is listed. The
statistics apply to both the primary and alternate paths that are used.
This chapter provides an overview of the IBM Tape and Medium Changer Device
Driver for HP-UX that provides support for IBM tape drives and medium changer
devices.
For tape diagnostic and utility functions refer to Chapter 9, “IBM Tape Diagnostic
Tool (ITDT),” on page 231.
Purpose
This device driver product provides SCSI-3 attachment for the IBM tape devices to
selected Hewlett-Packard Precision Bus and PCI-based operating systems running
HP-UX 10.20, 11.0, 11i v1, 11i v2, and 11i v3.
The HP-UX installed name of this device driver is Advanced Tape Device Driver
(ATDD). ATDD is used throughout this section to identify this driver.
Data Flow
Both data and commands flow between the application program and the tape
subsystem by way of the IBM Tape and Medium Changer Device Driver for
HP-UX (ATDD). Figure 9 on page 54 shows the relationships between the IBM
Tape and Medium Changer Device Driver for HP-UX, the application program, the
SCSI or Fibre Channel adapter device driver, and the IBM tape subsystem.
SCSI or Fibre
ATDD Channel IBM
Application
Device Adapter Tape
Program
a250104
Driver Device Subsystem
Driver
Product Requirements
The following hardware and software components are required and supported by
the IBM Tape and Medium Changer Device Driver for HP-UX (ATDD).
ATDD Implementation
ATDD is actually a set of device driver implementations for operation in the
following HP-UX operating system environments:
v HP Precision Bus - HP-UX 10.20 (32 bit) - versions of this driver are identified
by levels ATDD 2.9.x.x.
v HP Precision Bus - HP-UX 11.00 (32 bit) - versions of this driver are identified by
levels ATDD 4.9.x.x.
v HP PCI Bus - HP-UX 11.00 (64 bit) - versions of this driver are identified by
levels ATDD 1.x.x.x.
v HP PCI Bus - HP-UX 11i v1 (64 bit) - versions of this driver are identified by
levels ATDD 3.x.x.x.
v HP PCI Bus - HP-UX 11i v2 (64-bit for Itanium® 2) - versions of this driver are
identified by levels ATDD 5.5.x.x.
v HP PCI Bus - HP-UX 11i v2 (64-bit for PA-RISC) - versions of this driver are
identified by levels ATDD 5.6.x.x.
v HP PCI Bus - HP-UX 11i v3 (64-bit for Itanium 2) - versions of this driver are
identified by levels ATDD IA.6.x.x.x.
v HP PCI Bus - HP-UX 11i v3 (64-bit for PA-RISC) - versions of this driver are
identified by levels ATDD PA.6.x.x.x.
Hardware Requirements
ATDD supports the following HP SCSI host bus adapters:
v HP A4800A PCI Ultra SCSI Host Bus Adapter (HVD)
v HP A5159A PCI Dual Port FWD SCSI Host Bus Adapter (HVD)
v HP A5149A PCI to Ultra 2 SCSI Host Bus Adapter (LVD Single Port)
v HP A5150A Dual Channel PCI to Ultra 2 SCSI Host Bus Adapter (LVD Dual
Port)
v HP A6828A Ultra 160 SCSI Adapter (LVD Single Port)
v HP A6829A Ultra 160 SCSI Adapter (LVD Dual Port)
v HP-PB FWD SCSI-2 Host Adapter (HP 28696A) with firmware revision 3543 or
later (ATDD Precision Bus drivers)
v HP PCI-X Dual Port Ultra320 SCSI Host Bus Adapter (HP A7173A, LVD)
v HP PCI-X 2-P SCSI/1000Base-T Multifunction Adapter (HP AB290A, LVD) (11i
v3 only)
v HP PCI 1000Base-T and 1000Base-SX Adapter (HP A6794A, LVD) (11i v3 only)
v HP PCIe SC44Ge SAS Host Bus Adapter (HP AH303A, SAS) (11i v3 only)
The most recent supported HBA information can be found at the following site:
http://www-01.ibm.com/servers/storage/support/config/ess/index.jsp
Software Requirements
The following software is required and supported by ATDD:
v HP-UX operating system version 10.20, 11.0, 11i v1, 11i v2, and 11i v3.
v SCSI and FC Host Bus Adapter (HBA) is supplied by HP. Refer to HP’s
documentation for the SCSI and FC adapter to determine which patch is
required.
| The latest driver information can be found on our fix central website, which is
| explained in Appendix A, “Accessing Documentation and Software Online,” on
| page 317.
| Attention: To install ATDD in HP-UX 11i v3, some HP-UX patches must be
| applied first on the system. For the detailed information, refer to the atdd.Readme
| file which is downloaded with the driver.
For programming information, refer to the IBM Tape Device Drivers Programming
Reference, GA32-0566.
Preinstallation Considerations
Make sure your system is ready to install ATDD before you begin. Follow these
steps to perform the install:
1. Copy the software from the distribution medium to the depot.
2. Check the README file and verify that your system is configured
appropriately for installing ATDD.
3. Ensure that the tape drives to be managed by ATDD are powered on.
4. Install and configure the software.
The following describes facts about the command sequences:
v In some of the examples, filenames given on the command-line must be
referenced with an absolute path. Using 'pwd'/filename to reference a file instead
of filename ensures this.
v All the software distributor commands (for example, swinstall or swcopy) can be
run first with the -p flag to preview the command. After observing the preview
output, you can reissue the command without the -p flag to perform the actual
operation.
v The software distributor commands are moderately complex scripts that
frequently require several steps. The steps are typically Selection, Analysis, and
Execution. Each step may produce useful information and error messages, so it is
a good idea to carefully observe the results of the installation process as it
occurs.
If you encounter unexpected results during the installation, check the associated
log file.
While using the software distributor commands, you may encounter the following
error about mounted file systems:
ERROR: "hostname/": One or more filesystems that appear in the
filesystem table are not mounted and cannot be mounted.
Many commands (for example, swinstall and swremove) attempt to mount all file
systems in the /etc/fstab file at the start of the analysis phase. This ensures that all
listed file systems are mounted before proceeding. This also helps ensure that files
are not loaded into a directory that may be below a future mount point, but it
often causes an error with NFS mounted file systems.
This error can be overridden using '-x' to set the mount_all_filesystems option to
FALSE. When this option is used, the command finishes with a warning that
indicates no attempt is made to mount all file systems. For example:
If you do not need to create a Drive Configuration File, skip to the instructions in
“Power Off the Tape Drives” on page 59.
The configuration file is named sbin/init.d/atdd and has the following syntax:
ATDD_global_parameter=value
ATDD_device_parameter[index]=value
Note:
v Blank lines and lines starting with # are ignored.
v No spaces may appear within each entry.
v No trailing comments may appear on a variable definition line.
Determine the Device Hardware Path for IBM Tape Drives: To determine the
device hardware path for IBM tape drives with a SCSI attachment, perform the
following steps:
1. Run ioscan to determine the hardware path (i.e., the SCSI adapter) the tape
drive is connected to.
# ioscan -f -C ext_bus
2. Record the hardware path entry of the adapter:
For example: 0/10/0/0
3. Determine the SCSI target address of the tape drive.
HWPATH = adapterpath.drivetargetaddress.0 (tape drive)
For a tape drive at SCSI target address 3, the device hardware path is:
0/10/0/0.3.0
To determine the device hardware path for IBM tape drives with the Fibre Channel
attachment, perform the following steps:
1. Run ioscan to determine the hardware path (i.e., the Fibre Channel) the tape
drive is connected to.
# ioscan -f -C tape
2. Record the hardware path entry of the Fibre Channel:
For example: HWPATH = 0/5/0/0.8.0.255.7.9.0
Create the Hardware Path Entry: You must tell the driver which hardware path
you want to attach to if you are not using the installation defaults for driver
behavior. Create an entry in the /etc/rc.config.d/atdd configuration file for each
device you want the driver to attach. For example:
ATDD_HWPATH[0]=0/10/0/0.1.0
ATDD_HWPATH[1]=0/10/0/0.6.0
ATDD_HWPATH[2]=0/5/0/0.8.0.255.6.14.0
Note: This example shows that three devices are CLAIMED by the ATDD. If you
have a single 3590 device operating in one LUN mode, then you would
have only a single ATDD_HWPATH entry. If you have four tape devices
attached, four ATDD_HWPATH entries are required in the configuration file.
ATDD_IMMEDIATE[0]=1
This parameter allows application control to return from the device before the
rewind completes for the device at hardware path 0/10/0/0.1.0 (based on the
hardware path entry in “Create the Hardware Path Entry” on page 58).
Example 2:
ATDD_TRAILER[1]=1
This parameter allows write operations after an early end-of-tape warning for the
device at hardware path 0/10/0/0.6.0. Refer to Table 8 on page 74 and Table 9 on
page 75 for a description of all configuration parameters.
Note: If you experience difficulties with your tape device, check the /etc/rc.log for
errors and correct the problem.
Before you continue, make sure all devices CLAIMED with the preceding
command are devices you want this device driver to manage.
To list device file names in the /dev directory and its subdirectories, enter:
To remove a tape drive from the CLAIMED state so it is not configured by this
driver, power Off the tape drive and run ioscan without the '-k' argument as
follows:
# ioscan -f -C tape
| To install ATDD with the script, download the install script with the driver at fix
| central, then run the install script.
When the installation script runs, the customer is prompted with the question,
"Would you like to activate the Medium Changer support by ATDD (Y/N)?". Enter
"Y" to allow the ATDD to configure all attached IBM Medium Changer devices, or
answer "N" to allow the HP native changer driver to configure these Medium
Changer devices.
Notes:
1. If a previous version of ATDD is installed on your system, uninstall it before
attempting to install the latest version. Refer to “Uninstalling the software” on
page 64.
2. The system reboot is required to install ATDD in HP-UX 11i v3.
Attention: If you do not copy the ATDD software into a depot, you will not be
able to uninstall the product readily.
# swlist -d atdd
Install the ATDD Software: When the software is in the depot and only the
appropriate drives are powered on, the ATDD software can be installed to the root
file system using the HP-UX swinstall command. If the target root file system is the
primary, the ATDD software is configured automatically upon installation.
If the target is an alternate root file system, then the ATDD software is not
configured automatically.
Note: If an earlier version of the product is already installed on the target root file
system, the existing version is replaced. This is true even if the version
already installed is more recent than the version being installed.
The following commands install ATDD from the depot to the default root file
system by issuing the swinstall command with the ask options set as follows:
Running the swinstall command with the ask option set to TRUE prompts the
customer, "Would you like to activate the Medium Changer support by ATDD
(Y/N)?". Enter "Y" to allow the ATDD to configure all attached IBM Medium
Changer devices, or answer "N" to allow the HP native changer driver to configure
these Medium Changer devices.
You can use swlist to list the software installed on the default root file system as
follows:
# swlist atdd
You can verify correct installation to the default root file system with the swverify
command as follows:
# swverify atdd
After the installation is completed, run the ioscan command to list the tape drives
found:
# ioscan -fknC tape
Class I H/W Path Driver S/W State H/W Type Description
============================================================================================
tape 0 0/3/0/0.5.0 atdd CLAIMED DEVICE IBM 03590E11
/dev/rmt/0m /dev/rmt/0mn /dev/rmt/c4t5d0BEST /dev/rmt/c4t5d0BESTn
/dev/rmt/0mb /dev/rmt/0mnb /dev/rmt/c4t5d0BESTb /dev/rmt/c4t5d0BESTnb
tape 1 0/3/0/0.6.0 atdd CLAIMED DEVICE IBM 03590B11
/dev/rmt/1m /dev/rmt/1mn /dev/rmt/c4t6d0BEST /dev/rmt/c4t6d0BESTn
/dev/rmt/1mb /dev/rmt/1mnb /dev/rmt/c4t6d0BESTb /dev/rmt/c4t6d0BESTnb
tape 4 0/5/0/0.1.23.232.0.0.2 atdd CLAIMED DEVICE IBM ULT3580-TD1
/dev/rmt/4m /dev/rmt/4mn /dev/rmt/c6t0d2BEST /dev/rmt/c6t0d2BESTn
/dev/rmt/4mb /dev/rmt/4mnb /dev/rmt/c6t0d2BESTb /dev/rmt/c6t0d2BES
If you have enabled ACDD, run the following ioscan command to view the
medium changers found:
# ioscan -fnkC autoch
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
autoch 0 0/3/0/0.5.1 acdd CLAIMED DEVICE IBM 03590E11
/dev/rmt/0chng
autoch 2 0/6/0/0.1.17.255.5.10.1 acdd CLAIMED DEVICE IBM 03590E11
/dev/rmt/2chng
autoch 4 0/5/0/0.1.23.232.0.0.1 acdd CLAIMED DEVICE IBM ULT3583-TL
/dev/rmt/4chng
In HP-UX 11i v3, run # ioscan -funNC tape or autoch to display the tape devices
configured with ATDD and ACDD drivers. Run #ioscan -funC tape or autoch to
show the tape devices bound with the legacy atdd_leg and acdd_leg drivers.
To configure all IBM Medium Changer devices on the system after the install of
the ATDD package:
v In HP-UX 11.0, 11i v1 and v2, run the command:
# /opt/atdd/bin/atdd_claim -c
v In HP-UX 11i v3, do the following:
1. Bind each changer device with the ACDD driver:
# ioscan -b -M acdd -H hw_path
2. Reboot the system to configure the changer devices:
# shutdown -ry now
Configure Selected IBM Tape Devices with ATDD/ACDD in HP-UX 11.0, 11i v1
and v2:
Attaching Selected IBM Tape Devices to ATDD/ACDD During Auto Booting: To claim
a specific tape device with atdd/acdd during reboot, edit the "Claiming Device"
section in the file of /sbin/init.d/atdd.
For example, to attach IBM 3590E11 medium changer with acdd driver:
1. To determine the HW path:
# ioscan -fnk|grep IBM
autoch 0 0/3/0/0.5.1 schgr CLAIMED DEVICE IBM 03590E11
2. Comment out the command line(s) in the init script of /sbin/init.d/atdd:
v For tape drives:
/opt/atdd/bin/atdd_claim -t
v For medium changers:
/opt/atdd/bin/atdd_claim -c
3. Add a command line in the "Configuring Device" section in /sbin/init.d/atdd:
/opt/atdd/bin/atdd_claim -H 0/3/0/0.5.1
Note: The dynamic attachment may be lost after the system reboots.
Attaching Selected IBM Tape Device with a Particular Driver: Use the system ioscan
and rmsf commands to force a non-atdd/acdd driver to bind an IBM tape device.
For example, force bind the IBM 3590E media changer with the HP native changer
driver schgr with these steps:
1. Determine the HW path of the device:
# ioscan -fnk |grep IBM
tape 0 0/3/0/0.5.0 atdd CLAIMED DEVICE IBM 03590E11
autoch 0 0/3/0/0.5.1 acdd CLAIMED DEVICE IBM 03590E11
2. Remove the I/O configuration from the system:
# rmsf -H 0/3/0/0.5.1
3. Force binding:
# ioscan -M schgr -H 0/3/0/0.5.1
4. Create the device special files:
# insf -H 0/3/0/0.5.1
5. Verify the force binding:
# ioscan -fnk |grep IBM
tape 0 0/3/0/0.5.0 atdd CLAIMED DEVICE IBM 03590E11
autoch 0 0/3/0/0.5.1 schgr CLAIMED DEVICE IBM 03590E11
Note: The force binding is lost after the system reboots. To keep the binding to
a selected device with a particular driver after a reboot, add these
command-lines in steps 2–4 in "Claiming Device" section in
/sbin/init.d/atdd file. For example,
# Configuring Device Section:
# add specific device claim here, for example
# /opt/atdd/bin/atdd_claim -H 0/3/0/0.5.1
# /opt/atdd/bin/atdd_claim -H 0/6/0/0.1.30.255.0.0.1
rmsf -H 0/3/0/0.5.1
ioscan -M schgr -H 0/3/0/0.5.1
insf -H 0/3/0/0.5.1
Configure Selected IBM Tape Devices with ATDD/ACDD in HP-UX 11i v3: By
default, atdd driver automatically configures all supported IBM tape drives that
are attached and powered on when the ATDD package is installed. The acdd
driver does not configure IBM medium changer devices by default. All of IBM
medium changers are claimed if you use acdd and acdd_leg as the changer drivers
during ATDD are installed. To attach a selected IBM tape device with a particular
driver, run the system ioscan command to force a non-ATDD/ACDD driver to
bind an IBM tape device, and then reboot the system. For example, to force bind
the IBM 3592E05 tape drive with the HP native tape driver estape, perform these
steps:
1. Determine the HW path of the device:
# ioscan -fNk | grep IBM
tape 1 64000/0xfa00/0x7 atdd CLAIMED DEVICE IBM 03592E05
2. Force the binding:
# ioscan -b -M estape -H 64000/0xfa00/0x7
3. Reboot the system:
Attention: Do not try to uninstall the ATDD software by simply deleting the files
that make up the ATDD fileset. This causes a number of inconsistencies on the
system. It is best to use the swremove command.
If more than one level of ATDD exists in the depot, explicitly specify the level to
remove it. For example:
# swremove -d atdd,r=3.5.0.0
To display and manage ATDD kernel modules and kernel-tunable parameters, run
kmadmin, kmsystem, kmtute and kmadmin commands in HP-UX 11.0 and 11i v1
and kcmodule, kctune commands in HP-UX 11i v2 and v3, or go to the “Kernel
Configuration” in sam utility. Refer to the system manual for more detail.
For an example, print out the ATDD driver module status entering the command:
# kcmodule -d atdd
Module State Cause Description
atdd static explicit Advanced Tape Device Driver
Preinstallation Considerations
Make sure your system is ready to install ATDD before you begin. Follow these
steps to perform the install:
1. Copy the software from the distribution medium to the depot.
2. Check the README file and verify that your system is configured
appropriately for installing ATDD.
3. Ensure that the tape drives to be managed by ATDD are powered on.
4. Install and configure the software.
Note the following facts about the command sequences described in this section:
v In some of the examples, filenames given on the command-line must be
referenced with an absolute path. Using 'pwd'/filename to reference a file instead
of filename ensures this.
v All the software distributor commands (for example, swinstall or swcopy) can first
be run with the -p flag to preview the command. After observing the preview
output, you can reissue the command without the -p flag to perform the actual
operation.
v The software distributor commands are moderately complex scripts that
frequently require several steps. The steps are typically Selection, Analysis, and
Execution. Each step may produce useful information and error messages. It is a
good idea to observe carefully the results of the installation process as it occurs.
If you encounter unexpected results during the installation, check the associated
log file.
While using the software distributor commands, you may encounter the following
error about mounted file systems:
ERROR: "hostname/": One or more filesystems that appear in the
filesystem table are not mounted and cannot be mounted.
Many commands (for example, swinstall and swremove) attempt to mount all file
systems in the /etc/fstab file at the start of the analysis phase. This ensures that all
listed file systems are mounted before proceeding. This also helps ensure that files
are not loaded into a directory that may be below a future mount point, but it
often causes an error with NFS mounted file systems.
This error can be overridden using '-x' to set the mount_all_filesystems option to
FALSE. When this option is used, the command finishes with a warning indicating
that no attempt is made to mount all file systems. For example
Note:
v Blank lines and lines that start with # are ignored.
v No spaces can appear within each entry.
v No trailing comments can appear on a variable definition line.
Determine the Device Hardware Path for Enterprise Tape System 3590: To
determine the device hardware path, follow these steps:
1. Run ioscan to determine which SCSI adapter the 3590 drive is connected to.
# ioscan -f -C ext_bus
2. Record the hardware path entry of the adapter:
for example, 56/40
3. Determine the SCSI target address of the 3590 drive. The panel on the front of
the 3590 drive displays the selected target address.
HWPATH = adapterpath.drivetargetaddress.0
HWPATH = adapterpath.drivetargetaddress.1 (3590 random 2 LUN mode)
For a 3590 at SCSI target address 3 in random 2 LUN mode, the device
hardware paths are:
56/40.3.0
56/40.3.1
Determine the Device Hardware Path for Magstar MP 3570 Tape Subsystem:
The Magstar MP 3570 product family consists of stand alone tape drives (Models
B00 and C00) and library models with one or two tape drives. Models B01, B02,
B11, B12, C01, C02, C11, and C12 support a 20 cartridge, random access cartridge
loader and are known as library units. To control the operation of the library
mechanism, SCSI Medium Changer commands are issued to LUN 1 of one or both
of the drive ports depending on the library configuration.
Models B02, B12, C02, and C12 can operate in a split configuration where each
drive and a subset of the cartridge slots are viewed as an independent library. In
this case, a definition for LUN 1 for each drive must be present in the atdd.cfg file
to control each logical library independently. Typically, independent SCSI buses are
used for operation of each logical library.
56/40.3.0
56/40.3.1
Determine the Device Hardware Path for Magstar MP 3575 Tape Libraries: Each
drive in a 3575 library can support an automation path for the logical library of
which it is a member by sending SCSI Medium Changer commands to LUN 1 of
the drive port. The 3575 Model L06 supports one logical library. The other 3575
tape libraries (Models L12, L18, L24, and L32) can support two or three logical
libraries depending on the specific model. The first drive in each logical library
must have LUN 1 configured to operate the automation for that logical library
(drive 1 for logical library 1, drive 3 for logical library 2, and drive 5 for logical
library 3). Other drives may have LUN 1 configured, but this is optional.
LUN 1 control of the library mechanism can be configured for any drive by way of
the front panel on the library. Conceivably, LUN 1 could be configured for two
drives in the same logical library, but this is unnecessary in most instances. In that
case, the automation conforms to the SCSI-3 Primary Commands standard for
multiple port behavior (except for the handling of reservations).
Special files for operation of the 3575 automation are based on the hardware path
definitions present in the atdd.cfg file. Target device LUN 1 also needs to be
enabled at the library operator panel for drives other than the first drive in each
logical library if they are used to accept automation commands. LUN 1 for the first
drive in each logical library is mandatory and is enabled automatically by the
library firmware.
For a 3575 library with two drives in one logical library (drive 1 at SCSI target 3
and drive 2 at SCSI target 4), the device hardware paths are:
56/40.3.0
56/40.4.0
56/40.3.1
Determine the Drive Hardware Path for IBM 3580 Ultrium Tape Drive, 3581 Tape
Autoloader with SCSI Attachment: To determine the hardware path for the 3580
Tape Drive and the 3581 Tape Autoloader with SCSI attachment, follow this
procedure:
1. Run ioscan to determine which SCSI adapter the IBM Ultrium drive or
autoloader is connected to:
# ioscan -f -C ext_bus
2. Record the hardware path entry of the adapter, for example, 0/4/0/0.
3. Determine the SCSI target address of the IBM Ultrium drive (3580) or the drive
in the IBM 3581 Ultrium Tape Autoloader. The switch on the rear of the IBM
3580 Ultrium Tape Drive displays the selected SCSI target address.
The LCD panel on the front of the unit can display the drive (and medium
changer SCSI address) for the IBM 3581 Ultrium Tape Autoloader.
HWPATH=adapterpath.drivetargetaddress.0 (3580 drive)
or
HWPATH=adapterpath.drivetargetaddress.0 (3581 drive)
For an IBM 3581 Ultrium Tape Autoloader at SCSI target address 3, the drive
device hardware path is: 0/4/0/0.3.0
Determine the Drive Hardware Paths for IBM Ultrium Tape Libraries with SCSI
Attachment: To determine the hardware path for the 3582, 3583, and 3584 Tape
Libraries with SCSI attachment, follow this procedure:
1. Run ioscan to determine which SCSI adapter the IBM Ultrium Tape Library is
connected to:
# ioscan -f -C ext_bus
2. Record the hardware path entry of the adapter, for example:
1/8/0/0
3. Determine the SCSI target addresses of the IBM Ultrium drives in the Tape
Library. The LCD panel on the front of the unit can display the drive (and
medium changer) SCSI addresses.
HWPATH=adapterpath.drivetargetaddress.0 (drive 1)
HWPATH=adapterpath.drivetargetaddress.0 (drive n)
The drive hardware paths for an IBM Ultrium 3583 Tape Library with a drive at
SCSI ID 3 and SCSI ID 5 are:
1/8/0/0.3.0
1/8/0/0.5.0
Determine the Drive Hardware Paths for IBM 3580 Ultrium Tape Drive, IBM
Ultrium Tape Libraries with Fibre Channel Attachment: To determine the
hardware path for the 3580 tape drive and the 3582, 3583, and 3584 tape library
with fibre channel attachment, follow this procedure:
1. Run ioscan to determine which hardware path the IBM Ultrium drive is
connected to:
# ioscan -f -C tape
2. Record the hardware path entry of the IBM Ultrium Fibre Channel drive. For
example,
0/5/0/0.8.0.255.7.9.0 (3580 stand alone tape drive)
0/8/0/0.8.0.0.0.0.2 (3583 drive 1)
0/8/0/0.8.0.0.0.0.3 (3583 drive 2)
Create the Hardware Path Entry for Ultrium Tape Drives: If devices are to be
configured with settings other than the defaults, entries defining the hardware
device paths must be placed in the /etc/rc.config.d/atdd configuration file. Create an
entry for each device that requires further configuration settings. The format for
the entries is HW_PATH[index]=DeviceHardwarePath. The index is used to identify
the device for control of the configuration settings in the next section.
For example:
This example shows that four devices are CLAIMED by the ATDD. The first
device, 3580 Stand Alone SCSI Tape Drive at SCSI target address 1, LUN 0, has
index=0. The second device, 3581 with two 3580 SCSI Tape Drives inside at SCSI
target addresses 5 and 6, LUN 0, has index=1 and 2 . The third device, 3580 Stand
Alone FC Tape Drive at target 9, LUN 0, has index=3. The last one is 3583 with
SAN Data Gateway (SDG) Module and two 3580 SCSI Tape Drives at target 0,
LUN 2 and 3 (index=4 and 5).
Create the Hardware Path Entry: You must tell the driver which hardware path
you want to attach to. Create an entry in the /etc/rc.config.d/atdd.cfg configuration
file for each device you want the driver to attach. For example
ATDD_HWPATH[0]=56/40.1.0
ATDD_HWPATH[1]=56/40.6.0
Note: This example shows that two devices are CLAIMED by ATDD. If you have
a single 3590 device operating in one LUN mode, then you would have only
a single ATDD_HWPATH entry. If you have three tape devices attached,
three ATDD_HWPATH entries are required in the configuration file. For
3590 devices configured in random 2 LUN mode, two hardware path entries
are required. One is needed for the drive (LUN 0), and one is needed for the
ACF (LUN 1).
ATDD_IMMEDIATE[0]=1
This allows application control back from the device before rewind is complete for
the device at hardware path 56 / 40.1.0 (based on the hardware path entry in
“Create the Hardware Path Entry” on page 69).
Example 2:
ATDD_TRAILER[1]=1
This allows write operations after an early end-of-tape warning for the device at
hardware path 56 / 40.6.0. Refer to Table 8 on page 74 and Table 9 on page 75 for a
description of all configuration parameters.
Note: If you experience difficulties with your tape device, check the /etc/rc.log for
errors and correct the problem.
Before you continue, make sure all devices that report CLAIMED with the
preceding command are devices you want this device driver to manage.
To list device file names in the /dev directory and its subdirectories, enter:
To remove a tape drive from the CLAIMED state so it is not be configured by this
driver, power Off the tape drive and run ioscan without the '-k' argument as
follows:
# ioscan -f -C tape
| To install ATDD with the script, download the install script with the driver at fix
| central, then run the install script.
When the installation script runs, the customer is prompted with the question,
"would you like to activate the Medium Changer support by ATDD (Y/N)?" Enter
"Y" to allow the ATDD to configure all attached IBM Medium Changer devices, or
answer "N" to allow the HP native changer driver to configure these Medium
Changer devices.
To install ATDD manually, follow the steps in “Install Drivers Manually” on page
60.
# swlist -d atdd
The README file lists the system configuration requirements, including required
system software patches and required tape related firmware versions. The file also
documents any changes in the installation, use, and administration of the software
that occurred after this documentation was completed. It is therefore very
important that you review it before proceeding with the software installation.
Configuration requires restarting the system and rebuilding the kernel. This
requires you to issue the swinstall command with the -x autoreboot option set to
TRUE, as described below.
If the target is an alternate root file system, the ATDD software is not configured
automatically.
Note: If an earlier version of the product is already installed on the target root file
system, the existing version is replaced. This is true even if the version
already installed is more recent than the version being installed.
The following commands install ATDD from the depot to the default root file
system:
If you get an error message stating that this product needs to restart the system,
reissue the swinstall command with the autoreboot option set as follows:
You can use swlist to list the software installed on the default root file system as
follows:
# swlist atdd
You can verify correct installation to the default root file system with the swverify
command as follows:
# swverify atdd
After the installation is completed, run the ioscan command to list the tape drives
found:
# ioscan -fknC tape
Class I H/W Path Driver S/W State H/W Type Description
============================================================================================
tape 0 0/3/0/0.5.0 atdd CLAIMED DEVICE IBM 03590E11
/dev/rmt/0m /dev/rmt/0mn /dev/rmt/c4t5d0BEST /dev/rmt/c4t5d0BESTn
/dev/rmt/0mb /dev/rmt/0mnb /dev/rmt/c4t5d0BESTb /dev/rmt/c4t5d0BESTnb
tape 1 0/3/0/0.6.0 atdd CLAIMED DEVICE IBM 03590B11
/dev/rmt/1m /dev/rmt/1mn /dev/rmt/c4t6d0BEST /dev/rmt/c4t6d0BESTn
/dev/rmt/1mb /dev/rmt/1mnb /dev/rmt/c4t6d0BESTb /dev/rmt/c4t6d0BESTnb
tape 4 0/5/0/0.1.23.232.0.0.2 atdd CLAIMED DEVICE IBM ULT3580-TD1
/dev/rmt/4m /dev/rmt/4mn /dev/rmt/c6t0d2BEST /dev/rmt/c6t0d2BESTn
/dev/rmt/4mb /dev/rmt/4mnb /dev/rmt/c6t0d2BESTb /dev/rmt/c6t0d2BESTnb
If you have enabled ACDD, run the following ioscan command to view the
medium changers found:
# ioscan -fnkC autoch
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
autoch 0 0/3/0/0.5.1 acdd CLAIMED DEVICE IBM 03590E11
/dev/rmt/0chng
autoch 2 0/6/0/0.1.17.255.5.10.1 acdd CLAIMED DEVICE IBM 03590E11
/dev/rmt/2chng
autoch 4 0/5/0/0.1.23.232.0.0.1 acdd CLAIMED DEVICE IBM ULT3583-TL
/dev/rmt/4chng
Note: A manual process is required for applications using the HP native spt or sctl
drivers as a changer driver (the sctl driver for the ext_bus C700 or C720, the
spt for the other ext_bus). This manual process requires having the right
driver in the kernel, possibly a binding statement in the kernel, and making
a device file. Related man pages are scsi_ctl (7) and scsi_pt (7).
# swremove -d atdd
If more than one level of ATDD exists in the depot, explicitly specify the level to
remove it. For example:
# swremove -d atdd,r=4.9.0.0
For PB driver:
# /opt/OMImag/bin/atdd_cfg -h
# /opt/atdd/bin/atdd_cfg -h
Device-Specific Parameters
Some of the configuration parameters are device-specific, while others are
driver-specific. Table 8 on page 74 shows the parameters that are device-specific,
what they mean, and their values.
Driver-Specific Parameters
Some of the configuration parameters are device-specific, while others are
driver-specific. Table 9 shows the parameters that are driver-specific, what they
mean, and their values.
Table 9. Driver-Specific Parameters (Global)
Parameter Meaning Values
INSTANCE ATDD Device Number (Read Only)
DEVICES Number of Configured Devices (Read Only)
MINPHYS Check/Adjust Transfer Count v 0=Use OMI minphys
(Precision Bus
v 1=Use HP-UX minphys
Driver only)
All configurable parameters for the specified device are displayed by entering
#atdd_cfg -d special_file only
For instance:
# /opt/atdd/bin/atdd_cfg -d /dev/rtape/tape14_BEST
DENSITY=0
SILI=1
BLOCKSIZE=0
COMPRESSION=1
BUFFERING=1
REWIND_IMMEDIATE=0
TRAILER=1
SCALING=0
WRITEPROTECT=0
ERRNO_LEOT=28
WFM_IMMEDIATE=0
RESERVE=1
PRE_V3_COMPAT=0
To display a specific parameter, run #atdd_cfg -d special_file -o parameter
For example,
#/opt/atdd/bin/atdd_cfg -d /dev/tape/tape14_BESTn -o COMPRESSION
COMPRESSION=1
To set a new BOOT default value for the configuration parameter, you must
modify or add an entry in the atdd.cfg configuration file located in /etc/rc.config.d for
the static driver or the atdd configuration file located in /sbin/init.d.
For example, if you want the COMPRESSION default set to 0 for the device at
ATDD_HWPATH[0] or tape14_BESTn, add the following line to your configuration
file:
v In HP-UX 11.0, 11i v1 and v2:
ATDD_COMPRESSION[0]=0
v In HP-UX 11i v3:
/opt/atdd/bin/atdd_cfg -d /dev/rtape/tape14_BESTn -o COMPRESSION -w 0
Note: The configuration parameters are prefixed with ATDD_ in the configuration
file. For additional instructions about using the configuration program, use
the -h option as follows:
# atdd_cfg -h
Allows the user to disable automatic load balancing from ATDD. This parameter
is On (1) by default and supported on 11iv3 only
v atdd_reserve_type
The drive is reserved in the SCSI-2 Reserve command when Data Path Failover
(DPF) is disabled by default. To reserve the drive using Persistent Reserve In
and Out commands, the user can set the value of atdd_reserve_type to 3. The
default value for the tunable: 1 - Reserve(6) command; 2 - Reserve(10) command
(Unsupported); 3 - Persistent Reserve In/Out commands
To change the value of tunable, run the command kctune/kmtune or SAM (System
Administration Manager) tool.
Special Files
For each drive configured by ATDD, twelve or thirteen special files are created:
twelve special files are generated for a 3590 with ACF set to Manual, Automatic,
System, Accumulate, Random, or Library mode. A thirteenth special file is created for
independent operation of the ACF, if the 3590 mode is set to Random 2 LUN
operation (/dev/rmt/<instance#>chng).
ATDD creates the tape device special files in three forms: the standard or long file
name, an alternative short file name based on the instance number, and an
alternative short file name not based on the instance number. BEST represents the
operational capabilities likely to be required, including the highest density/format
and data compression, if supported by the device. Each set of special file names
(long and short) contains four special files that have all combinations of n and b
options, as shown in Table 10 and Table 11. For more information, refer to the mt(7)
man pages.
Table 10. Special Files
BSD Rewind on
Special File Name Compatibility Close
/dev/rmt/<instance#>m No Yes
/dev/rmt/<instance#>mb Yes Yes
/dev/rmt/<instance#>mn No No
/dev/rmt/<instance#>mnb Yes No
/dev/rmt/s<#>m No Yes
/dev/rmt/s<#>mb Yes Yes
/dev/rmt/s<#>mn No No
/dev/rmt/s<#>mnb Yes No
/dev/rmt/<instance#>t<target>d<LUN>BEST No Yes
/dev/rmt/<instance#>t<target>d<LUN>BESTb Yes Yes
/dev/rmt/<instance#>t<target>d<LUN>BESTn No No
/dev/rmt/<instance#>t<target>d<LUN>BESTnb Yes No
/dev/rmt/<instance#>chng N/A N/A
# lssf /dev/rchgr/autoch1
acdd section 0 at address 64000/0xfa00/0x21 /dev/rchgr/autoch1
If the device special files are not created on the system, use the # insf command
to generate them.
The persistent DSF format for tape devices introduced with the Agile view in
HP-UX 11i v3 is:
# ioscan -funNC tape
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
tape 1 64000/0xfa00/0x7 estape CLAIMED DEVICE IBM 03592E05
/dev/rtape/tape1_BEST /dev/rtape/tape1_BESTn
/dev/rtape/tape1_BESTb /dev/rtape/tape1_BESTnb
If you see .altpath next to one of the special files in HP-UX 11.0, 11i v1 and v2,
then you have successfully enabled the control path failover feature for your
library. In HP-UX 11i v3, use the # ioscan -m dsf command and “[11] Display All
Paths” on page 265 or “Display All Paths” on page 308 in tapeutil to verify that
the multiple path is configured by the system and ATDD.
After the path failover support is enabled, it remains set until atdd_claim is run
with the alternate_pathing driver parameter set to OFF . The path failover setting
is retained even if the system is rebooted. If you want to turn off the control path
failover feature in the ATDD driver, perform the following steps:
v In HP-UX 11.0, 11i v1 and v2:
1. Clear the alternate_pathing parameter:
# /opt/atdd/bin/atdd_failover -a 0
2. Reconfigure CPF for the devices:
# /opt/atdd/bin/atdd_claim
v In HP-UX 11i v3:
Run kctune to disable the kernel tunable of atdd_alternate_pathing. ATDD
manages the CPF in the next open.
# kctune atdd_alternate_pathing=0
* The automatic ’backup’ configuration has been updated.
* The requested changes have been applied to the currently
running configuration.
Tunable Value Expression Changes
atdd_alternate_pathing (before) 1 1 Immed
(now) 0 0
On HP-UX 11i v3, the HP-UX system always selects the best path for ATDD to
open so the primary path is dynamically assigned from the system. ATDD does
not provide any .altpath special file.
The primary and alternate path information can be obtained by using the
following command on HP-Ux 11.0, 11i v1 and v2:
# ioscan -funC autoch
Note: Display the primary and alternate path configuration for any device using
tape diagnostic and utility functions, refer to Chapter 9, “IBM Tape
Diagnostic Tool (ITDT),” on page 231.
If it is necessary to disable a path and not perform path fail over (for example due
to maintenance), run commands to disable and then later enable the primary and
alternate paths.
The commands to enable and disable primary and alternate paths are tape
diagnostic and utility functions.
Note: See Chapter 9, “IBM Tape Diagnostic Tool (ITDT),” on page 231..
Data Path Failover and Load Balancing Support for Tape Drives
The HP-UX device driver path failover support configures multiple physical paths
to the same device within the device driver and provides two basic functions:
1. Automatic failover to an alternate physical path when a permanent error occurs
on one path.
2. Dynamic load balancing for devices using multiple Host Bus Adapters (HBA).
On HP-UX 11i v3, HP-UX system always pickups a best path for ATDD to
open; ATDD doesn't perform a dynamic load balancing in open.
Notes:
1. Data Path Failover is not supported when using block sizes greater than 256K,
except in HP-UX 11i v3.
2. It is required that applications must open the primary path for Data Path
Failover (not in HP-UX 11i v3).
3. Data Path Failover is supported for 3592 tape drives on HP-UX 11.0, 11i v1, v2
and v3, and for Ultrium-3 and Ultrium-4 drives on HP-UX 11i v1, v2 and v3.
To enable the failover support in the IBMtape device driver software, perform the
following steps after installing the driver:
1. Edit the following line in your /sbin/init.d/atdd file:
DPF_KEYS="1234567890123456; 0987654321123456 "
Notes:
a. "1234567890123456" is an example of a data path failover feature key. If you
have multiple 3584 libraries and multiple data path failover feature keys,
input your keys as follows:DPF_KEYS="key1; key2; ..."
b. A DPF key is required for Ultrium-3 tape drives only. No DPF key needs to
be added into the /sbin/init.d/atdd file if you are running the most recent
drive code.
2. Save the file, then run the following command in HP-UX 11.0, 11i v1 and v2:
# /opt/atdd/bin/atdd_claim
3. In HP-UX 11.0, 11i v1 and v2, you can check whether the driver has recognized
multiple data paths for your drives by running:
#ioscan -funC tape
If you see a ".altpath" next to one of the special files, then you have successfully
enabled control path failover feature for your library.
In HP-UX 11i v3, use the # ioscan -m dsf command to verify that the multiple path
is configured by the system and ATDD.
Note: See Chapter 9, “IBM Tape Diagnostic Tool (ITDT),” on page 231..
After path failover support is enabled, it remains set until atdd_claim or kctune is
run with the alternate_pathing driver parameter set to OFF. The path failover
setting is retained even if the system is rebooted. If you want to turn off the data
path failover feature in the ATDD driver, perform the following steps:
If you want to turn the data path failover feature back on in the ATDD driver,
perform the following steps:
v3, the HP-UX system always pickups a best path for ATDD to open so the
primary path is dynamically assigned from the system. ATDD does not provide
any .atlpath special file.
The primary and alternate path information can be obtained by issuing the
following command except in HP-UX 11i v3:
Note: Display the primary and alternate path configuration for any device using
tape diagnostic and utility functions, refer to Chapter 9, “IBM Tape
Diagnostic Tool (ITDT),” on page 231..
The commands to enable and disable primary and alternate paths are tape
diagnostic and utility functions.
Note: See Chapter 9, “IBM Tape Diagnostic Tool (ITDT),” on page 231..
Problem Determination
A set of tools is provided with the device driver to determine if the device driver
and the tape device are functioning correctly.
Error Logging
Read the system log file (typically /var/adm/syslog/syslog.log) and the ATDD log file
(/var/adm/atdd/atdd_d.log) if you are having problems. The ATDD logs messages to
this file which provide information regarding the problem.
until either the reserving host WWPN or reservation key is different than the one
initially logged or the device driver has reserved the device and then another
reservation conflict occurs.
Support_info Script
Run the support_info script, located in the /opt/OMImag/bin directory for the static
driver and in /opt/atdd/bin for the DLKM driver. This script gathers important
system and configuration information. There are several sections with the keyword
VERIFY, indicating information that should be verified for correctness.
Log in as userid "root" on the system which experienced a problem. Then run the
script and redirect the output to an end of a file:
Static:
/opt/OMImag/bin/support_info > support_info.out
DLKM
/opt/atdd/bin/support_info > support_info.out
Tracing Facility
Running the ATDD_trace utility, located in the /opt/OMImag/bin for the static driver
and in /opt/atdd/bin for the DLKM driver, displays debug information. The utility
traces can be started at any time before an operation on a tape device. The default
debug level is 0x00001003, which shows driver configuration and per instance
drive attribute configuration and errors. You can increase the amount of debug
information displayed by enabling more trace flags. Issuing atdd_trace -f 0x1fffffff
turns on every trace.
The following steps document how to start and configure the daemon:
1. Start the daemon by running:
For the Static driver:
#/opt/OMImag/bin/atdd_d
For the DLKM driver:
#/opt/atdd/bin/atdd_d
2. Check whether the daemon is running by entering:
#ps -ef | grep atdd_d
3. To view and/or modify the settings for the daemon, enter:
For the Static driver:
# /opt/OMImag/bin/atdd_d -h
usage: atdd_d [options]
For the DLKM driver:
# /opt/atdd/bin/atdd_d -h
usage: atdd_d [options]
[-d <log directory>] default is /var/adm/atdd
[-n <maximum number of dumps>] default is 10
[-z <maximum size of a dump>] default is 1048576
[-s <maximum size of a log>] default is 100000
For example, to decrease the number of drive dumps to store from 10 to 6 and
change the log directory to /tmp/drive_dump, do the following:
For the Static driver:
#/opt/OMImag/bin/atdd_d -n 6 -d/tmp/drive_dump
For the DLKM driver:
#/opt/atdd/bin/atdd_d -n 6 -d/tmp/drive_dump
4. View the atdd_d.log, which provides information about the daemon start time,
message type (1 for the drive dump, 2 for SIM/MIM data, and 3 for Error
message), time stamp, H/W path, and size. Refer to an example in Figure 10 on
page 87.
Note: No entry is made in the log file when the daemon stops. Run #ps -ef |
grep atdd_d to check if the daemon is stopped.
5. Stop the daemon by using the following commands:
Get the daemon process id: #ps -ef | grep atdd_d
kill the daemon process: #kill -9 process_id
Table 14 on page 89 describes problems and possible solutions for errors you may
encounter with the static driver.
This chapter describes the IBM Linux Tape and Medium Changer Device Driver
(lin_tape).
For tape diagnostic and utility functions refer to Chapter 9, “IBM Tape Diagnostic
Tool (ITDT),” on page 231..
Purpose
The lin_tape and medium changer device driver is designed specifically to take
advantage of the features provided by the IBM tape drives and medium changer
devices. The goal is to give applications access to the functions required for basic
tape operations (such as backup and restore) and medium changer operations
(such as mount and demount the cartridges), as well as to the advanced functions
needed by full tape management systems. Whenever possible, the driver is
designed to take advantage of the device features transparent to the application.
Data Flow
The software described in this chapter covers the Linux Device Driver (lin_tape
device driver) and the interface between the application and the tape device.
a250181
Driver Driver
Product Requirements
More current information on supported hardware and software configurations for
lin_tape can be found on our System Storage Interoperation Center website:
http://www.ibm.com/systems/support/storage/config/ssic/.
v System p (also known as pSeries) Feature Code 5712 PCI-X Dual Channel
Ultra320 SCSI Adapter
v System p (also known as pSeries) Feature Code 5736 (571A) or 1912 PCI-X DDR
Dual Channel Ultra320 SCSI Adapter
v System p (also known as pSeries) Feature Code 6228 Fibre Channel Adapter
v System p (also known as pSeries) Feature Code 6239 Fibre Channel PCI-X
Adapter
v System p (also known as pSeries) Feature Code 5716 Fibre Channel PCI-X
Adapter
v System p (also known as pSeries) Feature Code 5758 and 5759 Fibre Channel
PCI-X Adapter
v System p (also known as pSeries) Feature Code 5773 and 5774 Fibre Channel
PCI-E Adapter
v System p (also known as pSeries) Feature Code 5735 8 GB Fibre Channel
Adapter
One or more of the following host bus adapters with Fibre Channel Protocol
support:
v FICON® Express card (feature 2315 or 2318)
v FICON Express card (feature 2319 or 2320)
v FICON Express2 card (feature 3319 or 3320)
v FICON Express4 card (feature 3321, 3322, or 3324)
Note: Using a single Fibre Channel host bus adapter (HBA) for concurrent tape
and disk operations is not recommended. Tape and disk devices require
incompatible HBA settings for reliable operation and optimal performance
characteristics. Under stress conditions (high I/O rates for tape, disk, or
both) where disk and tape subsystems share a common HBA, stability
problems have been observed. These issues are resolved by separating disk
and tape I/O streams onto separate HBAs and using SAN zoning to
minimize contention. IBM is focused on assuring server and storage
configuration interoperability. IBM strongly recommends that your
implementation plan includes provisions for separating disk and tape
workloads.
This file contains the latest driver information and supersedes the information in
this publication.
Conventions Used
In subsequent pages, you see file names with x.x.x in them. The x.x.x refers to the
version of the driver, which changes as IBM releases new driver levels. Use the
actual driver version numbers as you perform the instructions.
Commands that you are to type are indicated with a leading ">" character, which
indicates the shell prompt.
/usr/share/doc/packages/lin_tape/
lin_tape_359X.Readme (for SUSE LINUX)
/usr/share/doc/lin_tape-xxx/lin_taped.Readme ReadMe file for lin_taped daemon
(for Red Hat)
/usr/share/doc/packages/lin_tape/
lin_taped.Readme (for SUSE LINUX)
/usr/share/doc/lin_tape-xxx/copying (for Red License documentation for lin_tape
Hat)
/usr/share/doc/packages/lin_tape/copying (for
SUSE LINUX)
Installation Procedure
If lin_tape is already installed on your system, refer to the “Updating Procedure”
on page 96 in this chapter. This section assumes you are installing the lin_tape
device driver onto a system where it is not currently installed.
If you are installing lin_tape on a system running Linux for S/390® or Linux for
zSeries®, ensure that the OpenFCP adapter device driver zfcp is loaded in the
kernel. Please refer to the section “Configuring Tape and Medium Changer Devices
on IBM System z Models” on page 97 in this chapter for how to configure and
install zfcp.
Make sure that the C/C++ development and kernel development packages are
installed on your system. To install the lin_tape driver with all the added value of
the lin_taped daemon, perform the following steps:
1. Download the appropriate level of the source RPM package to a directory of
your choice on the Linux kernel for which you wish to install it.
2. Run rpmbuild --rebuild <filename>, where: <filename> is the name of the
RPM file. This creates a binary RPM package for your kernel from the source
RPM package.
For example:
>rpmbuild --rebuild lin_tape-1.x.x.x.0-1.src.rpm
3. Output from the build is printed to your screen. Near the end of the output,
there is a line that indicates the filename and location of your binary RPM
package. For example, a line similar to the following is output to your screen:
Wrote: /usr/src/redhat/RPMS/i386/lin_tape-1.x.x.x.0-1.i386.rpm
4. To install the lin_tape driver from the binary package, run >rpm -ivh
<filename>
For example:
>rpm -ivh /usr/src/redhat/RPMS/i386/lin_tape-1.x.x.x.0-1.i386.rpm
5. To install the lin_taped daemon, download it to your Linux filesystem and run
rpm -ivh on the daemon RPM file.
For example:
>rpm -ivh /usr/src/redhat/RPMS/i386/lin_taped-1.x.x.x.0-rhel5.i386.rpm
Updating Procedure
If your current lin_tape device driver was installed from a rpm package previously,
you may uninstall the driver first, then install the newer version. For example:
>rpm -e lin_tape
>rpmbuild --rebuild lin_tape.x.x.x.i386.rpm
>rpm -i lin_tape.x.x.x.i386.rpm
Note: All tape devices that use the lin_tape device driver must be closed and
cannot be in use when lin_tape is uninstalled.
The installed rpm package can be queried by running the following commands to
display information associated with the package.
To display the states of files in the package, for example, normal, not installed, or
replaced:
>rpm -qs lin_tape
Note: Hot plugging SCSI devices while the Linux server is running may cause
hardware damage.
After the driver software is installed and a tape device is connected to the adapter,
the device can be configured and made available for use. Access to the device is
not provided until the device is configured.
If your system is attached to an IBM 3583 Tape Library with the integrated router,
before installing the Qlogic driver, set the host type of the router to solaris and
make sure that the logical unit numbers of the control unit, medium changer, and
the connected tape drives are contiguous (otherwise, the Qlogic device driver does
not recognize all of the attached devices). To view the LUNs of attached devices,
log onto the router and use the fcShowDevs command. If the LUNs are not
contiguous, use the mapCompressDatabase command to delete the invalid LUNs and
make the valid LUNs contiguous.
If you have the StorWatch Specialist installed, you can use the Specialist to do this
configuration. For further information about the StorWatch Specialist, refer to the
IBM Storage Area Network Data Gateway Installation and User's Guide. You can
download the guide from the Web at:
http://www.storage.ibm.com/hardsoft/products/sangateway/support/cdr/
Document/sdgdoc.htm
When you run the lin_tape kernel module, it creates special files in the /dev
directory.
For 2.4 kernels, there are three ways to load the zfcp device driver in order to see
the attached tape devices.
1. Create a /etc/zfcp.conf file and make a ramdisk to statically attach tape
devices into your system. You can use this method only if you have a persistent
mapping in a SAN environment. Every time you reboot the system, the zfcp is
automatically loaded and the tape devices can be seen from the system.
First you need to add the device map into this file. The following is an example
of zfcp.conf:
0xf1c0 0x1:0x5005076300402733 0x0:0x0000000000000000;\
0xf1c1 0x1:0x5005076300402733 0x0:0x0001000000000000
The zfcp device driver uses the "map" module parameter to recognize a
physically attached tape device. "map" takes the following format:
map="<devno><port scsi-id>:<wwpn><unit-scsi-lun>:<fcp-lun>;...."
Where:
devno The device number of the host bus adapter (16 bits, see
/proc/subchannels). It is "0xf1c0" or "0xf1c1" in the previous example.
port scsi-id
Linux internal SCSI ID assigned to the Fibre Channel port of the SCSI
Then, reboot the system. After it is booted up, your tape device should be
shown in /proc/scsi/scsi file.
2. Modify the /etc/modules.conf file to add the zfcp module parameters; then
run the "depmod –A" and "modprobe zfcp" command.
Note: Do not use this choice together with the first one, otherwise it causes
conflicts.
The zfcp map in /etc/modules.conf always takes higher priority than the map
in /etc/zfcp.conf.
The following example demonstrates the zfcp configuration in /etc/modules.conf:
options zfcp map="\
0xf1c0 0x1:0x5005076300402733 0x0:0x0000000000000000;\
0xf1c1 0x1:0x5005076300402733 0x0:0x0001000000000000"
The map arguments are the same as the ones listed in for the /etc/zfcp.conf file.
After modifying the /etc/modules.conf file, save and close it. Then run the
following command:
>depmod -A
>modprobe zfcp
This installs the zfcp device driver and all of its prerequisite kernel modules.
Now you can check the file /proc/scsi/scsi to see if all of the attached tape
devices are shown in this file. If not, then check the fibre channel connection,
such as the fibre cables, or if the devices are powered on, etc.
Then run the following commands to install zfcp:
>rmmod zfcp
>modprobe zfcp
3. Run the "modprobe zfcp" command first, then dynamically add a tape device
into the system after you physically attach a fibre channel tape device to the
switch.
If you physically attach a tape device on the switch and zfcp is already loaded,
you do not need to reboot the Linux system in order to add this entry in the
/proc/scsi/scsi file. The zfcp device driver provides an "add_map" proc system
entry under the directory /proc/scsi/zfcp to allow you to dynamically add the
device into the system. For example, to add two logical units from the example
in Step 2 into the system, you may issue the following commands;
> echo "0xf1c0 0x1:0x5005076300402733 0x0:0x0000000000000000;\
0xf1c1 0x1:0x5005076300402733 0x0:0x0001000000000000" > /proc/scsi/zfcp/add_map
> echo "scsi add-single-device 0 0 1 0" > /proc/scsi/scsi
> echo "scsi add-single-device 1 0 1 1" > /proc/scsi/scsi
Uninstall Procedure
Note: All tape devices that use the lin_tape driver must be closed and cannot be in
use when lin_tape is uninstalled or the uninstall fails.
Configuration Parameters
The configuration parameters are used to set the operating mode of the tape drive
and device driver when a device is opened. The installation defaults are provided
for all parameters initially. These parameters are kept on reopen, but are always
restored back to the default values when the lin_tape device driver is reinstalled.
Nonchangeable Parameters
The configuration parameters are used to set the operating mode of the tape drive
and device driver when a device is opened. The nonchangeable parameters are
detailed as follows:
Autoloading
This parameter enables the autoloading feature of the device driver. It is disabled
by default and cannot be changed.
Capacity Scaling
This parameter sets the capacity or logical length of the current tape. By reducing
the capacity of the tape, the tape drive can access data faster at the expense of data
capacity. Capacity Scaling is not supported currently but might be supported in
future releases of lin_tape.
Density Code
This parameter is the density setting for the currently loaded tape. Some tape
devices support multiple densities and report the current setting in this field. It
cannot be changed by the application.
Emulate Autoloader
This parameter currently is not supported and should be ignored.
Hook Word
This parameter is not supported in the lin_tape device driver.
Medium Type
This parameter is the media type of the current loaded tape. Some tape devices
support multiple media types and different values are reported in this field.
Write Protect
This parameter is set to TRUE if the currently mounted tape is logically or
physically write protected.
Changeable Parameters
The configuration parameters are used to set the operating mode of the tape drive
and device driver when a device is opened. The changeable parameters are
detailed as follows:
Block Size
This parameter specifies the block size used for read and write operations. A value
of zero means a variable block size. Any other value is a fixed block size. The
installation default is zero (variable length block size). Refer to “Maximum SCSI
Transfer Length” on page 103 for additional guidance.
Buffered Mode
This parameter specifies if read and write operations should be buffered by the
tape device. The default (recommended) value is TRUE.
Capacity Scaling
This parameter sets the capacity or logical length of the current tape on Enterprise
Tape System 3590 or 3592 tape subsystems. By reducing the capacity of the tape,
the tape drive can access data faster at the expense of data capacity. Capacity
scaling can be set at 100% for the entire tape (which is the default), or set at 75%,
50%, or 25% of the 3590 tape cartridge and more available capacity scaling for the
3592 standard 300 GB rewritable data cartridge. Capacity scaling remains with the
tape across mounts until it is changed.
Note:
1. The tape position must be at the start of the tape to change this
parameter from its current value.
2. Changing this parameter destroys any existing data on the tape.
3. For 3592 media types, capacity scaling is only supported for the standard
300 GB rewritable data cartridge. Attempting to set capacity scaling that
is not supported by a device or the current media loaded always returns
100% and cannot be changed. For example, the 60GB (Economy Data)
cartridge for the IBM 3592 cannot be capacity scaled and is always 100%.
Compression
Hardware compression is implemented in the device hardware. This parameter
turns the hardware compression feature On and Off. If compression is enabled, the
effective performance can increase, based on the compressibility of the data.
Note: This is volume logging, which is different from error logging. lin_tape
provides error logging whenever the lin_taped daemon is running. Please
refer to “Configure and Run lin_taped Daemon” on page 114 in this chapter
for details on error logging.
Note: The tape position must be at the start of the tape to change this parameter
from its current value.
In lin_tape driver with level 3.0.5 or higher and the open source driver lin_tape,
the maximum transfer length is defined as the minimum length that the host bus
adapter and the tape drive can support. This number is usually greater than
256KB. It can not be changed by the STIOCSETP ioctl call any more.
Rewind Immediate
This parameter sets the immediate bit for rewind commands. If it is set to On, the
rewind tape operation executes faster, but the next command takes a long time to
finish unless the physical rewind operation has completed. Setting this parameter
reduces the amount of time it takes to close a device for a Rewind on Close special
file.
Trace
This parameter turns the trace facility On or Off. With the lin_tape version 1.2.2
and later, the lin_tape device driver provides this support. It is set to On by
default. If trace is On and the lin_taped daemon is running, the lin_tape device
driver retrieves the trace from the driver if trace level is set to 1 or 2 in the
/etc/lin_taped.conf file. The trace file is saved under the directory /var/log by default.
You may specify another directory in /etc/lin_taped.conf file. Please refer to
“Configure and Run lin_taped Daemon” on page 114 for details.
Trailer Labels
If this parameter is set to On, then writing records past the early warning mark on
the tape is allowed. The first write operation after detecting the early warning
mark fails and the errno variable is set to ENOSPC. No data is written during the
operation. All subsequent write operations are allowed to continue until the
physical end of the volume is reached and errno EIO is returned.
If this parameter is set to Off, then writing records past the early warning mark is
not allowed. Errno variable is set to ENOSPC.
Special Files
After the driver is installed and a device is configured and made available for use,
access is provided through the special files. These special files, which consist of the
standard Linux special files for devices, are in the /dev directory.
For tape drives with attached medium changer devices, the IBMchanger* special file
provides a separate path for issuing commands to the medium changer. When this
special file is opened, the application can view the medium changer as a separate
device. Both the tape and changer special file can be opened at the same time.
Table 16. Special Files for IBM TotalStorage Tape Devices
Special File Name Rewind on Close
/dev/IBMTape* YES
/dev/IBMTape*n NO
The file descriptor that results from opening the IBMchanger special file does not
support the following operations:
v Read
v Write
v Open in Append mode
v Commands designed for a tape device
| Lin_tape exports several attributes that can be used as the basis to create persistent
| names. These attributes can be reported to the user through “udevadm info” on
| recent Linux kernels, or “udevinfo” on older Linux kernels. Please refer to the man
| pages for udevadm or udevinfo for details on usage.
| Udev, udevinfo, and udevadm are not implemented or maintained by the lin_tape
| driver, and the man pages for a given system will supercede all information in this
| document. For questions on using these utilities you should contact your Linux
| support representative. However, this section provides an example on using udev
| for implementing a persistent name. The example should be customized to fit a
| user’s needs and environment.
| If there is a tape device attached to the Linux system with world-wide port name
| “0x123456789ABCDEF0” with a current device name of /dev/IBMtape0, a user
| could run udevadm info to obtain information on exported attributes for this
| device. This could be done as follows:
| >udevadm info --attribute-walk --name /dev/IBMtape0
| The output of this command should include something similar to the following:
| ATTRS{serial_num}=="123456789"
| ATTRS{ww_node_name}=="0x123456789ABCDEF1"
| ATTRS{ww_port_name}=="0x123456789ABCDEF0"
| Note: Variations exist between kernels. For example, if you are using udevinfo,
| you should enter the previous command as
| >udevinfo -a -p `udevinfo -q path -n /dev/IBMtape0`
| We can use the ww_port_name in a .rules file that will assign a symbolic link to a
| device that has the listed world-wide port name. The file will typically be placed
| in /etc/udev/rules.d, but this location may be changed by the udev_rules
| Assuming that the udev service is running and configured correctly, the user can
| install or reinstall lin_tape using modprobe, and the symbolic link should be
| created in the /dev/lin_tape/by-id folder. One line should be added to the
| 98-lin_tape.rules file for each symbolic link desired.
The Linux lin_tape device driver control path failover support configures multiple
physical control paths to the same logical library within the device driver and
provide automatic failover to an alternate control path when a permanent error
occurs on one path. This is transparent to the running application.
If your library lists "Primary" or "Alternate" under "FO Path", you have
successfully enabled control path failover feature for your library. If it is "NA"
listed under "FO Path", then the control path failover is not enabled. After control
path failover support is enabled, it remains set until the lin_tape driver is reloaded
with the alternate_pathing driver parameter set to OFF . The path failover setting
is retained even if the system is rebooted. If you want to turn off the control path
failover feature in the lin_tape device driver, you can perform the following steps:
1. lin_taped stop
2. rmmod lin_tape
3. Delete the following line in your /etc/modules.conf file:
Note: Display the primary and alternate path configuration for any device using
tape diagnostic and utility functions, refer to Chapter 9, “IBM Tape
Diagnostic Tool (ITDT),” on page 231..
If it is necessary to disable a path and not perform path fail over (for example due
to maintenance), run commands to disable and then later enable the primary and
alternate paths.
The commands to enable and disable primary and alternate paths are tape
diagnostic and utility functions.
Note: See Chapter 9, “IBM Tape Diagnostic Tool (ITDT),” on page 231..
Data Path Failover and Load Balancing Support for Tape Drives
Data path failover support is not enabled automatically when the device driver is
installed. The Linux lin_tape device driver provides a driver parameter
alternate_pathing for you to enable the data path failover.
To enable the failover support in the lin_tape device driver software, you need to
perform the following steps after installing the lin_tape rpm package.
>lin_taped stop (stop the lin_taped daemon)
>rmmod lin_tape (unload the lin_tape driver from the memory
If you have IBM 3592 tape drives, add the following line in your
/etc/modules.conf file for 2.4 kernels or /etc/modprobe.conf.local file for 2.6
kernels:
options lin_tape alternate_pathing=1
If you have IBM LTO tape drives, the library needs to have path failover feature
code. The data path failover license keys are needed to enable the failover if you
are running LTO2 drives or if you are running LTO3 drives with old levels of drive
code. DPF keys do not need to be added if you are running the latest drive code
on LTO3 or LTO4 drives.
Add the following line in your /etc/modules.conf file for 2.4 kernels or
/etc/modprobe.conf.local file for 2.6 kernels:
dpf_keys="key1;key2;..."
If your tape drive lists "Primary" or "Alternate" under "FO Path", you have
successfully enabled data path failover feature for your tape drive. If it is "NA"
listed under "FO Path", then the data path failover is not enabled. After the path
failover support is enabled, it remains set until the lin_tape driver is reloaded with
the alternate_pathing driver parameter set to OFF . The path failover setting is
retained even if the system is rebooted. If you want to turn off the data path
failover feature in the lin_tape device driver, you may do the following steps:
>lin_taped stop
>rmmod lin_tape
The primary and alternate path information can be obtained by the following
command:
>cat /proc/scsi/IBMtape
Note: Display the primary and alternate path configuration for any device using
tape diagnostic and utility functions, refer to Chapter 9, “IBM Tape
Diagnostic Tool (ITDT),” on page 231..
The commands to enable and disable primary and alternate paths are tape
diagnostic and utility functions.
Note: See Chapter 9, “IBM Tape Diagnostic Tool (ITDT),” on page 231..
Installation
Installation of the lin_tape driver is the same as for the IBMtape driver, except that
IBMtape should be replaced with lin_tape in all of the installation instructions.
Refer to the section “Installation and Configuration Instructions” on page 94 of this
chapter for details.
The lin_tape driver cannot be installed if the IBMtape driver is already installed. If
the IBMtape driver is installed, first uninstall the IBMtape driver, and then install
the lin_tape driver. With RHEL4 and SLES10, driver removal also requires a reboot
of the server, since the IBMtape driver module is "permanent" in these
distributions.
The special device files for the lin_tape driver are the same as for the IBMtape
driver. Refer to “Special Files for the Tape Device” on page 104 and “Special Files
for the Medium Changer Device” on page 104 of this chapter for details on special
device files.
lin_taped status
For details about the path failover support, refer to the sections "“Control Path
Failover Support for Tape Libraries” on page 106" and "“Data Path Failover and
Load Balancing Support for Tape Drives” on page 108" of this chapter.
lin_taped Daemon
The lin_taped daemon uses the same command-line arguments as the IBMtaped
daemon. The lin_taped configuration file is the same as the IBMtaped
configuration file, but has been renamed to lin_taped.conf. Refer to “Configure and
Run lin_taped Daemon” on page 114 of this chapter for detailed information.
System-Managed Encryption
The device driver SME settings can be set for all drives at once using the
"default_sys_encryption_proxy" and "default_sys_encryption_write" module
options.
If no options are specified in the registry, the driver uses the default values for the
parameters.
v The default value for default_sys_encryption_proxy is 1.
This value causes the device driver to handle encryption key requests, if the
drive is set up for system-managed encryption. This value should not need to be
changed. A value of 0 causes the device driver to ignore encryption key requests
for system-managed encryption drives, and is not desirable.
v The default value for default_sys_encryption_write is 2.
This value causes the device driver to leave the encryption write-from-BOP
settings alone. It does not turn on or turn off encryption writing, but instead
uses the settings that are already in the drive. If encryption has not been set up
previously, then the drive writes unencrypted data. A value of 0 causes the
device driver to write unencrypted data. A value of 1 causes the device driver to
write encrypted data.
The default settings are used to initialize the settings for all connected drives.
These settings are available as part of the sysfs infrastructure. For each drive, there
are two files, named "sys_encryption_write" and "sys_encryption_proxy", in the
/sys/class/lin_tape/{DEVICE}/ directory, where: {DEVICE} is the device name,
such as IBMtape0. The contents of these files indicate the current setting for the
parameter for that particular drive. The setting can be changed by writing a
different value for the parameter to the file.
Note: The driver encryption parameters for individual drives are not persistent
between loads of the lin_tape driver. If you remove the lin_tape driver, and
then reload it, the individual settings for all drives are the same as the
"default" settings in /etc/modprobe.conf or /etc/modprobe.conf.local.
The ibmekm.conf file, which contains the configuration that the EKM servers use, is
installed in the /etc/ directory when lin_tape is installed. Instructions for
modifying this file are found within the file itself.
Problem Determination
A set of tools is provided with the device driver to determine if the device driver
and the tape device are functioning correctly.
Install lin_taped
lin_taped is automatically installed at /usr/bin/lin_taped when you install the
lin_tape device driver using the rpm or tar package. Refer to “Installation and
Configuration Instructions” on page 94 for instructions on installing the lin_tape
device driver.
Configure lin_taped
You can customize the operation of lin_taped by modifying its configuration file,
which is located at /etc/lin_taped.conf. The daemon only reads the configuration file
when it starts; consequently, if you make modifications to the configuration file,
then stop the daemon and restart it so that your modifications are recognized by
the daemon.
Tracing: Three levels of tracing are supported for the lin_tape device driver and
are defined as follows:
0 With tracing set to 0, very minimal tracing is recorded from the lin_tape
device driver.
1 With tracing set to 1, lin_taped records information associated with each
ioctl called. If a device error occurs and SCSI sense data is obtained from
the device, a subset of that sense data is also recorded. This is the default
setting for tracing.
2 With tracing set to 2, lin_taped records tracing messages for each SCSI
command. If a device error occurs and SCSI sense data is obtained from
the device, all sense data is also recorded. This tracing level should only be
used when a specific problem is being diagnosed due to the potential for
huge amounts of data being generated.
You may change the directory to which the tracing information is written or the
default maximum size of the trace file by modifying settings in the lin_taped.conf
file. Refer to the instructions in the lin_taped.conf file for details.
Error Logging: lin_taped records certain error messages from the lin_tape device
driver in a file named /var/log/lin_tape.errorlog, by default. Information is written
into the file until it is 1 MB in size, by default. After 1 MB of trace information is
written, the file is archived (using the Linux ar command) into file lin_tape.a in the
same directory. In the archive, the filename is renamed to lin_tape.errorlog.timestamp,
where: timestamp reflects the time that the file was archived.
You may change the directory to which the error logging information is written or
the default maximum size of the error log file by modifying settings in the
lin_taped.conf file. Refer to the instructions in the lin_taped.conf file for details.
The first line indicates the tape device special file name and the device serial
number, and the timestamp when the error message was recorded. "Scsi Path" is
the SCSI path for this logical unit. It matches the order of the scsi/Channel/Id/
Lun information in the /proc/scsi/scsi file. "CDB Command" is the command data
block of the SCSI command. "Status Code" is the returned result from the Linux
SCSI middle layer device driver (scsi_mod.o). The four bytes represent driver_byte,
host_byte, msg_byte, and status_byte, respectively. "Sense Data" is the full SCSI
sense data returned from the target. "Description" is a person-readable text string
obtained by parsing the sense key field of the sense data.
Volume Logging: The lin_tape device driver retrieves the full log sense data from
the tape drive whenever the drive reaches a log threshold, or a tape is unloaded
from the drive, or the drive is reset through an application. This data is stored in
binary in a file named lin_tape.timestamp.log, where: lin_tapen is the device special
file (for example, lin_tape1, lin_tape2, etc.) and timestamp reflects the time the file
was created. Each time log sense data is obtained, it is written to a new file. Use
the appropriate tape drive hardware reference manual to decode the log sense
data.
The volume logging data is stored in the /var/log directory by default. You may
specify another directory in the /etc/lin_taped.conf file.
There are two configuration parameters in the /etc/lin_taped.conf file that you can
tailor to affect the number of log sense files that are kept on your system:
v lin_tapeMaxLogSenseFiles which can have a value of 0 or a positive decimal
number.
v lin_tapeAutoLogSenseFileOverWrite which can have a value of 0 or 1.
The drive dumps are stored in the /var/log directory by default. You may specify
another directory in the /etc/lin_taped.conf file.
There are two configuration parameters in the /etc/lin_taped.conf file that you can
tailor to affect the number of drive dumps that are kept on your system:
v lin_tapeMaxDumpFiles which can have a value of 0 or a positive decimal number.
v lin_tapeAutoDriveDumpFileOverWrite which can have a value of 0 or 1.
The SIM/MIM data is stored in the /var/log directory by default. You may specify
another directory in the /etc/lin_taped.conf file.
There are two configuration parameters in the /etc/lin_taped.conf file that you can
tailor to affect the number of SIM/MIM files that are kept on your system:
v lin_tapeMaxSimMimDataFiles which can have a value of 0 or a positive decimal
number.
v lin_tapeAutoSimMimDataOverWrite which can have a value of 0 or 1.
Selective Tracing: lin_tape provides facilities by which you can disable and
enable tracing, error logging, auto-retrieving drive dumps, and auto-retrieving
SIM/MIM data. You may selectively enable/disable them through an application
program which uses the STIOC_SETP ioctl. These settings persist until the device
driver is restarted, or the host system is rebooted.
logging
This parameter is set to On by default and enables logging of log sense
data. Setting this flag to Off suppresses volume logging for this device.
disable_sim_logging
This parameter controls the logging of SIM/MIM data for a device. By
default it is set to Off which causes SIM/MIM data to be logged. Set this
flag to On to suppress the logging of SIM/MIM records.
disable_auto_drive_dump
This parameter controls the saving of drive dumps for a device. By default
it is set to Off which causes drive dumps to be saved. Set this flag to On to
suppress the saving of drive dumps.
Run lin_taped
If you are running the lin_tape device driver, version 1.4.1 or higher, after
installing lin_tape lin_taped starts running even if your system does not have a
tape device attached. If you add a new tape device into your Linux system,
lin_taped automatically creates a special file under the /dev directory. If you are
running the lin_tape device driver, version 1.3.x or less, lin_taped does not
automatically start if there is no tape device attached. After you attach a new tape
device, you'll need to start the lin_taped daemon.
You can invoke lin_taped from the command line. lin_taped takes zero or more of
the parameters as listed in the following:
lin_taped [start stop restart status]
lin_taped or lin_taped start
Starts the daemon. If there is already a lin_taped running, the new one is
aborted. (Use "lin_taped restart" if lin_taped is already running.)
lin_taped stop
Terminates the daemon and frees all the resources associated with the
daemon. When the daemon is stopped, no information is saved.
lin_taped restart
Terminates the currently running daemon and starts a new one. The new
daemon reads the /etc/lin_taped.conf file. This command should be used
after modifying the /etc/lin_taped.conf file while lin_taped is running.
lin_taped status
Prints a message on stdout indicate whether the daemon is running or not.
Note: If you run "rmmod lin_tape" command to remove the lin_tape device driver
from the running kernel, you need to stop the lin_taped daemon first;
otherwise you get a "Device or Resource Busy" error.
to the debug buffer. To prevent multiple identical entries in the error log,
subsequent reservation conflicts from the same reserving host WWPN will not be
logged.
This chapter provides an overview of the IBM SCSI Tape and Medium Changer
Device Driver for Solaris, also known as IBMtape.
Purpose
This device driver product provides attachment for IBM Magnetic Tape and
| Library System products to Sun Microsystems SPARC and x64 Servers running the
Solaris operating system.
Data Flow
Both data and commands flow between the application program and the tape
subsystem by way of IBMtape. Figure 12 on page 122 shows the data flow between
IBMtape, the application program, the SCSI adapter device driver, and the IBM
tape system.
SCSI or
IBMtape FC IBM
Application
Device Host Bus Tape
Program
a2500266
Driver Adapter Subsystem
Driver
Product Requirements
The following hardware and software components are required and supported by
IBMtape.
Hardware Requirements
The following hardware is required and supported by IBMtape:
v One of the following SCSI-2 Differential Host Bus Adapters:
– Sun Microsystems S-Bus Differential SCSI-2 Host Adapter
– Sun S-Bus Ultra Differential SCSI-2 Fast/Wide Host Adapter
– Sun Dual-Channel Differential Ultra SCSI Host Adapter PCI (requires FC 9799
for 3590 or FC 5099 for IBM Magstar MP 3570 or 3575)
– Sun Microsystems Differential Fast/Wide SCSI-2 Host Adapter (DWIS/S)
Host Adapter (UDWIS/S) (P/N X1062A)
v One or more of the following SCSI High Voltage Differential (HVD) host bus
adapters (359x only):
– Sun Microsystems Differential Fast/Wide SCSI-2 Host Adapter (DWIS/S)
Host Adapter (UDWIS/S) (P/N X1062A)
– Sun Microsystems SBus Ultra Differential Fast/Wide Intelligent SCSI-2 Host
Adapter (UDWIS/S) (P/N X1065A)
– Sun Microsystems Dual-channel Differential UltraSCSI Host Adapter, PCI
(P/N X6541A)
v One or more of the following SCSI Low Voltage Differential (LVD) host bus
adapters on Solaris Version 8, or later (Ultrium only):
– Sun Microsystems PCI Adapter with two fast Ethernet Interfaces and two
SCSI Interfaces (P/N X2222A)
– Sun Microsystems Dual Fast Ethernet + Dual SCSI PCI Adapter (Dual
VHDCI)
– Sun Microsystems PCI Dual Channel Gigabit Ethernet UTP & Dual Channel
SE Ultra-2 SCSI Adapter (P/N X4422A)
– Sun Microsystems PCI-X Single and Dual Ultra320 SCSI Host Adapter SCSI
Adapter (P/N SG-XPCI1SCSILM320-Z and SG-XPCI2SCSILM320-Z )
v One or more of the following Serial Attached SCSI (SAS) host bus adapters on
Solaris Version 10, or later (Ultrium only):
– Sun StorageTek PCI-X SAS HBA (SG-XPCI8SAS-E-Z)
– Sun StorageTek PCI-Express SAS HBA (SG-XPCIE8SAS-E-Z)
v The IBM 2108–G07 (IBM SAN Data Gateway) and IBM 2108–R03 (IBM SAN
Data Gateway Router) can be used to attach SCSI models of the IBM 357x, 3590,
and VTS of products with any of the supported FC–AL host bus adapters.
v The Ultrium tape drives and Enterprise Tape drives 3590 (Model E) and 3592
with Fibre Channel Attachment are supported with the following adapters:
– QLogic HBA:
QLA2200F, QLA2310FL, QLA2340/2340L, QLA2342/2342L, QLA2460/2462
PCI and PCI-X Fibre Channel Host Bus Adapters
QLE2560/2562 PCI-E Fibre Channel Host Bus Adapters
QLE2460/2462 PCI-E Fibre Channel Host Bus Adapters on x64 system only.
– Emulex HBA:
LP8000(PCI), LP8000S(S-Bus), LP9002C(cPCI), LP9002L(PCI), LP9002S(S-Bus),
LP9042DC(PCI-X), LP9802(PCI-X),
LP10000(PCI-X), LP11000/11002 (PCI-X) Fibre Channel Host Bus Adapters
LPe12000/12002 PCI-E Fibre Channel Host Bus Adapters
LPe11000/11002 PCI-E Fibre Channel Host Bus Adapters on x64 system only
– AMCC HBA:
FCX/2-6562(PCI-X), FCX-6562(PCI-X), FCC/2–6562(cPCI),
FCC-6562(cPCI), FCE-6460(PCI) and FCE-1473(S-Bus) Fibre Channel Adapters
– Sun Branded HBA:
Sun StorEdge 2 Gb FC PCI Single Channel network adapter (X6767A)
Sun StorEdge 2 Gb FC PCI Dual Channel network adapter (X6768A)
Sun StorageTek Enterprise Class 4 Gb FC PCI-X HBAs (SG-XPCI2FC-QF4 and
SG-XPCI1FC-QF4)
Sun StorageTek Enterprise Class 4 Gb FC PCI-E HBAs (SG-XPCIE2FC-QF4,
SG-XPCIE1FC-QF4, SG-XPCIE2FC-EM4, and SG-XPCIE1FC-EM4)
Sun StorageTek Enterprise Class 8 Gb FC PCI-E HBAs (SG-XPCIE1FC-EM8-Z.
SG-XPCIE2FC-EM8-Z, SG-XPCIE1FC-QF8-Z, and SG-XPCIE2FC-QF8-Z)
| – Brocade HBA:
| Brocade 8 GB FC PCI-E Host Bus Adapters (825, 815)
| Brocade 4 GB FC PCI-E Host Bus Adapters (425, 415)
| A known issue:
| Brocade HBAs do not support L-port topology. Direct attach configuration to
| our Tape Storage products is therefore not supported with these cards.
v Table 18 indicates which SCSI-attached devices are supported through the IBM
2108-G07 (IBM SAN Data Gateway) and IBM 2108-R03 (IBM SAN Data Gateway
Router) with which fibre-channel host bus adapters.
Table 18. SCSI Supported Devices
QLogic QLogic
DEVICE QLA2100 QLA2200F Emulex LP8000 Emulex LP8000S
Magstar MP X
3570
Magstar MP X
3575
Enterprise 3590, X X X X
models B11,
B1A, E11, and
E1A
VTS model B18 X X X X
VTS models B10, X X X
B20
IBM Enterprise Tape Drive 3590, Models B11, B1A, E11, and E1A
IBM Magstar MP 3570 Tape Subsystem Model C
IBM Magstar MP 3575 Tape Library Dataserver
IBM TotalStorage Virtual Tape Server (Models B10, B18, and B20)
Notes:
1. Using a single Fibre Channel host bus adapter (HBA) for concurrent tape and
disk operations is not recommended. Tape and disk devices require
incompatible HBA settings for reliable operation and optimal performance
characteristics. Under stress conditions (high I/O rates for tape, disk, or both)
where disk and tape subsystems share a common HBA, stability problems have
been observed. These issues are resolved by separating disk and tape I/O
streams onto separate HBAs and using SAN zoning to minimize contention.
IBM is focused on assuring server and storage configuration interoperability. It
strongly recommends that your implementation plan includes provisions for
separating disk and tape workloads.
2. For IBM Ultrium drives with the Fibre Channel attachment, the Sun Solaris
operating system requires that the Fibre Channel addressing mode of the drive
be set to hard addressing.
3. The most recent supported HBA information can be found at:
http://www-03.ibm.com/systems/support/storage/config/hba/index.wss .
Software Requirements
The following software is required and supported by IBMtape:
v Sun Microsystems Solaris operating system Version 2.6, 7, 8, 9, or 10 on SPARC
servers. For Solaris Version 2.6, Sun patch 105867-01 is required.
v Sun Microsystems Solaris operating system Version 10 on x64 servers.
v SCSI Host Bus Adapter (HBA) driver as supplied by the HBA manufacturer.
Refer to the manufacturer’s documentation for the SCSI adapter driver to
determine which adapter driver is required.
The IBMtape package consists of the device driver and a number of associated files
and utilities. For components created during IBMtape installation, refer to Table 19.
Table 19. IBMtape Components
Component (Note) Description
/etc/ibmekm.conf SME configuration file, working version
/etc/tmd.conf TMD configuration file, working version
/opt/IBMtape Package subdirectory
/opt/IBMtape/diags_info Diagnostic script
/opt/IBMtape/ibmekm.conf SME configuration file, reference version
/opt/IBMtape/tapelist Utility program
Examples of installation commands and their results throughout this chapter use a
percent sign (%) to indicate the shell prompt.
| Note: To prevent more than one device driver from claiming IBMtape-owned
| devices, IBMtape must be also configured with HBA correctly. Refer to the
| section of “Configuring IBM tape devices with Sun FC and SAS HBAs” on
| page 133 for the details.
Attention: Failure to prevent more than one device driver from operating the
same tape drive may cause system panics or data loss on the tape drive.
The following installation and update steps describe how to prevent conflicts
between IBMtape and other SCSI tape device drivers.
Preinstallation Considerations
Follow these steps to install or update IBMtape. Before starting the step-by-step
procedure, note the following general considerations:
v Differential SCSI-2 support must already exist on the machine before installing
IBMtape. Install and configure one of the supported differential SCSI adapters
first, then return to this section. Refer to the differential SCSI adapter
documentation for instructions on installing the adapter and adapter driver.
v You must have root authority to install or remove IBMtape.
v You may restart the system as part of the IBMtape installation. Take appropriate
precautions that this does not adversely affect users or active processes on the
system.
v As a consequence of installing or reinstalling IBMtape, device special file
numbers under /dev/rmt may change. These numbers are assigned by Solaris
during the driver attachment process, and the sequencing cannot be specified by
the device driver or installer.
| Note: When the drive is configured with Sun HBA driver, even though the
| hardware path shows as st@w10000000c9848d68,0 the device special file
| still indicates that the drive is configured with IBMtape driver.
| lrwxrwxrwx 1 root root 80 Feb 22 05:12 /dev/rmt/0st ->
| ../../devices/pci@400/pci@0/pci@d/SUNW,emlxs@0/fp@0,0/st@w10000000c9848d68,0:st
| The above device special file is created by IBMtape. Refer to the section
| “Special Files” on page 145 for more detail.
In this example, /dev/rmt/0st (a SCSI tape drive) is controlled by IBMtape and
is associated with the device at SCSI address b, LUN 0. The address is
reported in hexadecimal format: The file /dev/rmt/1smc (a SCSI medium
changer) is associated with the device at SCSI address b, LUN 1. Record the
device type, /dev/rmt special file number, owning driver, SCSI target address
and LUN. This information is required later in the installation.
For example, suppose an installation has only an IBMtape-owned device
installed at SCSI address 8. The device consists of both a tape drive and SCSI
medium changer. The tape drive is accessed as /dev/rmt/2st, and the medium
changer as /dev/rmt/3smc. For a similar equipment listing after recording the
device information, refer to Table 21.
Table 21. Solaris Device Driver - IBMtape - Equipment Listing Example 1
SCSI Address/LUN
DEVICE Old Special File Old Driver (Old)
3590-B11 drive /dev/rmt/2st IBMtape 8/0
3590-B11 changer /dev/rmt/3smc IBMtape 8/1
7. Select one of the following methods to prevent conflicts between IBMtape and
other SCSI tape device drivers, depending on the equipment that is attached
to your system.
| Note: To prevent more than one device driver from claiming IBMtape-owned
| devices, IBMtape must be also configured with HBA correctly. Refer to
| the section of “Configuring IBM tape devices with Sun FC and SAS
| HBAs” on page 133 for the details.
Attention: Failure to prevent more than one device driver from operating the
same SCSI tape drive may cause system panics or data loss on the tape drive.
a. If the system has only IBMtape-owned devices attached, follow these steps
to prevent st and other non-IBM SCSI tape device drivers from claiming
the IBM devices.
1) Edit /kernel/drv/st.conf, and comment out all SCSI target entries by
placing a pound sign (#) in the first column of each target entry. The
following example shows the entries for SCSI target addresses 0 and 1
commented out. Repeat this operation for all target entries.
#name="st" class="scsi"
#target=0 lun=0;
#name="st" class="scsi"
#target=1 lun=0;
2) For other non-IBM installed SCSI tape device drivers, remove the
drivers if they are not needed. If a driver is for SCSI tape devices only,
it should not be needed. If a driver is for both tape and disk devices,
follow the suppliers’ instructions to disable its access to all SCSI tape
devices.
#name="st" class="scsi"
#target=8 lun=0;
2) For other non-IBM installed SCSI tape device drivers, follow the
suppliers’ instructions to disable their access to all SCSI tape devices in
the address range 7–15.
3) Later, after the IBMtape package has been installed, you must alter its
configuration file so it does not use SCSI target addresses in the range
0–7 or address 15.
Now st and other non-IBM SCSI tape device drivers have been configured
to avoid conflicting with IBMtape.
8. Remove all special file entries under /dev/rmt. This ensures that stale entries do
not exist after the system is restarted. New entries are created when the
system is restarted.
% rm /dev/rmt/*
| 9. Read the next section of “Configuring IBM tape devices with Fibre Channel
| and SAS HBAs” on page 132, and follow the instruction requirements for the
| selected HBA in the host machine before and/or after installing IBMtape.
10. If you are updating the level of IBMtape, remove the currently installed
IBMtape package. If this is a new installation of IBMtape, skip this step.
a. Use pkgrm to remove the current level.
% /usr/sbin/pkgrm IBMtape
Note: If this is a new install of IBMtape, IBM devices are not yet attached to
the system, pkgadd error messages similar to the following are output:
...
drvconfig: Driver (IBMtape) failed to attach
Warning: Driver (IBMtape) successfully added to system
but failed to attach
## The device driver was unable to detect any supported devices!
## Verify that the device(s) are properly connected and powered on.
## Ensure that the SCSI adapter device driver is installed/configured.
## Then try reinstalling the device driver as follows:
## -enter the command: rem_drv IBMtape
## -enter the command: add_drv -m ’* 0666 bin bin’ IBMtape
## If problems persist, contact your IBM service representative.
pkgadd: ERROR: postinstall script did not complete successfully
...
Later, after you have cabled IBM drives to the system and restarted, the driver
attaches normally.
| If the distribution medium is a package file in a Unix file system, perform the
| following steps. You may have obtained a package file by downloading it
| from IBM’s Fix Central website: http://www.ibm.com/support/fixcentral. For
| further information please see Appendix A, “Accessing Documentation and
| Software Online,” on page 317. This example presumes a package file named
| IBMtape.4.0.2.7 located in the /tmp directory.
| a. If necessary, FTP the package file to the target system. Use binary transfer
| mode. Place the package file in the target system’s /tmp directory.
| b. Use pkgadd to install the driver:
| % /usr/sbin/pkgadd -d /tmp/IBMtape.4.0.2.7
12. If your system environment includes a mixture of IBMtape-owned devices and
devices owned by st or another third-party SCSI tape device driver, you
should have already modified the configuration files for the non-IBM device
drivers and restricted them to target addresses in the range 0–6.
Edit IBMtape.conf, located in /usr/kernel/drv, and comment out entries for SCSI
target addresses 0–7 and 15 by placing a pound sign (#) in the first column of
each line making up the entries. In the following example, the entries for
address 0, LUN 0 and address 0, LUN 1 have been commented out. Repeat
the operation for all stanzas in the address range 0–7 and address 15. Note
that each SCSI target address has a stanza for both LUN 0 and LUN 1.
#name="IBMtape" class="scsi"
#target=0 lun=0
#block_size=0
#buffering=1
#immediate=0
#trailer=0
#sili=0;
#name="IBMtape" class="scsi"
#target=0 lun=1
#block_size=0
#buffering=1
#immediate=0
#trailer=0
#sili=0;
In SAN environment, the fibre channel HBA driver may map the SCSI target
address out of the range 15 and LUN over the number 1. You create a new
entry with the mapped SCSI target in IBMtape.conf. In the following example,
a IBM tape device is mapped to the SCSI target 32 and LUN 15.
name="IBMtape" class="scsi"
target=32 lun=15
block_size=0
buffering=1
immediate=0
trailer=0
sili=0;
Alternatively, you can modify the configuration file or use the utility provided
by the fibre channel HBA driver to persistently bind the tape device to the
expected SCSI target address.
13. Shut down the system. One common method to perform a shutdown is
shown here but use your installation’s normal procedures.
% /usr/sbin/shutdown -y -g0 -i0
14. Address or readdress devices as determined by your installation:
a. If the system has only IBMtape-owned devices attached, you may select
addresses in the range 0–6 or 8–14. Leave addresses 7 and 15 unused,
because these addresses are used typically by the SCSI adapter.
1) For each device, refer to the appropriate IBM hardware reference for
any special instructions about addressing. Then set the address and
record the device type, SCSI address, and LUN. For example, suppose
an installation has only IBMtape-owned devices attached. An IBM
device with tape drive and medium changer is added. It is addressed
at target 4 and the information is recorded. For the results, refer to
Table 22
Table 22. Solaris Device Driver - IBMtape - Equipment Listing Example 2
SCSI SCSI
Old Special Address/LUN Address/LUN
DEVICE File Old Driver (Old) (New)
3590-B11 drive – – – 4/0
3590-B11 changer – – – 4/1
b. If you are using distinct address ranges to separate tape drives that are
IBMtape-owned from devices that are owned by st or another supplier’s
driver, readdress the tape drives now.
1) For each device to be owned by st or another SCSI tape device driver,
refer to the manufacturer’s hardware reference for any special
instructions about readdressing. Then readdress each device to an
address in the range 0–6. For each tape drive that is readdressed,
record the new SCSI address along side the special file number and old
SCSI address that you recorded previously.
2) Readdress all tape drives that are owned by IBMtape to addresses in
the range 8–14. Refer to the appropriate IBM hardware references for
any special instructions about readdressing. For each tape drive that is
readdressed, record the new SCSI address along side the special file
number and old SCSI address, if any, that you recorded previously.
For example, suppose an installation has two non-IBM devices owned
by st at SCSI addresses 9 and B (12 in decimal). An IBM device with
tape drive and medium changer is added. To prevent conflicts between
IBMtape and st, the non-IBM devices are all placed at addresses in the
range 0–6. The new IBM device is addressed in the range 8–14, at
address 10, or X'0A'. Depending on the addresses chosen for the
non-IBM devices, after readdressing and recording device information,
refer to Table 22 for the possible equipment listing.
15. Cable the tape drives to the system, if not yet done. Refer to the
manufacturer’s hardware references for any special instructions about cabling.
Ensure that each SCSI bus is terminated properly.
16. Start the system according to your installation’s normal procedures.
17. Log on as root and list the device special files in /dev/rmt as you did earlier
during the install.
% ls -l /dev/rmt/*l
% ls -l /dev/rmt/*st /dev/rmt/*smc
Compare the SCSI addresses obtained from ls with the readdressed SCSI
targets you recorded. Write the new device special file numbers and owning
driver next to the matching new SCSI addresses.
For example, suppose an installation previously had two non-IBM devices
owned by st at SCSI addresses 2 and–8. An IBM device with tape drive and
medium changer is added. To prevent conflicts between IBMtape and st, the
non-IBM devices are all placed at addresses in the range 0–6. The new IBM
device is addressed in the range 8–14. Depending on the addresses chosen,
after completing installation and recording device information, refer to
Table 24 for the possible equipment listing entries.
Table 24. Solaris Device Driver - IBMtape - Equipment Listing Example 4
SCSI SCSI
Old Special Old Address/ Address/ New New Special
DEVICE File Driver LUN (Old) LUN (New) Driver File (Note)
QIC /dev/rmt/5l st 2/0 2/0 st /dev/rmt/0l
QIC /dev/rmt/6l st 8/0 0/0 st /dev/rmt/1l
3590-B11 – – – 8/0 IBMtape /dev/rmt/2st
drive
3590-B11 – – – 8/1 IBMtape /dev/rmt /3smc
changer
Note: Based on the listing, you can see that the tape drive accessed previously as
/dev/rmt/5 is now accessed as /dev/rmt/0, the new medium changer is accessible as
/dev/rmt/3smc, and so on.
| same tape drive is configured by st driver with the special file of /dev/rmt/0
| and by IBMtape driver with /dev/rmt/15st at the same SCSI address (target
| 0 and LUN 0).
| lrwxrwxrwx 1 root root 49 Jul 28 2009 /dev/rmt/0 ->
| ../../devices/pci@81,2000/fibre-channel@1/st@0,0:
| lrwxrwxrwx 1 root sys 56 Jul 28 2009 /dev/rmt/15st ->
| ../../devices/pci@80,2000/fibre-channel@1/IBMtape@0,0:st
| c. Run the system command or other utility to verify if the device can be
| opened using both device special file names.
| Using the device special files in above example, load the cartridge in the
| drive and run # mt -f /dev/rmt/* stat command
| (1) IBMtape opens the drive.
| # mt -f /dev/rmt/15stn stat
| IBM_ULT3580-TD5 tape drive:
| sense key(0x0)= No Additional Sense residual= 0 retries= 0
| file no= 0 block no= 0
| (2) st opens the drive.
| # mt -f /dev/rmt/0n stat
| IBM_ULT3580-TD5 tape drive:
| sense key(0x0)= No Additional Sense residual= 0 retries= 0
| file no= 0 block no= 0
| (3) st fails to open the drive.
| # mt -f /dev/rmt/0n stat
| /dev/rmt/0n: No such file or directory
19. Verify operation of the newly installed or readdressed equipment.
20. Notify users of any changed device special files numbers.
| To configure an IBM tape device with a QLogic FC HBA running with Sun
| branded QLogic FC HBA driver (qlc), refer to the section “Configuring IBM tape
| devices with Sun FC and SAS HBAs.”
| To configure an IBM tape device with an Emulex FC HBA running with Sun
| branded Emulex FC HBA (emlxs) driver, refer to the section “Configuring IBM
| tape devices with Sun FC and SAS HBAs.”
3. Run # cfgadm -al to display the configuration between the HBA and the tape
device.
Run # cfgadm -al -o show_FCP_dev Ap_Id to show the medium changer
configuration with the FC HBA.
Run # cfgadm -c configure device to configure the tape device with the HBA if
needed.
4. Install the IBMtape tape driver by running the # pkgadd -d IBMtape
command.
5. Enter the following appropriate lines in /etc/driver_aliases:
IBMtape "scsiclass,01.vIBM.pXXX" for tape drive.
IBMtape "scsiclass,08.vIBM.pXXX" for medium changer.
Where: 01 and 08 stand for the type of tape drive and medium changer and
XXX is the product ID string in the standard inquiry data. For example,
ULT3580-TD2 is the product ID of the IBM LTO2 drive. The following entry is
added in the file for the IBM LTO2 drive:
IBMtape "scsiclass,01.vIBM.pULT3580-TD2"
The following is a list of the entries for the supported IBM tape devices.
For the tape drives:
IBMtape "scsiclass,01.vIBM.pULT3580-TD1"
IBMtape "scsiclass,01.vIBM.pULTRIUM-TD1"
IBMtape "scsiclass,01.vIBM.pULT3580-TD2"
IBMtape "scsiclass,01.vIBM.pULTRIUM-TD2"
IBMtape "scsiclass,01.vIBM.pULT3580-TD3"
IBMtape "scsiclass,01.vIBM.pULTRIUM-TD3"
IBMtape "scsiclass,01.vIBM.pULT3580-HH3"
IBMtape "scsiclass,01.vIBM.pULTRIUM-HH3"
IBMtape "scsiclass,01.vIBM.pULT3580-TD4"
IBMtape "scsiclass,01.vIBM.pULTRIUM-TD4"
IBMtape "scsiclass,01.vIBM.p03592J1A"
IBMtape "scsiclass,01.vIBM.p03592E05"
IBMtape "scsiclass,01.vIBM.p03592E06"
For the medium changers:
IBMtape "scsiclass,08.vIBM.p03584L32"
IBMtape "scsiclass,08.vIBM.p03584L22"
IBMtape "scsiclass,08.vIBM.pULT3582-TL"
IBMtape "scsiclass,08.vIBM.pULT3583-TL"
IBMtape "scsiclass,08.vIBM.pULT3581-TA"
IBMtape "scsiclass,08.vIBM.pULT3581-TA2"
IBMtape "scsiclass,08.vIBM.p3576-MTL"
IBMtape "scsiclass,08.vIBM.p3573-TL"
IBMtape "scsiclass,08.vIBM.p3577-TL"
Note: The entry is also added running the # update_drv command on Solaris 8
(patch 111804-03 is required), Solaris 9, and later versions of the
operating system. For example:
# update_drv -av -i ’"scsiclass,01.vIBM.pULT3580-TD2"’ IBMtape
6. Reboot the system by running # reboot -- -r.
7. Run # /opt/IBMtape/tapelist -l to display the configured tape device
information.
Note: All of the added entries are removed by the operating system
automatically after IBMtape is unloaded from the kernel by running the
# pkgrm, rem_drv, or modunload commands. It is strongly
recommended that you back up these entries in a file, and that you
re-enter the entries when you upgrade the IBMtape driver before
running the #pkgadd command.
| IBMtape "scsiclass,01.vIBM.pULTRIUM-TD4"
| IBMtape "scsiclass,01.vIBM.p03592J1A"
| IBMtape "scsiclass,01.vIBM.p03592E05"
| IBMtape "scsiclass,01.vIBM.p03592E06"
| For the medium changers:
| IBMtape "scsiclass,08.vIBM.p03584L32"
| IBMtape "scsiclass,08.vIBM.p03584L22"
| IBMtape "scsiclass,08.vIBM.pULT3582-TL"
| IBMtape "scsiclass,08.vIBM.pULT3583-TL"
| IBMtape "scsiclass,08.vIBM.pULT3581-TA"
| IBMtape "scsiclass,08.vIBM.pULT3581-TA2"
| IBMtape "scsiclass,08.vIBM.p3576-MTL"
| IBMtape "scsiclass,08.vIBM.p3573-TL"
| IBMtape "scsiclass,08.vIBM.p3577-TL"
| Note: The entry is also added running the # update_drv command on Solaris 8
| (patch 111804-03 is required), Solaris 9, and later versions of the
| operating system. For example:
| # update_drv -av -i ’"scsiclass,01.vIBM.pULT3580-TD2"’ IBMtape
| 6. Reboot the system by running # reboot -- -r.
| 7. Run # /opt/IBMtape/tapelist -l to display the configured tape device
| information.
The IBMtape driver supports the Solaris Zones environment. To install IBMtape on
the system with the virtualized zones, run the pkgadd system command from the
global zone:
#pkgadd -G -d IBMtape.x.x.x.x
The IBMtape install script installs the driver in the global zone and installs some of
IBMtape utilities running a non-root user in all zones.
Since the tape devices in non-global zones are configured from the global zone, a
script program called ztapelist was developed to help the user display the IBM
tape devices and to dynamically assign or remove IBM tape devices in non-global
zones without the non-global zone reboot requirement. The utility (available in
IBMtape 4.1.5.2 or later) is installed on Solaris 10 and runs in the global zone only.
Synopsis
/opt/IBMtape/ztapelist [-l] [-c] [-z zonename] [-a] [-d] [-h]
-l Displays IBM tape device information with the column headers for all
zones
-c Displays IBM tape device information without the column headers for all
zones
-z zonename Shows IBM tape devices in a zone
-a Dynamically adds IBM tape devices to each non-global zone without
additional arguments
The ztapelist command displays all of the IBM tape devices in the global zone and
the tape devices in the non-global zones as shown in the following example. An
option of ztapelist -z zonename is also provided to show all of the assigned tape
devices in a particular zone.
# /opt/IBMtape/ztapelist -l
Running in global zone ...
Inst# Special File Device Serial No TGT/LUN Ucode World Wide NN World Wide PN
------- -------------- ---------- ----------------- ------------ ---------- ----------------- -----------------
193 /dev/rmt/27st 03592E05(e/e) 000001365066 2/0 1A38 500507630019F016 500507630059F016
194 /dev/rmt/28smc 03584L22 0000000T003904E5 2/1 805r N/A N/A
200 /dev/rmt/29st ULT3580-TD4(e) 1300000044 4/0 82F0 500507630019F009 500507630059F009
201 /dev/rmt/30smc 03584L32 0000000T00390401 4/1 805r N/A N/A
206 /dev/rmt/31st ULT3580-TD3 1210003557 7/0 73P5 500507630019F007 500507630059F007
38 /dev/rmt/32smc 03584L32 0000000T00390401 7/1 805r N/A N/A
# ztapelist -a
Issuing this function will assign the tape devices in non-global zone
Do you wish to continue? [y/n]: y
Inst# Special File Device Serial No TGT/LUN Ucode World Wide NN World Wide PN
------- ---------------- ------------ -------------- ------------ ---------- ---------------- --------------
193 /dev/rmt/27st 03592E05(e/e) 000001365066 2/0 1A38 500507630019F016 500507630059F016
194 /dev/rmt/28smc 03584L22 0000000T003904E5 2/1 805r N/A N/A
200 /dev/rmt/29st ULT3580-TD4(e) 1300000044 4/0 82F0 500507630019F009 500507630059F009
201 /dev/rmt/30smc 03584L32 0000000T00390401 4/1 805r N/A N/A
206 /dev/rmt/31st ULT3580-TD3 1210003557 7/0 73P5 500507630019F007 500507630059F007
38 /dev/rmt/32smc 03584L32 0000000T00390401 7/1 805r N/A N/A
The ztapelist command also allows the user to remove all or some assigned tape
devices from the non-global zone, as shown in the following example:
# /opt/IBMtape/ztapelist -d
Issuing this function will remove the tape devices from non-global zone
Do you wish to continue? [y/n]: y
Do you want to remove the tape devices from all of non-global zones? [y/n]: n
ID NAME STATUS PATH
0 global running /
1 camshaft running /zones/zone1
2 softail running /zones/zone2
Do you wish to continue to remove the devices from this zone? [y/n]: n
Do you wish to continue to remove the devices from other zone? [y/n]: y
ID NAME STATUS PATH
0 global running /
1 camshaft running /zones/zone1
2 softail running /zones/zone2
Configuration Parameters
When using devices controlled by IBMtape, certain device characteristics, such as
the default block size, can be controlled through the device driver configuration file.
The IBMtape configuration file is named IBMtape.conf. The working copy of this
file is located in the /usr/kernel/drv directory.
Note: IBM requires that the Solaris native SCSI tape device driver st be configured
so that it does not attempt to support SCSI targets that are controlled by
IBMtape. Refer to “Preventing Conflicts with Other Device Drivers” on page
125 for more information about multiple driver access to a device.
Attention: Failure to prevent more than one device driver from operating the
same tape drive may cause system panics or data loss on the tape drive.
Configuration settings are applied only at start time, or when IBMtape is unloaded
manually from, then reloaded into, memory. If you change configuration settings in
IBMtape.conf, you can make the changes effective by restarting the system. As an
alternative to restarting, ensure that no IBMtape-owned devices are in use, then
issue the following:
Default settings in IBMtape.conf can be overridden for a particular device (and only
while the device is kept open) using the ioctl application programming interface
(API) of the device driver. The parameter settings made through the API revert
back to the default values in IBMtape.conf the next time the device is opened. Refer
to the IBM TotalStorage and System Storage Tape Device Drivers: Programming Reference
for more information about changing configuration parameters under program
control.
IBMtape.conf contains one stanza for each SCSI target address/LUN pair owned by
IBMtape. The reference IBMtape.conf file supplied with the package contains a
stanza for every possible SCSI target and LUN combination supported by IBM tape
systems.
The following example shows the stanza for target 0, LUN 0, with IBMtape's
default configuration parameter values. The parameter immediate is disabled,
which means that SCSI commands Write FM, Locate, Load-Unload, Erase, and
Rewind complete before returning status:
name="IBMtape" class="scsi"
target=0 lun=0
block_size=0
buffering=1
immediate=0
trailer=0
sili=0;
The following example shows the stanza for target 0, LUN 0, with IBMtape's
default configuration parameter values and the rewind immediate mode set on,
which causes the SCSI rewind command to return control to the application
program before the command actually completes on the tape drive:
name="IBMtape" class="scsi"
target=0 lun=0
block_size=0
buffering=1
rew_immediate=1
trailer=0
sili=0;
The name variable identifies IBMtape as the device driver, and class identifies the
type of device supported as SCSI.
The target and the lun variables determine the target address and LUN of IBM
devices that are controlled by that stanza. On systems with multiple SCSI adapters,
a single target/LUN stanza controls the configuration settings for all devices
addressed with that target address and LUN. Thus, two or more supported IBM
devices on the system that have the same target and LUN settings but are attached
to different SCSI buses are all affected by the configuration parameters of the
single stanza having that target address and LUN.
this example, the stanzas for target 0, LUN 0 and target 0, LUN 1 have been
commented out. Those address/LUN combinations are not probed, which saves
time during a restart or manual reload of IBMtape. However, if an IBM device is
addressed at target 0, LUN 0 or target 0, LUN 1, it is not detected.
#name="IBMtape" class="scsi"
#target=0 lun=0
#block_size=0
#buffering=1
#immediate=0
#trailer=0
#sili=0;
#name="IBMtape" class="scsi"
#target=0 lun=1
#block_size=0
#buffering=1
#immediate=0
#trailer=0
#sili=0;
The remaining five configuration parameters specifically affect the behavior of the
IBM device or devices associated with that stanza (target and LUN). All of these
parameters are specific to tape drive device operation only and have no effect on
medium changer device behavior. The default configuration parameters are
adequate for most purposes. However, the values in the configuration file can be
modified to suit the specific requirements of the application or the user.
Remember that modifying a value in the configuration file determines the value of
the parameter at device open time. When the device is open, the value of a
parameter can be altered using an ioctl function call, but the change is effective
only while the device remains open. Working configuration parameters revert back
to the default values (established by the configuration file) when the device is
closed and reopened. Refer to the IBM Tape Device Drivers: Programming Reference
for more information about changing configuration parameters through program
control.
Table 25 lists and describes the set of configuration parameters recognized by the
IBMtape device driver.
Table 25. Configuration Parameters Recognized by IBMtape
Parameter Values Description
block_size (0=variable length) This option specifies the device block size that is established with the SCSI
Mode Select command during an open function call. Until this value is
changed, it is the working block size. Variable block size is established using
a value of zero. Any other positive value represents a fixed block size. The
maximum supported block size varies for each tape device. Refer to the
appropriate hardware reference manual for additional information.
Note: IBMtape does not allow odd-byte-count fixed block reads or writes.
For instance, a fixed block size of 4096 or 4098 is allowed, but 4097 is not. If
you attempt to read or write using an odd-byte-count fixed block size, the
read or write returns -1, with errno set to 22, invalid argument. If you must
read or write odd-byte-count blocks, set block size to 0 (variable block size),
then transfer one block’s worth of data per read or write.
Removing IBMtape
All active processes using IBM devices supported by the IBM SCSI Tape and
Medium Changer Device Driver for Solaris must be stopped in order for the
removal procedure to complete successfully.
Use the pkgrm command to remove the IBMtape package from the system.
% /usr/sbin/pkgrm IBMtape
Note: It is strongly suggested that the host system and all devices attached to
the SCSI bus be powered Off before adding or removing devices from
the SCSI bus. Hot plugging SCSI devices can cause hardware damage
and disruption of reliable system operation.
# tapelist -t
hba_index hba_inst hba_driver reg_count usage_count HBA Path
--------- -------- ----------- ----------- ----------- --------------------------–
0 0 qla2300 4 1 /devices/pci@4,2000/fibre-channel@1
1 2 lpfc 4 2 /devices/pci@6,2000/pci@1/fibre-channel@4
2 3 lpfc 1 0 /devices/pci@6,2000/pci@1/fibre-channel@5
A new feature is added in tapelist to display the drive information in the library
that is running /opt/IBMtape/tapelist -L.
# tapelist -L
Addr Inst# Special File Device Serial No TGT/LUN Ucode World Wide NN World Wide PN
----- ----- ------------- ------------- --–-------------- ------- ----- ------------–-- ------------–--
Library (/dev/rmt/5smc) Info:
2894 /dev/rmt/5smc 03584L22 0000000T003904E5 3/1 806c N/A N/A
274 2893 /dev/rmt/13st 03592E05(e/e) 000001365066 3/0 1D10 500507630019F016 500507630059F016
276 2914 /dev/rmt/14st 03592E06(e/e) 000001326803 14/0 2444 500507630019F019 500507630059F019
The following is a definition of the fields and headers that appear in the previous
screens:
Inst # The instance number of the particular device.
Special File The device special file used to access this device.
Device A string indicating the device model and encryption information
(e/e: encryption capable/encryption enable).
Serial No: The serial number of the device.
TGT/LUN The SCSI target and LUN of the device.
Ucode level The current microcode (firmware) loaded on the device.
World Wide NN A number indicating Fibre Channel World Wide Node Name of the device.
World Wide PN A number indicating Fibre Channel World Wide Port Name of the device.
Dev Phy Path A string indicating the device path in the device tree.
Path Type A primary or alternate path used for failover.
hba_index The index number of the particular HBA in the HBA list.
hba_inst The instance number of the particular HBA assigned by the Solaris system.
hba_driver The HBA driver name with IBM tape drive attachment.
reg_count The number of IBM tape drives attached on the HBA.
usage_count The number of IBM tape drives currently using the HBA.
HBA Path A string indicating the HBA device path in the device tree.
Addr The element address where the drive is located in the library.
e/e The first and second instances of "e" stand for encryption
capable and encryption enable.
Running tapelist without any options displays the device information line by line
for all of the configured devices.
Special Files
After the IBMtape driver is installed, a set of special files is available for
performing input/output (I/O) operations to each supported device. The device
special file names created by the IBMtape device driver are similar to the SCSI tape
special files generally used on Solaris systems.
Each tape instance has a set of minor numbers that provides access to the same
physical device, but each minor number provides a different function or behavior
for the tape subsystem. These minor numbers are accessed through variations of
the special file name for that device. The special files are created in the /dev/rmt
directory. These special files are actually symbolic links to files created within the
/devices subdirectory hierarchy.
Issuing the ls -la /dev/rmt command gives useful information about these device
special files. The following example shows entries returned by this command for a
single IBM tape subsystem. This listing is system dependent, so entries vary
slightly in format, depending on the operating system and SCSI adapter support.
There may also be entries included for other devices that are not supported by the
IBMtape device driver.
lrwxrwxrwx root other 79 Aug 26 18:54 0smc ->
/devices/iommu@f,e0000000/sbus@f,e0001000/QLGC,isp@3,
10000/IBMtape@2,0:smc
lrwxrwxrwx root other 78 Aug 26 18:54 0st ->
/devices/iommu@f,e0000000/sbus@f,e0001000/QLGC,isp@3,
10000/IBMtape@2,0:st
lrwxrwxrwx root other 79 Aug 26 18:54 0stb ->
/devices/iommu@f,e0000000/sbus@f,e0001000/QLGC,isp@3,
10000/IBMtape@2,0:stb
lrwxrwxrwx root other 80 Aug 26 18:54 0stbn ->
/devices/iommu@f,e0000000/sbus@f,e0001000/QLGC,isp@3,
10000/IBMtape@2,0:stbn
lrwxrwxrwx root other 79 Aug 26 18:54 0stc ->
/devices/iommu@f,e0000000/sbus@f,e0001000/QLGC,isp@3,
10000/IBMtape@2,0:stc
lrwxrwxrwx root other 80 Aug 26 18:54 0stcb ->
/devices/iommu@f,e0000000/sbus@f,e0001000/QLGC,isp@3,
10000/IBMtape@2,0:stcb
lrwxrwxrwx root other 81 Aug 26 18:54 0stcbn ->
/devices/iommu@f,e0000000/sbus@f,e0001000/QLGC,isp@3,
10000/IBMtape@2,0:stcbn
lrwxrwxrwx root other 80 Aug 26 18:54 0stcn ->
/devices/iommu@f,e0000000/sbus@f,e0001000/QLGC,isp@3,
10000/IBMtape@2,0:stcn
lrwxrwxrwx root other 79 Aug 26 18:54 0stn ->
/devices/iommu@f,e0000000/sbus@f,e0001000/QLGC,isp@3,
10000/IBMtape@2,0:stn
These entries show the device hierarchy established to support I/O for an IBM
SCSI tape system. The attachment path of the device special files spans from the
system board, through the S-bus, to the Sun F/W SCSI adapter (supported by the
QLGC, isp SCSI adapter device driver), to the IBM device at SCSI target 2 and
LUN 0 (supported by the IBMtape device driver). All nine of these special files are
associated with the same IBM device (device number 0).
Device Behaviors
Certain device behaviors are determined by which special file in the set is opened
for device access. The smc special file controls only the medium changer portion of
the device and accepts only medium changer operations by way of the ioctl entry
point. The smc special file does not support the read and write entry points. Only
one st type special file for a particular device may be opened at any one time. The
smc special file may be opened concurrently with any one of the st special files.
The IBMtape device driver decides which types of special files to create during
installation, based on the IBM device type being configured. For the IBM 3490E
Magnetic Tape Subsystem, only the eight st type special files are created. For other
IBM tape drives, all nine special files shown previously are created. For IBM tape
libraries and autoloaders, only a single smc special file is created.
With the information from the previous command, issuing the ls -la
/devices/iommu@f,e0000000/sbus@f,e0001000/QLGC,isp@3,10000 command presents
further information about the same special files, as shown in the following
example. Again, the actual path information specified in the command varies from
system to system.
crw-rw-rw- 1 bin bin 109,1696 Aug 26 18:54 IBMtape@2,0:smc
crw-rw-rw- 1 bin bin 109,1664 Aug 26 18:56 IBMtape@2,0:st
crw-rw-rw- 1 bin bin 109,1728 Aug 26 18:54 IBMtape@2,0:stb
crw-rw-rw- 1 bin bin 109,1732 Aug 26 18:54 IBMtape@2,0:stbn
crw-rw-rw- 1 bin bin 109,1688 Aug 26 18:54 IBMtape@2,0:stc
crw-rw-rw- 1 bin bin 109,1752 Aug 26 18:54 IBMtape@2,0:stcb
crw-rw-rw- 1 bin bin 109,1756 Aug 26 18:54 IBMtape@2,0:stcbn
crw-rw-rw- 1 bin bin 109,1692 Aug 26 18:54 IBMtape@2,0:stcn
crw-rw-rw- 1 bin bin 109,1668 Aug 26 18:54 IBMtape@2,0:stn
These entries show the major and minor numbers associated with each special file.
Here, the major number is 109 and identifies to the system that the IBMtape device
driver is in support of these special files. Major numbers are assigned by the
system at the time the driver is installed and vary from system to system. The nine
different minor numbers are specific to the special file names and are used by the
device driver to determine which special file was used to access the device and
control the device behavior accordingly. For example, the minor number 1696
indicates to the driver that the device was opened by way of the smc special file.
For more information on device special files and major and minor numbers,
consult the Solaris mtio man pages.
Notes:
1. The BSD (b) device special file modifies close behavior for non-rewind devices. If the device is opened for no
rewind on close in non-BSD mode, and if the last command before closing the device was a read, then the tape
is positioned after the filemark immediately following the last block read. If the device is opened for no rewind
on close in BSD mode, and if the last command before closing the device was a read, the tape is left positioned
exactly where it was following the last block read. If the device is opened for rewind on close the BSD mode is
not relevant.
2. The no rewind on close (n) device special file does not rewind the tape during a close operation. Otherwise, the
tape is rewound when the device is closed. If the last operation before closing the device was a write or write
filemark, then a sufficient number of filemarks is written so that two filemarks follow the data.
For the non-rewind special files, the tapes are positioned between the trailing filemarks before closing. If the
device is then reopened and more data is written, it is separated by a single filemark from the previous data.
3. The compression (c) device special file determines whether the tape device uses built-in hardware compression
while storing data on the tape. The compression mode of the device can also be set to the desired state
programmatically through the STIOC_SET_PARM ioctl, regardless of the default compression mode established
by the special file originally used to open the device.
4. The smc special file is created only for IBM tape systems that provide medium changer capability. For IBM tape
libraries and autoloaders, the smc special file is the only file created because the IBMtape device driver supports
only the medium changer portion and does not support the tape drive portion of these devices. For the IBM
3490E Magnetic Tape System, there is no smc special file created.
5. Only one st special file may be opened at one time. The smc special file may be opened by itself or in
conjunction with one of the st type files. The smc special file accepts only medium changer commands. Tape
drive commands issued to the medium changer fail, with errno set to 22, invalid argument.
Aside from the normal configuration with the medium changer answering as a distinct target/LUN pair, some
supported devices can be configured with a nonstandard integrated medium changer reporting at the same
target and LUN as the tape drive. In such a case, both st and smc special files accept a limited subset of medium
changer commands. If you want to use this nonstandard mode, consult the appropriate hardware reference to
determine whether the drive supports such a configuration.
However, the logical names of devices may be changed due to the swapping of
connecting cables, HBA mapping changes, tape device driver updates, or other
reasons.
The user can rename the logical name by editing the /etc/devlink.tab system file for
the persistent name binding and reloading the IBMtape driver as follows:
1. Before the persistent name binding, make sure that the IBM tape devices are
configured at the different target and LUN addresses if the devices are attached
on more than one HBA.
The Ultrium-3 tape drive is connected to two Emulex HBAs with the same
address of target 3 and LUN 0 via a switch in the following example. You have
to use the HBA utility, follow HBA vendor instructions, or both to persistently
bind the tape devices at the different mapped target and LUN.
# tapelist -l
Inst# Special File Device Serial No TGT/LUN Device Physical Path
------ -------------- ------------- ------------ -------- -------------------------------------
454 /dev/rmt/2st ULT3580-TD3 1210003557 3/0 /devices/pci@6,2000/pci@1/fibre-channel@5/IBMtape@3,0
582 /dev/rmt/8st ULT3580-TD3 1210003557 3/0 /devices/pci@1f,2000/pci@1/fibre-channel@5/IBMtape@3,0
The tape drive is mapped at target 3, LUN 0 on HBA 1 and target 24, LUN 0
on HBA 2 after device persistent binding.
# tapelist -l
Inst# Special File Device Serial No TGT/LUN Device Physical Path
------ --------------- ----------- --------- ---------- ----------------------------------------
454 /dev/rmt/4st ULT3580-TD3 1210003557 3/0 /devices/pci@6,2000/pci@1/fibre-channel@5/IBMtape@3,0
1136 /dev/rmt/7st ULT3580-TD3 1210003557 24/0 /devices/pci@1f,2000/pci@1/fibre-channel@5/IBMtape@18,0
3) To avoid conflicts with the current device special files assigned by the
system automatically, be sure to assign a higher number for the
persistent name.
4) The address is w500507630059f007,0 for the tape drive on the Sun HBA
with the path of /devices/pci@1,0/pci1022,7450@1/pci1077,141@1/
fp@0,0/tape@w500507630059f007,0.
b. Add the above entry into the /etc/devlink.tab system file.
c. Remove existing links created by the IBMtape driver from /dev/rmt by
running the # rm command.
d. Run the # devfsadm command without any options to enable IBMtape to
create the new device special file name as defined in the entries in
/etc/devlink.tab. A system reboot is also required if the tape device is
attached on Sun HBA.
e. Run tapelist to list the device special files.
# tapelist -l
Inst# Special File Device Serial No TGT/LUN Device Physical Path
------ ------------- ------------ ------------- ---------- -------------------------
454 /dev/rmt/10st ULT3580-TD3 1210003557 3/0 /devices/pci@6,2000/pci@1/fibre-channel@5/IBMtape@3,0
1136 /dev/rmt/11st ULT3580-TD3 1210003557 24/0 /devices/pci@1f,2000/pci@1/fibre-channel@5/IBMtape@18,0
The primary and alternate path information can be obtained in the field of "Path
Type" running the /opt/IBMtape/tapelist command output and is similar to the
#tapelist -1
Inst# Special File Device Serial No TGT/LUN Ucode WWNN WWPN
Device Physical Path Path Type
----------------------------------------------------------------------------------------------
-------------------------------------------------------
686 /dev/rmt/12smc 03584L32 0000000T0039 1/1 402j N/A N/A
/devices/pci@If,2000/QLGC,qla@1/IBMtape@1,1 Primary
688 /dev/rmt/14smc 03584L32 0000000T0039 2/1 402j N/A N/A
/devices/pci@If,2000/QLGC,qla@1/IBMtape@2,1 Alt_path_1
694 /dev/rmt/26smc 03584L32 0000000T0039 5/1 402j N/A N/A
/devices/pci@If,2000/QLGC,qla@1/IBMtape@5,1 Alt_path_2
Note: Display the primary and alternate path configuration for any device using
tape diagnostic and utility functions, refer to Chapter 9, “IBM Tape
Diagnostic Tool (ITDT),” on page 231..
Note: Display the primary and alternate path configuration for any device using
tape diagnostic and utility functions, refer to Chapter 9, “IBM Tape
Diagnostic Tool (ITDT),” on page 231..
Data Path Failover and Load Balancing Support for Tape Drives
Note: The tape drive failover feature code must be installed prior to enabling the
DPF for IBM Ultrium tape drive in the Solaris IBMtape device driver. Refer
to “Automatic Failover” on page 10 to determine which feature code is
required for your machine type.
support can be enabled on all configured devices at one time, or it can be enabled
or disabled selectively by logical device. It may be desirable at times to configure
some, but not all, logical paths to a device with the support enabled. Follow the
above steps to enable the DPF support:
1. To enable the support globally on all currently configured devices, add an entry
of dpf_support=1 at the beginning of the IBMtape.conf file, such as
dpf_support=1;
2. Or, to enable a particular path, add the parameter dpf_support and turn it on
in the path entry in the IBMtape.conf file. For example,
name="IBMtape" class="scsi" target=3 lun=0 dpf_support=1;
3. For the IBM Ultrium tape drive, you need to enter the DPF feature key(s) in the
parameter dpf_keys at the beginning of the IBMtape.conf file in the directory
/usr/kernel/drv. For example:
dpf_keys="A729E60F7B119411, C7A0B9ef2c1a4360, a729e60f7b118460";
Notes:
a. The parameter dpf_keys is in the format “key1, key2, key3, ...... ”. Each key is
16 characters long with a comma "," and a space " ". The IBMtape driver
supports up to 36 dpf keys.
b. DPF keys do not need to be added in IBMtape.conf if you are running the
latest drive code on Ultrium-3 and Ultrium-4 drives.
4. Stop the TMD (tape monitor daemon) running on the system and unload the
IBMtape driver module from the current kernel
# /opt/IBMtape/tmd -s
# /usr/sbin/rem_drv IBMtape
5. Reload the IBMtape driver module in the kernel and start the daemon:
# /usr/sbin/add_drv -m ’ 0666 bin bin’ IBMtape
# /opt/IBMtape/tmd
# /opt/IBMtape/tmd -s
# /usr/sbin/rem_drv IBMtape
4. Reload the IBMtape driver module in the kernel and start the daemon:
# /usr/sbin/add_drv -m ’ 0666 bin bin’ IBMtape
# /opt/IBMtape/tmd
For example, if 0st (port 0 of 3592) is configured first, then 5st (port 1), 18st (port 1)
and 21st (port 0) to the two HBAs through a switch (here, WWPN
5005076302400127 from port 0 and 5005076302800127 from port 1), the
/opt/IBMtape/tapelist command output is similar to the example in Figure 14.
#tapelist -1
Inst# Special File Device Serial No TGT/LUN Ucode WWNN WWPN
Device Physical Path Path Type
----------------------------------------------------------------------------------------------
----------------------------------------------------------
685 /dev/rmt/0st 03592J1A 000001300168 1/0 04CE 5005076302000127 5005076302400127
/devices/pci@1f,2000/QLGC,qla@1/IBMtape@1,0 Primary
697 /dev/rmt/5st 03592J1A 000001300168 7/0 04CE 5005076302000127 5005076302800127
/devices/pci@1f,2000/QLGC,qla@1/IBMtape@7,0 Alt_path_1
666 /dev/rmt/18st 03592J1A 000001300168 1/0 04CE 5005076302000127 5005076302800127
/devices/pci@1f,4000/JNI,FCR@2/IBMtape@1,0 Alt_path_2
670 /dev/rmt/21st 03592J1A 000001300168 3/0 04CE 5005076302000127 5005076302400127
/devices/pci@1f,4000/JNI,FCR@2/IBMtape@3,0 Alt_path_3
Note: Display the primary and alternate path configuration for any device using
tape diagnostic and utility functions, refer to Chapter 9, “IBM Tape
Diagnostic Tool (ITDT),” on page 231.
| To enable a path from a disabled state, you may run the following steps:
| 1. Add the parameter of dpf_support and turn it off in the path entry in
| IBMtape.conf file. For example:
| name="IBMtape" class="scsi" target=3 lun=0;
| 2. Stop the TMD (tape monitor daemon) running on the system and unload the
| IBMtape driver module from the current kernel:
| # /opt/IBMtape/tmd -s
| # /usr/sbin/rem_drv IBMtape
| 3. Reload the IBMtape driver module in the kernel and start the daemon:
| # /usr/sbin/add_drv -m ’ 0666 bin bin’ IBMtape
| # /opt/IBMtape/tmd
System-Managed Encryption
The sys_encryption_write parameter controls if the device driver can set the tape
drive to encryption enabled for write commands. When set to OFF, the tape drive
uses encryption for read operations; write operations do not use encryption. When
set to ON, the tape drive uses encryption for both read/write operations. When set
to CUSTOM, the device driver does not modify current tape drive setting. The
custom setting is intended for applications using system-managed encryption to
control write encryption without device driver intervention. The parameter is set to
“CUSTOM” by default.
| This is a tape diagnostic and utility function, refer to Chapter 9, “IBM Tape
| Diagnostic Tool (ITDT),” on page 231..
Problem Determination
The following sections describe the service and diagnostic aids that are part of the
IBM SCSI Tape and Medium Changer Device Driver for Solaris package.
Procedures for verifying correct installation of the device, basic problem
determination guidelines, and outlines of the utility program included with the
IBMtape package are included.
Functional Verification
If you wish to verify that the installation of the IBM SCSI Tape and Medium
Changer Device Driver for Solaris package was successful, follow these steps:
1. Enter this command to verify installation was successful
/usr/bin/pkginfo IBMtape
The following information should be displayed:
system IBMtape IBM SCSI Tape & Medium Changer Device Driver x.x.x.x
substituting for n the number associated with the device special file assigned to
the IBM tape system that you want to check. Listing the contents of the /dev/rmt
directory (using the ls command) can be helpful in determining the proper
special file name. For medium changer devices, the special file name
/dev/rmt/nsmc should be used.
The following information should be displayed:
IBM xxxxxxxx configured at /dev/rmt/nst.
Where: xxxxxxxx is the model number of the IBM tape system and n is the
same number specified in the verify command.
3. To verify that the IBMtape device driver is loaded in kernel memory, enter the
following command:
/usr/sbin/modinfo | /usr/bin/grep IBMtape
The following information should be displayed:
165 f5f10000 15c0s 109 1 IBMtape (IBM SCSI Tape/Medium Changer DD)
The first five fields shown probably do not match your specific output. The fields
indicate the ID, load address, size, major number, and revision for the IBMtape
device driver and vary from machine to machine
Installation Problems
If you are experiencing problems with installation of the IBM SCSI Tape and
Medium Changer Device Driver for Solaris package, the following information
may be of assistance. If you cannot solve the problems after checking the
following, contact the appropriate IBM service representative.
v If you receive the following message during installation:
drvconfig: System call ’modctl_modconfig’ failed:
No such device or address.
Warning: Driver (IBMtape) configuration failed.
System could not install driver.
it indicates that the IBMtape device driver was not loaded because it did not
detect the presence of any supported IBM devices on the SCSI bus. Verify that
SCSI adapter device driver support is installed and configured correctly. Verify
that the IBM tape subsystem is connected properly to the SCSI bus, powered On,
and online. It is not necessary for the tape drive to have a cartridge loaded to be
recognized by the IBMtape device driver.
v If you cannot open an IBM device, verify that you are using the correct special
file. The IBM tape special files are of the form *st* in the /dev/rmt directory. The
IBM medium changer special files are of the form *smc in the /dev/rmt directory.
Ensure that the Sun native tape device driver (st) is not contending for the same
IBM device by consulting the st.conf file in the /kernel/drv directory and
commenting out conflicting stanzas.
The following options can be used to configure the tape monitor daemon running
it on the command line. Most options can also be specified in the /etc/tmd.conf
configuration file. However, the command line options override any configuration
file options.
The following options can be used to configure the tape monitor daemon running
it on the command line. Most options can also be specified in the /etc/tmd.conf
configuration file. However, the command line options override any configuration
file options:
-s Stop any currently running instance of the tape monitor daemon.
-r Restart the tape monitor daemon and reload all configuration settings.
-d Turn on drive error diagnostic retrieval and storage.
This option is enabled by default.
-D Turn off drive error diagnostic retrieval and storage.
-p <directory> Specify an alternate directory for the storage of
drive diagnostic information. Default directory is /var/opt/IBMtape
-l <filename> Specify a file for writing daemon related log messages.
By default, the tmd only writes status information to the syslog file of
/var/adm/messages.
-y Turns off writing log messages to syslog.
-z Turn off compression. By default, the tmd will use a form of file compression
to reduce the size of stored diagnostic information.
The file name of dump presents some useful information. An example of the dump
file is:
IBMtape.000001300148.2004-04-09-14:54:14.dump.gz
Tracing Facility
IBMtape incorporates a tracing facility that is useful for performing problem
determination. The tracing facility logs diagnostic information to /var/adm/messages
based on the control variable IBM_trace. Refer to “Setting the IBM_trace Level for
Static Tracing” on page 160 for instructions on how to set the trace value.
IBM_trace values range from 0–13 and result in posted messages as shown in
Table 27. Postings are cumulative, so trace level 3 also posts items for levels 2, 1,
and 0. A trace value of 2 or 3 is suitable for most normal production environments,
with little or no degradation of throughput. IBM_trace values of 4 and higher
increasingly degrade performance and should generally be used only when
directed by IBM support personnel.
Table 27. Tracing Facility
Trace Level Items Traced
0 Severe error conditions only. For installations with extremely small /var file
systems, this setting can prevent filling the file system unexpectedly.
However, this may be at the cost of not recording messages related to
serious device or system environment errors.
1 Device sense data. Sense data can help in diagnosing the source of
unexpected error conditions.
3 Device opens and closes.
Decoded SCSI command, sense key, ASC and ASCQ for sense data.
4–13 Increasingly verbose tracing information. These tracing levels are generally
useful only to IBMtape developers.
Note: IBMtape earlier than Version 4.0.2.7 had only IBM_trace values 0–4. Message content
and selection differed significantly from current IBMtape versions.
By default, system error messages, including IBMtape trace messages, are placed in
/var/adm/messages. If your installation has modified /etc/syslog.conf to redirect system
error messages, IBMtape tracing is handled as other kernel messages. Refer to the
syslog.conf man page and the comments in syslog.conf for information about the
system logging operation. Changes made to syslog.conf take effect after the next
system restart.
The following shows trace level 2 output, with system date and time stamps
removed. Device instance 390 is opened on the first line. The device minor number
12450 is decoded and shows that the SCSI medium changer (smc) special file was
opened.
The second line decodes selected fields from the sense data that follows it. The
decoded information shows that sense data was generated during a Move Medium
command. Looking up the decoded Sense Key /ASC/ASCQ combination in the
3590 hardware reference, we find that the command failed because the move from
location was empty. The actual sense data follows the decoded fields.
Note: Solaris, rather than printing multiple sixteen byte lines of hexidecimal
zeroes, prints only the first such line, followed by a repeat count.
IBMtape(390) _open: 374 Inst 390, Minor 12450 (smc), Flags 0x5,
TL 2/0/0, 4.0.2.8
IBMtape(390) check_sense: cmd 0xa5(move_medium), key/asc/ascq 0x5/3b/e,
defer 0, retry 0, rc 22
IBMtape(390) 03590B11 SENSE DATA:
IBMtape(390) 70 0 5 0 0 0 0 58 0 0 0 0 3b e ff 2
IBMtape(390) 0 20 1 40 a 9 1 0 0 0 0 0 0 0 a5 0
IBMtape(390) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
last message repeated 1 time
IBMtape(390) 0 0 0 0 0 0 0 0 36 33 39 20 20 20 20 0
IBMtape(390) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
IBMtape(390) _close: Inst 390, Minor 12450 (smc), Flags 0x5, exit(0)
In the next example, the device open line shows that a tape drive (drv) device
special file was opened. The sense data for device instance 292 was generated
during a space operation. The Sense Key/ASC/ASCQ shows that a filemark was
encountered during the space.
IBMtape(292) _open: 554 Inst 292, Minor 9412 (drv), Flags 0x5,
TL 2/0/0, 4.0.2.8
IBMtape(292) check_sense: cmd 0x11(space), key/asc/ascq 0x0/0/1,
defer 0, retry 0, rc 5
IBMtape(292) 03570B02 SENSE DATA:
IBMtape(292) f0 0 80 0 0 0 1 48 0 0 0 0 0 1 ff a
IBMtape(292) c4 b1 0 20 0 5 1 91 0 34 0 0 0 0 11 0
IBMtape(292) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6
IBMtape(292) 6f 28 0 ad 73 32 0 0 0 0 0 0 0 0 0 0
IBMtape(292) 0 0 0 0 0 0 20 0 31 42 41 20 20 20 20 0
IBMtape(292) _close: Inst 292, Minor 9412 (drv), Flags 0x5, exit(0)
Finally, the sense data for device instance 230, a tape drive, occurred during a test
unit ready and indicates that no tape is loaded in the drive.
IBMtape(230) _open: 728 Inst 230, Minor 7366 (drv), Flags 0x5,
TL 2/0/0, 4.0.2.8
IBMtape(230) check_sense: cmd 0x0(test_unit_ready),
key/asc/ascq 0x2/3a/0, defer 0, retry 0, rc 5
IBMtape(230) 03570B02 SENSE DATA:
IBMtape(230) 70 0 2 0 0 0 0 48 0 0 0 0 3a 0 ff 2
IBMtape(230) c4 8 0 30 0 6 1 40 0 0 0 0 0 0 0 0
IBMtape(230) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
last message repeated 1 time
IBMtape(230) 0 0 0 0 0 0 0 0 31 42 41 20 20 20 20 0
IBMtape(230) _close: Inst 230, Minor 7366 (drv), Flags 0x5, exit(0)
You can match an instance number with its corresponding device special file in
two steps.
1. Find the instance number in /etc/path_to_inst:
$ grep 292 /etc/path_to_inst
"/pci@6,4000/scsi@2,1/IBMtape@2,0" 292 "IBMtape"
2. List long the contents of /dev/rmt and search for the path name you found in the
previous step:
$ ls -l /dev/rmt | grep "/pci@6,4000/scsi@2,1/IBMtape@2,0"
lrwxrwxrwx 1 root other 48 Aug 26 11:49 8st ->
../../devices/pci@6,4000/scsi@2,1/IBMtape@2,0:st
lrwxrwxrwx 1 root other 49 Aug 26 11:49 8stb ->
../../devices/pci@6,4000/scsi@2,1/IBMtape@2,0:stb
In this example, /dev/rmt/8st, /dev/rmt/8stb, and so on, are symbolic links to the
device special files that are associated with device instance 292.
The default value for IBM_trace is zero (0). You can define another IBM_trace
value by placing an entry in /etc/system, so that IBM_trace is set at each restart. For
example, this entry in /etc/system sets IBM_trace to 2 at each restart:
set IBMtape:IBM_trace = 2
You may also set or modify the IBM_trace value manually in an adb session.
Because the driver must already be loaded and initialized before using this
method, the trace value that is set is active only during driver operation.
In this sample session, ksh> is a shell prompt, and adb> is the adb session prompt.
Commands that you enter are in boldface. Explanatory comments follow pound
signs (#) or exclamation and pound sign pairs (!#). Text lines without a prefix are
adb session responses to commands.
#
# Start adb session and set session prompt.
ksh> adb -P "adb> " -k -w /dev/ksyms /dev/mem
physmem 7c5e
!#
!# Set default for input values to base 10.
adb> a$d
radix=10 base ten
!#
!# Display current IBM_tape value as unsigned decimal integer.
adb> IBM_trace/u
IBM_trace:
IBM_trace: 0
!#
!# Set new IBM_trace value.
!# adb will confirm the old and new values.
adb> IBM_trace/w 2
IBM_trace: 0 = 2
!#
!# Quit session.
adb> $q
#
# Back to the shell.
ksh>
To facilitate capture of data, the script places information in a file called diags.out
in the directory locating the script. Send the output file to the location identified by
your IBM service representative.
iostat Command
IBMtape driver supports the iostat system command, which reports I/O statistics
for the supported tape drives in IBMtape.4.1.2.7 and later versions. Refer to man
(1M) iostat for the command usage.
Purpose
The Windows tape and medium changer device driver is designed specifically to
take advantage of the features provided by the IBM tape drives and medium
changer devices. The goal is to give applications access to the functions required
for basic tape operations (such as backup and restore) and medium changer
operations (such as mount and demount the cartridges), as well as to the advanced
functions needed by full tape management systems. Whenever possible, the driver
is designed to take advantage of the device features transparent to the application
Data Flow
The software described in this chapter covers the Windows device driver and the
interface between the application and the tape device.
Driver
Product Requirements
The most current information on supported hardware and software configurations
for the Windows tape and medium changer device driver can be found in the
| README files. The README files are downloaded with the latest driver which
| can be obtained at http://www.ibm.com/support/fixcentral. For further
| information please see Appendix A, “Accessing Documentation and Software
| Online,” on page 317. For a listing of all supported configurations, please visit:
http://www-03.ibm.com/systems/support/storage/config/ssic/
displayesssearchwithoutjs.wss?start_over=yes.
Hardware Requirements
One of more of the following processors is required by the IBMtape device driver:
v For the Windows Server 2003, and Windows Server 2008 operating systems, a
32-bit Intel compatible processor.
v For the Windows Server 2003 and the Windows Server 2008 operating systems, a
64-bit Itanium processor.
v For the Windows Server 2003 and the Windows Server 2008 operating systems, a
processor that supports extended 64-bit architectures (Intel EM64T and AMD64).
v Qlogic QLA2462
v Qlogic QLE2460 (not supported for Windows 2008 SPI for IA64 servers)
v Qlogic QLE2462 (not supported for Windows 2008 SPI for IA64 servers)
| v Brocade 825
| v Brocade 815
| v Brocade 425
| v Brocade 415
Attention: Using a single Fibre Channel host bus adapter (HBA) for concurrent
tape and disk operations is not recommended. Tape and disk devices require
incompatible HBA settings for reliable operation and optimal performance
characteristics. Under stress conditions (high I/O rates for tape, disk, or both)
where disk and tape subsystems share a common HBA, stability problems have
been observed. These issues are resolved by separating disk and tape I/O streams
onto separate HBAs and using SAN zoning to minimize contention. IBM is focused
on assuring server and storage configuration interoperability. It strongly
recommends that your implementation plan includes provisions for separating disk
and tape workloads.
Software Requirements
The software requirements are supported:
v SCSi or FC adapter device driver
v Microsoft Windows Server 2003 Build 3790 or later
v Microsoft Windows Server 2008 SP1 Build 6001 or later
Installation Overview
The installation process consists of the following steps:
1. Verify that the hardware and software requirements have been met.
2. Install the host bus adapters and drivers.
3. Shut down the system.
4. Connect the tape and medium changer devices to the host bus adapters.
5. Power on the tape and medium changer devices.
All drives accessible from a medium changer must be on the same physical SCSI
bus as the changer.
Installation Procedures
These procedures make the following assumptions:
v No other driver is installed that claims the tape and medium changer devices.
v If you are updating the device driver from a Microsoft certified version to an
uncertified version, it is recommended that you first uninstall the certified driver
by referring to the uninstall procedures in this documentation.
v The host bus adapter is installed, configured properly, and is running supported
microcode and driver levels.
v Drivers are identified by the following conventions, where: nnnn refers to a
version of the driver. If there is more than one version, use the latest.
– Windows Server 2003, 32-bit
IBMTape.x86_nnnn.zip
– Windows Server 2008, 32-bit
IBMTape.x86_w08_nnnn.zip
– Windows Server 2003 for Itanium (IA64) 64-bit architecture
IBMTape.i64_nnnn.zip
– Windows Server 2008 for Itanium (IA64) 64-bit architecture
IBMTape.i64_w08_nnnn.zip
– Windows Server 2003 for extended 64-bit architectures (Intel EM64T and
AMD64)
IBMTape.x64_nnnn.zip
– Windows Server 2008 for extended 64-bit architectures (Intel EM64T and
AMD64)
IBMTape.x64_w08_nnnn.zip
a2500267
Figure 16. Installation Application in Windows Explorer
Notes:
a. There are additional installation features available through the command
line interface (CLI), which include the following:
v Installing only the tape or medium changer device drivers ( -t or -c)
v Running in debug mode, which creates the file debug.txt in the driver
package directory (-d)
v Running in silent mode, which suppresses pop-up messages requiring
user intervention, but only with Microsoft-certified IBM drivers (-s)
v Disabling the Microsoft RSM service (-r), available in driver packages
v6.1.8.6 and later
v Disabling DPF from installation (-f), available in driver packages v6.2.0.1
and later
| v Enabling Persistent Reserve from installation if DPF is disabled (-p),
| available in driver packages v6.2.0.6 and later.
To install the device drivers using any of these features, instead of double
clicking the install executable file, open a command-line window and cd to
the driver package directory. For the usage information, type
install_exclusive.exe -h or install_nonexclusive.exe -h at the prompt.
Note: All drivers released by IBM have been through a complete test to ensure
that they are stable and conform to specified requirements.
a250215
Figure 17. Windows Logo Testing screen
7. If you are installing a Windows Server 2008 driver that has not been certified
by the Microsoft Windows Hardware Quality Laboratories (WHQL), it likely
has a Verisign digital signature. During installation, you may be presented with
a prompt to install the software. Mark the "Always trust software from IBM
Corporation" check box and click Install. You should only see this screen the
first time that you install the drivers, provided you click the Always trust
software box.
8. To verify that the tape and medium changer devices and drivers are installed
correctly, follow the instructions in Appendix B, “Verifying Proper Attachment
of Your Devices,” on page 319.
Note: This removal procedure removes the device from the device tree, but it does
not uninstall the device driver files from your hard disk.
Note: This removes all the files in the system directories that were created
during the installation of the device driver. It does not delete the .zip file
or the files that were extracted from the .zip file. If you desire to remove
these files, you need to delete them manually.
3. Reboot the system.
Alternately, you can use the Windows Device Manager to examine the device
number in order to determine that persistent naming is enabled on your host.
Persistent names contain tape device numbers based at 4801101 (which is the
decimal equivalent of hexadecimal 0x49424D and ASCII "IBM").
If two physical paths exist to a drive and different Windows device names are
required (which happens, for example, when two different HBAs are connected to
the drive and Data Path Failover is disabled) the first path discovered claims the
persistent device name, and any subsequent paths that connect to the same device
receive names according to the order in which they are discovered by the Windows
Device Manager.
Note: Display the primary and alternate path configuration for any device using
tape diagnostic and utility functions, refer to Chapter 9, “IBM Tape
Diagnostic Tool (ITDT),” on page 231..
This indicates that CPF has been disabled in the driver. This setting only takes
effect after your system is rebooted.
For LTO generation 3 or lower, for tape drives that require a data path license key
on the host side to enable DPF, the device driver looks for a file called
%system_root%:\IBM_DPF.txt for the key, where: %system_root% is the drive letter
where Windows has been installed, typically C, (for example, C:\IBM_DPF.txt).
The file should contain the key on a single line, with no spaces and no other text
on the line. If multiple keys are required, place each key in the file on its own line.
The driver looks for this file at initialization, and if the file contains a valid DPF
license key, the DPF feature is enabled and any eligible devices have multi-path
support.
Note: For LTO generation 3 running the latest drive microcode, there is no longer
a requirement to provide a DPF license key in IBM_DPF.txt. The microcode
now handles the enablement of the DPF feature.
Note: Display the primary and alternate path configuration for any device using
tape diagnostic and utility functions, refer to Chapter 9, “IBM Tape
Diagnostic Tool (ITDT),” on page 231..
This indicates that DPF has been disabled in the driver. This setting only takes
effect after your system is rebooted.
If you have enabled Persistent Reserve on DPF disabled look for a line like this:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ibmtp2kx]
"ReserveType"=dword:00000001
System-Managed Encryption
Note: Leading zeros in the serial number should be excluded. For example, if the
serial number of the encryption-capable tape drive were 0123456789, the
user would create the following registry key:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\ibmtp2k3\123456789
Under this key, the user would create DWORD values called sys_encryption_proxy
and/or sys_encryption_write, and assign them values corresponding with the
desired behavior.
The device driver SME settings can be set for all drives at once by placing the
"sys_encryption_proxy" and "sys_encryption_write" registry options under the
device driver key, found at:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\ibmtp2k3
When this option is chosen, the settings established for all drives are overridden by
the serial-number specific settings described the previous paragraph.
If no options are specified in the registry, the driver uses the default values for the
parameters.
v The default value for sys_encryption_proxy is 1.
This value causes the device driver to handle encryption key requests, if the
drive is set up for system-managed encryption. This value should not need to be
changed. A value of 0 causes the device driver to ignore encryption key requests
for system-managed encryption drives, and is not desirable.
v The default value for sys_encryption_write is 2.
This value causes the device driver to leave the encryption write-from-BOP
settings alone. It does not turn on or turn off encryption writing, but instead
uses the settings that are already in the drive. If encryption has not been set up
previously, then the drive writes unencrypted data. A value of 0 causes the
device driver to write unencrypted data. A value of 1 causes the device driver to
write encrypted data.
Changes to the registry require a reboot before the settings are able to be viewed;
however, during new installations of the driver, if the old driver is not uninstalled,
the old settings remain in place and no reboot is required.
Configuration File
The file %system_root%:\IBMEKM.conf is used to store the IP address of the EKM
server and other network-related parameters. The phrase %system_root% refers to
the drive letter where the Windows installation is located, typically C (for example
C:\IBMEKM.conf).
Server<tab>Timout<tab>IPAddress:Port
For example, if the Windows installation is installed at c:\, the ekm server is
named ekmtest, the desired timeout is 10 seconds, and the IP address is 127.0.0.1 at
port 4242. Then create a line in c:\IBMEKM.conf as follows:
ekmtest<tab>10<tab>127.0.0.1:4242
Problem Determination
There is a debug version of the device driver that can be used if you encounter
problems. The debug version of the driver issues DbgPrint messages at various
places during device driver execution. To capture these messages, you must start a
debugger or use a tool like Debug View, available from:
http://www.sysinternals.com
Note: The last driver level to include support for Windows 2000 is V6.1.4.8.
Subsequent levels include support for Windows Server 2003 and
Windows Server 2008 only, and therefore only contain 2k3 and 2k8
files.
dd000002
Figure 18. Checked folder
3. Located in the highest level directory of the driver package, are non-debug
versions of the tape and medium changer device drivers, ibmtpxxyyy.sys and
ibmcgxxyyy.sys, where:
v xx = ft for the filter driver, bs for the bus driver, or blank for the base driver,
and
v yyy = 2k for Windows 2000, or 2k3 for Windows Server 2003, or 2k8 for
Windows Server 2008. Refer to Figure 18 on page 174.
Note: The last driver level to include support for Windows 2000 is V6.1.4.8.
Subsequent levels include support for Windows Server 2003 and
Windows Server 2008 only, and only contain 2k3 files.
4. Copy the non-debug version of ibmtpxxyyy.sys or ibmcgxxyyy.sys to
\winnt\system32\drivers, overwriting the version of the file already there.
5. Reboot the system. When the driver has started and commands are issued to it,
the driver no longer produces debug output.
Note: For Windows Server 2008 is necessary to Uninstall the devices and then
Install the non-debug version of the driver.
Where kkkkkkkk is the actual reserve key and xxxxxxxx is the reserving host
initiator WWPN.
After initially logging the reserving host WWPN, subsequent reservation conflicts
from the same reserving host WWPN will not be logged to prevent multiple
entries in the error log until either the reserving host WWPN is different than the
one initially logged or the device driver has reserved the device and then another
reservation conflict occurs.
Purpose
The IBM 3494 Library device driver is a device driver providing attachment for the
IBM TotalStorage 3494 Enterprise Automated Tape Library and IBM TotalStorage
Virtual Tape Server (VTS) to a server. The programs described in this chapter
support the 3494 Enterprise Automated Tape Library on the following operating
systems:
v AIX on IBM POWER-based servers
v HP-UX
v Linux
v Sun/Solaris
v Microsoft Windows NT®
v Microsoft Windows 2000
v Microsoft Windows 2003
v Microsoft Windows 2008
v Tru64
v SGI/IRIX
MTLIB Program
The mtlib program is a command-line interface used to control the 3494 Enterprise
Tape Library and is installed, by default, for execution by all users on the system.
This program provides the full interface (except for the MTIOCLEW library system
call) as specified in the IBM Tape Device Drivers: Programming Reference, GA32-0566.
Refer to “MTEVENT Program” on page 189.
The mtlib program provides an interface to the physical tape drives and volumes
within a 3494 Tape Library and also to the virtual tape drives and volumes within
an attached IBM TotalStorage Virtual Tape Server (VTS).
To issue commands to the physical tape drives and volumes, specify a device
special file name, such as /dev/lmcp0 or the logical name of the library, such as
libmgrc7.
To issue commands to the virtual tape drives and volumes in an attached VTS
library, specify a device special file name or the logical name of the library with
the name of the logical VTS library appended with a slash (/). For example, to
issue commands to the first attached VTS library, use /dev/lmcp0/vts1 or
libmgrc7/vts1. The attached VTS libraries are named logically vts1, vts2, and so on
and correspond to the order in which they were configured in the Tape Library.
The -D flag, in conjunction with the -E flags, can be used to display the attached
VTS devices and the number of the VTS library.
Device Data:
mounted volser............TAF500
mounted category..........FF00
device category...........0000
device state..............Device installed in Library.
Device available to Library.
Volume is loaded.
ACL is installed.
device class..............3590-B1A
extended device status....00
Volume Data:
volume state.........00
logical volume.......No
volume class.........3590 1/2 inch cartridge tape
volume type..........HPCT 320m nominal length
volser...............CS2000
category.............FE00
subsystem affinity...04 03 05 06 01 02 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
0, 00515820 003490C2A00
1, 00515821 003490C2A01
Library Data:
Operational state..........Paused Operational State
Intervention Required
functional state...........00
input stations.............1
output stations............1
input/output status........All input stations empty
All output stations empty
machine type...............3494
sequence number............10491
number of cells............1056
available cells............1014
subsystems.................6
convenience capacity.......30
accessor config............01
accessor status............Accessor available
Gripper 1 available
Gripper 2 installed
Vision system operational
comp avail status..........Primary library manager installed.
Primary library manager available.
Secondary library manager installed.
Secondary library manager available.
Primary hard drive installed.
Primary hard drive available.
Secondary hard drive installed.
Secondary hard drive available.
Convenience input station installed.
Convenience input station available.
Convenience output station installed.
Convenience output station available.
library facilities.........00
bulk input capacity........0
bulk input empty cells.....0
bulk output capacity.......0
bulk output empty cells....0
avail 3490 cleaner cycles..0
avail 3590 cleaner cycles..91
Statistical Data:
hour index...........10
machine type.........003494
model number.........L10
manufacturer.........IBM
plant................13
sequence number......000000010491
drives...............6
mounted drives.......1
max mounted drives...2
min mounted drives...1
avg mounted drives...1
max mounted time.....22
min mounted time.....16
avg mounted time.....19
pending mounts.......0
max pending mounts...2
min pending mounts...0
avg pending mounts...0
mounts/hour..........18
index mounts/hour....0
pre-mounts/hour......0
max mount time.......27
min mount time.......16
avg mount time.......19
pending demounts.....0
max pending demounts.2
min pending demounts.0
avg pending demounts.0
demounts/hour........16
index demounts/hour..0
post-demounts/hour...0
max demount time.....28
min demount time.....19
avg demount time.....24
pending ejects.......0
max pending ejects...0
min pending ejects...0
avg pending ejects...0
ejects/hour..........0
max eject time.......0
min eject time.......0
avg eject time.......0
pending audits.......0
max pending audits...0
min pending audits...0
avg pending audits...0
audits/hour..........0
max audit time.......0
min audit time.......0
avg audit time.......0
input stores/hour....0
system token...............roadster
category 0101 –– name: SCRATCH
category 0102 –– name: WORKING
MTEVENT Program
The mtevent program is a command-line interface to the MTIOCLEW command.
Software Interface
The C object module provides three subroutines for communicating with the IBM
TotalStorage 3494 Enterprise Tape Library. These subroutines are open_ibmatl,
close_ibmatl, and ioctl_ibmatl. The open_ibmatl and close_ibmatl routines are used to
open and close communication with the library (as the open and close system calls
are used to open and close communication with a file). The ioctl_ibmatl subroutine
is used to send commands to the Library Manager on the 3494 Tape Library.
To send commands to the 3494 Tape Library, one symbolic name must be defined
for use on the library.
that has arrived, then the event is discarded. The applications can use the Library
Event Wait call to request notification of all Library Manager events. Refer to the
IBM Tape Device Drivers: Programming Reference for more information.
Unsolicited Notification
There are situations when the Library Manager has a condition to report that is not
related to any I/O operation. In this case, an unsolicited notification is sent to the
device daemon. If a notification is received, then any process waiting with the
Library Event Wait call is notified. An example of an unsolicited notification is the
operational state change of the library (from the Auto mode to the Pause mode).
Refer to the IBM Tape Device Drivers: Programming Reference for a list of unsolicited
notifications received by the lmcpd.
Volume Categories
To facilitate the management of the tape volumes within the 3494 Tape Library, the
capability to associate the tape volumes into logical groupings is provided. Each
logical grouping is known as a category. For example, an installation can have one
or more scratch categories that are assigned by media type or class of user.
Another potential use is managing volumes for daily, weekly, and monthly
backups or volumes owned by a specific user. The lmcpd also allows a user process
to assign a particular category to a tape device in the library. This process allows
all the volumes associated with the category to be mounted as determined by the
flags of the command on the specified device.
The X'FFFF' category is available for general programming use, except that any
mount request to this category must apply to a specific volume assigned to the
category (and not based on the category alone).
to the host as a normal physical tape volume, except that the VTS logical volumes
are unique to the VTS subsystem and are accessible only by virtual tape drives
within the VTS subsystem.
Overview
Existing customer scripts using the mtlib program and customer or ISV
applications require no or minor changes to use, depending on the 3494 functions
being used. Customer and ISV applications only need to be recompiled with the
new libibm.o object module in order to use the emulation support. The mtlib 3494
user command line interface program that has the same syntax and output on
every operating system and also provides a common utility for SCSI Medium
Changer Libraries. Current operating system device driver utilities vary by
syntax/output, require a knowledge of SCSI Medium Changers to use, and require
multiple commands to perform a single mtlib command.
Figure 35 and Figure 36 on page 194 show the 3494/SMC data flow between
existing applications and components and the new libsmc extension.
Application
LIBIBM.O 3494
Object LMCPD TCP/IP
Library Manager
Module
LIBSMC
Driver Device Driver Changer
AIX
libsmc_aix.c Atape Device
libsmc.c Driver
3494 API
Emulation Solaris
libsmc_sun.c IBMtape Device
Driver
Linux
libsmc_linux.c IBMtape Device
Driver
Windows
a28t1002
libsmc_win.c IBMtape Device
Driver
For example, SMC libraries on AIX are named smc0, smc1, and so on. To issue an
mtlib query library command on AIX to a 3584 library named smc0:
mtlib -l smc0 -qL
Volume Categories
The 3494 library supports the grouping of one or more volumes into categories
that can be assigned by an application and operations that can specify a category
only rather than a specific volume. SCSI Medium Changers do not provide a
similar function. All volumes in an SMC library are category 0000, the NULL
category.
Because volume categories are not supported, the following API and mtlib
command options cannot be used. Applications and mtlib scripts that use these
functions might require changes.
v Reserve category mtlib -r option
v Release category mtlib -R option
v Change a volume category mtlib -C option
v Set category attribute mtlib -S option
v Assign a category mtlib -k option
v Mount from a category mtlib -m -s option
Most applications and scripts do not use the return request id to determine when
the operation completes and use the no wait option for performance only. For
example, using the no wait option on a demount operation so the application can
continue while the library is demounting the volume. These applications and mtlib
scripts do not require any changes but do take the same amount of time as using
the wait option.
Applications that use the Query Message ID or mtlib -i option to determine when
the return request id operation completes may require changes, such as polling for
a mount issued with the no wait option since any request id is always unknown
on an SMC library because the operation has already completed.
Performance Considerations
The performance time of mtlib commands issued to a SCSI 3584 library versus a
3494 vary and some performance times may be significantly higher. The mtlib
commands such as -qV and -qI for example that require reading all the slot
information from the library also vary in the amount of time it takes for the
command to complete. The fewer the number of slots that are in the library, the
shorter time it takes to complete the mtlib command and a larger number of slots
in the library takes longer.
AIX
The software consists of an Automated Tape Library Device Driver (atldd), an
application daemon (lmcpd) that communicates with the 3494 Library Manager
(LM), and a utility program (mtlib), which provides a command-line interface to
the library. Either an Ethernet or Token-Ring LAN or an RS-232 serial connection
can be used for the physical connection between the host and the 3494 LM.
The daemon, known to AIX specifically as the IBM Library Manager Control Point
Daemon (lmcpd), communicates with tape libraries defined in a configuration file.
This file, ibmatl.conf, is placed in the /etc directory when the software package is
installed. Customization of this file is described in “Defining Tape Libraries to the
Daemon” on page 198. A typical environment for the AIX 3494 Enterprise Library
Driver is an RS/6000 or System p (also known as pSeries) server on a local area
network (LAN) with SCSI- or fibre-attached tape drives providing backup and
restore functions.
Data Flow
The software described in this chapter covers the library device driver and the
interface between the application and the library device driver. For more
information refer to Figure 37.
Figure 37. Data Flow for AIX 3494 Enterprise Tape Library Driver
Product Requirements
The following hardware and software components are supported by IBM.
Hardware Requirements
The library driver supports the following hardware:
v One of the following options, depending on the connection (RS-232 or LAN)
required for the Library Manager:
– RS-232:
One standard 25 pin null modem D-shell RS-232 cable
(maximum of 15.24 meters [50 feet])
– LAN:
- Token Ring or Ethernet Adapter support in an RS/6000 or pSeries
workstation attached to the Library Manager
- LAN cabling (as required)
v IBM System Storage TS1120 Tape Drive Model EO5
| v IBM System Storage TS1130 Tape Drive Model E06
| v 3592 Tape Drive Model J1A
Software Requirements
The following software is required for the library driver:
| v AIX 5L, Version 5.3, and later releases on IBM POWER-based servers.
v AIX Tape and Medium Changer Device Driver (Atape)
To obtain the most current service and documentation for this software, refer to
Appendix A, “Accessing Documentation and Software Online,” on page 317
Installation Instructions
Use the standard set of AIX methods to install and configure the LMCP devices.
You must have root authority to perform these operations.
Installation Procedure
Refer to Appendix A, “Accessing Documentation and Software Online,” on page
317 for information on obtaining the latest versions of the device driver and the
latest documentation.
Enter the following command to list the currently installed version of the 3494
Enterprise Library Driver:
lslpp -l atldd.driver
If a LAN connection is needed, connect the LAN cable from the Token Ring or
Ethernet adapter card in the workstation to the 3494 Tape Library.
Note: The cable (RS-232 or LAN) must be in place before the software is installed
to ensure proper initialization of the driver.
smit tty
Symbolic name is used to identify each library. The symbolic names must be unique
across all libraries defined in the /etc/ibmatl.conf file.
Connection type is used to define the type of connection to the library (either RS-232
or TCP/IP). For RS-232 connections, this type is the device special file name of the
tty device (for example, /dev/tty0 or /dev/tty1). For TCP/IP connections, this type is
the IP address of the Library Manager. If the Library has a dual LAN card
installed, the second IP address of the dual LAN card should be entered after the
first IP address.
Note: Ensure that duplicate IP addresses are not used in this file or unpredictable
results can occur.
Identifier is used to specify a name by which the Library Manager identifies the
host machine. This identifier has a maximum of eight characters. The host name of
the workstation is usually the best name to use (although it is not necessary). This
parameter is used only to identify a particular host to the 3494 Enterprise Library
Manager.
Alternate LAN Connection is used to specify an alternate IP address for a 3494 High
Availability LAN attached configuration. If the High Availability Library has a dual
LAN card installed, the second IP address of the dual LAN card should be entered
after the first alternate LAN connection IP address.
Note: For RS-232 attachments, the alternate LAN connection is not applicable.
Failover for RS-232 connections proceeds over the single serial line.
This stanza defines the libmgrc7 library connected by /dev/tty0 to the workstation.
The library uses the mercury identifier for the host.
libmgrc8 9.115.32.21 jupiter
This stanza defines the libmgrc8 library connected through TCP/IP to the
workstation. The address of the Library Manager on the 3494 Tape Library is
9.115.32.21. The library uses the jupiter identifier for the host.
libmgrc9 9.115.46.15 telos 9.115.46.17
This stanza defines the libmgrc9 High Availability library connected through
TCP/IP to the workstation. The IP addresses of the dual Library Managers are
9.115.46.15 and 9.115.46.17.
libmgrc7 9.115.32.21 9.115.32.22 mercury
This stanza defines libmgrc7 with a dual LAN card connected through TCP/IP to
the workstation. The first address of the Library Manager on the 3494 Tape Library
is 9.115.32.21 and the second address is 9.115.32.22. The library uses the mercury
identifier for the host. The following stanza defines the libmgrc7 High Availability
library with dual LAN cards connected through TCP/IP to the workstation. The IP
addresses of the first Library Manager are 9.115.32.21 and 9.115.32.22. The IP
addresses of the second Library Manager are 9.115.26.13 and 9.115.26.14. The
library uses the mercury identifier for the host.
libmgrc7 9.115.32.21 9.115.32.22 mercury 9.115.26.13 9.115.26.14
System Management
Devices
Tape Drive
4. Select Add a Tape Drive from the Tape Drive menu (Figure 40). The Tape
Drive Type menu is displayed (refer to Figure 41).
5. Select the Library Manager control point from the Tape Drive Type menu
(refer to Figure 41).
The Add an LMCP Logical Device menu is displayed (refer to Figure 42).
The Logical Name field for the Library Manager control point is optional. If
the field remains blank, a unique name is assigned automatically. The
assigned name is lmcpn, where: n is a number that indicates the LMCP entry
and starts with zero for the first LMCP defined.
The Library Name field must be one of the library names defined in the
/etc/ibmatl.conf file. Refer to “Defining Tape Libraries to the Daemon” on page
198 for a description of this file.
The Command Timeout in Minutes field is optional and is used to specify the
maximum amount of time an application waits for commands to complete,
including mount and demount commands. The default is to wait forever until
the command completes.
[Entry Fields]
Logical Name of LMCP (optional) []
Library Name (F4 to list library names) [libmgrc7] +
Command Timeout in Minutes []
6. The COMMAND STATUS window opens with the Command: OK status. The
logical name of the Library Manager control point is displayed as Defined
(refer to Figure 43).
COMMAND STATUS
lmcp0 Defined
Tape Drive
10. Select a defined Library Manager control point to configure from the LMCP
Selection list.
The COMMAND STATUS window opens with the Command: OK status, and
the Library Manager control point is shown as Available (refer to Figure 45).
COMMAND STATUS
lmcp0 Available
11. Cancel the COMMAND STATUS window by pressing F3. The LMCP Selection
window opens again.
12. Continue selecting the Library Manager control points for configuration until
all the devices are configured.
13. Exit from the smit menu.
You have completed the configuration of Library Manager control points to
the system.
cfgmgr
You can access the 3494 Enterprise Tape Library after the above command is
executed.
To verify that the daemon is loaded correctly, enter the following command:
ps -efa | grep lmcpd
You can see multiple instances of the daemon running (which is typical), but only
one instance has a parent process ID of 1.
Uninstall Procedure
All devices using the atldd driver must be closed and not in use when atldd is
uninstalled or the uninstall fails.
You can uninstall the atldd using the smit command menu to uninstall software and
selecting atldd.driver or use the following installp command:
installp -u atldd.driver
Special Files
After the driver is installed and a Library Manager control point is configured and
made available for use, access is provided through the special files. These special
files are in the /dev directory. Each instance of an LMCP has exactly one special file
(for example, /dev/lmcp0) associated with it.
Problem Determination
A set of tools is provided with the device driver to determine if it is functioning
correctly. The standard AIX interface is provided for problem determination.
Error Logging
The driver provides logging to the system error log for various errors. View the
error log using the smit or the errpt command. The error templates follow the same
form as the default AIX error log entries.
This command starts the trace in the background and collects only the trace events
with the 426 hookword.
This command stops the trace after the tape operations are performed.
This command formats the trace output into a readable form and places it in a file
for viewing. The /etc/lmcp.trcfmt file is installed into /etc during installation. It
provides the formatting statements needed by trcrpt.
Arguments:
-a (trace all libraries defined in /etc/ibmatl.conf)
-l <name> (name of library)
-d (delete all log files; requires root authority)
Examples:
trcatl -a >/tmp/trace-out
trcatl -l libmgrc7
HP-UX
The software consists of a daemon that communicates directly with the Library
Manager of the 3494 Enterprise Tape Library through Ethernet or Token Ring LAN,
a utility program that provides a command-line interface to the daemon and a C
object module that can be linked with user applications to provide a
communication interface with the daemon.
Note: In the HP-UX operating system, this is a program that runs unattended in
the background to perform a standard service. Some daemons are triggered
automatically to perform their task, others operate periodically.
The Library Manager control point daemon (lmcpd) is provided in the package. The
lmcpd is a process that is always running on the system. It provides direct
communication with the 3494 Enterprise Library Manager. An application links
with the supplied C object module using the interface described in the IBM Tape
Device Drivers: Programming Reference. The subroutines in this module communicate
with the lmcpd to perform the various library operations using standard UNIX
namespace sockets.
The lmcpd communicates with the Library Manager through TCP/IP. The
/etc/ibmatl.conf configuration file is used to define the attachment for each library.
Refer to “Defining the Symbolic Name to the lmcpd” on page 221 for more
information.
Data Flow
The software described in this chapter covers the library driver. The interface
between the application and the library driver is described in the IBM Tape Device
Drivers: Programming Reference. Figure 47 on page 213 illustrates the data flow.
Application
C
Object
Module
TCP/IP Library
LMCPD Manager
a250106
Figure 46. Data Flow for HP-UX 3494 Enterprise Tape Library Driver
Product Requirements
The following software and hardware are required to use this product.
Hardware Requirements
The following hardware is required for the library driver:
v 3494 Enterprise Tape Library with 3590 drives in HP-UX 11.0, 11i v1 and v2 and
3592 drives in 11.0, 11i v1, v2 and v3.
v IBM Virtualization Engine TS7510 and TS7520 in HP-UX 11.0, 11i v1 and v2
v Enterprise Model B10, B18, and B20 Virtual Tape Server (direct attached only)
v One of the following options depending on which LAN connection is used for
the Enterprise Library Manager:
– Token-Ring Attach:
Enterprise FC 5219 (Token-Ring Adapter)
Token-Ring adapter card for HP workstation
Token-Ring cables (as required)
– Ethernet Attach:
Enterprise FC 5220 (Ethernet Adapter)
Ethernet port or adapter for HP workstation
Ethernet cables (as required)
Software Requirements
The following software is required for the library driver:
v HP-UX Version 10.20, 11.0, 11i v1, v2, and v3
v IBM Tape and Medium Changer Device Driver for HP-UX
To obtain the most current service and documentation for this software, refer to
Appendix A, “Accessing Documentation and Software Online,” on page 317.
Software Compatibility
The following optional software is supported by the library driver:
Installation Instructions
This chapter describes how to install, configure, and uninstall the HP-UX
Automated Tape Library Support for the 3494 Enterprise Tape Library. The IBM
Tape Library driver for HP-UX is installed using the standard swinstall process. The
IBM Tape Library Driver for HP-UX is the lmcpd package.
Installation Overview
LAN support must exist on the machine before installing the IBM Tape Library
driver for HP-UX. Install and configure the LAN support before proceeding with
the installation of the lmcpd package. For more information, refer to the HP-UX
documentation appropriate for the LAN support that you are using.
1. Copy the software from the distribution medium to the depot.
2. Check the README file and verify that your system is configured
appropriately for installing the lmcpd software.
3. Install and configure the software.
The distribution diskette contains a swinstall process that includes the lmcpd
daemon with other associated files and utilities.
If you run into unexpected results during the installation, check the associated log
file.
Note: If an earlier version of the product is installed on the machine, execute the
uninstall procedure before you enter the following commands. Refer to
“Uninstall Procedure” on page 223 for more information.
Note: If this is an update of the lmcpd package, the existing /etc/ibmatl.conf file is
preserved. It is not overwritten. A copy of ibmatl.conf is also installed in the
/opt/lmcpd directory.
# swlist -d lmcpd
The following commands install lmcpd from the depot to the default root file
system:
Use swlist to list the software installed on the default root file system as follows:
# swlist lmcpd
Verify correct installation to the default root file system with the swverify
command:
# swverify lmcpd
Symbolic name is used to identify each tape library. The symbolic names must be
unique across all libraries defined in the ibmatl.conf file.
Connection type defines the type of connection to the library. For TCP/IP
connections, this type is the IP address of the 3494 Enterprise Library Manager. If
the Library has a dual LAN card installed, the second IP address of the dual LAN
card should be entered after the first IP address.
Identifier is used to specify a name by which the Library Manager identifies the
host machine. This identifier has a maximum length of eight characters. The
symbolic network name of the host is usually the best name to use, although any
name is acceptable. This parameter is used only to identify a particular host to the
3494 Library Manager.
This stanza defines the 3494a library connected to the host. The address of the
Enterprise Library Manager is 9.115.32.21. The tape library uses jupiter as the
identifier for the host.
libmgrc9 9.115.46.15 telos 9.115.46.17
This stanza defines the libmgrc9 High Availability library connected through
TCP/IP to the workstation. The IP addresses of the dual Library Managers are
9.115.46.15 and 9.115.46.17.
libmgrc7 9.115.32.21 9.115.32.22 mercury
This stanza defines libmgrc7 with a dual LAN card connected through TCP/IP to
the workstation. The first address of the Library Manager on the 3494 Tape Library
is 9.115.32.21 and the second address is 9.115.32.22. The library uses the mercury
identifier for the host. The following stanza defines the libmgrc7 High Availability
library with dual LAN cards connected through TCP/IP to the workstation. The IP
addresses of the first Library Manager are 9.115.32.21 and 9.115.32.22. The IP
addresses of the second Library Manager are 9.115.26.13 and 9.115.26.14. The
library uses the mercury identifier for the host.
libmgrc7 9.115.32.21 9.115.32.22 mercury 9.115.26.13 9.115.26.14
Ensure that the library activity on all of the libraries is completed before starting
the lmcpd again.
Uninstall Procedure
Attention: Do not try to uninstall the lmcpd software by deleting the files that
make up the lmcpd fileset. It is best to use the swremove command.
Halt all library activity before starting the uninstall procedure. Kill the lmcpd
daemon if it is currently executing.
To remove the lmcpd software from the root file system enter:
# swremove -p lmcpd
# swremove lmcpd
To determine what versions of the lmcpd software are stored in the default depot:
# swremove -d lmcpd
If more than one level of lmcpd exists in the depot, explicitly specify the level to
remove it. For example:
# swremove -d lmcpd,r=4.1.8.0
Problem Determination
A set of tools is provided with the software to determine if the lmcpd is functioning
correctly.
Error Logging
The lmcpd uses the syslog facility to log the errors. Errors are logged according to
the /etc/syslog.conf file. The lmcpd uses the daemon facility for logging errors. Only
errors are logged with this facility. For more information about using syslog, refer
to your system administration manuals.
Arguments:
-a (trace all libraries defined in /etc/ibmatl.conf)
-l <name> (name of library)
-d (delete all log files; requires root authority)
Examples:
trcatl -a >/tmp/trace-out
trcatl -l libmgrc7
Linux
The software consists of a daemon that communicates directly with the Library
Manager of the 3494 Enterprise Tape Library through Ethernet or Token Ring LAN,
a utility program that provides a command-line interface to the daemon, and a C
object module that can be linked with user applications to provide a
communication interface with the daemon.
Note: In the Linux operating system, this is a program that runs unattended, in
the background, to perform a standard service. Some daemons are triggered
automatically to perform their task; others operate periodically.
A typical environment for the Linux Automated Tape Library Driver is a Linux
workstation that acts as a data server on a network with tape devices providing
backup or restore and data server functions.
The Library Manager control point daemon (lmcpd) is provided in the package. The
lmcpd is a process that is always running on the system. It provides direct
communication with the Library Manager. An application links with the supplied
C object module using the interface described in the IBM Tape Device Drivers:
Programming Reference. The subroutines in this module communicate with the lmcpd
to perform the various library operations using standard UNIX namespace sockets.
The lmcpd communicates with the Library Manager through TCP/IP. The
/etc/ibmatl.conf configuration file is used to define the attachment for each library.
Refer to “Defining the Symbolic Name to the lmcpd” on page 221 for more
information.
Data Flow
The software described in this chapter covers the library driver. The interface
between the application and the library driver is described in the IBM Tape Device
Drivers: Programming Reference. Figure 47 on page 213 illustrates the data flow.
Application
C
Object
Module
TCP/IP Library
LMCPD Manager
a250106
Figure 47. Data Flow for Linux 3494 Enterprise Tape Library Driver
Product Requirements
The following hardware and software components are required and supported by
IBM.
Hardware Requirements
The following hardware is required for the library driver:
v IBM TotalStorage 3494 Enterprise Tape Library with IBM 3590 and 3592 drives
with the Fibre Channel Attachment
v IBM System Storage TS1120 Tape Drive
v IBM Virtualization Engine TS7510
v One of the following options, depending on which LAN connection is used for
the Enterprise Library Manager:
– Token-Ring Attach:
Enterprise FC 5219 (Token-Ring Adapter)
Token-Ring adapter card for Linux workstation
Token-Ring cables (as required)
– Ethernet Attach:
Enterprise FC 5220 (Ethernet Adapter)
Ethernet port or adapter for Linux workstation
Ethernet cables (as required)
Software Requirements
The following software is supported by the library driver:
v For Linux distribution support, refer to 93
v IBM Tape and Medium Changer Device Driver (IBMtape) for Linux
To obtain the most current service and documentation for this software, refer to
Appendix A, “Accessing Documentation and Software Online,” on page 317.
In the subsequent pages, you will see file names with xxxx or x.x.x.x in them. The
xxxx or x.x.x.x refer to the version of the driver, which will change as IBM releases
new driver levels. Use the actual driver version numbers as you perform the
procedures.
Install and configure the LAN support before proceeding with installation of the
ibmatl package. For more information, refer to the Linux documentation
appropriate to the LAN support you are using.
On the IBM Linux for IBM S/390 and zSeries systems, documentation files are
installed at:
/usr/share/doc/packages/ibmatl/README (readme file)
/usr/share/doc/packages/ibmatl/license (license file)
On Red Hat Linux for Intel™ PC based systems, documentation files are installed
at:
/usr/share/doc/ibmatl-x.x.x.x/README (readme file, where x.x.x.x is the version)
/usr/share/doc/ibmatl-x.x.x.x/license (license file, where .x.x.x.x is the version)
Note: If this is an update of the ibmatl package, the existing /etc/ibmatl.conf file is
preserved (it is not overwritten).
Installation Procedure
If ibmatl is already installed on your system, refer to “Updating Procedure” on
page 216. This section assumes that you are installing ibmatl on a system where it
is not installed.
TCP/IP, ensure that your machine has access to the Library Manager on the 3494
Tape Library. Use the ping utility to verify that you have network connectivity to
the Library Manager. Consult your network administrator if you need help with
this task.
Symbolic name is used to identify each tape library. The symbolic names must be
unique across all libraries defined in the ibmatl.conf file.
Connection type is used to define the type of connection to the library. For TCP/IP
connections, this type is the IP address of the 3494 Library Manager. If the Library
has a dual LAN card installed, the second IP address of the dual LAN card should
be entered after the first IP address.
Alternate LAN Connection is used to specify an alternate IP address for a 3494 High
Availability LAN configuration. If the High Availability Library has a dual LAN
card installed, the second IP address of the dual LAN card should be entered after
the first alternate LAN connection IP address.
This stanza defines the 3494a library that is connected to the host. The address of
the 3494 Library Manager is 9.115.32.21. The tape library uses jupiter as the
identifier for the host.
libmgrc9 9.115.46.15 telos 9.115.46.17
This stanza defines the libmgrc9 High Availability library that is connected through
TCP/IP to the workstation. The IP addresses of the dual Library Managers are
9.115.46.15 and 9.115.46.17.
libmgrc7 9.115.32.21 9.115.32.22 mercury
This stanza defines libmgrc7 with a dual LAN card connected through TCP/IP to
the workstation. The first address of the Library Manager on the 3494 Tape Library
is 9.115.32.21 and the second address is 9.115.32.22. The library uses the mercury
identifier for the host.
libmgrc7 9.115.32.21 9.115.32.22 mercury 9.115.26.13 9.115.26.14
This stanza defines the libmgrc7 High Availability library with dual LAN cards
connected through TCP/IP to the workstation. The IP addresses of the first Library
Manager are 9.115.32.21 and 9.115.32.22. The IP addresses of the second Library
Manager are 9.115.26.13 and 9.115.26.14. The library uses the mercury identifier for
the host.
Ensure that activity on all libraries is completed before restarting the lmcpd.
Updating Procedure
If your current ibmatl was installed from an rpm package previously, issue the
following command:
rpm -Uvv ibmatl.x.x.x.x.s390.rpm --for IBM Linux on S/390 systems
rpm -Uvv ibmatl.x.x.x.x.i386.rpm --for Red Hat Intel PC based systems
The installed rpm package can be queried by running the following commands to
display information associated with the package.
To display the states of files in the package, for example, normal, not installed, or
replaced:
>rpm -V ibmatl
Starting ibmatl
Start the daemon using the following command:
/etc/lmcpd
Uninstall Procedure
Attention: Do not try to uninstall the ibmatl software simply by removing the
files that make up the ibmatl fileset. It is best to use the rpm -e command or the
uninstall script.
Note: Halt all library activity before starting the uninstall procedure.
If more than one level of ibmatl exists on the system, explicitly specify the level to
remove it.
Problem Determination
A set of tools is provided with the software to determine if the ibmatl is
functioning correctly.
Error Logging
The ibmatl uses the syslog facility to log the errors. Errors are logged according to
the /etc/syslog.conf file. The ibmatl uses the daemon facility for logging errors. Only
errors are logged with this facility. For more information about using syslog, refer
to your system administration manuals.
Arguments:
-a (trace all libraries defined in /etc/ibmatl.conf)
-l <name> (name of library)
-d (delete all log files; requires root authority)
Examples:
trcatl -a >/tmp/trace-out
trcatl -l libmgrc7
Solaris
The software consists of a daemon that communicates directly with the Library
Manager of the 3494 Tape Library through RS-232 or LAN, a utility program that
provides a command-line interface to the daemon, and a C object module that can
be linked with user applications to provide a communication interface with the
daemon.
A typical environment for the IBM Sun Automated Tape Library Driver is a Sun
workstation that acts as a data server on a network with SCSI tape devices
providing backup or restore and data server functions.
The Library Manager control point daemon (lmcpd) is provided in the package. The
lmcpd is a process that is always running on the system. It provides direct
communication with the 3494 Library Manager. An application links with the
supplied C object module using the interface described in the IBM Tape Device
Drivers: Programming Reference. The subroutines in this module communicate with
the lmcpd to perform the various library operations using standard UNIX
namespace sockets.
The lmcpd communicates with the Library Manager either through a standard 25
pin null modem D-shell RS-232 cable or through TCP/IP. The /etc/ibmatl.conf
configuration file is used to define the type of attachment for each library. Refer to
“Defining the Symbolic Name to the lmcpd” on page 221 for more information.
Data Flow
The software described in this chapter covers the library driver. The interface
between the application and the library driver is described in the IBM Tape Device
Drivers: Programming Reference. Figure 48 on page 219 illustrates the data flow.
Application
C
Object TCP/IP
Module
LMCPD Library
Manager
Native
TTY
a250093
Device
Driver
Figure 48. Data Flow for Solaris 3494 Enterprise Tape Library Driver
Product Requirements
The following software and hardware are supported by this product.
Hardware Requirements
The following hardware is supported by the library driver:
v 3494 Enterprise Tape Library with SCSI-attached 3490E (Model C1A or C2A),
3590 and 3592 drives
v IBM System Storage TS1120 Tape Drive
v IBM Virtualization Engine TS7510
v IBM TotalStorage Virtual Tape Server (Models B10, B18, and B20)
v One of the following options depending on which connection (RS-232 or LAN)
is required for the Enterprise Library Manager:
– RS-232:
Software Requirements
The following software is required for the library driver:
v Sun Microsystems Solaris Version 2.6, 7, 8, 9, or 10
v IBM Tape and Medium Changer Device Driver for Solaris
To obtain the most current service and documentation for this software, refer to
Appendix A, “Accessing Documentation and Software Online,” on page 317.
Software Compatibility
The following optional software is supported by the library driver:
Installation Instructions
The IBM Tape Library driver for Solaris is installed using the standard Sun package
facility. The IBM Tape Library Driver for Solaris is the lmcpd package.
Preinstallation Considerations
The LAN or TTY support must exist on the machine before installing the IBM Tape
Library daemon for SunOS. Install and configure the LAN or TTY adapter and the
associated LAN or TTY adapter device driver before proceeding with the
installation of the lmcpd package. For more information, refer to the documentation
appropriate for the LAN or TTY adapter and the LAN or TTY adapter device
driver that you are using.
Note: If an earlier version of the product is installed on the machine, execute the
uninstall procedure before you enter the following commands. Refer to
“Uninstall Procedure” on page 223 for more information.
Note: If this is an update of the lmcpd package, the existing /etc/ibmatl.conf file is
preserved. It is not overwritten. A copy of ibmatl.conf is also installed in the
/opt/lmcpd directory.
Installation Procedure
Use the following commands to install the lmcpd package. Substitute the device
special file name for the installation source device that is appropriate for your
system.
If a previous version is installed on the system, uninstall the previous version first,
enter the following command:
/usr/sbin/pkgrm lmcpd
To install the package from the directory that the driver is located, enter the
following command:
/usr/sbin/pkgadd -d lmcpd.x.x.x.x
To verify that the installation was successful, enter the following command:
/usr/bin/pkginfo lmcpd
For each 3494 Tape Library connected with an RS-232 cable, follow the directions
in “Configuring the Serial Port” on page 221. For each 3494 Tape Library connected
through TCP/IP, ensure that your machine has access to the Library Manager on
the Enterprise device. Use the ping utility to verify that you have network
connectivity to the Library Manager. Consult your network administrator if you
need help with this task.
Symbolic name is used to identify each tape library. The symbolic names must be
unique across all libraries defined in the/etc/ibmatl.conf file.
Connection type is used to define the type of connection to the library (either RS-232
or TCP/IP). For RS-232 connections, this type is the device special file name of the
tty device (for example, /dev/ttya or /dev/tty1). For TCP/IP connections, this type is
Chapter 8. 3494 Enterprise Tape Library Support 221
Solaris 3494 Enterprise Tape Library Driver
the IP address of the Library Manager. If the Library has a dual LAN card
installed, the second IP address of the dual LAN card should be entered after the
first IP address.
Identifier is used to specify a name by which the Library Manager identifies the
host machine. This identifier has a maximum length of eight characters. The host
name of the workstation is usually the best name to use (although it is not
necessary). This parameter is used only to identify a particular host to the 3494
Enterprise Library Manager.
Note: For RS-232 attachments, the alternate LAN connection is not applicable.
Failover for RS-232 connections proceeds over the single serial line.
This stanza defines the 3494a library that is connected by /dev/ttya to the
workstation. The library uses the mercury identifier for the host.
3494b 9.115.32.21 jupiter
This stanza defines the 3494b library that is connected through TCP/IP to the
workstation. The address of the Library Manager on the Enterprise Tape Library is
9.115.32.21. The library uses the jupiter identifier for the host.
libmgrc9 9.115.46.15 telos 9.115.46.17
This stanza defines the libmgrc9 High Availability library that is connected through
TCP/IP to the workstation. The IP addresses of the dual Library Managers are
9.115.46.15 and 9.115.46.17.
libmgrc7 9.115.32.21 9.115.32.22 mercury
This stanza defines libmgrc7 with a dual LAN card connected through TCP/IP to
the workstation. The first address of the Library Manager on the 3494 Tape Library
is 9.115.32.21 and the second address is 9.115.32.22. The library uses the mercury
identifier for the host. The following stanza defines the libmgrc7 High Availability
library with dual LAN cards connected through TCP/IP to the workstation. The IP
addresses of the first Library Manager are 9.115.32.21 and 9.115.32.22. The IP
addresses of the second Library Manager are 9.115.26.13 and 9.115.26.14. The
library uses the mercury identifier for the host.
libmgrc7 9.115.32.21 9.115.32.22 mercury 9.115.26.13 9.115.26.14
Ensure that the library activity on all of the libraries is completed before restarting
the lmcpd.
Uninstall Procedure
Halt all library activity before starting the uninstall procedure. Kill the lmcpd
daemon if it is currently executing. Enter the following command to uninstall the
library support from your workstation:
/usr/sbin/pkgrm lmcpd
Problem Determination
A set of tools is provided with the software to determine if the lmcpd is functioning
correctly.
Error Logging
The lmcpd uses the syslog facility to log the errors. Errors are logged according to
the /etc/syslog.conf file. The lmcpd uses the daemon facility for logging errors. Only
errors are logged with this facility. For more information about using syslog, refer
to your system administration manuals.
Arguments:
-a (trace all libraries defined in /etc/ibmatl.conf)
-l <name> (name of library)
-d (delete all log files; requires root authority)
Examples:
trcatl -a >/tmp/trace-out
trcatl -l libmgrc7
Windows
The software consists of a tape library service that communicates directly with the
Library Manager of the 3494 Enterprise Tape Library through LAN, a utility
program that provides a command-line interface to the service, and a static library
and DLL that can be used to provide a communication interface with the service.
The IBM Automated Tape Library service is provided in the installation package.
This service is installed with STARTUP=AUTOMATIC, which means that it is
started when the Microsoft Windows operating system is started. An application
program may access those functions through API calls. The interface is described
in the IBM Tape Device Drivers: Programming Reference. The subroutines in this
module communicate with the Enterprise Library Manager to perform the various
library operations.
The service communicates with the Library Manager through TCP/IP. The
c:\winnt\ibmatl.conf configuration file is used to define the type of attachment for
each library. Refer to “Defining the Symbolic Name to the Service” on page 228 for
more information.
Data Flow
The software described in this chapter covers the library driver. The interface
between the application and the library driver is described in the IBM Tape Device
Drivers: Programming Reference. Figure 49 on page 225 illustrates the data flow.
Figure 49. Data Flow for Windows 3494 Enterprise Tape Library Driver
Product Requirements
The following hardware and software components are required and supported by
IBM.
Hardware Requirements
The following hardware is required for the library driver:
v 3494 Enterprise Tape Library with Enterprise Tape System 3590 and 3592 drives
v IBM System Storage TS1120 Tape Drive
v IBM Virtualization Engine TS7510
v IBM TotalStorage Virtual Tape Server (Models B10, B18, and B20)
The following options are required for operation of the Enterprise Library
Manager:
v Token-Ring or Ethernet adapter card in an Intel- compatible workstation running
Microsoft Windows and attached to the 3494 Enterprise Tape Library
v LAN cable
Software Requirements
The following software is required for the library driver:
v A workstation running Microsoft Windows Server 2003
v A workstation running Microsoft Windows Server 2008
v IBM Windows Tape Device Driver or the ADSM/TSM Device Driver for
Microsoft Windows NT if using ADSM/TSM
To obtain the most current service and documentation for this software, refer to
Appendix A, “Accessing Documentation and Software Online,” on page 317.
Installation Instructions
The IBM Tape Library service for Microsoft Windows is installed by executing the
install binary, which has the format ibmatl.x.x.x.x.x86.exe for 32-bit Windows 200x
running on x86, ibmatl.x.x.x.x.i64.exe for 64-bit Windows 2003 running on IA64, and
ibmatl.x.x.x.x.x64.exe for 64-bit Windows Server 2003 and Windows Server 2008
running on AMD64 and EM64T.
Installation Procedure
Use the following procedure to install the IBM Automated Tape Library Service or
to upgrade the software level of your service on your workstation.
Follow these steps to perform the installation of the service and its associated
software:
1. Verify that the prerequisites are satisfied. Refer to “Product Requirements” on
page 225.
2. Ensure that the workstation is on the LAN.
3. Log on as Administrator.
4. If the IBM Automated Tape Library Service is currently installed, ensure that
all programs and services that use the service are stopped, and then remove it
from the system.
5. Ensure that the IBM Automated Tape Library Service is not running.
v On Windows NT, click the Start button, move to Settings, then click
Control Panel. Double-click the Services icon.
v On Windows 2000 and 2003, click the Start button, move to Settings, then
click Control Panel. Double-click the Administrative Tools icon, then
double-click the Services icon.
v On Windows 2008, click the Start button, double-click the Administrative
Tools icon, then double-click the Services icon.
The Services window opens. Scroll through the entries until you find IBM
Automated Tape Library. If you do not find the entry for IBM Automated
Tape Library, the service is not installed; click Close. If there is an entry and
the status is blank, the service is not running; click Close. If the status is
Started, click IBM Automated Tape Library, then click Stop.
v On Windows NT, wait for the service to stop and the Status to be set to
blank, then click Close.
v On 32–bit Windows 200x, wait for the service to stop and the Service status
to be set to Stopped, then close both windows.
v On 64–bit Windows, the service is stopped and removed automatically
during the uninstallation.
6. Obtain ibmatl driver from the IBM storage FTP server in binary.
7. Locate and execute ibmatl driver.
8. You see some windows displayed indicating the image is being unpacked and
read and the InstallShield Wizard is being set up. After these are displayed,
the screen stops on a window entitled Welcome to the IBM Automated Tape
Library Setup Program. Follow the instructions on the window, then select
Next.
9. The Software License Agreement window opens. Read the contents, then
click Yes if you accept the terms. If you do not accept the terms, the
installation script exits.
226 IBM Tape Device Drivers Installation and User’s Guide
Windows 3494 Enterprise Library Service
10. The Choose Destination Location window opens. You can accept the default
destination folder by selecting Next >, or you can select Browse... and select
another destination folder by following the prompts in the subsequent dialog.
If you do not select the default destination folder, you must record your
destination folder for future reference. After you select the folder, click Next >.
11. The Setup Complete window opens. You can check the Yes, I want to view
the Read Me file prompt to read the file, then click Finish, or just click
Finish. The Read Me file is stored in the destination file that you indicated in
step 10.
12. After you click Finish, if you did not select to view the Read Me file, the
installation dialog exits. If you chose to view the Read Me, it is displayed.
After you read it, exit the Notepad application. An informational message is
displayed, indicating that the setup is complete. Click OK to exit the
installation dialog.
13. Verify that you can use the ping utility successfully for any Tape Library you
want to access from your workstation.
14. Update the c:\winnt\ibmatl.conf file, if necessary, with entries for each Tape
Library you want to access from your workstation. Refer to “Defining the
Symbolic Name to the Service” on page 228 for details.
15. On Windows NT, start the service by restarting the system or using the
Services option in the Control Panel window.
On Windows 2000 and 2003, start the service using the Services icon, which is
on the Administrative Tools icon in the Control Panel window.
On Windows 2008, start the service using the Services icon, which is on the
Administrative Tools icon.
Note: When a firewall is enabled on Windows, you must allow the lmcpd
program to access the network. Do not block the network IP port of
3494, which is used for communication between the 3494 library and
lmcpd.
Ensure that your machine has access to the Library Manager on the Tape Library.
Use the ping utility to verify that you have network connectivity to the Library
Manager. Consult your network administrator if you need help with this task.
Symbolic name identifies each tape library. The symbolic names must be unique
across all libraries defined in the c:\winnt\ibmatl.conf file.
Connection type is the IP address of the Library Manager. If the Library has a dual
LAN card installed, the second IP address of the dual LAN card should be entered
after the first IP address.
Identifier specifies a name by which the Library Manager identifies the host
machine. This identifier has a maximum length of eight characters. The host name
of the workstation is usually the best name to use (although it is not necessary).
This parameter only identifies a particular host to the Enterprise Library Manager.
The following stanza defines the 3494b library that is connected through TCP/IP to
the workstation. The address of the Library Manager on the 3494 Tape Library is
9.115.32.21. The library uses the jupiter identifier for the host.
3494b 9.115.32.21 jupiter
The following stanza defines the libmgrc9 High Availability library that is
connected through TCP/IP to the workstation. The IP addresses of the dual
Library Managers are 9.115.46.15 and 9.115.46.17.
libmgrc9 9.115.46.15 telos 9.115.46.17
The following stanza defines libmgrc7 with a dual LAN card connected through
TCP/IP to the workstation. The first address of the Library Manager on the 3494
Tape Library is 9.115.32.21 and the second address is 9.115.32.22. The library uses
the mercury identifier for the host.
libmgrc7 9.115.32.21 9.115.32.22 mercury
The following stanza defines the libmgrc7 High Availability library with dual LAN
cards connected through TCP/IP to the workstation. The IP addresses of the first
Library Manager are 9.115.32.21 and 9.115.32.22. The IP addresses of the second
Library Manager are 9.115.26.13 and 9.115.26.14. The library uses the mercury
identifier for the host.
libmgrc7 9.115.32.21 9.115.32.22 mercury 9.115.26.13 9.115.26.14
On Windows NT, stop and start the service using the Services option in the
Control Panel window.
On Windows 200x, stop and start the service using the Services icon, which is on
the Administrative Tools icon in the Control Panel window.
Ensure that the library activity on all of the libraries is completed before starting
the service again.
Uninstallation Procedure
Use the following procedure to remove the IBM Automated Tape Library Service
permanently from your workstation.
Note: If you are upgrading the software level of your service, follow the steps in
“Installation Procedure” on page 226.
Follow these steps to uninstall the service and its associated software:
1. Log on as Administrator.
2. Back up the c:\winnt\ibmatl.conf file if you want to keep a copy of this file
because the uninstall procedure erases the file.
3. Ensure that all programs and services that use the IBM Automated Tape
Library Service are stopped.
4. Ensure that the IBM Automated Tape Library Service is not running. Click the
Start button, move to Settings, then click Control Panel.
v On Windows NT, double-click the Services icon.
v On Windows 200x, double-click the Administrative Tools icon, then
double-click the Services icon.
The Services window opens. Scroll through the entries until you find IBM
Automated Tape Library. If the status is blank, the service is not running;
click Close. If the status is Started, click IBM Automated Tape Library, then
click Stop.
v On Windows NT, wait for the service to stop and the Status to be set to
blank, then click Close.
v On 32–bit Windows 200x, wait for the service to stop and the Service status
to be set to Stopped, then close both windows.
v On 64–bit Windows, the service is stopped and removed automatically
during the uninstallation.
5. Open a Command Prompt window, enter lmcpd -remove, press Enter, then
wait for the command to complete.
Note: If you forget this step, the next time that the system is started,
Microsoft Windows NT tries (unsuccessfully) to start the service again.
To resolve this situation, you must reinstall the service, then uninstall it.
6. Double-click Add/Remove Programs in Windows NT/200x or Programs and
Features on Windows 2008 in the Control Panel window.
7. Scroll to and select IBM Automated Tape Library.
8. For Windows NT, click Add/Remove....
For Windows 200x, click Change/Remove.
9. A Confirm File Deletion window opens. Click Yes.
10. After various dialogs run, a Remove Programs from Your Computer window
opens, which indicates the components that were removed successfully. Click
OK to exit the dialog.
11. For Windows NT, click Cancel on the Add/Remove Programs Properties
window.
For Windows 2000 and 2003, close the Add/Remove Programs Properties
window.
For Windows 2008, close the Programs and Features window.
Problem Determination
A tracing tool is provided with the software to determine if ibmatl is functioning
correctly.
Purpose
The IBM Tape Diagnostic Tool (ITDT) is available in two versions:
v Standard Edition (ITDT-SE) - This is a command line version.
v Graphical Edition (ITDT-GE) - This is a GUI version for the following:
– Microsoft Windows operating systems
– Linux operating systems
Both versions provided the user with a single diagnostic program for tapeutil
applications. Both SE and GE contained tapeutil functionality with SE also
providing scripting capability.
Note: The term tapeutil is a synonym for the tool that was delivered with the
device driver. For example, this tool was named tapeutil on Unix operating
systems; it was named ntutil on Microsoft Windows operating systems.
The available advanced operations provided by the IBM Tape Diagnostic Tool was
performed on Tape Drives and Tape Libraries. By using this functionality, the
customer performed maintenance tasks and ran diagnostic tasks to determine tape
drive issues. This significantly reduced product downtime and increased
productivity.
Note: When this test is performed, all data on the cartridge is overwritten.
v Perform a full write function
This function writes the entire cartridge, overwriting all previous data with a
selectable block size containing either compressible or incompressible data and
then outputs performance data.
Note: When this test is performed, all data on the cartridge is overwritten.
v Perform a system test
Write different block sizes with compressible and incompressible data and then
outputs performance data.
Note: When this test is performed, all data on the cartridge is overwritten.
v Perform a tape usage function to retrieve statistical data and error counters
v Perform a manual inspect function for devices not recognized.
The ITDT-SE provides the most important functions of the previous tapeutil tools.
As an extension of the current tapeutil variants, the set of operations and functions
available with ITDT-SE is identical across all supported operating systems (unless a
particular function is not available on a particular system).
Dedicated device drivers for tapes and libraries may be installed on the target
system and there is usually an application installed that uses the tape/library
devices. When this configuration exists, ITDT-SE can coexist with the application
so that when the application disables the device internally, ITDT-SE can perform
the diagnostics on that device.
Accessing ITDT
| One option to access ITDT is through Appendix A, “Accessing Documentation and
| Software Online,” on page 317. When downloading an IBM driver there is a
| corequisite to download ITDT so that you will have this tool available for your use
| if it is needed.
Supported Systems
ITDT is supported on the following systems.
– Microsoft Windows Server 2003, Microsoft Windows Server 2008 (32-bit x86)
– Microsoft Windows Server 2003, Microsoft Windows Server 2008 (64-bit x64)
– Microsoft Windows Server 2003, Microsoft Windows Server 2008 (64-bit i64)
| v i5/OS® V5R3, V5R4 and IBM i 6.1 (iSeries/System i)
Supported Equipment
The following equipment is supported for both the Standard Edition (ITDT-SE) and
the Graphical Edition (ITDT-GE):
| v IBM Ultrium 3580 Tape Drive (Generation 3, 4 and 5)
| v IBM Ultrium Tape Drives T800/F, T800V, T1600/F, T3000V/P
| v IBM System Storage 3588/TS1030 model F3A and F3B Tape Drive
| v IBM System Storage 3588/TS1040 model F4A Tape Drive
| v IBM System Storage 3588/TS1050 model F5A Tape Drive
| v IBM System Storage 3580 Half Height/TS2230 and TS2240 Tape Drive Express
| v IBM System Storage TS2250 Tape Drive
| v IBM System Storage TS2340 Tape Drive Express
| v IBM System Storage TS2350 Tape Drive
| v IBM System Storage 3592/TS1120/TS1130 Enterprise Tape System
| v IBM System Storage 3572/TS2900 Tape Library Express
| v IBM System Storage 3573/TS3100 and TS3200 Tape Library Express
| v IBM System Storage 3576/TS3310 Tape Library
| v IBM System Storage 3577/TS3400 Tape Library
| v IBM System Storage 3584/TS3500 Tape Library
The following equipment are supported System x LTO Tape drives. These drives
are not tested by the IBM System Storage Test Lab. They are also not supported by
IBM System Storage support. All queries are to be addressed to IBM System x
support.
v IBM Full High LTO Gen 1, p/n 00N8016, replacement p/n 37L5799
v IBM Full High LTO Gen 2, p/n 59P6744, replacement p/n 71P9141
v IBM Full High LTO Gen 3, p/n 25R0012 and 39M5657, replacement p/n 25R0003
and 23R4808
v IBM Half High LTO Gen 3, p/n 43W8478, replacement p/n 23R7036
v IBM Half High LTO Gen 4, p/n 44E8895, replacement p/n 45E1125
| v IBM Half High LTO Gen 5
v 3600-XXX Library and Autoloader IBM Full High LTO Gen 1, p/n 09N4048*
v 4560-SLX IBM Full High LTO Gen 2, p/n 71P9146*
v 3623-2LX IBM Full High LTO Gen 2
v 3361-4LX IBM Full High LTO Gen 3 SCSI (p/n 42C3942 and 40K2573) and Fibre
(p/n 40K2575)*
v 3362-2LX IBM Full High LTO Gen 3 SCSI (p/n 40K2596) and Fibre (p/n
42D8769)*
All other System x LTO tape drives are not supported by ITDT.
Note: Replacement part numbers are only given for the stand alone IBM LTO tape
drives.
For i5/OS operating systems, see “i5/OS Operating Systems” on page 245 for
product support limitations.
Attention:
Before using the IBM Tape Diagnostic Tool Standard Edition (ITDT-SE) with the
IBM Tape Device Driver, we recommend upgrading to the latest available IBM
Tape Device Driver level.
The [U] Tapeutil option will only work if the IBM Tape Device Driver is installed.
The -force-generic-dd startup option to bypass the IBM Tape Device Driver has no
effect on the [U] Tapeutil option commands; they will still use the IBM Tape
Device Driver if it is installed.
In a System Managed Encryption setup, the [E] Encryption test will always exit
with NO DRIVER SPECIAL FILE when ITDT-SE is started with -force-generic-dd.
system so that the program can be removed from the remote i5/OS system by
running the uninstaller on the local Microsoft Windows system.
a2500246
Figure 50. Welcome/Startup screen
a2500247
Figure 51. License screen
a2500248
a2500249
Figure 53. Installation progress screen
a2500250
| Note: ITDT-SE can only be used by a user with root access rights, except for the
| Mac OS which requires the user to have the minimum of read/write access
| to the device file.
1. Download itdtinst<version><OS> to a directory of your choice.
v itdtinst<version>Aix is for AIX operating systems
v itdtinst<version>LinuxX86 is for Linux operating systems on Intel hardware
v itdtinst<version>LinuxPPC is for Linux operating systems on pSeries
v itdtinst<version>LinuxS390X is for Linux operating systems on zSeries
v itdtinst<version>Hpux is for HP-UX operating systems.
| v itdtinst<version>MacOS is for Mac OS operating systems.
v itdtinst<version>Solaris is for Solaris operating systems.
2. Perform the following command to make itdtinst<version><OS> executable:
chmod 700 itdtinst<version><OS>
| 3. Execute the following command:
| itdtinst<version><OS>
| or
| ./itdtinst<version><OS>
Note: For system security reasons, always reset the sgen device driver settings
after you finish working with ITDT-SE, using the sgen_solaris_conf.sh
script.
To configure the sgen driver, start the sgen_solaris_conf.sh script with root
access.
The following command line options are available on the SGEN driver
configuration screen:
v 1) Check driver: This option checks if the driver /kernel/drv/sgen is
available.
v 2) List driver settings: This option shows the current activated devices.
v 3) New driver configuration: This option displays the screen that is used to
create a new driver configuration (see Step 2 on page 241).
v 4) Stop sgen driver: This option stops the driver (that is, rem_drv sgen).
v 5) Start sgen driver: This option stops and starts the sgen driver.
v 6) Exit program: This option closes the shell script.
Note: Option 3 allows for the addition of individual devices one at a time,
Option 5 allows for the addition of a range of devices, eliminating the
need to add a large number of devices one by one.
v 4) or 6) Remove target(s): This option removes targets from the list.
Note: Option 4 allows for the removal of individual devices one at a time,
Option 6 allows for the removal of a range of devices, eliminating the
need to remove a large number of devices one by one.
v 7) Save configuration: This option saves the modifications.
v 8) Back to Main Menu: This option returns to the main menu.
3. After the sgen driver is configured, enter command line option 8 to go back to
the main menu.
4. On the SGEN driver configuration screen enter command line option 5). This
option starts the sgen driver, new devices are found using the definitions
performed in Step 2.
5. After the new devices are found, enter option 6) to exit the
sgen_solaris_conf.sh script.
Note: For Fibre Channel Host Bus Adapters (HBAs), special handling is required.
Attached devices need to be configured with their WWPN in the sgen.conf
file. This task needs to be done manually, it is not performed by using the
sgen_solaris_conf.sh script.
If you have finished the editing, the sgen driver has to be restarted.
Please enter "update_drv sgen".
During the initial program startup, the input and output directories are created:
v Input directory: default directory for firmware files during Firmware Update
v Output directory: directory containing the result files, dump files and log files
after running tests
At first program startup, the license text will be displayed and the input and
output directories will be created. ITDT-SE does not create any registry entries or
make changes outside the installation directory.
v Input directory: default directory for firmware files during Firmware Update
v Output directory: directory containing the result files, dump files and log files
after running tests
13. Press F5 to refresh the screen; the TAPs belonging to the TAPMLB should
show up.
14. Allocate the TAPs back to the TAPMLB using option 4 or 5.
During the initial program startup, the input and output directories are created:
v Input directory: default directory for firmware files during Firmware Update
v Output directory: directory containing the result files, dump files and log files
after running tests
For FC and SAS devices, ID and LUN greater than 999 won't be displayed, they
will be masked by ###.
When logged in via telnet, backspace may not be working - an escape sequence is
inserted and the input is ignored after Enter is pressed.
On HP-UX11.iV3 systems, tape libraries operated through the drive's control path
(no control path failover) may disappear from the Device List after a [F] Firmware
Note: On a SLES9 s390x (64bit) configuration, you may experience a SCSI CMD
TIMEOUT when running the [T] option while using the IBM Tape Device
Driver.
For SUSE SLES9 on zSeries please ensure that the kernel update SUSE-SA:2007:035
is installed.
If the IBM Tape Device Driver is not installed on Solaris 10, tape devices may not
be found during scan although they are configured in sgen.conf. When this event
occurs, perform the following steps to configure the devices:
1. Check the current driver bindings for IBM Tape drives and changers by
entering the following commands:
# egrep "scsiclass,01" /etc/driver_aliases (for drives)
# egrep "scsiclass,08" /etc/driver_aliases (for changers)
2. Modify the /etc/driver_alias file to comment all lines not starting with sgen
and containing identification of your drives and changers. Examples:
#st "scsiclass,01" (all tape drives)
#st "scsiclass,01.vIBM.pULT3580-TD4" (IBM tape drive model ULT3580-TD4)
#st "scsiclass,08" (all changers)
#st "scsiclass,08.vIBM.p3573-TL" (IBM changer model 3573-TL)
3. Check that the configured drives are not configured for st driver by entering
the following command:
# cfgadm -al
If the tape drive is claimed by st device driver, an entry with cxx:rmt/y, is
displayed, for example:
c11::rmt/0 tape connected configured unknown
4. Add sgen driver aliases with one of the following commands:
# update_drv -a -i ’"scsiclass,01.vIBM.pULT3580-HH4"’ sgen
(adds sgen alias for IBM drive, model ULT3580-HH4)
# cfgadm -al
If you are using Adaptec SCSI Host Bus Adapters, ensure that you are using the
latest Adaptec Host Bus Adapter Drivers instead of the drivers shipped with the
Windows operating system.
On Microsoft Windows systems where the maximum transfer size is limited to less
than 64kB, the Dump and Firmware update operations will not work.
The Tape Drive must be varied online. If the Tape Drive is operated through a
Tape Library, the Library must be varied offline. See “Starting ITDT-SE on i5/OS
Operating Systems” on page 242 for details.
As the Library is varied offline, the Encryption Test does not deliver decrypted
data in a Library Managed Encryption environment.
The [U] Tapeutil option is not available for i5/OS with this release as all the
underlying operations require the IBM Tape Device Driver to be installed.
FC 5912 SAS HBA support is only for Power6 and V6R1 configurations attached to
LTO Gen 4 HH tape drives (No support for LTO 3 HH SAS).
Prevent/Allow Medium Removal is missing as a Tape Drive option, but can still
be performed by using the [56] Prevent/Allow Medium Removal option for Tape
Libraries while the tape device is opened.
When the Tab key is pressed as an input string for field data, the user interface is
corrupted.
Make sure that field input does not start with a number followed by space and
additional text as this is interpreted as an entry to a specific row in the field. To
avoid this, use an underscore character ( _ ) instead of the space character.
Command Timeout
There is no instant operation termination upon SCSI command timeout; for
example, when the SCSI cable is unplugged after starting POST A.
When a command timeout condition occurs, ITDT may still continue to perform
more operations (like unmounting the cartridge) instead of instantly terminating
with a timeout condition.
a2500231
Opens the screen for the Tapeutil operation commands. These commands are the
standardized tapeutil functions with most of the options available that were
available with the previous tapeutil functions (refer to “Standard Edition -
Tapeutil Menu Commands” on page 263).
v H - Help
Help starts and displays the available online help.
v Q - Quit
Quits the function.
a2500232
Figure 56. Scan Menu
a2500233
Figure 57. More Scan Options
Scan
The Scan function [S] is used to discover all supported tape and library devices
that are attached to the computer system so that they can be selected for the
subsequent ITDT-SE operations. The scan function also serves as a connection test
that can be used to verify proper attachment of the devices.
Before continuing, make sure no other program is accessing the devices used by
ITDT-SE. For example, stop the backup jobs that are accessing the devices when
using ITDT-SE, or if not sure, stop the entire backup application.
After starting ITDT-SE, type the S key followed by the Enter key to activate the
scan function.
Depending on the operating system and the number of attached drives, the scan
can take several minutes. See “Standard Edition - Known Issues and Limitations”
on page 243 for more details.
During the scan operation, a bar in the lower left edge of the screen shows that the
scan operation is still in progress.
Once the scan is finished, the first device list screen is displayed.
Name of
current screen
Selected device
Device number
Command
a2500252
Command prompt
The first device list screen shows all detected devices and the connection
information (host adapter number, bus number, SCSI/FCP ID and LUN) along
with product data (Model name, Unit Serial number, Microcode revision). For
drives that are attached to a library, the Changer column shows the serial number
of the changer the drive is attached to.
Note: For fast down scrolling, type + followed by a space and the number of lines
to scroll down then press the Enter key.
Note: For fast up (backward) scrolling, type - followed by a space and the number
of lines to scroll up then press the Enter key.
If no devices appear or if devices are missing in the list, make sure that:
v ITDT-SE is running with administrator/root rights.
v The devices are properly attached and powered on.
v Linux: The devices must be attached at boot time.
v i5/OS: Only tape drives will be detected.
v Solaris, when no IBM tape device driver is in use:
– Ensure that sgen is correctly configured:
file /kernel/drv/sgen.conf
ITDT-SE uses the IBM Tape Device Driver for its operations. If no IBM Tape Device
Driver is installed, the generic device driver for the operating system is used
instead. On Microsoft Windows, any Tape Device Driver that is installed is used.
If you need to bypass the IBM Tape Device Driver for diagnostic purposes, start
ITDT-SE with the following command:
itdt -force-generic-dd
| Note: For operating system specific information on how to use this command,
| please visit the corresponding Initial Startup sections.
Once the desired device is displayed, select the device for test. Only one device can
be selected.
Test
| The Test function [T] checks if the tape device is defective and outputs a pass/fail
| result.
Attention: The test functionality erases user data on the cartridge that is used for
the test.
For the library or autoloader test, the [L] library test should be selected.
Notes:
1. The test can take from 15 minutes up to 2 hours.
2. The test runs only on tape drives, not on autoloaders or libraries.
To perform the test function, it is recommended that a new or rarely used cartridge
is used. Scaled (capacity-reduced) cartridges should not be used to test the device.
To test tape drives within a library, the library must be in online mode.
1. Start ITDT-SE, then type S and press the Enter key to scan for the devices.
Select the device you want to test by entering its number and press the Enter
key.
2. Type T followed by the Enter key to activate the test.
Note: If ITDT-SE detects data on the cartridge, the Device Test screen displays a
message (as shown in Figure 59 on page 251).
a2500234
Figure 59. Data Delete Question
Type Y followed by the Enter key to continue the test if you are absolutely
sure that data on the cartridge can be overwritten. If you are unsure, type N
followed by the Enter key to stop the test.
During the test, the program shows a progress indicator in form of a bar of hash
marks (#) (1) that shows the progress of a single sub-test as well as a description
of that sub-test. The user may stop the test by selecting the abort option
(exceptions: POST A, POST B – see below).
| During the test, a progress indicator will be shown on the test screen. Messages
| from the test steps will be shown in the status field.
1 2
a2500235
| 7. Unmount Medium
| 8. Get FSC
| 9. Get Logs
The test can be stopped by typing A followed by the Enter key at any time except
during the POST tests, which are not interruptible.
Note: It may take some time until the test actually stops.
a2500236
Figure 61. Test Results
When all sub-tests are finished, ITDT-SE shows a screen that displays the
attachment and device information as in the first device list screen, together with
the test result and failure information in the code field. The screen also shows the
output files that were generated during the test run. The files may be requested by
the IBM Support Center.
If you want to use other ITDT-SE functions, type R followed by the Enter key to
return to the first device list screen; otherwise, type Q followed by the Enter key to
exit the program.
Dump
Perform the following to start the Dump [D] process:
1. Start ITDT-SE, then type S and press the Enter key to scan for the devices.
2. Select the device you want to retrieve a dump from by entering its number and
press the Enter key.
3. Type D and press the Enter key to start the dump retrieval for the selected
device. The ongoing dump process is performed (it takes less than 1 minute).
Dump Filenames
Log Filenames
a2500237
Figure 62. Dump
When the dump process is performed on a tape library or autoloader other than
the 3584/TS3500, the Dump function stores one log file in the output folder of the
program (*.blz). For the 3584/TS3500, a dump file (*.a.gz) will be stored in the
output folder.
Note: When the Dump function is performed for tape libraries or autoloaders
other than the 3584/TS3500, the Log file only contains Log Sense and Mode
Sense pages, while a Drive or 3584/TS3500 Dump contains much more
diagnostic information.
Retrieve the files from the ITDT-SE output subdirectory that was created during
the installation. The following are examples of the directory:
v Example output directory (Windows): c:\itdt\output
v Example output directory (Unix): /home/user/itdt/output
v Example output directory (i5/OS): /home/itdt/output
(On the IFS) use FTP or the i-Series Navigator to transfer the file
If you want to use other ITDT-SE functions, type R followed by the Enter key to
return to the device list; otherwise, type Q followed by the Enter key to exit the
program.
Firmware Update
The Firmware Update [U] upgrades the firmware of tape drives and tape libraries.
See “Supported Equipment” on page 235 for a list of supported products.
Note: See “3576/TS3310 Tape Library” on page 246 for more information on how
to update the firmware on a 3576/TS3310 Tape Library.
a2500251
Figure 63. Firmware Update screen
Download the files to the ITDT-SE input subdirectory that was created during the
installation. The following are examples of the directory:
Example input directory (Windows): c:\itdt\input
Note: The selected filename is reset to the first item (#0) after using the
Refresh function.
v If the displayed directory contains more files than those shown, type + and
press the Enter key to scroll down the list. For fast down scrolling type +
followed by a space and the number of lines to scroll down then press the
Enter key. To scroll back, use - instead of +.
Scrollable data is indicated by "VVVVVVVVVVVVVVVVV".
a2500253
VVVVV = More data
5. After selecting the firmware file, type C and press the Enter key to continue.
6. Before starting the firmware update, make sure the file displayed in the FW
File field is the correct file.
v If the correct file is displayed, proceed to the next step.
v If the correct file is not displayed, type C and press the Enter key to change
the selected firmware file. Go to Step 4 on page 254.
Note: The selected filename is reset to the first item in the list when
returning to that dialog from the Start Update dialog.
7. If you decide to run the firmware update, type S and press the Enter key to
start the firmware update.
During the firmware update, a firmware update progress screen is displayed.
Attention: Once started, do not interrupt the firmware update.
The firmware update usually takes 3-5 minutes, but it can take up to 45
minutes for libraries. If you decide not to run the firmware update, type R and
press the Enter key to return to the Device List.
Encryption
The Encryption [E] function is used to verify if data on the cartridge was actually
written encrypted. It reads both decrypted and raw data from the cartridge into
two separate files on disk. The user can then verify that the data differs to ensure
that encryption worked.
Note: On i5/OS, media changers and media changer operations are not supported
with this release of ITDT-SE. To test a tape drive inside a library, the Tape
Drive must be varied online and the Tape Library must be varied offline
(see “Starting ITDT-SE on i5/OS Operating Systems” on page 242 for
details). As the Library is varied offline, the Encryption function does not
deliver decrypted data in a Library Managed Encryption environment.
1. After starting ITDT-SE, type S followed by the Enter key to activate the device
scan.
2. Select the device you want to test by entering its number and press the Enter
key. Type E and press the Enter key to start the encryption test.
3. ITDT-SE then switches to the Encryption Verification screen. On this screen, the
system requires the entry of the number of the start record and the amount of
data (in KB) to be read.
4. Type S followed by a space and the start record number, then press the Enter
key to enter the start record number. Type L followed by a blank and the data
length, then press the Enter key to enter the data length, maximum 100000 KB.
a2500245
Figure 65. Encryption Start screen
5. If you entered the values correctly, press the Enter key to start the encryption.
During the encryption, the program shows a progress indicator in form of a bar
of hash marks (#) that shows the progress of a single sub-test as well as
information about that sub-test.
The Encryption function can be stopped by typing A followed by the Enter key
at any time.
Note: It may take some time until the Encryption function actually stops.
If all encryption operations are finished, ITDT-SE shows a screen that displays the
Status field on the bottom left side that indicates PASSED if the encrypted test
completed successfully and ABORTED otherwise.
The screen also shows the output files that were generated during the Encryption
function:
v file serial# .n.ENC contains the raw encrypted data
v file serial# .n.DEC contains the decrypted data
If you want to use other ITDT-SE functions, type R followed by the Enter key to
return to the device list; otherwise, type Q followed by the Enter key to exit the
program.
Full Write
The Full Write [F] function writes the entire cartridge with a given block size either
with compressible or incompressible data and output performance data.
Attention: The Full Write function erases data on the cartridge that is used for
the test.
Notes:
1. The Full Write function takes approximately 2 hours when writing
incompressible data, less time for compressible data.
2. The Full Write function runs only on tape drives, not on autoloaders or
libraries.
Note: If ITDT-SE detects data on the cartridge, it shows the Full Write screen,
and displays the following message:
Cartridge not empty!
Overwrite data?
Type Y followed by the Enter key to continue the test if you are
absolutely sure that data on the cartridge can be overwritten. If you are
unsure, type N followed by the Enter key to stop the test.
3. The system prompts for entry of a transfer size between 16 KB and the
maximum block size supported by the system (maximum possible value is 512
KB) . This is a check for the type of supported block size is performed. Enter
the appropriate values for your system.
4. Select the type of data to write, either: [C] Compressible or [I] Incompressible.
During the full write, the program shows a progress indicator in form of a bar
of hash marks (#) that shows the progress of the full write.
The full write can be stopped by typing A followed by the Enter key at any
time.
Note: It may take some time until the full write actually stops.
If all write operations are finished, ITDT-SE shows a screen that displays the
compression ratio (1) and the write performance (shown in 2 as the Data
Rate) for the selected block size. If an error occurred during the full write, data
is only written partially.
| "Compressible = Yes" means that the data written was just zeroes, so that the
| data could be compressed by the drive with a maximum compression ratio.
| "Compressible = No" means that a data pattern was written that the drive
| could almost not compress at all. If the compression ratio is 1, the drive was
| not able to compress the data (equivalent to 1:1 compression ratio). If the
| compression ratio is 94.0, the drive was able to do 94:1 compression meaning
| that 94 bytes in the original data could be compressed to 1 byte on the
| medium. 100.0 means 100 bytes could be compressed down to 1 byte on the
| medium.
If you want to use other ITDT-SE functions, type R followed by the Enter key
to return to option 4 the device list; otherwise, type Q followed by the Enter
key to exit the program.
a2500243
Tape Usage
The Tape Usage [U] function retrieves statistical data and error counters from a
cartridge.
a2500244
Figure 67. Tape Usage Screen
1. After starting ITDT-SE, type S followed by the Enter key to activate the device
scan.
2. Select the device you want to test by entering its number and press the Enter
key.
3. Type U followed by the Enter key to start the tape usage log retrieval. ITDT-SE
then switches to the tape usage screen. If no cartridge is inserted, ITDT-SE
prompts to insert a cartridge. Either insert a cartridge and press the Enter key
or stop the test by entering C followed by the Enter key.
During the get logs operation, the program shows a progress indicator in form of a
bar of hash marks (#) that shows the progress of a single sub-operation as well as a
description of that operation.
If all sub-operations are finished, ITDT-SE shows a Tape Usage completion screen.
The Status field on the bottom right side indicates PASSED if the log retrieval
completed successfully and ABORTED otherwise.
Other
Other [O] - type O followed by the Enter key to display a screen with the
following commands:
v “System Test”
v “Library Self-Test” on page 262
v “Manual Inspect” on page 262
v “Return” on page 263
System Test
The System Test [Y] is a short test that performs the following:
v Reveals system performance bottlenecks. Compressible data throughput values
can reveal bandwidth limitations caused by the system or cabling or HBA.
v Measures performance variations across the different block sizes to find the ideal
block size for the system configuration.
The System Test only runs on tape drives, not on autoloaders or libraries. To
perform a System Test on tape drives within a library, the library must be in online
mode.
1. Start ITDT-SE, then type S and press the Enter key to scan for the devices.
2. Type O and press the Enter key to display the second device list screen.
3. On the second device list screen, type Y and press the Enter key to start the
System Test.
ITDT-SE then switches to the System Test screen. If no cartridge is inserted,
ITDT-SE prompts to insert a cartridge. Either insert a cartridge and press the
Enter key or stop the test by typing C followed by the Enter key.
Note: If ITDT-SE detects data on the cartridge, it shows the System Test screen,
and displays the following message:
Cartridge not empty!
Overwrite data?
Type Y followed by the Enter key to continue the test if you are
absolutely sure that data on the cartridge can be overwritten. If you are
unsure, type N followed by the Enter key to stop the test.
The System Test is performed as follows:
a. System Test determines the amount of data to write for each supported
blocksize (a percentage of the cartridge is written for each blocksize).
b. System Test writes the amount of data with all supported block sizes in
powers of two down to 16kB (at maximum 512, 256, 128, 64, 32, 16), first
with incompressible, then with compressible data, and then displays
performance data and progress screen.
c. At the end of the test, a summary screen is displayed.
a2500245
| Compressible = Yes" means that the data written was just zeroes, so that the
| data could be compressed by the drive with a maximum compression ratio.
| "Compressible = No" means that a data pattern was written that the drive
| could almost not compress at all. If the compression ratio is 1, the drive was
| not able to compress the data (equivalent to 1:1 compression ratio). If the
| compression ratio is 94.0, the drive was able to do 94:1 compression meaning
Note: It may take some time until the System Test actually stops.
If you want to use other ITDT-SE functions, type R followed by the Enter key to
return to the device list; otherwise press Q followed by the Enter key to exit the
program.
Library Self-Test
The Library Self-Test [L] starts and monitors the library-internal self-test. This test
only runs on libraries and autoloaders, not on tape drives.
1. Start ITDT-SE, then type S and press the Enter key to scan for the devices.
2. Type O and press the Enter key to display the second device list screen.
3. On the second device list screen, type L and press the Enter key to start the
Library Self-Test.
A Device Test screen is displayed and a functionality test on the tape library is
performed.
At the end of the test, a results screen is displayed.
The Library Self-Test can be stopped by typing A followed by the Enter key at
any time.
Note: It may take some time until the Library Self-Test actually stops.
If you want to use other ITDT-SE functions, type R followed by the Enter key to
return to the device list; otherwise press Q followed by the Enter key to exit the
program.
Manual Inspect
Manual Inspect [I] creates a manual inspection record if a device does not appear
in the device list. This test is intended for devices that are not recognized or have a
technical problem which can not be determined by ITDT-SE.
If a tape drive cannot be identified using a device scan, the user can manually
create a test record for the drive. The system prompts for the user to run the
SCSI/FC Wrap test for the drive (see the service manual for the drive). The results
of the wrap test can be entered along with some additional inspection information.
The result are saved into binary and text output files that have the same format as
the output files generated by the test.
1. Start ITDT-SE, then type S and press the Enter key to scan for the devices.
2. Type O and press the Enter key to display the second device list screen.
3. On the second device list screen, type I and press the Enter key to open the
Manual Inspection screen.
4. On the next screen, type M followed by a space and the model name and press
the Enter key. For example: M ULT3580-TD1
5. Enter the required information to complete the items in the screen:
a. Type N followed by a space and the serial number and press the Enter key.
b. Type T followed by a space and the content of the Message Display and
press the Enter key.
c. Optionally, type A followed by a space and additional information text and
press the Enter key.
6. After all information has been entered, type S and press the Enter key to save
the data.
The information is stored in a binary file (which can be used for further
analysis), and in a human-readable text file. Both files are stored in the ITDT-SE
output folder.
If you want to use other ITDT-SE functions, type R followed by the Enter key to
return to the first device list screen; otherwise press Q followed by the Enter key to
exit the program.
Return
Return [R] - type R followed by the Enter key to go back to the first device list
screen.
[3] Inquiry
When you select the Inquiry command [3]:
1. You are prompted for page code.
2. ITDT then displays a decoded format of a hexadecimal dump and prints a
hexadecimal dump of the inquiry data.
[20] Rewind
When you select the Rewind command [20], ITDT issues the ioctl rewind command
for the device.
ITDT performs the selected test and displays the transfer size and block size used
for this test, the number of records read/written, and the total bytes transferred.
ITDT displays the number of records read/written, the transfer size and the total
bytes transferred.
[28] Erase
When you select the Erase command [28], ITDT issues the (extrinsic) ioctl
command.
Not all drives have a display. The 3592 drive is the only one at this time that has
display message capability since it is the only one with a display that is more than
1 character long. Eight is the limit of the characters on a display screen.
| Pressing the Enter key will step to the next parameter without changing the
| current one. Once all parameters are changed, the configuration will be written to
| the drive and a screen similar to the following will appear:
| IBM Tape Diagnostic Tool Standard Edition - Device Test
| Host Bus ID LUN Model Serial Ucode Device
| +----+----+----+-----+--------------+------------+------+---------------------+
| | 0 | 0 | ## | 636 | ULT3580-TD5 | 1013000074 | A1W0 | |
| +----+----+----+-----+--------------+------------+------+---------------------+
| +-----------------------------------------------------------------------------+
| | Setting TCP/TP Configuration... |
| | Reading current TCP/TP Configuration... |
| | Number of Port Descriptors 1 |
| | Port Descriptor for Port 1 |
| | Number of Socket Descriptors 2 |
| | Get Adapter:1 IPV4 2.3.4.5:5050/24 Wed Feb 03 02:55:21.195 2010 |
| | |
| | |
| | |
| | |
| +-----------------------------------------------------------------------------+
| +----------------+ +---------------------------+
| Result: | PASSED | Code: | OK |
| +----------------+ +---------------------------+
|
|
| <[Q] Quit | [N] Next | [P] Previous | + | - | [Enter] Return>
Note: See “3576/TS3310 Tape Library” on page 246 for more information on
how to update the firmware on a 3576/TS3310 Tape Library.
The following site is available for the latest firmware files:
http://www.ibm.com/storage/lto.
Following you will find a list of commands, on each command you will find the
command, a description, parameter list, and which platforms are supported. Some
commands will have numbers after them, this means there is a corresponding
menu command in “Standard Edition - Tapeutil Menu Commands” on page 263.
| The following are the generic invocation parameters as in use by the legacy
| command sets:
| -f filename
| Note: "filename" is a device special file for the drive/changer, for example:
| /dev/rmt0 (AIX), /dev/rmt/0st (Sun), /dev/rmt/0m (HP),
| /dev/IBMtape0 (Linux), \\.\tape0 (Windows)
| For a complete list of the filename syntax, please refer the section "Special Files" on
| each platform.
The calling convention for the Common Command set will be:
itdt -f filename [Open Mode] Subcommand [Subcommand ...]
The Open Mode flag is supported on all platforms. If the flag is not set, the device
will be opened in read/write mode. Additional parameters that may be required
for opening the device will be automatically detected and set.
Valid Open Modes are
-w 0 for Read/Write
-w 1 for Write Only
-w 2 for Read Only
-w 3 for Append only
Note that the new command set will enable legacy commands on every platform,
even if that wasn't supported by Tapeutil before. The output will follow current
Tapeutil conventions, but if there is different output for a single command on
various platforms, the output will be implemented according to the AIX output as
the primary scripting platform.
allow
(Deprecated: unlock, -o rem) Allow medium removal for tape or changer devices
(unlock door). The counter command for this is prevent.
Parameters:
None
devinfo
(Deprecated: -o gdi) Show device information (device type, sub type and block
size)
Parameters:
None
inquiry
(Deprecated: -o inq) Issue an Inquiry command and dump the bytes in Hex.
Parameters:
inquiry [Page code in Hex, 00-FF without leading x]
Note: ITDT will print a hex dump of the inquiry data on all platforms.
logpage
(Deprecated: -o log) This subcommand issues the SCSI Log Sense command to the
device for the specified page and displays the log sense data.
Parameters:
logpage Page (page in hex without the leading x)
loop
This subcommand loops all subsequent subcommands continuously or a number
of times if the Count parameter is specified. Also refer to the sleep subcommand.
Parameters:
loop [Count]
modepage
(Deprecated: -o mod) This subcommand issues the SCSI Mode Sense command to
the device for the specified page and displays the mode sense data.
Parameters:
modepage Page (page in hex without leading x)
prevent
(Deprecated: -o lck, lock) Prevent medium removal for tape or changer devices
(lock door). The counter command for this is allow.
Parameters:
None
print
This subcommand prints the associated text to standard output. It can be used at
any time to display the progress of the subcommands.
Parameters:
print Text
qrypath
(Deprecated: -o phs, path, checkpath) This subcommand displays information
about the device and SCSI paths, such as logical parent, SCSI IDs, and the status of
the SCSI paths for the primary path and all alternate paths that are configured.
Parameters:
None
Note: ITDT will show the entire path information for all the commands.
qryversion
(Deprecated: -o drv) This subcommand prints out the current version of the IBM
device driver.
Parameters:
None
release
(Deprecated: -o rel) This subcommand explicitly releases a device and makes it
available for other hosts by issuing the SCSI Release command.
Parameters:
None
reqsense
(Deprecated: -o req) This subcommand issues the SCSI Request Sense command to
the device and displays the sense data in hex format.
Parameters:
None
reserve
(Deprecated: -o res) This subcommand explicitly reserves a device by issuing the
SCSI Reserve command.
Parameters:
None
resetdrive
This subcommand issues a Send Diagnostic command (Reset Drive subcommand)
to reset the device.
Parameters:
None
sleep
Sleep for the specified number of seconds before executing the next subcommand.
Parameters:
sleep [Seconds]
tur
(Deprecated: -o tur) This subcommand issues the SCSI Test Unit Ready command
to the device.
Parameters:
None
vpd
This subcommand displays Vital Product Data (VPD) that are part of the Inquiry
command data and outputs Manufacturer, Product Identification and Revision
Level.
Parameters:
None
append
Opens the device in append mode. The file access permission is Write Only.
Parameters:
None
Supported platforms: All, but on Windows this open mode is not supported by the
IBM Tape Device Driver. On HP-UX this open mode is re-mapped to r/w by the
IBM Tape Device Driver.
bsf
(Deprecated: -o bsf) This subcommand backward spaces Count filemarks. The tape
is positioned on the beginning of the last block of the previous file. An optional
Count can be specified. The default is 1.
Parameters:
bsf [Count]
bsr
(Deprecated: -o bsr) This subcommand backward spaces Count records. An
optional count can be specified. The default is 1.
Parameters:
bsr [Count]
density
(Deprecated: -o gdn / -o rds) This subcommand issues the SCSI Report Density
Support command for all supported media and for the current media loaded in the
drive, and displays the results. If the drive is not loaded, the current media density
is not reported.
Parameters:
None
display
(Deprecated: -o msg) This subcommand displays a message on the display panel of
the tape device. Up to 16 characters can be used for the message. If the message is
longer than eight characters, the display alternates between the first eight
characters and the remainder of the message.
Parameters:
display “message1” “message2”
erase
(Deprecated: -o era) This subcommand erases the tape.
Parameters:
None
fsf
(Deprecated: -o fsf) This subcommand forward spaces count filemarks. The tape is
positioned on the first block of the next file. An optional count can be specified.
The default is 1.
Parameters:
fsf [Count]
fsr
(Deprecated: -o fsr) This subcommand forward spaces count records. An optional
count can be specified. The default is 1.
Parameters:
fsr [Count]
getparms
(Deprecated: -o parms / status / -o gpa) Get and show drive, media and driver
parameters.
Parameters:
None
load
(Deprecated: -o lod) This subcommand issues a SCSI Load command to load a
tape. subcommand loops all subsequent subcommands continuously or a number
of times if the Count parameter is specified. Also refer to the sleep subcommand.
Parameters:
None
logsense
Retrieve all Log Sense pages and output them as hex.
Parameters:
None
qrypos
(Deprecated: -o gpo) This subcommand displays the current tape position.
Parameters:
None
| qrytcpip
| Output the current drive TCP/IP configuration. Only supported with LTO-5. Will
| output adapter and TCP/IP address information for IPv4 with address, port and
| subnet mask – example:
| itdt -f \\.\tape0 qrytcpip
| Adapter:1 IPV4 111.222.0.77:7070/112
| Exit with code: 0
| Parameters:
| None
read
This subcommand reads a file, or a specified number of records, from the tape to
the destination file name specified with the -d flag. If the optional count parameter
is used, only the number of records specified with the -c flag are read unless a
filemark is encountered before the number of specified records. If the count
parameter is not used, all records up to the next filemark on tape are read.
Parameters:
read -d Dest [-c Count]
rewind
(Deprecated: -o rew) Rewind the tape.
Parameters:
None
rtest
(Deprecated: -o rea) This subcommand performs a read test by reading a random
data pattern from the tape and verifying that it matches the written data. The rtest
subcommand can be used after the wtest subcommand to verify the data. An
optional block size, count, and repetition can be specified with the -b, -c, and -r
flags, respectively. If the block size is fixed, then the count specifies the number of
blocks to read on each repetition. If the block size is zero (variable), then the count
specifies the number of bytes to read on each repetition. The default is a block size
of 10240, a count of 20 blocks, and a repetition of 1.
Parameters:
read [-b Blocksize] [-c Count] [-r Repetition]
rwtest
This subcommand performs a read and write test by writing a random data
pattern on the tape, reading it, and verifying that it matches the written data. An
optional block size, count, and repetition can be specified with the -b, -c, and -r
flags, respectively. If the block size is fixed, then the count specifies the number of
blocks to write on each repetition. If the block size is zero (variable), then the count
specifies the number of bytes to write on each repetition. The default is a block
size of 10240, a count of 20 blocks, and a repetition of 1.
Parameters:
rwtest [-b Blocksize] [-c Count] [-r Repetition]
seod
(Deprecated: -o eod) Spaces to end of data on the tape.
Parameters:
None
setparm
(Deprecated: -o spa / volid / compress / nocompress / sili / nosili / autoload /
noautoload / retain / noretain)
ITDT-SE will use the new setparm option that corresponds to the current
interactive mode options.
Supported platforms: All, but only a subset of the parameters is supported by the
platform's device drivers:
setpos
(Deprecated: -o spo / asf) This subcommand issues the SCSI Locate command to
the device to set the tape position. If the optional Blockid parameter is specified,
the tape position is set to the Blockid. Otherwise, if the Blockid parameter is
omitted, the tape position is set to the last position saved using the qrypos
subcommand.
Parameters:
setpos [Blockid]
| settcpip
| Sets the drive Ethernet port TCP/IP settings for LTO-5 drives. If the optional
| parameters port and subnet_mask_length are not specified, the current settings for
| these parameters are not changed. IPv4 addresses are entered in the syntax
| a.b.c.d:port/subnet_mask_length where a,b,c,d are values with 1 to 3 digits.
| itdt -f \\.\tape0 settcpip 9.155.27.99:0/24
| Setting TCP/TP Configuration...
| Adapter:1 IPV4 111.222.0.77:7070/112
| Adapter:1 IPV6 [0001:0016:0021:01BC:15B3:1A0A:1E61:22B8]:7070/112
| Exit with code: 0
| Parameters:
| address[:port[/subnet_mask_length]]
sync
(Deprecated: -o syn) This subcommand will synchronize buffers/flush the tape
buffers to tape.
Parameters:
None
unload
(Deprecated: -o off / offline / rewoffl) This subcommand rewinds and unloads the
tape.
Parameters:
None
weof
(Deprecated: -o eof / eof) These subcommands write count filemarks. An optional
count can be specified. The default is 1.
Parameters:
weof [Count]
Note: The weof parameter [count] is optional, if it is not supplied, 1 filemark will
be written.
write
This subcommand writes the source file specified with the -s flag on the tape.
Parameters:
write -s Source
wtest
(Deprecated: -o wri) This subcommand performs a write test by writing a random
data pattern on the tape. The rtest subcommand can be used after the wtest
subcommand to verify the data that was written. An optional block size, count,
and repetition can be specified with the -b, -c, and -r flags, respectively. If the block
size is fixed, the count specifies the number of blocks to write on each repetition. If
the block size is zero (variable), the count specifies the number of bytes to write on
each repetition. The default is a block size of 10240, a count of 20 blocks, and a
repetition of 1.
Parameters:
wtest [-b Blocksize] [-c Count] [-r Repetition]
audit
(Deprecated: -o aud / -o ier) This subcommand with no parameters issues the SCSI
Initialize Element Status command to the device. Using the optional parameters
Address and Count issues the SCSI Initialize Element Status With Range command
to the device. The Address parameter specifies the starting element address and
the Count parameter, if used, specifies the number of elements to initialize. If
Count is omitted, it defaults to 1.
Parameters:
audit [[Address] [Count]]
cartridgelocation
This subcommand with no parameters issues the SCSI Read Element Status
command to the device to report all slots with the cartridge location information.
Using the optional parameters Slot and Count issues the SCSI Read Element Status
to the device for a specific starting Slot address and optionally the Count specifies
the number of slots to return. If Count is omitted, it defaults to 1.
Parameters:
cartridgelocation [Slot [Count]]
elementinfo
(Deprecated: -o ele) This subcommand displays element information (number and
address) of each element type.
Parameters:
None
exchange
(Deprecated: -o exh) This subcommand issues the SCSI Exchange Medium
command to the device using the Source, Dest1, and Dest2 addresses specified.
This command performs the equivalent function of two Move Medium commands.
The first moves the cartridge from the element address specified by the Dest1
parameter to the element address specified by the Dest2 parameter. The second
moves the cartridge from the element address specified by the source parameter to
the element address specified by the Dest1 parameter.
Parameters:
exchange Source Dest1 Dest2
inventory
(Deprecated: -o inv) This subcommand with no parameters issues the SCSI Read
Element Status command for each element type and displays the element status
information. If the optional -i parameter is used, then only the import/export
Parameters:
inventory [-i | -v Volid]
move
(Deprecated: -o mov) This subcommand issues the SCSI Move Medium command
using the source and destination addresses specified. The element addresses can be
obtained using the elementinfo subcommand.
Parameters:
move Source Dest
position
(Deprecated: -o pos) This subcommand issues the SCSI Position to Element
command using the destination specified.
Parameters:
position Dest
dump
(Deprecated: -o sdp) Forces a dump of the tape drive and stores the dumps before
and after the force dump in the ITDT-SE output folder with the ITDT-SE naming
convention (serialnumber.a.gz and serialnumber.b.gz).
Parameters:
None
ekmtest
Test encryption key path/setup.
Parameters:
None
encryption
Query tape drive encryption settings and display the encryption state.
Parameters:
None
ucode
(Deprecated: -o dmc) This subcommand downloads microcode to the device. The
Filename is a file that contains the ucode.
Parameters:
ucode Filename
Deprecated Commands
The following is a list of commands that are currently available in this version of
ITDT, however in a future release the following commands and some alternate
calls of the Common Command Scripting set will no longer be available and the
scripts containing these commands will need to be changed. The scripts using the
deprecated commands should be changed for future editions.
v fmrtape
v forcedump / -o fdp
v reset
v ucodelevel / -o qmc
When scripting, one should be aware of the following general deviations to the
legacy tapeutil scripting command set.
The Verbose Mode parameter is ignored for the ITDT-SE implementation; instead
always the full information is printed out.
For some operations, the sense data length is limited to 32 bytes – this is required
by the ITDT test sequences.
| The list command will not work on Linux variants where the reported maximum
| SCSI transfer size is larger than the size the system can actually transfer.
Due to the fact that ITDT-SE opens the device read/write by default in scripting
mode, the WORM mode can not be deactivated in scripting mode. Use the Tapeutil
interactive mode instead to deactivate the WORM mode.
19. getparms (new) - retrieve all parameters on all platforms, independent of flag
set
20. qryinquiry - output the same as on AIX
21. logsense - does not output header with device/serial/volid, example:
05/12/09 15:10:44 Device: ULT3580- S/N: 1300000206 Volid: UNKNOWN
Windows
To install ITDT-GE on Windows, download the executable file
install_ITDT_GE_<version>.exe on a directory of your choice.
Note: If IBM Java 1.5 on a Microsoft Windows system is used, ensure that it is
Java 1.5 SR6 or higher.
For the graphical user interface (GUI) a minimum screen resolution of 1024*768
pixels is required.
64-bit Windows x64 is supported for ITDT-GE, but 32-bit JVM must be used.
Linux
To install ITDT-GE on Linux, download the executable file
install_ITDT_GE_<version>.bin to a directory of your choice.
Note: The JRE delivered with Red Hat Enterprise Linux 4 and 5 (RHEL4, RHEL5)
is not supported. Install one of the following supported JREs before
launching the ITDT Installer:
| v Java 1.4.2 SR11 by IBM Corporation or higher
| v Java 1.4.2_17 by Sun Microsystems or higher
On RHEL4, RHEL5 and other Linux systems where none of the supported JREs is
available in the path do the following:
1. Add your Java directory to the path before starting the installer: The following
are examples of how to extend the search path (replace <version> with the
version that is in use).
v For IBM Java Runtime Environment:
$ export PATH=/opt/IBMJava2-142/jre/bin:$PATH
$ ./install_ITDT_GE_<version>.bin
v For Sun Microsystems Java Runtime Environment:
$ export PATH=/usr/java/j2re1.4.2_09/bin:$PATH
$ ./install_ITDT_GE_<version>.bin
Note: In the above examples, replace the directory names with your JRE
directories.
2. Create a symbolic link to the JRE to ensure that ITDT finds the right JRE before
starting ITDT-GE.
v For IBM Java Runtime Environment:
$ ln -sf /opt/IBMJava2-142/jre /opt/ibm/itdt-ge/jre
v For Sun Microsystems Java Runtime Environment:
$ ln -sf /usr/java/j2re1.4.2_09 /opt/ibm/itdt-ge/jre
Note: In the above examples, replace the directory names with your JRE
directories.
For the graphical user interface (GUI) a minimum screen resolution of 1024*768
pixels is required. The supported Linux operating systems for ITDT-GE are:
v Linux Distributions with glibc 2.2.5 and higher (x86, 32-bit)
Linux
It is strongly recommended to not operate Security Enhanced Linux (SELinux) in
enforcing mode while running ITDT-GE.
On RedHat Enterprise Linux 4 and 5 and SuSE Enterprise Linux 10 invoking the
online help may cause an error message "Problems opening link / Unable to open
web browser on {0}" to appear. Workarounds are to issue the commands:
a) ln -s /usr/bin/firefox /usr/local/bin/mozilla
or
b) export MOZILLA_FIVE_HOME=/usr/lib/firefox<version>
Replace with the appropriate path to your installed Firefox version before starting
ITDT-GE.
Gnome Desktop
If you are using the Gnome desktop, please be sure to log into the desktop session
as root to use ITDT-GE to prevent device access issues.
Windows
On Microsoft Windows systems where the maximum transfer size is limited to less
than 64kB, the Dump and Firmware update operations will not work.
Performance Issues
If you are using Adaptec SCSI Host Bus Adapters, ensure that you are using the
latest Adaptec Host Bus Adapter Drivers instead of the drivers shipped with the
Windows operating system.
When a command timeout condition occurs, ITDT may still continue to perform
more operations (like unmounting the cartridge) instead of instantly terminating
with a timeout condition.
a2500238
To start ITDT-GE on Windows click the shortcut created by the installation process.
On Linux, no start menu entry is generated. Start ITDT-GE by opening a Terminal
window, then switch to root user:
$ su -
The User Settings dialog appears the first time the program is run, allowing the
entry of user specifications: user name, company name, output path and log level.
The Output Path defines the location where the test reports and dumps are saved.
The Windows default output path is
C:\Documents and Settings\<username>\.itdt-ge\output
where <username> is the Windows user login name. The Linux default output
path is
/root/.itdt-ge/output
The Log Level should not be changed unless requested to do so by the IBM
Support Center. It is strongly recommended that this information be provided to
allow for further analysis of test results.
a2500262
a2500239
Figure 71. Graphical Edition Interface
v Main Menu (1 on Figure 71)- Located in upper left (File, Window, Help) The
following main program menu items are available:
a2500264
Figure 72. Main Program Menu Items
v Control Center (2 on Figure 71) - Located on left side (Device operations -
Scan, Test, Dump, and Update)
Additional device operations are available using drop-down arrows.
v Test Lab (3 on Figure 71) - Located from center to right side (Contains running
and previously run tests)
v Status Information (4 on Figure 71) - Located below the Test Lab (Contains
summary results of tests)
The following toolbar buttons for the device operations are available:
a2500265
Figure 73. Toolbar Buttons
v Click the Scan menu item in the Control Center to display the list of tape
devices found. When the scan is complete, select one device in the Test Lab by
clicking the corresponding checkbox.
v Test
Click the arrow next to the Test menu item to select an extended test.
v Dump
Click the arrow next to the Dump menu item to select additional log options.
v Update
Click the Update menu item to start the firmware update.
For each device on which the operation has been started, a tab appears on the
right panel (Test Lab area). The tab contains the operation information and status.
Only one operation can be run at a time with ITDT-GE. The benefit in using tabs
even for the single operation mode is that you get a history of operations as for
each consecutive operation, a separate tab is opened.
Scan
a2500240
Figure 74. Scan Function
The scan function is used to discover all supported tape and library devices that
are attached to the computer system so that they can be selected for the
subsequent ITDT-GE operations. The scan function also serves as a connection test
that can be used to verify proper attachment of the devices.
Note: When pressing the Scan button for the first time, a dialog box is displayed,
that warns the user to stop all backup jobs.
Once the scan is finished, the device list is displayed, in the Control Center area.
A scroll bar is available to display all the devices. Once the desired device is
displayed, select the device for test. Only one device can be selected.
Test
a2500241
Figure 75. Test Menu
The test function checks if the tape device is defective and outputs a pass/fail
result.
Attention: The test functionality erases user data on the cartridge that is used for
the test.
Notes:
1. The test can take from 15 minutes up to 2 hours.
2. The test runs only on tape drives, not on autoloaders or libraries.
To test tape drives within a library, the library must be in online mode.
After selecting the device you want to test, start the Test function selecting the Test
menu item.
Note: It may take some time until the Test function actually stops.
a2500242
Figure 76. Test Results
Note: Information can be found in the .txt/.blz files. See the log file section (1).
Dump
a2500224
Figure 77. Dump Menu
After selecting the device you want to dump, start the Dump function by selecting
Dump -> Dump from the actions toolbar.
When the dump process is performed on a tape library or autoloader other than
the 3584/TS3500, the Dump function stores one log file in the output folder of the
program (*.blz). For the 3584/TS3500, a dump file (*.a.gz) will be stored in the
output folder. Both files start with the serial number of the device (1).
a2500225
Figure 78. Dump Results
Note: When the Dump function is performed for tape libraries or autoloaders
other than the 3584/TS3500, the Log file only contains Log Sense and Mode
Sense pages, while a Drive or 3584/TS3500 Dump contains much more
diagnostic information. (2)
Firmware Update
The Firmware Update upgrades the firmware of tape drives and tape libraries. See
“Supported Equipment” on page 235 for a list of supported products.
Note: See “3576/TS3310 Tape Library” on page 246 for more information on how
to update the firmware on a 3576/TS3310 Tape Library.
Encryption
a2500226
Figure 79. Encryption Function
Note: Note that the test shown on the graphic above was run on a non-encrypted
device and is showing a failure.
The Encryption function is used to verify if data on the cartridge was actually
written encrypted. It reads both decrypted and raw data from the cartridge into
two separate files on disk. The user can then verify that the data differs to ensure
that encryption worked.
Note: It may take some time until the Encryption function actually stops.
Full Write
The Full Write function writes the entire cartridge with a given block size either
with compressible or incompressible data and output performance data.
Attention: The Full Write function erases data on the cartridge that is used for
the test.
Notes:
1. The Full Write function takes approximately 2 hours when writing
incompressible data, less time for compressible data.
2. The Full Write function runs only on tape drives, not on autoloaders or
libraries.
To perform a full write on tape drives within a library, the library must be in
online mode.
1. After selecting the device you want to write to, start the Full Write function by
selecting Test -> Full Write from the actions toolbar.
2. Click OK to start the full write.
ITDT-GE then displays the Full Write screen. If no cartridge is inserted,
ITDT-GE prompts to insert a cartridge. Either insert a cartridge and click OK or
stop by clicking the Abort button.
a2500227
Figure 80. Overwrite Data
Click Yes to continue the test if you are absolutely sure that data on the
cartridge can be overwritten. If you are unsure, click No to stop the test.
3. The system prompts for entry of a transfer size between 16 KB and the
maximum block size supported by the system (maximum possible value is 512
KB). Select the appropriate value for your system.
a2500228
4. Select the type of data to write, either: [C] Compressible or [I] Incompressible.
The full write can be stopped by clicking the Abort button.
Note: It may take some time until the full write actually stops.
| "Compressible = Yes" means that the data written was just zeroes, so that the
| data could be compressed by the drive with a maximum compression ratio.
| "Compressible = No" means that a data pattern was written that the drive
| could almost not compress at all. If the compression ratio is 1, the drive was
| not able to compress the data (equivalent to 1:1 compression ratio). If the
| compression ratio is 94.0, the drive was able to do 94:1 compression meaning
300 IBM Tape Device Drivers Installation and User’s Guide
IBM Tape Diagnostic Tool
Tape Usage
a2500229
Figure 82. Tape Usage
The Tape Usage function retrieves statistical data and error counters from a
cartridge.
1. After selecting the device you want to test, start the Tape Usage function by
selecting Dump -> Tape Usage Log from the actions toolbar.
2. ITDT-GE then displays the tape usage screen. If no cartridge is inserted,
ITDT-GE prompts to insert a cartridge. Either insert a cartridge and click OK or
stop by clicking the Abort button.
System Test
The System Test is a short test that performs the following:
v Reveals system performance bottlenecks. Compressible data throughput values
can reveal bandwidth limitations caused by the system or cabling or HBA.
v Measures performance variations across the different block sizes to find the ideal
block size for the system configuration.
The System Test only runs on tape drives, not on autoloaders or libraries. To
perform a System Test on tape drives within a library, the library must be in online
mode.
After selecting the device you want to test, start the System Test function by
selecting Test -> System Test from the actions toolbar.
ITDT-GE then displays the System Test screen. If no cartridge is inserted, ITDT-GE
prompts to insert a cartridge. Either insert a cartridge and click OK or stop by
clicking the Abort button.
Note: If ITDT-GE detects data on the cartridge, it displays the following message:
Cartridge not empty!
Overwrite data?
Click Yes to continue the test if you are absolutely sure that data on the
cartridge can be overwritten. If you are unsure, click No to stop the test.
a2500230
Figure 83. System Test
After selecting the device you want to test, start the Library Self-Test function by
selecting Test -> Library Diagnostic Self-Test from the actions toolbar.
At the end of the test, the results are displayed in the Status Information area.
If a tape drive cannot be identified using a device scan, the user can manually
create a test record for the drive. The system prompts for the user to run the
SCSI/FC Wrap test for the drive (see the service manual for the drive). The results
of the wrap test can be entered along with some additional inspection information.
The result are saved into binary and text output files that have the same format as
the output files generated by the test.
1. From the Main program menu, select File -> Manual Record
2. Enter the required information to complete the items in the screen:
a. Enter the device serial number.
b. Enter the content of the Message Display.
c. Optionally, enter any additional information text.
3. After all information has been entered, click OK.
The information is stored in a binary file (which can be used for further
analysis), and in a human-readable text file. Both files are stored in the
ITDT-GE output folder.
a2500258
Figure 84. Tapeutil Control Center
The left drop-down box within the Tapeutil Control Center is used to select
between Tape Drive Commands and Tape Library Commands. The commands
from the General Commands and Service Aid Commands ITDT-SE categories are
duplicated into the two sections to make the GUI navigation easier.
After the command category is selected, a drop-down box appears that allows the
selection of a command:
a2500259
Figure 85. Tape Drive Commands
After the command is selected, an area appears where command parameters can
be entered:
a2500260
When the user presses the “Execute” button, the “Results” output is placed below
the Parameter section:
a2500261
Figure 87. Command Parameter Results
This screen layout will stay within the Tapeutil perspective until the program is
closed. Outputs of subsequent operations are added to the Results field.
Commands that fail are indicated with a red cross in the Status area, commands
that succeed with a green check mark. The status area can be cleared by pressing
the “Clear” button.
The general commands that are available under both menus are:
v “Open” on page 307
v “Close” on page 307
v “Inquiry” on page 308
v “Test Unit Ready” on page 308
v “Reserve Device” on page 308
v “Release Device” on page 308
v “Request Sense” on page 308
v “Log Sense” on page 308
v “Mode Sense” on page 308
v “Query Driver Version” on page 308
v “Display All Paths” on page 308
The tape drive specific commands are:
v “Rewind” on page 309
v “Forward Space Filemarks” on page 309
v “Backward Space Filemarks” on page 309
v “Forward Space Records” on page 309
v “Backward Space Records” on page 309
v “Space to End of Data” on page 309
v “Read and Write Tests” on page 309
Note: When issuing a command in Tapeutil mode for ITDT GE execute must be
pressed before the action takes place.
Open
When you select the Open command:
1. ITDT checks if a device is already opened.
2. There is a box under Device Name: where you enter the name of the device.
3. Below that is a Open Mode pull down menu where you select how to open the
device (rw, ro, wo, append).
4. ITDT opens the device you selected.
Close
When you select the Close command:
1. ITDT checks if the device is already closed.
2. ITDT closes the device.
Inquiry
When you select the Inquiry command:
1. You are prompted for page code.
2. ITDT then displays a decoded format of a hexadecimal dump and prints a
hexadecimal dump of the inquiry data.
Reserve Device
When you select the Reserve Device command, ITDT issues a reserve command for
the device.
Release Device
When you select the Release Device command, ITDT issues a release command for
the device.
Request Sense
When you select the Request Sense command:
1. ITDT issues a Request Sense command.
2. ITDT then displays a decoded format of hexadecimal dump sense data and
prints hexadecimal dump sense data.
Log Sense
When you select the Log Sense command:
1. Enter the page number, in hexadecimal, in the Page-Code field.
2. ITDT issues a Log Sense command and outputs a hexadecimal dump of that
page.
Mode Sense
When you select the Mode Sense command:
1. Enter the page number, in hexadecimal, in the Page-Code field.
2. ITDT issues a Mode Sense command and outputs a hexadecimal dump of that
page
Rewind
When you select the Rewind command, ITDT issues the ioctl rewind command for
the device.
Erase
When you select the Erase command, ITDT issues the (extrinsic) ioctl command.
Load Tape
ITDT issues a SCSI Load command to load a tape.
Unload Tape
When you select the Unload Tape command:
1. ITDT issues the (extrinsic) ioctl command.
2. The tape will rewind and then unload.
Write Filemarks
When you select the Write Filemarks command:
1. In the Filemark-Count box, enter the number of filemarks to write.
2. ITDT issues the (extrinsic) ioctl command.
Synchronize Buffers
When you select the Synchronize Buffers command, ITDT issues the ioctl
command.
Query/Set Parameter
When you select the Query/Set Parameter command:
1. ITDT displays changeable parameters.
Query/Set Position
When you select the Query/Set Position command:
1. ITDT prints the current Position and requests the New Position.
Note: ITDT does not distinguish between logical and physical position, it just
displays the current position and queries for the one to set, then sets
the new position.
2. Enter the block id for where the tape should go to. This must be entered in
decimal. When the tape is being set the block id will be printed out in decimal
with hexadecimal in parentheses.
3. ITDT issues the Set Position ioctl and return the pass or fail results.
4. ITDT prints decoded logical position details.
5. ITDT issues Query Physical Position ioctl command.
6. ITDT prints decoded physical position details.
7. You are prompted for position to set (logical or physical) or to stop.
8. You are prompted for block id in decimal or hexadecimal.
Display Message
When you select the Display Message command:
1. ITDT provides to Parameter boxes in which you can enter 1 or 2 messages up
to 8 characters or less.
Note: Display message only works on drives that have a display panel. These
currently are the 3590 and the 3592 drives.
2. In the Type: pull down menu select which message (0 or 1) you want
displayed and if you want it to flash. There is also an alternate (alt) selection
which will alternate between messages.
3. ITDT issues the ioctl command.
4. ITDT prints message to display.
Element Information
When you select the Element Information command:
1. ITDT issues the ioctl command.
2. ITDT displays number of robots, first robot address, number of slots, first slot
address, number of i/e elements, first element address, number of drives, first
drive address.
Position to Element
When you select the Position to Element command:
1. In the Parameter boxes the Transport element address needs to be put in, in
decimal (picker).
2. Insert the Destination element address in decimal.
3. ITDT issues the ioctl command.
Element Inventory
When you select the Element Inventory command:
1. ITDT issues the Element Info ioctl command.
2. ITDT issues the Element Inventory ioctl command.
3. ITDT displays decoded element inventory information.
Exchange Medium
When you select the Exchange Medium command:
1. Insert source address into the Source address box in Decimal.
2. Insert the first destination address in decimal in the "First destination address"
box.
3. Insert the second destination address in decimal in the "Second destination
address" box.
4. ITDT issues the ioctl command.
Move Medium
When you select the Move Medium command:
1. Insert source element address into the Source element address box in Decimal.
2. Insert the first destination element address in decimal in the "First destination
element address" box
Dump/Force Dump/Dump
When you select the Dump/Force Dump/Dump command:
1. ITDT retrieves dump.
2. ITDT issues Force Dump command.
3. ITDT retrieves second dump.
4. ITDT displays name of stored dump files and the output directory where they
are stored. The dump filenames start with the serial number of the device.
Firmware Update
When you select the Firmware Update command, browse to the microcode file to
be used. ITDT performs firmware update and displays progress status and result.
Note: See “3576/TS3310 Tape Library” on page 289 for more information on how
to update the firmware on a 3576/TS3310 Tape Library.
The following site is available for the latest firmware files: http://www.ibm.com/
storage/lto.
This is a portal to enter our download area. There are a few pull down menus to
get you to the correct download as follows:
1. In the Product Group pull down menu select "Storage Systems".
2. In the Product Family pull down menu that appears select "Storage Software".
3. With the Product Type pull down menu that appears select "Archive
Management".
4. In the Product pull down menu that appears select "Multilevel Grid Access
Manager Software".
5. This will in turn bring up the Installed Version pull down menu. This menu
allows you to select the installed version number or "All".
6. In the Platform pull down menu that appears select "SLES 10" or "All"..
| For details on supported tape attachment please refer to the System Storage
| Interoperation Center website: http://www.ibm.com/systems/support/storage/
| config/ssic/.
Platform Driver Downloads: To download your driver, select the correct operating
system. Two more pull down menus will appear with information already in them.
Click Continue. The next screen allows you to narrow the search if you need to,
however just clicking "Continue" will allow you to look at what is available.
The latest driver will have the highest number extension. There are numeric
| sequence numbers in each level of device and library driver, that is, for AIX it
| would be Atape.11.7.5.0.bin. As newer levels of a driver are released, a higher
numeric sequence is assigned. When downloading a driver, ITDT will also be
available to download as a tool at the same time. If you use the XXXX download
then ITDT will automatically be downloaded at the same time. There is also a link
that can be followed to the programming reference which is in a PDF format that
can be downloaded.
Information concerning supported fibre channel host bus adapters (HBAs) and
associated HBA device drivers, firmware and BIOS levels can be obtained from the
following URL: http://www-03.ibm.com/systems/support/storage/config/hba/
index.wss
The IBM_Tape_Driver_IUG.pdf file contains the current version of the IBM Tape
Device Drivers: Installation and User’s Guide which can be found at:
http://www-01.ibm.com/support/docview.wss?rs=577&uid=ssg1S7002972.
| For the most-current information for the device driver you are using, consult the
| README file (not files) included in the download of your device driver.
Notes:
| 1. Valid for Windows 2008 and Windows 2008 r2
2. dist indicates a Linux distribution. arch indicates a machine architecture (for example, i386, ia64, s390).
3. The n.n.n. or n.n.n.n strings are replaced with digits to reflect the version of each driver.
If you are having trouble with your hardware, IBM service personnel will ask what
level of microcode you have on your hardware. If they believe you need a new
level of microcode, they may instruct you to install a newer level of microcode on
your hardware. They will provide you with updated microcode.
You can query the current level of microcode by issuing commands on the front
panel of your hardware. Consult the appropriate hardware reference manual for
specific instructions on querying your microcode level.
If your device is connected to a host system that has device or library support, you
can also query the last four digits of the current level of microcode using software,
refer to Chapter 9, “IBM Tape Diagnostic Tool (ITDT),” on page 231. The unit must
be powered On, configured properly, and ready. For additional information, refer
to the appropriate chapter in this document (based on the operating
system/platform) for details on how to have the device ready.
Any references to an IBM program or other IBM product in this publication is not
intended to state or imply that only IBM’s program or other product may be used.
Any functionally equivalent program that does not infringe any of IBM’s
intellectual property rights may be used instead of the IBM product. Evaluation
and verification of operation in conjunction with other products, except those
expressly designed by IBM, is the user’s responsibility.
IBM may have patents or pending patent applications covering subject matter in
this document. The furnishing of this document does not give you any license to
these patents. You can send license inquiries, in writing, to:
The following paragraph does not apply to the United Kingdom or any other
country (or region) where such provisions are inconsistent with local law:
IBM may use or distribute any of the information you supply in any way it
believes appropriate without incurring any obligation to you.
The ITDT-SE and ITDT-GE software uses Henry Spencer's regular expression
library that is subject to the following copyright notice:
"Copyright 1992, 1993, 1994, 1997 Henry Spencer. All rights reserved. This software
is not subject to any license of the American Telephone and Telegraph Company or
of the Regents of the University of California.
Permission is granted to anyone to use this software for any purpose on any
computer system, and to alter it and redistribute it, subject to the following
restrictions:
Trademarks
The following terms are trademarks of International Business Machines
Corporation in the United States, other countries (or regions), or both:
Intel, Itanium, and Pentium® are trademarks of Intel Corporation in the United
States, other countries (or regions), or both.
Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the
United States, other countries, or both.
Microsoft, Windows, Windows NT, and Windows 2000 are trademarks of Microsoft
Corporation in the United States, other countries (or regions), or both.
UNIX is a registered trademark of The Open Group in the United States and other
countries (or regions).
Other company, product, and service names may be trademarks or service marks
of others.
Index 327
V
Verifying device attachment 319
W
Windows 172
System-Managed Encryption 172
Windows 3494 Enterprise Tape Library
Installation Instructions 226
adding or deleting library on the
service 228
connecting the 3494 Enterprise
tape library 227
defining the symbolic name to the
service 228
installation procedure 226
uninstall procedure 229
Problem Determination
daemon trace facility 230
Product Requirements
data flow 224
hardware requirements 225
software requirements 225
Windows Device Driver
Device Driver Management 165
disable procedure 168
installation overview 165
installation procedures 166
removal procedure 168
uninstalling the device
drivers 169
Introduction and Product
Requirements 163
Product Requirements
software requirements 165
Windows NT
Installation and Configuration
Instructions
Adding or Removing Devices 165
Windows System-Managed Encryption
System-Managed Encryption 172
We appreciate your comments about this publication. Please comment on specific errors or omissions, accuracy,
organization, subject matter, or completeness of this book. The comments you send should pertain to only the
information in this manual or product and the way in which the information is presented.
For technical questions and information about products and prices, please contact your IBM branch office, your
IBM business partner, or your authorized remarketer.
When you send comments to IBM, you grant IBM a nonexclusive right to use or distribute your comments in any
way it believes appropriate without incurring any obligation to you. IBM or any other organizations will only use
the personal information that you supply to contact you about the issues that you state on this form.
Comments:
Name Address
Company or Organization
_ _ _ _ _ _ _Fold
_ _ _and
_ _ _Tape
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _Please
_ _ _ _ _do
_ _not
_ _ staple
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _Fold
_ _ _and
_ _ Tape
______
NO POSTAGE
NECESSARY
IF MAILED IN THE
UNITED STATES
_________________________________________________________________________________________
Fold and Tape Please do not staple Fold and Tape
Cut or Fold
GC27-2130-09 Along Line
Printed in USA
GC27-2130-09
Spine information:
IBM Tape Device Drivers IBM Tape Device Drivers Installation and User’s Guide