Implementing IBM Tape in Linux and Windows Sg246268
Implementing IBM Tape in Linux and Windows Sg246268
Implementing IBM Tape in Linux and Windows Sg246268
Babette Haeusser Ingo Dimmer Alv Jon Hovda Jana Jamsek Ricardo Alan Silva Erwin Zwemmer
ibm.com/redbooks
International Technical Support Organization Implementing IBM Tape in Linux and Windows October 2007
SG24-6268-04
Note: Before using this information and the product it supports, read the information in Notices on page ix.
Fifth Edition (October 2007) This edition applies to all IBM Tape Drives and Tape Libraries current at the time of publishing.
Copyright International Business Machines Corporation 2002, 2003, 2004, 2005, 2007. All rights reserved. Note to U.S. Government Users Restricted Rights -- Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
Contents
Notices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .x Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi The team that wrote this IBM Redbooks publication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi Become a published author . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiv Comments welcome. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiv Summary of changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv August 2007, Fifth Edition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv October 2005, Fourth Edition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xv July 2004, Third Edition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv Part 1. Setting up IBM tape in Linux and Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Chapter 1. Introduction to IBM Open System Tape on Linux and Windows . . . . . . . . . 3 1.1 LTO overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.1.1 LTO Ultrium models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.1.2 Media compatibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.1.3 IBM System Storage TS2230 Tape Drive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 1.1.4 IBM System Storage TS2340 Tape Drive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 1.1.5 IBM System Storage TS3100 Tape Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 1.1.6 IBM System Storage TS3200 Tape Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 1.1.7 IBM System Storage TS3310 Tape Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 1.1.8 IBM System Storage TS3500 Tape Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 1.1.9 TS3500 frames L53 and D53 for IBM LTO Fibre Channel drives . . . . . . . . . . . . . 13 1.1.10 IBM TS3500 Tape Library frames L23 and D23 . . . . . . . . . . . . . . . . . . . . . . . . . 15 1.1.11 IBM TS3500 High Availability Unit HA1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 1.1.12 Control path failover . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 1.1.13 Data path failover . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 1.1.14 SNMP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 1.1.15 SMI-S support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 1.1.16 ALMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 1.1.17 Virtual I/O . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 1.1.18 Element number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 1.2 Other IBM System Storage Tape models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 1.2.1 IBM System Storage TS1120 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 1.2.2 IBM System Storage TS3400 Tape Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 1.3 Tape encryption overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 1.3.1 Encryption methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 1.3.2 TS1120 tape encryption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 1.3.3 TS1040 Tape Encryption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 1.4 Hardware and operating system platforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 1.4.1 Hardware server platforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 1.4.2 ISV storage management software. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 1.5 Windows 2000/2003 connectivity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 1.5.1 Windows 2000/2003 SCSI direct attach . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 1.5.2 Windows 2000/2003 Fibre Channel attachment . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Copyright IBM Corp. 2002, 2003, 2004, 2005, 2007. All rights reserved.
iii
1.6 Intel Linux connectivity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.6.1 Linux SCSI direct attach . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.6.2 Linux Fibre Channel attachment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.7 Determining the number of drives on a SCSI bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.8 Host Bus Adapters and device drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.8.1 What are HBAs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.8.2 Device drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.9 LVD and SAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.10 SCSI HD68 and VHDCI cable connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 2. IBM Open System Tape Library sharing and partitioning. . . . . . . . . . . . . . 2.1 Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1.1 Library sharing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1.2 Homogenous drive sharing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1.3 What should I use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1.4 Tape Library Specialist . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2 Partitioning multi-path tape libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2.1 Set up and configure the IBM TS3100 / TS3200 . . . . . . . . . . . . . . . . . . . . . . . . . 2.2.2 Partitioning the IBM TS3100 / TS3200 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2.3 Set up and configure the IBM TS3310 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2.4 Partitioning the IBM TS3310 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2.5 Set up and configure the IBM TS3400 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2.6 Partitioning the IBM TS3400 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2.7 Set up and configure the IBM TS3500 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2.8 Partitioning the IBM TS3500 (ALMS not enabled) . . . . . . . . . . . . . . . . . . . . . . . . 2.2.9 Partitioning the IBM TS3500 using the wizard (ALMS not enabled) . . . . . . . . . . . 2.2.10 Partitioning the TS3500 using the operator panel (ALMS not enabled) . . . . . . . 2.3 ALMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.3.1 Functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.3.2 Virtual I/O . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.3.3 Configuring the TS3500 with ALMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.3.4 Using ALMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 3. Basic IBM tape setup for Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.1 IBM tape installation overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.1.1 Determine requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2 Installing IBM tape device drivers for Windows 200x . . . . . . . . . . . . . . . . . . . . . . . . . 3.2.1 Installing the medium changer and tape device driver . . . . . . . . . . . . . . . . . . . . 3.3 Path failover . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3.1 Configuring and unconfiguring control path failover . . . . . . . . . . . . . . . . . . . . . . 3.3.2 CPF driver installation using install.exe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3.3 Configuring and unconfiguring Data Path Failover . . . . . . . . . . . . . . . . . . . . . . . 3.4 Testing the library with NTUTIL. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.4.1 Creating a library device table. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.4.2 Testing the library with NTBACKUP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.4.3 Deleting LTO devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.5 Windows 200x SCSI adapter installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.6 IBM System Storage Tape Library Specialists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.6.1 IBM TS3100 / TS3200 Tape Library Specialist . . . . . . . . . . . . . . . . . . . . . . . . . . 3.6.2 IBM TS3310 Tape Library Specialist. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.6.3 IBM TS3400 System Library Specialist. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.6.4 IBM TS3500 Tape Library Specialist. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
37 37 37 38 39 39 39 40 41 43 44 44 47 48 49 50 51 52 53 54 57 58 60 65 67 74 77 78 82 83 98
101 102 102 104 105 107 108 112 113 114 122 122 125 128 132 133 136 138 141
iv
3.7 Updating library, drive, and RMU firmware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.7.1 Keeping up-to-date with drivers and firmware using My Support . . . . . . . . . . . . 3.7.2 Check the installed firmware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.7.3 Upgrading the drive firmware using ITDT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 4. Basic IBM tape setup for Linux . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1 Hardware and software requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.2 Installing library and tape device drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.3 Using IBM tape device driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.3.1 Installing the IBM tape device driver and utilities . . . . . . . . . . . . . . . . . . . . . . . . 4.3.2 Creating a library device table. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.3.3 Uninstalling the tape device driver and utilities . . . . . . . . . . . . . . . . . . . . . . . . . . 4.3.4 Setting up control path failover on Linux . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.3.5 Setting up data path failover on Linux. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.4 Intel Linux Fibre Channel HBA installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.4.1 QLogic 23xx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.5 Using IBM tape driver in Linux on System z . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.5.1 Use /etc/zfcp.conf file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.5.2 Modify the /etc/modules.conf file. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.5.3 Dynamically attaching a tape device. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 5. SAN considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.1 SAN design considerations for IBM tape libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.1.1 What bandwidth do we need for FC tape . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.1.2 Multiple paths to tape drives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.1.3 Tape and disk on the same HBA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.1.4 Different SAN fabrics for disk and tape . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.2 Zoning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.2.1 Some basic information about zoning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.2.2 Types of zoning. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.2.3 Suggestion on zoning for tapes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.2.4 World Wide Names of FC Host Bus Adapter . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.3 Persistent binding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.4 Connection type of IBM tapes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
149 149 150 157 159 160 160 161 161 167 169 169 172 174 175 176 178 178 179 181 182 182 184 186 190 190 193 193 194 194 194 195
Part 2. LTO libraries and backup software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197 Chapter 6. Configuring IBM Tivoli Storage Manager on Windows and Linux . . . . . . 6.1 IBM Tivoli Storage Manager overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.1.1 IBM Tivoli Storage Manager commonly used terms . . . . . . . . . . . . . . . . . . . . . . 6.1.2 IBM Tivoli Storage Manager and tape library sharing . . . . . . . . . . . . . . . . . . . . . 6.2 Non-shared devices with Tivoli Storage Manager for Windows . . . . . . . . . . . . . . . . . 6.2.1 Installing Tivoli Storage Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.2.2 Defining the library and drives using the Configuration Wizard . . . . . . . . . . . . . 6.2.3 Defining the library and drives using the command line . . . . . . . . . . . . . . . . . . . 6.2.4 Defining the device class using the Configuration Wizard . . . . . . . . . . . . . . . . . 6.2.5 Defining the device class using the command line . . . . . . . . . . . . . . . . . . . . . . . 6.2.6 Defining the storage pool using the Configuration Wizard . . . . . . . . . . . . . . . . . 6.2.7 Defining the storage pool using the command line . . . . . . . . . . . . . . . . . . . . . . . 6.2.8 Inserting data and cleaning cartridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.3 Non-shared device with Tivoli Storage Manager for Linux . . . . . . . . . . . . . . . . . . . . . 6.3.1 Performance hints for IBM Tivoli Storage Manager, LTO, and 3592 . . . . . . . . . 199 200 201 202 204 204 208 212 214 214 217 217 218 225 230
Contents
6.4 LTO WORM (Write Once Read Many) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.5 Various IBM 3592 media types and ITSM. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.6 Sharing LTO libraries with IBM Tivoli Storage Manager . . . . . . . . . . . . . . . . . . . . . . . 6.6.1 Configuring the Library Manager to share libraries . . . . . . . . . . . . . . . . . . . . . . . 6.6.2 Configuring the library client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.6.3 Define library and drives for library client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.6.4 Administering shared libraries. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.7 LAN-free backup with IBM Tivoli Storage Manager . . . . . . . . . . . . . . . . . . . . . . . . . . 6.7.1 LAN-free configuration setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.7.2 Define path considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.8 NDMP backup with IBM Tivoli Storage Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.8.1 Network Attached Storage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.8.2 Overview of IBM Tivoli Storage Manager NDMP backup . . . . . . . . . . . . . . . . . . 6.8.3 Tivoli Storage Manager NDMP backup configurations . . . . . . . . . . . . . . . . . . . . 6.9 IBM Tivoli Storage Manager and redundant library control paths . . . . . . . . . . . . . . . . 6.10 IBM Tivoli Storage Manager and data path failover . . . . . . . . . . . . . . . . . . . . . . . . . 6.11 Tape alert support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.12 Device migration and coexistence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.12.1 Scenarios . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.13 IBM Tivoli Storage Manager SAN device mapping . . . . . . . . . . . . . . . . . . . . . . . . . . 6.13.1 SAN device mapping functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 7. Implementing other backup software with IBM Open System Tape . . . . 7.1 EMC Legato NetWorker overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.1.1 NetWorker and IBM LTO interoperability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.1.2 NetWorker installation in Windows environment. . . . . . . . . . . . . . . . . . . . . . . . . 7.1.3 Networker installation in a Linux environment. . . . . . . . . . . . . . . . . . . . . . . . . . . 7.2 Symantec NetBackup overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.2.1 NetBackup and IBM LTO interoperability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.2.2 NetBackup installation in Windows environment . . . . . . . . . . . . . . . . . . . . . . . . 7.2.3 NetBackup installation in Linux environment . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.3 NetVault by BakBone . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.3.1 BakBone NetVault and IBM LTO interoperability . . . . . . . . . . . . . . . . . . . . . . . . 7.3.2 BackBone NetVault installation in Windows and Linux environments . . . . . . . . 7.4 Arkeia Network Backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.4.1 Arkeia and IBM LTO interoperability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.4.2 Arkeia installation in Windows and Linux environments . . . . . . . . . . . . . . . . . . .
231 232 234 235 235 236 236 238 238 240 240 241 241 242 244 246 247 248 249 256 256 259 260 260 260 261 261 262 262 262 263 263 263 263 264 264
Part 3. Appendixes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265 Appendix A. Recommended HBA settings for LTO drives and libraries . . . . . . . . . . 267 Recommended QLogic HBA settings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268 Recommended Emulex HBA settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269 Appendix B. SNMP setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Simple Network Management Protocol (SNMP) alerts . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuring SNMP for the IBM TS3100/TS3200 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuring SNMP for the TS3310. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuring SNMP for the IBM TS3400 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuring SNMP for the IBM TS3500 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Enable SNMP traps using the Operator panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Enable SNMP Traps using Tape Library Specialist . . . . . . . . . . . . . . . . . . . . . . . . . . . Configure NetView as SNMP monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Enabling or disabling SNMP requests. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vi
Implementing IBM Tape in Linux and Windows
271 272 273 274 276 278 279 282 284 287
Appendix C. Additional information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Performance considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Linux . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IBM Tivoli Storage Manager tape and tape library commands . . . . . . . . . . . . . . . . . . . . . EMC Legato NetWorker autochanger maintenance commands . . . . . . . . . . . . . . . . . . . . Verifying device attachment with tapeutil or ntutil . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Linux tape and medium changer device attachment test . . . . . . . . . . . . . . . . . . . . . . . Windows tape and medium changer device attachment test . . . . . . . . . . . . . . . . . . . . Using tapeutil element inventory (Linux) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Using NTUTIL element inventory (Windows) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Collect real-time failure information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Hints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Related publications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IBM Redbooks publications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Other publications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Online resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . How to get IBM Redbooks publications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Help from IBM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
291 292 292 293 294 295 295 296 298 300 302 304 304 310 311 311 311 312 315 315
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 317
Contents
vii
viii
Notices
This information was developed for products and services offered in the U.S.A. IBM may not offer the products, services, or features discussed in this document in other countries. Consult your local IBM representative for information on the products and services currently available in your area. Any reference to an IBM product, program, or service is not intended to state or imply that only that IBM product, program, or service may be used. Any functionally equivalent product, program, or service that does not infringe any IBM intellectual property right may be used instead. However, it is the user's responsibility to evaluate and verify the operation of any non-IBM product, program, or service. IBM may have patents or pending patent applications covering subject matter described 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: IBM Director of Licensing, IBM Corporation, North Castle Drive, Armonk, NY 10504-1785 U.S.A. The following paragraph does not apply to the United Kingdom or any other country where such provisions are inconsistent with local law: INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS PUBLICATION "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of express or implied warranties in certain transactions, therefore, this statement may not apply to you. This information could include technical inaccuracies or typographical errors. Changes are periodically made to the information herein; these changes will be incorporated in new editions of the publication. IBM may make improvements and/or changes in the product(s) and/or the program(s) described in this publication at any time without notice. Any references in this information to non-IBM Web sites are provided for convenience only and do not in any manner serve as an endorsement of those Web sites. The materials at those Web sites are not part of the materials for this IBM product and use of those Web sites is at your own risk. IBM may use or distribute any of the information you supply in any way it believes appropriate without incurring any obligation to you. Information concerning non-IBM products was obtained from the suppliers of those products, their published announcements or other publicly available sources. IBM has not tested those products and cannot confirm the accuracy of performance, compatibility or any other claims related to non-IBM products. Questions on the capabilities of non-IBM products should be addressed to the suppliers of those products. This information contains examples of data and reports used in daily business operations. To illustrate them as completely as possible, the examples include the names of individuals, companies, brands, and products. All of these names are fictitious and any similarity to the names and addresses used by an actual business enterprise is entirely coincidental. COPYRIGHT LICENSE: This information contains sample application programs in source language, which illustrate programming techniques on various operating platforms. You may copy, modify, and distribute these sample programs in any form without payment to IBM, for the purposes of developing, using, marketing or distributing application programs conforming to the application programming interface for the operating platform for which the sample programs are written. These examples have not been thoroughly tested under all conditions. IBM, therefore, cannot guarantee or imply reliability, serviceability, or function of these programs.
Copyright IBM Corp. 2002, 2003, 2004, 2005, 2007. All rights reserved.
ix
Trademarks
The following terms are trademarks of the International Business Machines Corporation in the United States, other countries, or both:
AIX 5L AIX AS/400 ESCON eServer FICON i5/OS IBM iSeries MVS NetView OS/400 pSeries Redbooks Redbooks (logo) System i System p System x System z System Storage Tivoli TotalStorage z/OS zSeries
The following terms are trademarks of other companies: Oracle, JD Edwards, PeopleSoft, Siebel, and TopLink are registered trademarks of Oracle Corporation and/or its affiliates. Java, JRE, Powderhorn, RSM, Solaris, StorageTek, Sun, and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both. Internet Explorer, Microsoft, Windows Media, Windows Server, Windows, and the Windows logo are trademarks of Microsoft Corporation in the United States, other countries, or both. Intel, Itanium, Intel logo, Intel Inside logo, and Intel Centrino logo are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States, other countries, or both. UNIX is a registered trademark of The Open Group in the United States and other countries. Linux is a trademark of Linus Torvalds in the United States, other countries, or both. Other company, product, or service names may be trademarks or service marks of others.
Preface
This IBM Redbooks publication follows IBM TotalStorageIBM System Storage Tape Library Guide for Open Systems, SG24-5946, and will help you plan, install, and configure IBM Ultrium LTO tape drives, as well as the IBM TS1120 and 3592 tape drive and libraries with servers running Linux and Windows. This book focuses on the setup and customization of these drives and libraries in both direct-attached SCSI and SAN configurations. Part 1 describes how to attach and configure the drives and libraries, and covers basic installation and administration. It also covers the sharing and partitioning of libraries and explains the concept and usage of the Advanced Library Management System (ALMS) and virtual I/O with the IBM TotalStorage 3584 Tape Library. Part 2 documents how to use these products with popular data backup applications, including IBM Tivoli Storage Manager, BakBone NetVault, Arkeia, and EMC Legato NetWorker. This book will help IBM personnel, Business Partners, and clients to better understand and implement the IBM Ultrium LTO product line and also the IBM TS1120 and 3592 tape drives in Windows and Linux environments.
Copyright IBM Corp. 2002, 2003, 2004, 2005, 2007. All rights reserved.
xi
Jana Jamsek is an IT Specialist in IBM Slovenia. She works in Storage Advanced Technical Support for EMEA as a specialist for Storage and IBM eServer iSeries. Jana has eight years of experience in the System i, iSeries, and IBM AS/400 area, and five years of experience in Storage. She holds a Master's degree in Computer Science and a degree in mathematics from the University of Ljubljana, Slovenia. She has co-authored several IBM Redbooks publications and IBM Redpapers. Ricardo Alan Silva is an IT Specialist for IBM GTS Brazil, working in the Tivoli Storage Manager team supporting Tivoli Storage Manager and all its complementary products. He has been working at IBM for five years. His areas of expertise include System Storage Disk and Tape solutions, Tivoli Storage products implementation and TPC. He is an IBM Certified Deployment Professional: Tivoli Storage Manager V5.3 and IBM Certified Storage Administrator: Tivoli Storage Manager V5. Erwin Zwemmer is a Certified High End Tape Solution Specialist working at the Tape Support Centre in Mainz, Germany, since 2001. In his current job, Erwin provides EMEA support to colleagues for the complete spectrum of IBM TotalStorage and System Storage tape and optical products. Prior to his position with IBM Germany, he worked as an AS/400 Technical Support Member. He joined IBM Holland in 1995 as an IBM Customer Engineer for AS/400 systems and multivendor products.
xii
Figure 1 The team: Ingo, Jana, Erwin, Babette, Ricardo Alan, and Alv Jon
Thanks to the following people for their contributions to this project: Leslie Parham and Emma Jacobs, International Technical Support Organization, San Jose Center Wade Wallace International Technical Support Organization, Austin Center Jennifer Bappert, Dan Watanabe, Linda Muller, Tommy de Jesus, Alan Ishikawa, Stefan Lehmann, Jeffrey Li, Kai Asher, Lee Jesionowski, Alain Taku, Carla Ruhl, Roy Tritch, IBM Tucson Development and Marketing Thanks to the authors of the previous editions of this book: Charlotte Brooks, Bertrand Dufrasne, Thomas Gaines, Alv Jon Hovda, Carsten Krax, Michael Lohr, Takashi Makino, Reena Masters, Tony Rynan, Abbe Woodcock, Josef Weingand, and Erwin Zwemmer.
Preface
xiii
Comments welcome
Your comments are important to us! We want our books to be as helpful as possible. Send us your comments about this book or other IBM Redbooks publications in one of the following ways: Use the online Contact us review books form found at: ibm.com/redbooks Send your comments in an e-mail to: [email protected] Mail your comments to: IBM Corporation, International Technical Support Organization Dept. HYTD Mail Station P099 2455 South Road Poughkeepsie, NY 12601-5400
xiv
Summary of changes
This section describes the technical changes made in this edition of the book and in previous editions. This edition may also include minor corrections and editorial changes that are not identified. Summary of Changes for SG24-6268-04 for Implementing IBM Tape in Linux and Windows as created or updated on October 4, 2007.
New information
Ultrium 4 drives and libraries TS1120 Tape Drive TS3400 Tape Library Tape Encryption
New information
WORM media for Ultrium 3 drives Ultrium 3 drives and libraries Virtual I/O for IBM TotalStorage 3584 Tape Library
New information
New models, IBM TotalStorage 3581 2U Tape Autoloader L28 and F28 New frames and features for the IBM TotalStorage 3584 Tape Library, including support for IBM TotalStorage 3592 Tape Drive with WORM media Setup and implementation information for the IBM TotalStorage 3592 Tape Drive Advanced Library Management System (ALMS) for the IBM 3584
Copyright IBM Corp. 2002, 2003, 2004, 2005, 2007. All rights reserved.
xv
xvi
Part 1
Part
Copyright IBM Corp. 2002, 2003, 2004, 2005, 2007. All rights reserved.
Chapter 1.
Copyright IBM Corp. 2002, 2003, 2004, 2005, 2007. All rights reserved.
For more information about LTO technology, see IBM System Storage Tape Library Guide for Open Systems, SG24-5946. The IBM LTO home page is:
http://www.ibm.com/storage/lto
The LTO Ultrium road map (Figure 1-1 on page 5) shows the evolution of LTO technology. At the time of writing, IBM Ultrium generation 3 and 4 products are offered. The information in the road map is given as an indication of future developments by the three consortium members, and is subject to change. Important: Hewlett-Packard, IBM, and Certance reserve the right to change the information in this migration path without notice.
Capacity (Native)
100GB
200GB
400GB
800GB
1.6 TB
3.2 TB
Up to 20MB/s
Up to 40MB/s
Up to 80MB/s
Up to 120MB/s
Up to 180MB/s
Up to 270MB/s
WORM
No
No
Yes
Yes
Yes
Yes
Encryption
No
No
No
Yes
Yes
Yes
These models are shown in Figure 1-2. TS3500 TS2300 TS2340 TS3100
TS3310
TS3200
We describe these models in more detail starting in 1.1.3, IBM System Storage TS2230 Tape Drive on page 8. Some existing models have two drive options: IBM LTO3 and LTO4. LTO1 was the first generation of the LTO technology with a tape capacity of 100 GB per cartridge in a native format, and a capacity of 200 GB using 2:1 compression. LTO2 is the second generation of the LTO technology with a tape capacity of 200 GB per cartridge in native format, and a capacity of 400 GB using 2:1 compression. LTO3 is the third generation of the LTO technology with a tape capacity of 400 GB per cartridge in native format, and a capacity of 800 GB using 2:1 compression. A WORM (write-once, read-many) version of the LTO3 cartridge is also available. LTO4 is the fourth generation of the LTO technology with a tape capacity of 800 GB per cartridge in native format, and a capacity of 1600 GB using 2:1 compression. A WORM (write-once, read-many) version of the LTO4 cartridge is also available.
LTO2
The LTO2 Tape Drive is compatible with the cartridges of its predecessor, the LTO1 Tape Drive. Cartridge compatibility for the LTO2 Tape Drive is as follows: Reads and writes LTO2 format on LTO2 cartridges. Reads and writes LTO1 format on LTO1 cartridges. Does not write LTO2 format on LTO1 cartridges. Does not write LTO1 format on LTO2 cartridges.
LTO3
The LTO3 Tape Drive is compatible with the cartridges of its predecessors, the LTO2 and LTO1 Tape Drive. Cartridge compatibility for the LTO3 Tape Drive is as follows: Reads and writes LTO3 format on LTO3 cartridges. Reads and writes LTO2 format on LTO2 cartridges. Reads LTO1 format on LTO1 cartridges. Does not write LTO3 format on LTO2 cartridges. Does not write LTO2 format on LTO3 cartridges.
LTO4
The LTO4 Tape Drive is compatible with the cartridges of its immediate predecessors, the LTO3 and LTO2 Tape Drives. Cartridge compatibility for the LTO4 Tape Drive is as follows: Reads and writes LTO4 format on LTO4 cartridges. Reads and writes LTO3 format on LTO3 cartridges. Reads LTO2 format on LTO2 cartridges. Does not write LTO4 format on LTO3 cartridges. Does not write LTO3 format on LTO4 cartridges. Does not write or read on LTO1 cartridges.
For more information about IBM TS2230 Tape Drive, see IBM System Storage Tape Library Guide for Open Systems, SG24-5946.
For more information about IBM TS2340 Tape Drive, see IBM System Storage Tape Library Guide for Open Systems, SG24-5946.
The TS3100 Tape Library can be attached to IBM System p, IBM System i, IBM System x, Microsoft Windows, HP-UX, Sun Solaris, UNIX, Linux, and PC servers. It provides the ability to configure the number of logical libraries up to the number of tape drives. This provides a maximum capability of two logical libraries for the TS3100 with two half-high drives. Available as a standard feature, a Remote Management Unit (RMU) provides an Ethernet port, so that the library can be configured as a TCP/IP device in the network. Library status can be sent to the network as Simple Network Management Protocol (SNMP) traps. The IBM System Storage Tape Library Specialist enables network access (through a Web browser) to the library for a more detailed status and for updating the firmware of the library. All library Operator panel functions can be accessed using the IBM System Storage Tape Library Specialist. Figure 1-6 shows the IBM TS3100 Tape Library.
For more information about IBM TS3100 Tape Library, see IBM System Storage Tape Library Guide for Open Systems, SG24-5946.
10
Available as a standard feature, a Remote Management Unit (RMU) provides an Ethernet port, so that the library can be configured as a TCP/IP device in the network. Library status can be sent to the network as Simple Network Management Protocol (SNMP) traps. The IBM System Storage Tape Library Specialist enables network access (through a Web browser) to the library for more detailed status and for updating the firmware of the library. All library Operator panel functions can be accessed using the IBM System Storage Tape Library Specialist. Figure 1-7 shows the IBM TS3200 Tape Library.
For more information about IBM TS3200 Tape Library, see IBM System Storage Tape Library Guide for Open Systems, SG24-5946.
11
It provides ability to configure the number of logical libraries up to the number of tape drives. This provides a maximum capability of 18 logical libraries for the IBM TS3310. Available as a standard feature, a Remote Management Unit (RMU) provides an Ethernet port so that the library can be configured as a TCP/IP device in the network. The library status can be sent to the network as Simple Network Management Protocol (SNMP) traps. The IBM System Storage Tape Library Specialist enables network access (through a Web browser) to the library for more detailed status and for updating the firmware of the library. All library Operator panel functions can be accessed using the IBM System Storage Tape Library Specialist. Figure 1-8 shows the IBM TS3310 Tape Library 5U base unit.
For more information about IBM TS3310 Tape Library, see IBM System Storage Tape Library Guide for Open Systems, SG24-5946.
12
different Encryption methods are supported: Application-Managed Encryption (AME), System-Managed Encryption (SME), and Library-Managed Encryption (LME) by the TS3500. Figure 1-9 shows the IBM System Storage TS3500 Tape Library.
1.1.9 TS3500 frames L53 and D53 for IBM LTO Fibre Channel drives
The TS3500 Tape Library Models L53 and D53 integrate the TS1030 and TS1040 LTO 4 Gbps Fibre Channel Tape Drive. The Model L53 frame includes an enhanced Frame Controller Assembly (FCA) with two power supplies (for redundancy), an optimized dual-gripper cartridge accessor, on-demand storage slot capacity, and 16-slot I/O stations. The Model D23 frame can be attached to current or installed frame models.
13
Additional I/O Slots feature (FC1658 for LTO or FC1659 for 3592) or to attach an optional expansion frame. This gives a maximum data capacity for the L53 of 229 TB native (up to 458 TB with 2:1 data compression). Up to 12 IBM LTO drives can be installed. LTO1, LTO2, LTO3, and LTO4 tape drives can be installed in the same frame. As you add more than four drives or install the additional I/O station, there is an incremental reduction in storage slots. It is also possible to install the LTO FC Drive Mounting Kit (FC1514) in advance, to simplify future tape drive installation, but it will also reduce the number of available slots. Each TS3500 Model L53 has a standard 16-slot LTO cartridge input/output station for importing or exporting cartridges from the library without requiring re-inventory or interruption of library operations. Optional features can provide 16 additional input/output slots for LTO (FC1658) or 3592 media (FC1659). The lockable library door can be opened for bulk-loading IBM LTO tape cartridges. Re-inventory of the cartridges is done in fewer than 60 seconds per frame each time the library door is closed. A barcode reader mounted on the autochanger scans the cartridge labels at less than one minute per frame. A door lock is included to restrict physical access to cartridges in the library.
14
An additional 4 I/O station door can be installed in a Dx3 frame. This requires FC1451, and up to three Dx3 frames may be installed with this feature. Figure 1-10 shows the 4 I/O Station D-Frame. There is a LED status panel located on the right upper corner. The LEDs represents the amount of cartridges per I/O station and if the I/O station is locked. The I/O door has a total amount of 64 slots, 16 slots per I/O station. The 4 I/O station door reduces the frame storage slot capacity by 176 for a model D53. The I/O stations increase the maximum library I/O station slots from 32 to 224 due to a maximum of three D53 I/O frames in a sixteen frame library. The D53 models are compatible with existing models L22, L32, L52, D22, D32, and D52. Figure 1-10 shows a graphical overview of the 4 I/O station door using the Web user interface. In our example, there are five cartridges imported in the upper right I/O station and when you put your cursor on the data cartridge, it will show you the volume label.
Figure 1-10 A graphical overview of the 4 I/0 door using the Web user interface
15
16
The base frame (mode Lxx) is always on the left and as many as 15 additional expansion frames (Dxx) can be added to the right side. During the installation of additional D23 frames, the x-rail of the L frame where the accessor resides is extended, so that the accessor can move through the newly installed frame. If a D23 is being added to an installed L32 or D32 frame, FC1610 is required, since the D23 is a shorter frame. This feature includes a short rear side cover for the Model D32/L32 frame and the Model D23/D53 front and rear side covers. If attaching a D23 frame to an L53 frame, the First Expansion Frame Attachment feature (FC9002) for the L53 must be specified. Subsequent expansion requires the Additional Expansion Frame Attachment feature (FC9003). Additional 16-slot I/O stations for 3592 media should be ordered through feature FC1659 if attaching a D23 frame to a L53. An additional 4 I/O station door can be installed in a D23 frame. This requires FC1451, and up to three Dx3 frames may be installed with this feature. Figure 1-10 on page 15 shows the 4 I/O Station D-Frame. There is a LED status panel located on the right upper corner. The LEDs represents the amount of cartridges per I/O station and if the I/O station is locked. The I/O door has a total amount of 64 slots, 16 slots per I/O station. The 4 I/O station door reduces the frame storage slot capacity by 160 for a model D23. The I/O stations increase the maximum library I/O station slots from 32 to 224 due to a maximum of three D53 I/O frames in a sixteen frame library. The D23 models are compatible with existing models L22, L32, L52, D22, D32, and D52.
17
A dual accessor library will have two garage areas called service bays (see Figure 1-11). Service Bay A (the TS3500 High Availability Frame Model HA1) is to the left of and adjacent to the L-frame, when facing the front door. Service Bay B (a modified TS3500 Tape Library Model D23 or D53) is to the right of the last active frame in the library. The TS3500 Tape Library Model HA1 itself provides only a frame, which serves as Service Bay A for the original accessor for the TS3500 Tape Library Model Lxx. The second accessor is provided by ordering the Service Bay B Configuration and Dual Accessor feature (FC1440) on a TS3500 Tape Library Expansion Frame Model D23 or D53. When this feature is ordered on a Model D23 or D53, that expansion frame will be reserved and function as a Service Bay B for the second accessor. This feature should initially be installed on a new Model D23 or D53 frame that is added to the IBM TS3500 Tape Library when ordering the Model HA1. If your library already contains the service bays and you decide to add one or more D23 or D53 expansion frames, Service Bay B will be converted to an expansion frame, the new frame or frames will be added to the right, and the last frame on the right will be converted to Service Bay B. The downtime for this process is designed to be less than hour. The service bays will be regular library frames but they will not have drives, power supplies, or node cards. Storage slots within the service bays will only be used to test service actions. Figure 1-11 demonstrates how the Service Bays surround the other library frames.
Figure 1-11 Location of service bays in the IBM TS3500 Tape Library
To summarize, to implement nondisruptive accessor failover, the following is required: A TS3500 Model HA1 frame to act as Service Bay A High Availability Library feature (FC9040) for the Lxx frame Advanced Library Management System feature (FC1690) A D53 or D23 frame to operate as Service Bay B for the second accessor Additional expansion frame Attachment (FC9003) Service Bay B Configuration with Accessor (FC1440)
18
For example, consider a simple multi-path architecture connection consisting of two HBAs in a host that are connected to a library with two or more drives. Two drives have the control ports enabled. The two HBAs are connected to the first and second control port drives, respectively. This simple configuration provides two physical control paths to the library for redundancy if one path from an HBA to the library fails. When the server boots, each HBA detects a control port to the library, and two medium changer devices (smc0 and smc1) are configured. Each logical device is a physical path to the same library; however, an application can open and use only one logical device at a time, either smc0 or smc1. Without the device driver alternate pathing support, if an application opens smc0 and a permanent path error occurs (because of an HBA, cable, switch, or drive control port failure), the current command to the library fails. It is possible to initiate manual failover by changing the device path to the alternate path (smc1), but this is a manual operation and the last failing command has to be resent. When the alternate pathing support is enabled on both smc0 and smc1, 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 (either smc0 or smc1). If an application opens smc0 and a permanent path error occurs, the current operation continues on the alternate path without interrupting the application. Activation of control path failover is done by entering a license key at the library Operator panel. Control path failover is provided by an optional FC1680 for Lx2 frame models and requires the use of the IBM Atape device driver. For Lx3 models, control path failover and data path failover are available with the optional Path Failover feature (FC1682).
19
Data path failover and load balancing support for IBM 3592 tape drives do not require this feature.
1.1.14 SNMP
Occasionally, the IBM TS3500 Tape Library may encounter a situation that should be reported, such as an open door that causes the library to stop. Because many servers can attach to the IBM TS3500 Tape Library by differing attachment methods, the library provides a standard TCP/IP protocol called Simple Network Management Protocol (SNMP) to send alerts about conditions (such as an opened door) over a TCP/IP LAN network to an SNMP monitoring server. These alerts are called SNMP traps. Using the information supplied in each SNMP trap, the monitoring server (together with customer-supplied software) can alert operations staff of possible problems or operator interventions that occur. Many monitoring servers (such as IBM Tivoli NetView) can be used to send e-mail or pager notifications when they receive an SNMP alert. For more details about SNMP, see Appendix B, SNMP setup on page 271.
20
There is no support for Service Location Protocol (SLP) and Secure Socket Layer (SSL) at the time of the writing of this publication. The external LINUX PC supports the following protocols: Server Profile SMI-I Version 2 Storage Media Library Version 2 Limited Access Port 1.1 Chassis 1.1 FC Port 1.1 Software 1.1 Physical Package 1.1 In the future, the embedded SMI-S will have the same functions as the external LINUX PC. Note: The embedded SMI-S function requires a Lx3 Frame and a library firmware level that supports SMI-S.
1.1.16 ALMS
The Advanced Library Management System (ALMS), an optional extension to the IBM patented multi-path architecture (FC1690), provides enhanced flexibility and capabilities for partitioning the IBM TS3500 Tape Library. ALMS virtualizes the SCSI element addresses while maintaining the approach of the multi-path architecture and using SCSI Medium Changer commands. Without ALMS, everything is based on the SCSI element address (location-centric) and partitioning is based on real cartridge slots and drive slots. With ALMS, there is no affinity between a real slot address and a SCSI Element address reported to the server and used by the server. Instead there is now an affinity with the VOLSER (volume serial numbers on the barcode label of the cartridge). For further information and examples of using ALMS, see 2.3, ALMS on page 77. Note ALMS is available only for the IBM TS3500 Tape Library and requires FC1690 for enablement.
21
Each element in the IBM TS3500 Tape Library (the cartridge storage slots, I/O storage slots, and tape drives) has two addresses: Physical address SCSI element address When initiating an operation such as moving a tape cartridge or performing manual cleaning, you can use the physical or logical address to specify a location in the library.
22
The physical address consists of frame, column, and row identifiers that define a unique physical location in the library. The address is represented as: Fx,Cyy,Rzz for a storage slot (where F equals the frame and x equals its number, C equals the column and yy equals its number, and R equals the row and zz equals its number). Fx,Rzz for a tape drive and I/O storage slot (where F equals the frame and x equals its number, and R equals the row and zz equals its number). The SCSI element address consists of a bit and hex value that defines to the SCSI interface a logical location in the library. This logical address is represented as xxxx (X'yyy'), where xxxx is a bit value and yyy is a hex value. It is assigned and used by the host when the host processes SCSI commands. The SCSI element address is not unique to a storage slot, drive, or I/O slot; it varies, depending on the quantity of drives in the library. For example, the storage slot address F2,C03,R22 means: F2: Frame 2 (first expansion frame) C03: Column 3 (second column from left on drive side) R22: Row 22 (22nd position down from the top of the column) Each drive has a unique address to indicate its physical location. The drive address consists of two values: a frame number and a row number: Frame number: Represented as Fx, where F equals the frame and x equals its number. Regardless of whether any drives are installed, the frame number for the base frame is 1 and increments by one for each adjacent expansion frame. Row number: Represented as Rzz, where R equals the row and zz equals its number. The row number is 1 for the top drive position in the frame, and increments by one for each row beneath the top drive. Regardless of whether drives are installed, the row numbering is the same for every frame. A drive address of F2,R10 means frame 2 (that is, the first expansion frame), row 10 (tenth drive position from the top of the column). Note: ALMS will virtualize a SCSI element address. Therefore, there is no relationship between physical location and SCSI element address if using ALMS.
23
The TS1120 Tape Drive is supported in a wide range of environments including selected IBM System i, System p, System x, IBM mainframe Linux, Sun, and Hewlett Packard servers, as well as Intel-compatible servers running Linux, Microsoft Windows 2000, or Windows Server 2003. A tape controller is required for attachment to ESCON or FICON channels on IBM mainframe servers. Sharing drives optimizes drive utilization and helps reduce infrastructure requirements. The TS1120 tape drive supports a native data transfer rate of up to 104 MB/s. In open system environments where data typically compresses at 2:1, the TS1120 tape drive can transfer data up to 200 MB/s. In a mainframe environment where data typically compresses at 3:1, a single tape drive can transfer data up to 260 MB/s. This high transfer rate helps reduce backup and recovery times. Figure 1-12 shows the IBM System Storage TS1120 Tape Drive.
For more information about IBM TS1120 Tape Drive, see IBM System Storage Tape Library Guide for Open Systems, SG24-5946.
24
The IBM System Storage TS3400 Tape Library has two removable cartridge magazines providing 18 data cartridges slots, including a 3 slot I/O station. The total native storage capacity is 12.6 TB when using the 700 GB data cartridges. The IBM System Storage TS3400 Tape Library incorporates the IBM Multi-Path Architecture with one or two logical libraries. The TS1120 has two FC ports (dual ported) to make a connection to the host. The TS1120 provides a sustained native data transfer rate of 100MB/s. Standard features for the IBM System Storage TS3400 Tape Library are control path and data path fail over, barcode reader, dual power supplies, remote management and the possibility to use the IBM System Storage TS3400 Tape Library in sequential or random access mode. Figure 1-13 shows the front view of the IBM TS3400 System Storage Tape Library.
Figure 1-13 Front view of the IBM TS3400 System Storage Tape Library
For more information about IBM TS3400 Tape Library, see IBM System Storage Tape Library Guide for Open Systems, SG24-5946.
25
Encryption adds a strong measurement of security to stored data without the processing impact and performance degradation associated with encryption performed on the server or the expense of a dedicated appliance. Note: TS1120s produced before September 8, 2006 do not have the capability to encrypt data on the Data Cartridge. However, there is a chargeable upgrade available (FC 5592) to upgrade the TS1120. This encryption capability includes drive hardware as well as microcode additions and changes. Encryption keys are used to encrypt data when data is being written to, and decrypt the data when being read from a data cartridge. The IBM Encryption Key Manager (EKM) is the component that assists the TS1120 and the TS1040 in generating, protecting, storing, and maintaining encryptions keys. EKM R2 must be used when TS1040s are installed in a tape library. The EKM is installed on a server in the network and is communicating through TCP/IP with the tape library or tape drive.The EKM operates on z/OS, i5/OS, AIX, Linux, HP-UX, Sun Solaris, and Windows. EKM is capable of serving numerous IBM encrypting tape drives, regardless of where those tape drives reside. EKM is part of the IBM Java environment and uses the IBM Java Security components for its cryptographic capabilities. EKM has three main components that controls the encryption. These components are: Java security keystore The keystore is defined as part of the Java Cryptography Extension (JCE) and is an element of the Java Security components, which are in turn part of the Java runtime environment. A keystore holds the certificates and keys (or pointers to the certificates and keys) used by EKM to perform cryptographic operations. EKM supports several types of Java keystores offering different operational characteristics to meet your needs. Configuration file The EKM configuration file allows you to tailor the behavior of EKM to meet the needs of your organization. Tape drive table The tape drive table is used by EKM to keep track of the tape devices it supports. The tape drive table is non-editable, binary file whose location is specified in the configuration file (see Figure 1-14 on page 27).
26
Important: Due to the critical nature of keys in your keystore, we highly recommend that you back up your keystore on a regular basis so that you can recover it as needed and be able to read the data cartridges that were encrypted using the certificate with that drive or library. Do not encrypt your backups! EKM acts as a process waiting for a key generation of a key retrieval request that a tape drive or library sends over a TCP/IP communication path between the EKM and the tape library or tape drive. When a tape drive writes encrypted data, it first requests a encryption key from the EKM. Upon receipt of the request, EKM generates an Advanced Encryption Standard (AES) key and sends it to the tape drive. The AES uses a 256-bit encryption as set by the Institute of Electrical and Electronics Engineers (IEEE P1619.1). An AES encryption key is typically a random string of bits generated specifically to scramble and unscramble data. Encryption keys are created using algorithms designed to ensure that each key is unique and unpredictable. The longer the key string, the harder it is to break the encryption code. TS1120 and TS1040 Tape Drives encryption uses 256-bit AES algorithm keys to encrypt data.
27
The encryption and decryption ciphers can be related by a simple transform on the key, or the encryption key and the decryption key can be identical. In the IBM Tape Encryption solution, the same encryption key is used for both encryption of data and decryption of data; this key is protected by an asymmetric key algorithm and is never available in the clear. Symmetric key encryption is several orders of magnitude faster than asymmetric key encryption; in addition, the comparable key sizes for symmetric key as opposed to asymmetric key are an order of magnitude different. A 128-bit secret key is considered safe, while Rivest-Shamir-Adleman (RSA) suggests a 1024-bit key length. The IBM Tape Encryption solution utilizes an Advanced Encryption Standard (AES) algorithm with a key length of 256 bits. The AES algorithm is based off the Rijndael algorithm. AES is an accepted standard that supports a subset of the key sizes and block sizes that the Rijndael algorithms support. Secret key algorithms can be architected to support encryption one bit at a time, or by specified blocks of bits. The AES standard supports 128-bit block sizes and key sizes of 128, 192, and 256. The IBM Tape Encryption solution uses an AES-256 bit key. Other well known symmetric key examples include Twofish, Blowfish, Serpent, Cast5, DES, TDES, and IDEA. Figure 1-15 shows the process of symmetric data flow.
28
organizations. This methodology is widely used on the internet today to secure transactions, including SSL. Asymmetric key encryption is much slower and more computationally intensive than symmetric key encryption. The advantage of asymmetric key encryption is the ability to share secret data without sharing the same encryption key. Figure 1-16 shows an encryption and decryption data path when using public key encryption algorithms. In the diagram, the plain text is enciphered using the public key and an RSA encryption algorithm, which yields the encrypted data. Starting with the enciphered text, a private key is used with the RSA algorithm to decrypt the data back to plain text.
Managing encryption
There are three methods of encryption management to choose from. This methods differ in where you choose to locate your EKM application. Your operating environment determines which is the best for you, with the result that key management and the encryption policy engine may be located in any one of the following environmental layers.
29
Symmetric algorithms: Symmetric, or secret key encryption, uses a single key for both
encryption and decryption. Symmetric key encryption is generally used for encrypting large amounts of data in an efficient manner.
Asymmetric algorithms: Asymmetric encryption uses a pair of keys. Data encrypted using one key can only be decrypted using the other key in the asymmetric key pair.
30
When an asymmetric, or public/private key pair is generated, the public key is typically used to encrypt, and the private key is typically used to decrypt. TS1120 Tape Drive encryption uses both types; symmetric encryption for high-speed encryption of user or host data, and asymmetric encryption (which is necessarily slower) for protecting the symmetric key used to encrypt the data (key wrapping) (see Figure 1-17).
Figure 1-17 Tape Encryption process flow of the TS1120 Tape Drive
When unencrypted data (clear text) is sent to the TS1120 Tape Drive for encryption, it is converted to ciphertext (encrypted data) through AES encryption, a symmetric (or secret) key type of encryption requiring a symmetric Data Key (DK), and is then written to tape. The 256-bit AES Data Key is also encrypted, or wrapped, using the public key from an asymmetric Key Encrypting Key (KEK) pair to create an Externally Encrypted Data Key (EEDK). This EEDK is written to the cartridge memory and to three additional places on the 3592 Tape Cartridge. The tape cartridge now has both the encrypted data and the means to decrypt it for anyone who holds the private KEK. The DK may also be wrapped a second time, using the public key of another party, to create an additional EEDK. Both EEDKs can be stored on the tape cartridge. In this way, the tape cartridge can be shipped to a IBM Business Partner holding the corresponding private key that would allow the DK to be unwrapped and the tape decrypted on a different TS1120 Tape Drive. In the following two diagrams, we explain the Tape Encryption and Decryption process in a more detailed way. We start first with the Encryption process.
31
Figure 1-18 describes the flow of encrypted data to tape, and how keys are communicated to the tape drive and then stored on the data cartridge. In our example, we assume that an EKM is running on one server and that the tape library and tape drives are connected to another server. We assume that a certificate, a certificate is a way to bind public key information with an identity, from a Business Partner had been imported into this keystore. It has only a public key associated with it; the Business Partner has the corresponding private key.
Now, our abstract server sends a write request to the drive. Our drive is encryption-capable, and the host has requested encryption. As part of this initial write, the drive obtains two Key Encrypting Keys (KEK) labels from the host or a proxy, which are aliases for two Rivest-Shamir-Adleman (RSA) algorithm KEKs. The drive requests that EKM send it a data key (DK) and to encrypt the DK using the public KEKs aliased by the two KEK labels. The EKM validates that the drive is in its list of valid drives. After validation, the EKM obtains a random DK from cryptographic services. EKM then retrieves the public halves of the KEKs aliased by the two KEK labels. The EKM then requests that cryptographic services create two encrypted instances of the DK using the public halves of the KEKs, therefore creating two Externally Encrypted Data Keys (EEDKs). The EKM sends both EEDKs to the tape drive. The drive stores the EEDKs to several locations on the tape and in the cartridge memory. The EKM also sends the DK to the drive in a secure manner. The drive uses the separately secured DK to encrypt the data. Figure 1-19 on page 33 is the decryption data path. In this example, we decrypt data that was encrypted at another site, as outlined in Figure 1-19 on page 33. For the decryption process, the tape has two EEDKs stored in its cartridge memory. We call these EEDK1 and EEDK2.
32
An encrypted tape is mounted for a read or a write append. The two EEDKs are read from the tape. The drive asks the EKM to decrypt the DK from the EEDKs. The EKM validates that the drive is in its list of valid drives. After validation, the EKM requests the keystore to provide the private halves of each KEK used to create the EEDKs. The KEK label associated with EEDK1 cannot be found in the keystore, but the HASH of the public key for EEDK2 is found in the keystore. The EKM asks cryptographic services to decrypt the DK from EEDK2 using the private half of the KEK associated with EEDK2. The EKM then sends the DK to the drive in a secure manner. The drive either decrypts the data for a read operation or uses the DK to encrypt data for a write-append.
33
Write Request
The process for a Write Request to the TS1040 with encryption includes these steps: 1. The TS1040 tape drive receives a mount request for write with Beginning Of Tape (BOT) with encryption. 2. The TS1040 initiates a session with the EKM. The TS1040 communicates through the library using the TCP/IP protocol. The TS1040 request a data key and passes an optional key label. 3. The EKM authenticates the TS1040 in his Drive Table. 4. The EKM retrieves a pre-generated AES-256 Data Key from the TS1040. 5. The EKM sends a data key and key identifier to the TS1040 in a secure manner. 6. The TS1040 receives the key structures and embeds the key identifier in the data and encrypts and writes the data to the tape.
34
Note that not all platforms and attachment methods are supported for all models; for current details for operating system and attachment support for each LTO model, see the following Web site:
http://www-03.ibm.com/servers/storage/tape/compatibility/
Note: Always check the Web site for the most current, detailed, and accurate information.
You should also check with the ISV for detailed support information.
35
From the figure, we can see that in order to attach an IBM TS3310 library to a Windows 2000 Server, build 2195 or higher of the operating system is required, and for a Windows 2003 Server, build 3790 or higher is required. IBM LTO 3 does not support HVD SCSI interfaces. Only LVD SCSI interfaces are supported.
Note: This URL is case sensitive. The search results are returned, as shown in Figure 1-21 (excerpt only).
This excerpt from the output shows that you can attach the Fibre Channel LTO3 FCP drives with the Emulex adapters. If you click the View Details link for each HBA, this will take you to the vendors Web site to download device drivers and microcode.
36
For more information about using SCSI and SAN HBAs to attach the LTO drives and libraries with Windows 2003, refer to Chapter 3, Basic IBM tape setup for Windows on page 101.
IBM LTO3 does not support HVD SCSI interfaces. Only LVD SCSI interfaces are supported.
37
The search results are returned, as shown in Figure 1-23 (excerpt only).
This excerpt from the output shows that you can attach the Fibre Channel LTO3 FCP drives with the Emulex adapters. If you click the View Details link for each HBA, this will take you to the vendors Web site to download device drivers and microcode. For more information about using SCSI and SAN HBAs to attach the LTO drives and libraries with Linux, refer to Chapter 3, Basic IBM tape setup for Windows on page 101.
To ensure best performance, if possible, avoid daisy-chaining (connecting more than one drive to an adapter). If cost or slot availability considerations make daisy-chaining unavoidable, then connect no more than two drives per LVD adapter for LTO3. When daisy-chaining with LTO3 drives, you must consider the data transfer rate of the drive and the capacity of the adapter. A single LTO3 SCSI drive, which is capable of transferring over 200 MB/s of compressible data, can saturate a SCSI-160 adapter. A SCSI-160 adapter can transfer 160 MB/s, but that does not include SCSI overhead. With overhead, the available bandwidth is approximately 140-150 MB/s. Two LTO3 drives cannot run at their native drive rate of 80 MB/s on a single adapter. If performance is not a primary consideration, it may be possible to daisy-chain two LTO3 drives on one adapter. The type of application is also significant. If you are mainly doing smaller volume reads or writes, then more drives can be attached without saturating the adapter. A more typical use of tape is in high-volume backup, usually writing large blocks of data (for example, backing up large database files). In this scenario, a single drive per adapter will give the best performance.
39
Figure 1-24 is an example of the data flow between an application program and a LTO tape device. Note the different pieces of code or microcode that are involved. The HBA Device Driver is not always a separate piece of installable software; sometimes it is included as part of the standard operating system. This is true for many common SCSI adapters with Linux. You should check the documentation provided with the card to see if this applies. For Fibre Channel HBAs, driver software will almost always need to be installed.
Application Program (software) LTO device driver (software) HBA device driver (software) HBA device adapter (hardware)
Data flow
The simplified list below reflects the components involved in the data path for moving data at a file level between disk storage devices and tape. Problem or performance analysis must be approached by determining which component of the data path impacts performance. Disk device SCSI Device Adapter Adapter device driver Disk device driver Logical Volume Manager File system Application program Atape Device Driver: Tape driver HBA Adapter Device Driver HBA (SCSI or FC-AL) Device Adapter Tape device
the HBA and the devices are much thinner and thus better scalable. SAS devices do not need external terminators. The I/O bus will be electronically terminated. The total cable length from the device to the HBA is limited to 6 meters. Two different connecting interfaces are used for connecting the external devices: SSF-8088 and SSF-8470. SSF is the abbreviation for Small Form Factor Committee. All IBM SAS tape drives have a SSF-8088 interface. SAS cables are available in several lengths up to 5.5 m, and in any combination of the SSF-8470 and SSF-8088 connectors. At the time of writing, IBM SAS Tape Drives are only supporting a point-to-point connection and there is no support to connect the SAS Tape Drive on an Expander Box. Two LTO tape drives are available with the SAS interface: IBM LTO3 Half High Tape Drive IBM LTO4 Full High Tape Drive For additional information about the SAS interface, refer to IBM System Storage Tape Library Guide for Open Systems, SG24-5946.
Before June 12, 2001, all the LTO tape drives used HD68 connectors. The current IBM TS3500 hot swappable canister LTO drive uses the VHDCI connectors. Check to make sure you order the correct cable with the right-end plug to attach to your HBA. Figure 1-25 shows the VHDCI and HD-68 connectors.
VHDCI
Figure 1-25 SCSI connectors
HD68
41
42
Chapter 2.
Copyright IBM Corp. 2002, 2003, 2004, 2005, 2007. All rights reserved.
43
2.1 Definitions
In general the sharing of devices improves the utilization of the devices and can reduce the total cost of ownership. Sharing of disk devices is a common practice. Compared to disk devices, which allow random access from different clients, tape drives are sequential devices that do not allow access from different clients at the same time. Sharing can improve the utilization of the tape drive; indeed, a tape drive is normally not used 100% of the time by a single client (host), and there are different possible ways to share either a tape library or tape drives among multiple host. The most basic requirement in sharing any library between backup applications and servers is the ability to control the medium changer. The tape drives and media may or may not be shared, but the medium changer must be available to be manipulated by all of the backup applications and servers.
44
Server
Server
Server
mtlib
Library Commands (LAN Attachment) Data Path SCSI/Fibre Channel
mtlib
Data Path SCSI/Fibre Channel
mtlib
Data Path SCSI/Fibre Channel
Cartridges
The IBM 3494 tape library pools cartridges by using categories. Drives, on the other hand, are pooled by simply connecting them to one set of servers.
45
Figure 2-2 shows the multipath design of an IBM LTO tape library. Every drive can have a path defined to the SCSI medium changer. The library in this example (Figure 2-2) has been partitioned into three logical libraries. Each logical partition has two tape drives and a set of cartridge slots. All the servers share the library robotics, but not the drives or the cartridges.
Logical Library 1
to Host 1
DRIVE2 LUN0
iSeries
Logical Library 2
to Host 2
W indows
DRIVE5 LUN0
to Host 3
Logical Library 3
DRIVE6 LUN0
pSeries
This kind of partitioning uses static assigned resources. There is no sharing of these resources (tape drives and cartridge slots), which means servers from one partition cannot access tape drives or cartridges in another partition. The assignment of resources to the different logical partitions is defined through static rules and must use contiguous resources. In other words, you create barriers around the logical library. This type of partitioning is also called the first generation of multipath architecture. The second generation of multipath architecture, also called Advanced Library Management System (ALMS), does not have the need to partition the library using static rules and contiguous resources. ALMS virtualizes the affinity to physical resources. This second type of partitioning allows heterogeneous applications to share the library robotics independent of each other. ALMS is offered as a feature for the IBM TS3500. For further detail, see 2.3, ALMS on page 77.
46
clients
Read Data
LAN
Mount a tape
Read Data
FC
FC
TSM server
Library manager select drive mount, dismount volumes release, query volumes
Tape Library
Figure 2-3 Tivoli Storage Manager library sharing
47
Such homogenous drive sharing is commonly used for LAN-free backups (see Figure 2-4).
1
TDP Client TSM API Storage Agent
Meta data
LAN
2
Read Data
Write Data
SAN
Client Disk
Tape Library
48
TSM Server
TSM Server 1
Library Manager for Lib 1
TSM Server
TSM Server 2
Library Manager for Lib 2
Primary Data
SAN
Copy Data
IBM Tapelibrary1
Location 1 Location 2
IBM Tapelibrary 2
However, in some cases, even if you use one homogenous backup application it might not be adequate to use the sharing option of the application itself, and instead use the partitioning capabilities of the library. This is the case if you have to separate (for security reasons) the data coming from the different backup servers; in this situation you need the partitioning function of the library to guarantee separation of the data. Of course, if you use different applications then you have to use the partitioning function (for example, if you have iSeries on one hand and Tivoli Storage Manager running on Windows or UNIX on the other hand, connected to the same library).
In the following sections, we describe in more detail the IBM Tape Library Specialist applications for the IBM TS3100/TS3200, TS3310, TS3400, and TS3500. When the library has been connected to the network, use the Operator panel to establish the IP address. It can then be accessed from the Web browser using a default user ID and password.
49
Note: In all our examples, we are using the default user ID and password to connect to the library. However, for obvious security reasons, we recommend that you change the default password, and also establish your own ID and password. Make sure to update the password for secure access. The layout of the Tape Library Specialist varies between the libraries, but the general content is similar. It includes functions to: Monitor the library Configure the library Manage the library Manage access to the library Service the library as exemplified in the library tasks for the TS3400 library (see Figure 2-6).
50
Each logical library has its own control path (a logical path into the library) through which a server sends standard SCSI medium changer commands to control the logical library. Each logical library control path is available to servers through a Logical Unit Number 1 (LUN 1) of the first drive that is defined within that logical library. A logical library cannot share another logical librarys tape drives and storage slots. However, it does share the I/O slots, and the cartridge accessor on a first-come, first-served basis.
Log in as an Administrator; the default password is secure. When logged in as a standard user, you can only access the Status and Information functions; configuration changes cannot be made. If you cannot log on, check that the library is not in offline mode.
51
Click the Login button to log in. This will show the Home menu, and you can now perform any operations on the library (see Figure 2-8).
52
For further description of how to configure the logical partitions, see the IBM System Storage TS3100 Tape Library and TS3200 Tape Library Setup, Operator and Service Guide, GA32-0545, available at:
http://www-1.ibm.com/servers/storage/tape/resource-library.html#publications
To modify the network settings, select Setup, and Network Config. The network settings must be set through the Operator panel. Note: Make sure that the library is connected to the network before modifying the network settings. You need to provide the data for the following fields: Library Name is the network name you want to assign to the library. The library name can be up to a maximum of twelve characters long. The Dynamic Host Configuration Protocol (DHCP) setting defaults to enabled. We recommend using a fixed IP address. Set DHCP to Disable to make the IP Address, Subnet Mask, and Default Gateway text boxes available for you to manually set the library network settings. Set IP Address as the IP address of the library, and set Default Gateway and Subnet Mask.
53
You will now be able to access the Tape Library Specialist from a browser by entering the IP address. Figure 2-11 shows the welcome window of the IBM TS3310 Tape Library Specialist.
The first time you use the Specialist, log in as admin with the password secure. Then you can access the Configuration menu to add any additional users that need access. Remember that every user defined can potentially access every option available on the IBM TS3310 operator panel. From the main menu configuration operator panel in Figure 2-10 on page 53, you can set the network configuration parameters, as well as Simple Network Management Protocol (SNMP) settings to send the alerts generated by the library to an SNMP server in your private network. We describe setting up SNMP in Appendix B, SNMP setup on page 271. The configuration panel also provides user management for the Specialist interface.
54
2. Select Manage Library Logical Libraries to display the present setting of logical libraries, as shown in Figure 2-13.
55
3. From the drop-down menu, select Create to add new logical libraries, or Modify to change a defined library. Modify will give you several choices, as shown in Figure 2-14. You can modify general properties, change storage slots, and assign tapes. Click Apply to activate.
4. With a new library you can use the configuration wizard to automate some of the initial setup definitions. Select Manage Library Setup Wizard, as shown in Figure 2-15.
56
For further description on how to configure the logical partitions, see IBM System Storage TS3310 Tape Library Setup and Operator Guide, GA32-0477, available at:
http://www-1.ibm.com/servers/storage/tape/resource-library.html#publications
Click ENTER, and provide the default password 0000. Remember to change this password from the Configuring Panel. This will display the Top Menu screen, as shown in Figure 2-17.
To set the network settings using the Operator panel, complete the following procedure: 1. Press DOWN to select Configuration, and click ENTER. 2. Select Network Settings, and click ENTER. 3. Press DOWN to select IP Address, and click ENTER. 4. Press UP or DOWN to select the digit(s) of your librarys IP address. Click ENTER to select each digit. After the last digit, click ENTER to apply. 5. Press DOWN to select Subnet Mask, and click ENTER. Follow the same procedure as for IP Address. 6. Press DOWN to select Gateway, and click ENTER. Follow the same procedure as for IP Address. 7. Press cancel three times to return to the top menu screen. You are now ready to log in to the Tape Library Specialist using a Web browser. You will need at least Java 1.5.0 installed on your computer. Log in using the default ID Admin using the
57
password secure. Remember to change this password, and establish your own user IDs and passwords. The Welcome screen will display, as shown in Figure 2-18.
You can now view or update the configuration, move tape cartridges, vary drives offline, and perform all other Operator panel tasks remotely from any browser window.
58
59
2. Select the Partition Setting, and you will see the map shown in Figure 2-21.
3. To enable partitions, you need at least one tape drive and control path enabled for each partition.The panel indicates that both drives are enabled as a control path. For more details on configuring partitions, see the IBM System Storage TS3400 Tape Library Planning and Operator Guide, GC27-2107, and:
http://www-03.ibm.com/systems/storage/tape/ts3400/index.html
60
Panel 0175
Ethernet ______________________________ Current Settings Frame 1: MAC Address: IP Addresses: Subnet Mask: Gateway: 18:36:F3:98:4F:9A 10.1.1.1 255.255.255.0 10.1.1.254
[Change Settings]
______________________________
BACK
UP
DOWN
ENTER
Click ENTER to make the changes. You can select to disable the Ethernet interface, use DHCP to automatically assign an address (if supported in your network), or manually configure the parameters. We recommend that you define a fixed IP address. After configuring the network connection for the IBM Tape Library Specialist, enter the TCP/IP address of the library in your browser. The welcome page of the IBM TS3500 Tape Library Specialist Web interface displays, as shown in Figure 2-23. With the Specialist, you can monitor library status and perform library operations from a remote location. Use the Work Items area on the left to navigate to available Specialist tasks. For more information, click the Help button in the top right of the screen. You now have complete operational control of the TS3500 Tape Library. The library may have implemented the Advanced Library Management Services (ALMS). For more information about ALMS, see 2.3, ALMS on page 77.
61
With the IBM TS3500 Tape Library Specialist, you can easily configure and monitor the library operations with graphics and tables like those shown in Figure 2-24.
The IBM TS3500 Tape Library Specialist has menus to manage the cartridges, drives, and library. The available menus will vary depending upon whether ALMS is installed or not. For further examples, see the specific chapters for partitioning without or with ALMS. In the following discussion, all examples assumes that ALMS is installed and active. For example, with ALMS, to view a list of the cartridges in the library, select Cartridges Data Cartridges. Using the drop-down boxes, you can filter the cartridges displayed by frame or logical library. Figure 2-56 on page 89 lists the cartridges for all logical libraries. After selecting a cartridge, you can move it to a tape drive, remove it from the library, or assign it to a logical library. For information about Cartridge Assignment Policy, see Cartridge assignment policy on page 87. To view a list of the drives in the library, select Drives Drive Summary. On the Drives screen, you can use the drop-down boxes to limit the drives selected to a specific frame or a specific logical library, or you can select all frames or all logical libraries. In Figure 2-61 on page 93, you see, for example, logical library Redbook1 with LTO4 tape drives. From the drop-down menu, after selecting a tape drive, you can clean it, change its SCSI ID (or Loop ID if FC), view drive details, move a cartridge, or do a power cycle of a drive. This last feature can be especially useful when sharing drives in a SAN (for example, LAN-free backup). In this circumstance, when a server is using a drive, it issues a SCSI reserve
62
command, which blocks it from other servers. The drive is unavailable to other jobs until the server with the reserve sends a release command to the tape drive. But if the server with the reserve cannot release it (for example, because it is powered down), a power cycle is required on the tape drive to release the block. To change a drives settings, select that drive from the Drives screen and click Change ID. You will get a warning (Figure 2-25) stating this function may interrupt the library activity. Indeed, changing the Drive SCSI/Loop ID will interrupt library and drive activities and may require reconfiguring the host computers.
Select Drives Drive Assignment to display the Drive Assignment Filter window. You can select all drives or a specific drive, and all logical libraries or a specific logical library. In Figure 2-26, all drives are selected for display.
Figure 2-26 IBM TS3500 Tape Library Specialist: Drive Assignment Filter
63
As shown in Figure 2-27, after selecting a tape drive, you can unassign the drive or assign the drive as a control path. To assign a drive as a control path, click the block to the left of the check box for the drive and click the Apply button above the Drives column. In Figure 2-27, drive 30010E611 is a control path, as is indicated by the icon shown to the left of the check box in the Tucson column.
While adding a control path, you will see a warning (Figure 2-28) that changing a drive or control path assignment may affect the associated host applications and that a reset or rediscovery of its devices may be needed.
Figure 2-28 IBM TS3500 Tape Library Specialist: Assignment change warning
You can make any configuration of the library directly from the Tape Library Specialist panels. Note, however, that the initial TCP/IP configuration function is not available from the IBM Tape Library Specialist. This must be done from the Operator panel.
64
You should always set password protection on to assure secure access to the library. To turn it on, select Access Web Security, as shown in Figure 2-29. Once password security is set on, use the same selection to control users and passwords.
For a firmware update of the IBM TS3500 Tape Library, see 3.7, Updating library, drive, and RMU firmware on page 149.
65
Plan your logical library configuration carefully, because the need for contiguous storage slots and drives makes future changes to the configuration very difficult. For example, if you have an IBM TS3500 with six logical libraries defined, and you have to change the configuration of the first library, then all of the five remaining libraries must be changed as well. Consequently, plan your logical library configuration according to these rules: Put the logical library that has the most expected growth at the end of the library. Put the logical library that is the least likely to grow in the front. Do not configure logical libraries with just the required minimum of resources (tape drives and storage slots); instead, configure logical libraries with a buffer (reserve) of storage slots. Do not put the first drive of a logical library just behind the last drive of the preceding logical library. Keep some free drive locations between two logical libraries in order to install additional drives if needed. Figure 2-30 on page 67 shows an example. This is an L53 frame with nine LTO drives installed, and with a capacity of 261 storage slots. Three logical libraries are required: logical library 1 needs 40 slots and two drives; logical library 2 needs 60 slots and two drives; logical library 3 needs 120 slots and five drives. The third library is expected to grow heavily. The first logical library was configured with 60 slots and two tape drives. The second logical library was configured with 81 slots and two tape drives. The first tape drive for logical library 2 was installed in the fourth drive location; this gives the ability to install one additional drive in the first logical library if needed. The library with the highest expected growth was put at the end. If needed, an additional D-frame can be added to the library and logical library 3 can be expanded to the next frame without changing the configuration of the first two libraries.
66
Slots free 20
Slots free 21
You can partition the IBM TS3500 into multiple logical libraries by using menus. You can choose the exact number of storage elements that you want by selecting them from the library display Advanced Configuration menu selection, or using the Tape Library Specialist menu. In both cases, the library will be set offline while configuring. For further details on setting up partitions using the Operator panel, see the IBM System Storage TS3500 Tape Library Operator Guide, GA32-0560.
2.2.9 Partitioning the IBM TS3500 using the wizard (ALMS not enabled)
First, plan the number and location of storage slot columns and tape drives that you want in each logical library. Now, the logical libraries can be configured from the Tape Library Specialist using the configuration wizard or the menu system.
67
Figure 2-31 IBM TS3500 Tape Library Specialist Logical Libraries entry window
3. This shows the librarys current configuration. Select the Launch Configuration Wizard. A warning window informs you that the library goes offline and that it may take up to 30 minutes to complete, depending on the library configuration (a small library with just one or two frames and a few drives may take less than a minute). Click Next to continue. 4. The Select Configuration Method window displays (Figure 2-32 on page 69), showing the alternatives: Automated configuration (configuration with barcode labels) or Advanced configuration. Select Advanced configuration and click Next.
68
5. The library starts its configuration discovery, which can take several minutes. The current configuration will be displayed. Check that the displayed configuration matches the real configuration (Figure 2-33). If not, then stop here and try the configuration discovery again. If the problem is still not solved, call your service representative.
69
6. Click Next. As this is a mixed device library, you get a warning about this, and that multiple configurations are necessary, as shown in Figure 2-34.
7. Click Next. The number of logical partitions can now be selected (Figure 2-35).
8. Select the number of logical libraries from the drop-down list. Select Next. The desired number of drives and slots can now be assigned to each logical library (Figure 2-36 on page 71). Begin with the first logical library and use the Tab key to jump from one field to the other. Every time you press the Tab key, the remaining number of drives and storage slots is re-calculated.
70
Note: All resources (tape drives and cartridge slots) must be assigned! If you have both LTO and 3592 in the physical library, there will be more than one configuration range, and more than one set of selection and configuration details in the windows. That means you can first configure a range of LTO elements, and then a range of 3592 elements. Select Next when finished.
Figure 2-36 IBM TS3500 Tape Library Specialist customize drives and slots - LTO
9. In the same way, select and customize the 3592 libraries, as shown in Figure 2-37.
71
10.A new window shows the selections. The configuration can now be reviewed before being applied, as shown in Figure 2-38.
11.Select Next to accept the configuration, and then select Finish to apply the new configuration, which takes some minutes. After completion the library informs you with a Library configuration successful message. After setting a new configuration, the new logical libraries are simply named using numbers. You can change this to more meaningful names: From the Manage Logical Libraries window (Figure 2-31 on page 68), select the library to be renamed and click Rename. On the next window (Figure 2-39), enter a new name. The logical library name is only used by the Library Specialist, and has no effect on the communication with your backup application.
When all logical libraries are renamed, we have our library layout, as shown in Figure 2-40 on page 73.
72
Before we can work again with the library, we have to adjust the logical library configuration with the backup application that uses this library. If the storage slot capacity on the logical library is increased or decreased, the backup application must reflect this change. Refer to your backup application manuals for information about how to change an existing library configuration. Some applications like IBM Tivoli Storage Manager handle this easily; other applications like Legato NetWorker require that you run configuration wizards (NetWorkers jbconfig) in order to reflect the changes. Also, cartridges that belong to the logical library must be moved to the appropriate set of storage cells.
73
2.2.10 Partitioning the TS3500 using the operator panel (ALMS not enabled)
For further details using the operator panel, refer to the IBM System Storage TS3500 Tape Library Operator Guide, GA32-0560. These are the steps, but your windows may vary slightly. 1. From the librarys Activity window, click Menu. The Main Menu displays as shown in Figure 2-41.
Panel 0002
Main Menu ______________________________ Library Status Manual Operations Settings Usage Statistics Vital Product Data Service
______________________________
BACK
DOWN
ENTER
2. Click UP or DOWN to highlight Settings and click ENTER. The Settings menu displays. 3. Click UP or DOWN to highlight Configuration and click ENTER. The Configuration menu displays. 4. Click UP or DOWN to highlight Advanced configuration and click ENTER (Figure 2-42). The library displays the message: If you continue with configuration the library will go offline. Click ENTER to continue.
Panel 0101
______________________________
BACK
DOWN
ENTER
5. Click ENTER twice. The library displays the message: Searching for installed devices and may take several minutes to discover the physical configuration. The Physical Configuration screen displays, identifying the librarys existing physical configuration (Figure 2-43 on page 75). The screen shows the total quantity of drives, storage slots, and
74
I/O slots in the librarys physical configuration. If the configuration includes both LTO and 3592 drives, the list will show them separately. Check that the displayed configuration matches the real configuration. If not, stop here, resolve the problem, and start again.
6. Click ENTER. The library displays the message: Do you want to commit the new physical configuration? 7. Click Yes to accept the new physical configuration and to set up any logical library configurations. The Set Logical Libraries screen displays indicating the type of media used by the logical library (Figure 2-44). The following screens will not display if the ALMS feature has been enabled.
Panel 0105
Set Logical Libraries ______________________________ Media Type : LTO Frames 1 - 1 Number of Logical Libraries Select 1 12 1
______________________________
CANCEL
UP
ENTER
8. Specify the number of logical libraries that you want by clicking UP or DOWN to increase or decrease the value.
75
9. When the desired quantity of libraries displays, click ENTER. The Set Storage Slots screen displays (Figure 2-45).
Panel 0106
Set Storage Slots ______________________________ Logical Library Storage Slots Select 1 140 1 139
Cartridges in the following storage slots will now be part of logical library 2 Location Start: Location End: [F1,C07,R42] [F1,C07,R43]
______________________________
BACK
UP
DOWN
ENTER
10.Specify the quantity of storage slots that you want in the logical library by clicking UP or DOWN to increment or decrement the value. When the desired quantity of storage slots displays, click ENTER. The Set Drives screen displays (Figure 2-46).
Panel 0107
______________________________
BACK
UP
DOWN
ENTER
11.Specify the quantity of drives that you want in the logical library by clicking UP or DOWN to increment or decrement the value. When the desired quantity of drives displays, click ENTER. 12.The Configuration Summary screen for Logical Library 1 is displayed (Figure 2-47 on page 77). The screen contains the range of SCSI element addresses for the cartridge storage slots and the drives.
76
13.Click ENTER to display the Configuration Summary panel for each logical library. After displaying the screen of the last logical library, the library displays the message: Do you want to commit the new logical configuration? 14.Click Yes to accept the new configuration (the library may take several minutes to process). When finished, it displays the message: The configuration process is complete.
2.3 ALMS
The Advanced Library Management System (ALMS), an optional extension to the IBM patented multi-path architecture (FC1690), provides enhanced flexibility and capabilities for partitioning the IBM TS3500 Tape Library. ALMS virtualizes the SCSI element addresses while maintaining the approach of the multi-path architecture and using SCSI3 Medium Changer commands. Without ALMS, tape handling is based on the SCSI element address (location-centric) and partitioning is based on real cartridge slots and drive slots. With ALMS, there is no affinity between a real slot address and a SCSI Element address reported to the server and used by the server. Instead there is now an affinity with the VOLSER (volume serial numbers on the barcode label of the cartridge). ALMS allows the following new capabilities on the IBM TS3500 Tape Library: Dynamic partitioning. Storage slot pooling Flexible drive assignment Add/remove storage capacity transparent to any host application. Configure drives or Lxx storage capacity without taking the library offline. Virtualize I/O slots to automatically manage the movement of cartridges between I/O station slots and storage slots.
77
The IBM TS3500 Tape Library is compliant with the SCSI Medium Changer standard whether ALMS is enabled or not; when enabled, ALMS is completely transparent to the application. The SCSI Medium Changer can be thought of as a location-centric interface. The application controlling a SCSI Medium Changer device specifies a source and destination location for each request to move a cartridge. The traditional SCSI library does not have control of the cartridge locations; instead the SCSI library just acts on behalf of the server. Consideration: ALMS is available only for the IBM TS3500 Tape Library and requires FC1690 for enablement.
78
Drive assignment
Using the ALMS flexible drive assignment capability, any drive in any position within any frame can be assigned to any logical library without creating any gaps in drive addresses. Drive (data transfer) element addresses will still be mapped to specific drive locations when the drive is assigned, but any drive location may now be assigned to any logical library (intermix supported) using the Tape Library Specialist. Each drive added to a logical library will be assigned to the lowest available element address, regardless of drive location. When ALMS is first enabled, the Data Transfer Element (DTE) addresses of all installed and assigned drives are not changed from their previous values. However, after ALMS is enabled, the DTE addresses for any newly installed and assigned drives no longer depend on the drives position. Instead, the DTE address for any newly installed or assigned drive is determined by the sequence in which the drive is assigned to each logical library. After enabling ALMS, drives are assigned to logical libraries using the Drive Assignment page of the Tape Library Specialist. Using this interface, the DTE address for the first drive assigned to a new logical library is 257 (x101); see Figure 2-48. The DTE address for any other drive assigned to a logical library is based on the next available DTE address in that particular logical library. The next available DTE address is the lowest available DTE address after the starting DTE address. (This will fill any gaps that are created when drives are unassigned and removed from a logical library.) When a drive is unassigned from a logical library using the Web interface, only that DTE address is made available for future usage; no other DTE addresses are affected. The Drive Assignment page also supports the option to share a drive between two or more logical libraries. The drive will be assigned a DTE address in more than one logical library. Note that the DTE addresses that are assigned to a shared drive may differ by logical library. By using ALMS dynamic Drive Assignment capability, any drive in any position in any frame is available to be assigned to any logical library without creating gaps in DTE addresses.
Library
LL 2 ge ra Sto ol Po ots
20 l 0S
Host 1 Drive SCSI Element: 257, 258 Storage SCSI Element: 1025 - 1104
LL 3 Storage Pool
100 Slots
SAN
Host 2 Drive SCSI Element: 257,258 Storage SCSI Element: 1026 - 1225
St LL o 1 P ra 80 oo ge Sl l
ot s
Host 3 Drive SCSI Element: 257..261 Storage SCSI Element: 1027 - 1126
79
80
When a tape drive is shared by applications, any application using the drive has no knowledge of the other applications sharing the tape drive. Therefore, a cartridge could be loaded already and in use by application A, but if application B does not know it and tries to mount a cartridge in the same drive, application B would get a failure and the job that application B was executing would fail. Some applications periodically scan all the tape drives and if they recognize that there is a cartridge mounted without initiation from the application itself, the application would consider this tape drive offline. In any case, we recommend not allowing multiple applications to use shared tape drives concurrently. In other words, set tape drives offline (or in service mode) from the application whenever they are not in use by that application. The sharing option is mainly intended for environments where some drives are needed only occasionally and must be preconfigured for the application. Note: An application that occasionally leaves cartridges in drives or periodically scans all configured drives is not a good candidate for sharing drives between logical libraries.
81
Insert notification
Insert notification is an option that enables the IBM TS3500 to monitor the I/O station for any new media that does not have a logical library assignment. This feature can be enabled through the Operator panel or through the Tape Library Specialist. With Insert Notification enabled, when new media is detected the operator panel displays a message that asks you to select a logical library. Any unassigned cartridges in the I/O station will be assigned to the logical library that you select (and all other logical libraries will not be able to access the cartridges). The library includes an option to defer any assignment and there is a timeout period when the deferral will automatically take effect.
With VIO, there is an option to Hide/Show Exports. Show Exports, the default, shows a VIEE inventory of cartridges exported from the logical library. These cartridges then fill one of the VIEE slots for that logical library. Exporting a cartridge will be reported as Export in Progress if there is no available VIEE and will not complete until one is available. Export Complete is shown when the exported cartridge is physically in an I/O station slot. Selecting Hide Exports moves the exported cartridges to a library-maintained export queue, where the VIEE is free immediately for other import/exports, and the exported cartridge disappears from the host applications inventory data. Support for Virtual I/O slots is provided at library microcode level 5360 and above, and is enabled by default when ALMS is enabled. Existing customers who have already enabled ALMS on their IBM TS3500 Tape Library will have to install a newer level of library microcode that supports virtual I/O and then manually enable the virtual I/O slots. For VIO examples, see also IBM System Storage Tape Library Guide for Open Systems, SG24-5946.
83
Enable ALMS
After the License Key is installed, you can enable ALMS using the Tape Library Specialist and performing the following steps: 1. Enter the librarys IP address as a Web site in your browser. If login security has been enabled there will be a login prompt, and then you will see the welcome window with the message that ALMS is disabled at the bottom, as shown in Figure 2-49.
2. On the left side of the window, select Library ALMS. This will display a warning and a specific selection to Enable ALMS (Figure 2-50). The operation will take many minutes, according to the size of your library.
Note: You can enable or disable ALMS in the IBM TS3500 using the Tape Library Specialist, but not the operator panel.
84
When ALMS is enabled, you can easily: Name, add, and remove logical libraries. Reassign a cartridge to another logical library. Change the maximum quantity of cartridges that can be assigned to a logical library. Add, remove, and edit ranges of volume serial (VOLSER) numbers (also known as cartridge assignment policy). Assign shared drives, change control path drives, unassign drives, and assign new drives without using manual configuration methods. ALMS can also be disabled, but this should done with care. After ALMS is enabled, the window shown in Figure 2-50 on page 84 has the option Disable ALMS instead. Important: When you disable ALMS, the library returns to an unconfigured state and all cartridge and drive assignments are lost. You must manually reconfigure the library. However, switching between definitions, the library will use the previous definitions as a basic starting configuration. Note: If you manually configure the library, your changes may result in the loss of cartridge or logical library assignments, cartridge assignment policies, maximum cartridge assignments, and logical library names. When using ALMS, cartridges belong to one logical library based on their VolSer. Without ALMS, logical libraries are based on physical boundaries within the library. This means that after disabling ALMS you might have to move several cartridges. When switching from an environment with ALMS disabled, to one with ALMS enabled, the library will use the previous definitions as a basic starting configuration. The library will perform an inventory operation similar to when the frame door has been opened. The library status during this inventory process will show a cartridge assignment status of pending (Figure 2-51 on page 86).
85
2. Type a unique name (up to 15 characters) for your new logical library (in our case, Redbook2) and select a Media Type (LTO or 3592) for this logical library, as in Figure 2-52. Click Apply. You cannot mix LTO and 3592 media types in one logical library, but you can have different LTO generations in one logical library, for example, LTO2, LTO3, and LTO4.
3. The library created will appear in the Manage Logical Library display, as in Figure 2-53 on page 87, but with no cartridges or drives assigned; these columns show a zero count. Therefore, after creating a new logical library, you need to add cartridge pools and tape drives.
86
87
1. To assign a cartridge assignment policy, on the left-hand side, select Cartridges Cartridge Assignment Policy. The Cartridge Assignment Policy window appears (Figure 2-54).
2. Choose the logical library to which you want to assign the cartridge policy, enter the starting and ending VolSer for the range to be defined, as shown in Figure 2-55, and click Apply.
3. All unassigned cartridges and all new inserted cartridges within the specified range now, by definition, belong to the specified logical library. However, new cartridges have to be inserted, or there must be a re-inventory to have existing unassigned cartridges in this range assigned into the logical library. Previously assigned cartridges within the specified range remain untouched.
Cartridge assignment
A single cartridge can be assigned to a specified logical library as well, or even be moved between libraries.
88
1. To begin, select Cartridges Data Cartridges (see Figure 2-56). Select the frame or logical library, select one or more cartridges to assign, and select Assign in the drop-down menu, and click Go.
2. Select the library to which you want to assign the cartridge(s) (see Figure 2-57). Click Next to complete the operation. The cartridge will then logically be moved to the new library.
89
3. In Figure 2-58, the Data Cartridges menu shows that the cartridge has moved to the new library. The cartridges has been given new element addresses according to the sequence of the new library; however, the cartridges remains in the same physical slots as before.
In our example, we now have cartridges assigned to the logical library, but no tape drives have been assigned. With ALMS, you can configure a logical library without any drives assigned to it. A driveless logical library can be used for: Tape vaulting: Move the cartridge to a location that cannot be accessed by the application. Use as a scratch pool.
Assign drives
The flexible drive assignment option supports the following capabilities: Assign drive (nondisruptive to other logical libraries). Unassign drive (nondisruptive to other logical libraries). Reassign drive (nondisruptive to other logical libraries). Assign drive to multiple logical libraries. Change control paths. Although the drive assign procedure is nondisruptive, the application or server to which the drive is assigned must be configured. This server or application configuration may not necessarily be nondisruptive. In addition, a reconfiguration of the SAN may be needed. At least one assigned drive must have the control path enabled. Therefore, the first assigned tape drive will get the control path enabled by default. You may, however, enable or disable 90
Implementing IBM Tape in UNIX Systems
control paths for your drives. Drives with control path enabled cannot be shared with other logical libraries. You cannot assign LTO and IBM 3592 tape drives to the same logical library. Be sure that the drives you are working on do not have any cartridges loaded. The Tape Library Specialist will not allow you to change any assignment of tape drives with a cartridge loaded. Therefore, we suggest first running a manual inventory to be sure that there is not a forgotten cartridge in any drive. To assign tape drives, select Drives Drive Assignment. In the introduction window you can select specific drives or logical libraries, or a list of the full drive assignment. If you select the last option, the full assignment displays. In the drive assignment window, you can easily assign and unassign tape drives to a logical library. On the left-hand side of the window, you can see all available tape drives identified by their WWN. At the top, you see all the logical libraries. The first column is called Unassigned. All unassigned drives (such as newly installed drives) belong to this column. By simply clicking the check boxes you can easily assign tape drives to logical libraries, as shown in Figure 2-59. After you have completed your selections, select Apply to make the changes effective.
91
Tape drives with control path enabled are indicated by the icon shown in Figure 2-60.
The first tape drive assigned to a logical library automatically gets the control path enabled; if you want to enable more control paths, click the placeholder for the control path icon of the selected drive. If you want to delete a tape drive from one logical library, you have to set this tape drive to unassigned by checking the Unassigned check box for this tape drive. We do not recommend that you assign a tape drive to multiple logical libraries unless required. If you need to share a tape drive, follow the recommendations given in Shared drive assignment on page 80. One drive may be shared by a maximum of 10 logical libraries. In the example in Figure 2-59 on page 91, all logical libraries and applications need at least one tape drive to fulfill their backup jobs. Therefore, we assigned at least one tape drive to each logical library. In addition to the minimum required tape drive, we assigned some shared tape drives to some logical libraries. For all applications we configured at least two tape drives for use, but set the shared tape drive as offline, in service, or unavailable depending on the application. This enables us to easily use a shared tape drive (by setting it online, out of service, or available from the application) whenever it is needed, for example, if one dedicated tape drive becomes defective, or one application temporarily needs more tape bandwidth due to additional workload (additional restores). Because the application needs to know the SCSI element address of the drive for configuring the library, check the SCSI element address of all tape drives by selecting Drives Drive Summary. This displays the drive information, as shown in Figure 2-61 on page 93. Notice that this is now the virtualized element addresses, and that each logical library may show the same element address.
92
Alternatively, if you let the cursor hover over assigned element as in Figure 2-62, you will get a small pop-up window identifying the element number for that drive.
93
By default, all drives will be assigned the lowest available SCSI element address, which for Redbook1 will be elements 257 to 260. It is possible to be creating gaps in the assignment. If Redbook1 drive 2 is set to unassigned, and you try to Apply, you will get a warning message indicating that there may be an element gap, as shown in Figure 2-63.
Avoid any gaps in the drive assignment. Gaps can easily be removed by simply unassigning and then reassigning the drive with the highest SCSI element address until all gaps are filled. Gaps in the drive SCSI element address will cause configuration problems on some backup applications like EMC Legato NetWorker and Veritas NetBackup.
To change the Maximum Number, select Library Logical Libraries; select the logical library and select Maximum Cartridges from the drop-down menu, as shown in Figure 2-53 on page 87. Attention: Changing the maximum settings for a logical library may interrupt drive and library activities and require reconfiguration of the host applications for the selected logical library.
94
A window similar to Figure 2-64 appears. Enter the new maximum number of cartridges and click Apply.
Now the library reports the new maximum storage slots as 80, as shown in Example 2-2.
Example 2-2 Reported storage slots #IBMtapeutil -f /dev/IBMchanger1 elementinfo Getting element information... Number of Robots .............. First Robot Address ........... Number of Slots ............... First Slot Address ............ Number of Import/Exports ...... First Import/Export Address ... Number of Drives .............. First Drive Address ........... 1 1 80 1185 30 769 1 257
You can also look at these details by selecting Details in the drop-down box in the Logical Library menu (Figure 2-53 on page 87). This will then display as shown in Figure 2-65.
This change is nondisruptive for the library operation, but not necessarily for your backup application. For example, with NetWorker, you must run jbconfig, and with IBM Tivoli Storage Manager, you must halt and re-start the server.
95
The ability to change the maximum number may be helpful if: You just have a license for a smaller library. You expect capacity growth, which will force you to enlarge your library physically over time, but want to avoid configuration changes in your application. Therefore, on the first setup, configure your logical library with a greater number of logical slots to avoid an outage later on, because you would then have to reconfigure the application. However, a large number of reported storage slots may decrease the application performance in working with the library (such as an inventory or audit library, which takes longer from the application point of view).
96
Figure 2-66 Detailed information before ALMS is enabled Example 2-3 Elementinfo from logical library Redbook1 # IBMtapeutil -f /dev/IBMchanger4 elementinfo Getting element information... Number of Robots .............. First Robot Address ........... Number of Slots ............... First Slot Address ............ Number of Import/Exports ...... First Import/Export Address ... Number of Drives .............. First Drive Address ........... 1 1 80 1025 30 769 3 257
Then we enable ALMS. In Figure 2-67 and Example 2-4 on page 98, we again show the detailed view of the logical library. The drive element addresses are the same as before, but the storage element addresses were changed. Because it is seen as the first logical library, the storage element addresses begin with 1025. With ALMS the physical limitation of 175 cartridge slots is removed, and we have assigned 160 slots to this one logical library. There is now also a listing of the default 30 Virtual IO elements.
97
Example 2-4 Element info after ALMS enabled # IBMtapeutil -f /dev/IBMchanger4 elementinfo Getting element information... Number of Robots .............. First Robot Address ........... Number of Slots ............... First Slot Address ............ Number of Import/Exports ...... First Import/Export Address ... Number of Drives .............. First Drive Address ........... 1 1 160 1025 30 769 3 257
A pop-up window will let you choose your move method. We select Move to first empty storage slot, as shown in Figure 2-69 on page 99.
98
Now, we again check the inventory of the library (see Figure 2-70). We see that the SCSI element address has changed to 1129, but the cartridge is still in the same physical location: Frame 1, Column 3, Row 13.
On a library without ALMS, you have to run a library inventory every time after moving some cartridges manually to get the application in a state consistent with the library. With ALMS this may no longer be needed, as ALMS always tries to assign the same SCSI element address to the cartridge, even though the cartridge was moved manually. Because ALMS is based on the affinity between VolSer (barcode label) and the reported SCSI element address, you have to make sure that the barcode label is readable. The library tries to keep the same SCSI element address for an unreadable barcode label if this cartridge is stored in the same physical slot. But, if the cartridge was moved manually, and the library does an inventory, a cartridge with an unreadable barcode label is placed in an unassigned status.
99
The same is true if you work with unlabeled cartridges (no barcode label). As long as you do not move this cartridge manually, the library tries to assign a SCSI element address. If you move such a cartridge manually, the cartridge will be placed in an unassigned status. The same happens with cartridges having duplicate barcode labels. Anyway, using duplicate barcode labels is generally not supported, and can easily lead to confusion. It is possible that the storage capacity of the library, as reported by each logical library, may exceed the physical storage capacity of the library. As such, it is possible to run out of storage space while still reporting available space to a host. SNMP and operator panel messages will notify the customer as the library approaches near full capacity. In addition, if cartridges are placed in the I/O station when a library has reached its capacity, the cartridges will be marked inaccessible to all hosts to prevent the condition where the host tries to move the cartridge to storage that does not really exist. When ALMS is enabled, auto clean is automatically enabled, and there will be no mechanism to disable it. Cleaning cartridges are never associated to a logical library, so there will be no host awareness that they exist in the library. Static partitioning cannot be used when ALMS is enabled. The partitioning for the entire library is either static or dynamic.
100
Chapter 3.
Copyright IBM Corp. 2002, 2003, 2004, 2005, 2007. All rights reserved.
101
102
IBM tape libraries and devices are generally supported, at the time of the writing of this book, on Windows 2000 build 2195 (Service Pack 2) or later, or Windows 2003 build 3790 or later. Even though device driver media was shipped with your IBM tape hardware, we recommend that you always download the latest version from the appropriate Web site:
ftp://ftp.software.ibm.com/storage/devdrvr/Windows/Win2000/Latest ftp://ftp.software.ibm.com/storage/devdrvr/Windows/Win2003/Latest
For Windows 2000, the file to download is named IBMTape.x86_yyyy.zip, where yyyy is the version number. Always download the latest version unless specifically directed otherwise by IBM Support. For Windows 2003, the file to download is named IBMTape.Znn_yyyy.zip, where Znn is either x86 or x64 or i64 and yyyy is the version number: Intel x86 architecture (Windows 32-bit systems): Use IBMTape.x86_yyyy.zip. Intel IA64 architecture: Use IBMTape.i64_yyyy.zip. Intel EM64T architecture: Use IBMTape.x64_yyyy.zip. Always download the latest version unless specifically directed otherwise by IBM Support. Also, consult the readme file located in the same download directory for any additional considerations. The readme file is IBMTape.W200x.Readme.txt. Note: A Windows certified version of the LTO device driver for 3580 drives is also available. The files are contained in a folder named LTO_WHQL_Cert. For Windows 2000, the file to download is named LTOCert.x86_yyyy.zip, where yyyy is the version number. For Windows 2003, the file to download is named LTO_CertZnn_yyyy.zip, where Znn is either x86 or x64 or i64 and yyyy is the version number. The readme file is named LTO_WHQL_Cert.Readme.txt. Always download the latest version unless specifically directed otherwise by IBM Support. This certified driver will operate only on IBM Ultrium 3580 tape drives, generations 1, 2, 3 and 4 installed in a tape library, or running in a stand-alone configuration. The driver that operates other IBM tape drives, such as the IBM 3590 and 3592, has not been certified, nor has the driver that operates IBM tape libraries, including the TS3200, TS3310, and TS3500 libraries.
103
Execute the following steps: 1. 2. 3. 4. 5. Download and extract the latest IBM tape device drivers for Windows 200x. Shut down the system. Attach the library. Restart the system. Install the device drivers.
104
Note: If the Windows "Found New Hardware" Wizard begins during installation, cancel the wizard. Install.exe will perform the necessary steps.
105
Install.exe will prompt you to select between a driver customized for Tivoli Storage Manager (TSM) and a generic driver that should be used if you intend to run other applications, such as Microsoft Removable Storage Manager or Microsoft Backup, as shown in Example 3-1.
Example 3-1 Install.exe execution Running installation application, version 6.1.5.4. Select the driver file to be used for tape drives. 1) exctapef.inf (default) 2) magtapef.inf NOTE: In most cases, it is recommended that exctapef.inf be selected. This file installs a driver that has been customized for Tivoli Storage Manager (TSM). If you are running other applications, such as Microsoft Removable Storage Manager or Microsoft Backup, then you should select magtapef.inf. For more information, consult the README file on the CD or FTP site to determine which driver to use. Select number, or press Enter for default: 1 exctapef.inf has been selected Preparing system for driver installation... Uninstalling existing medium changers... Existing medium changers successfully uninstalled. Uninstalling existing tape drives... Existing tape drives successfully uninstalled. Installing/updating the changer bus enumerator... Successfully installed/updated the changer bus enumerator. Installing/updating the tape bus enumerator... Successfully installed/updated the tape bus enumerator. Installing driver for medium changers... Driver for medium changers installed. Installing driver for tape drives... Driver for tape drives installed. Program successful.
You will see a Program Status window with the message that the installation was successful. Click OK. You should be able to verify that the device was installed correctly (see Figure 3-3 on page 107). Repeat this procedure for every device you install. Remember, if you are installing a tape library, you will need to install drivers for both the tape drives and the medium changer. Note: In order to reduce installation complexity, the file install.exe is included in the driver package to perform the installation steps automatically. Beginning in Version 6.1.6.7 of the device driver, the non-exclusive option for use with RSM is implemented through an installer option. Double click install.exe or run install.exe without any option if the user runs Tivoli Storage Manager. Run install.exe with the -n option from a command line if you want to run with RSM. For example, C:\>install -n.
106
If you are installing a driver that has not been certified by the Microsoft Windows Hardware Quality Laboratories (WHQL), you will be presented with a warning screen. If you want to continue installing the driver, select Continue Anyway. Note: All drivers released by IBM have been through a complete test to ensure that they are stable and conform to specified requirements.
107
In order to use path failover support, the feature codes listed in Table 3-1 are required for the associated tape libraries. There are some exceptions: Tape library TS3400 has path failover support as one of the standard features. For IBM 3592 or TS1120 tape drives, no matter if they are stand-along or inside libraries, data path failover does not require any feature code.
Table 3-1 Feature Codes Tape Library TS3500 TS3400 TS3310 TS3200 3583 3582 Feature Code FC1682 (CPF and DPF) Standard Feature FC1682 (CPF and DPF) FC1682 (CPF and DPF) FC1680 (CPF), FC 1681 (DPF) FC1680 (CPF), FC 1681 (DPF)
108
The following three sections show how to enable additional control paths through the Operator panel or System Storage Tape Specialist for the IBM TS3500.
Enable control path on IBM TS3500 Tape Library from the Operator screen
To enable Control Path Failover support feature on the library, follow these steps: 1. At the main activity screen, select Menu. 2. Select Service and press ENTER. 3. At the Service screen, select Firmware Update and press ENTER. 4. At the Firmware Update screen, select Features and press ENTER. 5. At the Features screen, select Control Path Failover Feature Is Not Installed and press ENTER. 6. At the Registration ID screen, enter the Control Path Failover License Key. Refer to the following notes as you enter the registration ID: a. Use the UP and DOWN buttons to select the first number of the key, then press ENTER to accept that number and move to the next position. Continue until all digits have been entered. b. If you enter an incorrect number, press Back to go back to the previous position. 7. When the key has been entered successfully, the message The Control Path Failover Feature Is Enabled is displayed. Press ENTER. 8. Once the Control Path Failover Feature is enabled, press Back until the main activity screen is displayed.
Enable control path on IBM TS3500 from the Tape Library Specialist
To enable additional control paths with the Operator panel on an IBM TS3500, select Menu Settings Control Paths Change Control Paths, and select the drive for which you want to enable the control path.
109
To enable additional control paths using the Tape Library Specialist without ALMS, select Drives Control Paths, select the drive which you want to enable for the control path, and click Change (see Figure 3-4).
Figure 3-4 IBM TS3500: Enabling additional control paths without ALMS
To enable additional control paths using the Tape Library Specialist with ALMS enabled, do the following: 1. Select Drives Drive Assignments. 2. From the Drive Assignments page, either select the drive you want to enable or select the logical library from which you would like to select a drive to enable and click Continue. 3. Locate the drive that you want to enable (or disable) as the control path drive by clicking the blue icon to the left of the check box; a drive icon appears, as shown in Figure 3-5 on page 111. In the example, drive 2703 was selected to enable as an alternate control path. Do not select a drive with a cartridge in it, such as drive 2702 in the example. 4. To confirm the changes, click the Apply button. 5. The Operation in Progress window displays, followed by a Success window that indicates that the changes are complete. Click Close. 6. The Drive Assignment window redisplays with the new assignments (Figure 3-5 on page 111).
110
Figure 3-5 IBM TS3500: Enabling additional control paths with ALMS enabled
111
LIBRARY CONTROLLER
AC
DRIVE 1
LIBRARY CONTROLLER
AC
DRIVE 1
DRIVE 2
DRIVE 2
DRIVE 3
DRIVE 3
DRIVE 4
DRIVE 4
SERVER
Frame 1
Frame 2
FC ADAPTER
smc0
smc1
112
('xx' in the file name refers to either 2k or 2k3.) Instructions on how to install ibmcgbsxx.sys are included in the document CPF_install.doc. Installation of the other two .sys files follows the instructions for Windows 200x in the IBM Tape Device Drivers: Installation and Users Guide, GA27-2130. Note: In order to reduce complexity, the file install.exe is included in the driver package to perform the installation steps automatically. Simply double-click the install.exe icon from within the driver install directory. The virtual and actual hardware will be installed correctly on your system. Please refer to the BM Tape Device Drivers: Installation and Users Guide, GA27-2130 for more details. To continue with the library installation process, see 3.2, Installing IBM tape device drivers for Windows 200x on page 104. To disable the CPF feature after installation, so that the driver runs in single-path mode, double-click the file reg\DisableCPF.reg from the driver install package and reboot your machine. To re-enable the feature, double-click reg\EnableCPF.reg and reboot.
113
Data Path Failover support is enabled automatically when the device driver is installed. It may be disabled or reenabled for the entire set of attached drives by modifying the registry. The registry modifications can be performed by double clicking DisableDPF.reg and EnableDPF.reg, respectively, from the reg folder of the driver install package. A reboot will be necessary for any registry modification to take effect. For more details about Data Path Failover, please refer to the IBM Tape Device Drivers: Installation and Users Guide, GA27-2130, found at:
ftp://index.storsys.ibm.com/devdrvr/Doc/
114
Example 3-2 NTUTIL main menu NTutil - Copyright (c) 1997-2006 IBM Corporation Main Menu: Microsoft Windows 2003 version ========== 1: Manual test 2: Batch test 9: Exit ntutil Enter selection:
Selecting 1: Manual test provides the menu in Example 3-3 for interactive commands.
Example 3-3 NTUTIL manual test menu (Base Mode) Test tool version 6.1.5.4 Variable settings ==================== BASE MODE ======================================== tape-special-file-name: tape0 gp->fd0=FFFFFFFF gp->fd1=FFFFFFFF block size=1024 block count=1 hex block id = 0000000000000000 return_error_when_fail 1 exit_on_unexpected_result 0 trace_flag 0 manual test menu: ======================================================================= 1: set device special file 2: display symbols 3: set block size R/W (now !0 fixed) 4: library only mode (OFF) 5: set return error when fail 6: set/reset trace 7: set exit on unexpected result 8: Library Mode ======================================================================= 20: open 21: close 22: read 23: write 24: read and display block 25: flush (buffer->media) 26: read block id 27: erase 28: locate block id 29: display block data ======================================================================= 30: write filemark(s) 31: rewind 32: forward space filemark(s) 33: unload 34: reverse space filemark(s) 35: load 36: forward space record(s) 37: return error 38: reverse space record(s) 39: test unit ready 43: set media parms (block size) 44: set dev parms(compression) 46: get device information 47: restore data 48: get medium information 49: inquiry 50: poll registered devices 53: space EOD 54: display message 59: get encryption state ======================================================================= 70: system command ======================================================================= 80: Force Dump 81: Read Dump 82: Update MicroCode 83: Log Sense 84: Get Last Sense 85: Get Version 86: Associative/Persistent WProtect 87: Read/Write Test 88: List registered devices 89: Get MTDevice Info =======================================================================
115
Note that option 8 says Library Mode. This indicates that NTUTIL is running in base mode. To change to library mode, select 8: Library Mode. Example 3-4 shows the NTUTIL manual test menu (Library Mode).
Example 3-4 Library Mode menu Test tool version 6.1.5.4 Variable settings ==================== LIBRARY MODE ===================================== tape-special-file-name: tape0, changer-special-file-name: Changer0 gp->fd0=FFFFFFFF gp->fd1=FFFFFFFF block size=1024 block count=1 hex block id = 0000000000000000 return_error_when_fail 1 exit_on_unexpected_result 0 trace_flag 0 manual test menu: ======================================================================= 1: set device special file 2: display symbols 3: set block size R/W (now !0 fixed) 4: library only mode (OFF) 5: set return error when fail 6: set/reset trace 7: set exit on unexpected result 8: Base Mode ======================================================================= 10: return library inventory 11: move medium 12: initialize element status 13: get changer parameter 14: exchange medium 15: get changer bus info ======================================================================= 20: open 21: close 22: read 23: write 24: read and display block 25: flush (buffer->media) 26: read block id 27: erase 28: locate block id 29: display block data ======================================================================= 30: write filemark(s) 31: rewind 32: forward space filemark(s) 33: unload 34: reverse space filemark(s) 35: load 36: forward space record(s) 37: return error 38: reverse space record(s) 39: test unit ready 43: set media parms (block size) 44: set dev parms(compression) 46: get device information 47: restore data 48: get medium information 49: inquiry 50: poll registered devices 53: space EOD 54: display message 59: get encryption state ======================================================================= 70: system command ======================================================================= 80: Force Dump 81: Read Dump 82: Update MicroCode 83: Log Sense 84: Get Last Sense 85: Get Version 86: Associative/Persistent WProtect 87: Read/Write Test 88: List registered devices 89: Get MTDevice Info ======================================================================= 99: return to main menu
116
To view the installed library and drive, select 88: List registered devices. Medium changer devices are given a device special name of Changerx, and tape drives are known as Tapex. The bus, target ID, and LUN ID for each device are also shown here. Example 3-5 shows the device listing for a SAN attachment.
Example 3-5 Registered devices on a SAN ======================================================================= enter selection: 88 Device found: Tape1 @"Scsi Port 2\Scsi Bus 0\Target Id 0\Logical Unit Id Device found: Changer1 @"Scsi Port 2\Scsi Bus 0\Target Id 0\Logical Unit Device found: Tape0 @"Scsi Port 2\Scsi Bus 0\Target Id 1\Logical Unit Id Device found: Tape2 @"Scsi Port 2\Scsi Bus 0\Target Id 2\Logical Unit Id Device found: Changer0 @"Scsi Port 2\Scsi Bus 0\Target Id 2\Logical Unit Total elapsed time in seconds = 0.00 Return to continue:
To perform any operations, you usually need to open the desired device (select 1: Set device special file, then select the appropriate device from the device listing, and open it with 20: Open). Example 3-6 and Example 3-7 show these selections.
Example 3-6 Selecting a device special file ======================================================================= enter selection: 1 Enter device special file (tape path) name or return for no change: tape2 Enter device special file (changer path) name, or "def" for default lun1 changer or return for no change: changer0 Total elapsed time in seconds = 26.00 Return to continue: Example 3-7 Performing an open call on a selected device special file ======================================================================= enter selection: 20 Enter open mode (1) RW (2) RO: 1 special file (\\.\tape2) will be opened special file (\\.\changer0) will be opened analyze() called with rc 1 status 0 (SUCCESS) data 0 Total elapsed time in seconds = 2.00 Return to continue:
To test the Medium Changer, we load a tape to a drive, perform a read/write test on it, and then unload the tape. Select Library Mode first and then open the device. By default, changer0 and tape0 will be selected unless overridden. Select 20: Open. In this case, tape2 and changer0 are opened, because they were previously selected in Example 3-7.
117
To display information about the Medium Changer, select 13: get changer parameter, as shown in Example 3-8.
Example 3-8 Get Changer parameters ======================================================================= enter selection: 13 NumberofTransports: 1, FirstTransportNumber: 0x0001 NumberofStorageElements: 23, FirstStorageElement: 0x1000 NumberofIEElements: 0, FirstIEElement: 0x0000 NumberofDataTransferElements: 1, FirstDataTransferElement: 0x0100 Features0: 0x04025c83 Features1: 0x00000000 Features: CHANGER_BAR_CODE_SCANNER_INSTALLED CHANGER_INIT_ELEM_STAT_WITH_RANGE CHANGER_LOCK_UNLOCK CHANGER_POSITION_TO_ELEMENT CHANGER_REPORT_IEPORT_STATE CHANGER_STORAGE_DRIVE CHANGER_STORAGE_SLOT CHANGER_PREDISMOUNT_EJECT_REQUIRED CHANGER_SERIAL_NUMBER_VALID analyze() called with rc 1 status 0 (SUCCESS) data 0 Total elapsed time in seconds = 0.00 Return to continue:
To move the cartridge, you need to know the source and destination addresses for the media. These are obtained by selecting 10: return library inventory, as shown in Example 3-9 on page 119. The addresses are given in hexadecimal format and need to be entered as such when using the move medium command. Each entry in the inventory has an element type and a number in hexadecimal format. The element type indicates the classification of the element and is one of the following: 1. 2. 3. 4. MTE: Medium Transport Element (picker) SE: Storage Element (storage slot) IEE: Import/Export Element (Medium Changer bulk I/O slots) DTE: Data Transfer Element (the drives)
The command output (Example 3-9 on page 119) shows that there is one MTE (cartridge picker), one drive (DTE), and 17 storage slots (SE) in the TS3100s inventory. Each entry also shows if there is a cartridge present (by indicating full or empty).
118
Example 3-9 Return library inventory ======================================================================= enter selection: 10 Type: MTE, Addr: 0x00000000, Empty Type: SE , Addr: 0x00000000, Empty Access Type: SE , Addr: 0x00000001, Empty Access Type: SE , Addr: 0x00000002, Empty Access Type: SE , Addr: 0x00000003, Empty Access Type: SE , Addr: 0x00000004, Empty Access Type: SE , Addr: 0x00000005, Empty Access Type: SE , Addr: 0x00000006, Full Access BC 3FZ331L3 Type: SE , Addr: 0x00000007, Empty Access Type: SE , Addr: 0x00000008, Empty Access Type: SE , Addr: 0x00000009, Empty Access Type: SE , Addr: 0x0000000a, Empty Access Type: SE , Addr: 0x0000000b, Full Access BC 3MO045L3 Type: SE , Addr: 0x0000000c, Empty Access Type: SE , Addr: 0x0000000d, Empty Access Type: SE , Addr: 0x0000000e, Empty Access Type: SE , Addr: 0x0000000f, Empty Access Type: SE , Addr: 0x00000010, Empty Access Type: SE , Addr: 0x00000011, Empty Access Type: SE , Addr: 0x00000012, Empty Access Type: SE , Addr: 0x00000013, Empty Access Type: SE , Addr: 0x00000014, Empty Access Type: SE , Addr: 0x00000015, Empty Access Type: SE , Addr: 0x00000016, Empty Access Type: DTE, Addr: 0x00000000, Empty Access TgtId invalid 1300000978 analyze() called with rc 1 status 0 (SUCCESS) data 0 Total elapsed time in seconds = 1.00 Return to continue:
You can see that there is a slot (SE) 00000006 with a state of Full Access. This is the cartridge we want to move in our example. We will be loading that cartridge into a tape drive, specifically, the DTE (tape drive) with an address of 00000000. Example 3-10 shows how to move a tape cartridge from a slot in the library and mount it in a drive. We selected option 11: move medium. At this stage, we simply want to mount a tape volume into the drive using the Medium Changer. We specify SE (Storage Element Slot) as the source type. NTUTIL then prompts for a valid source address, which we enter in hexadecimal format (00000006). We then provide a destination type, which is a tape drive (DTE) followed by a destination address (00000000).
Example 3-10 Move media ======================================================================= enter selection: 11 source type [moving from]: 2 = SE, 3 = IEE, 4 = DTE: 2 source address moving from: 00000006 destination type [moving to]: 2 = SE, 3 = IEE, 4 = DTE: 4 destination address moving to: 00000000 execute move_medium stype = 2, saddr = 6, dtype = 4, daddr = 0 analyze() called with rc 1 status 0 (SUCCESS) data 0 Total elapsed time in seconds = 98.00 Return to continue:
119
Once the tape is mounted (indicated by the SUCCESS output), you may perform a read/write test (option 87) on the cartridge (Example 3-11). Note this overwrites any data on the tape; NTUTIL does not interact with any applications, so it is not aware of whether the tape has valid data on it or not. Therefore, be careful about which tape you choose for this operation.
Example 3-11 Read/write test ======================================================================= enter selection: 87 This will rewind and write on tape! Are you sure?? Y or N y ntutil execute_command_read_write test rewinding Rewind OK, set blocksize to 32K Set Block Size OK, writing 32K Write 32K OK, rewinding Rewind after Write OK, reading data Read after Rewind OK, comparing data analyze() called with rc 1 status 0 (SUCCESS) data 0 Total elapsed time in seconds = 4.00 Return to continue:
The tape has been successfully written to, as shown in Example 3-11. We may now unload the cartridge by selecting 33: Unload, then selecting 11: move medium, but this time the source and destination elements are reversed from the load operation, so the cartridge is moved from the drive back to its original slot (Example 3-12 and Example 3-13).
Example 3-12 Unload ======================================================================= enter selection: 33 analyze() called with rc 0 status 0 (SUCCESS) data 0 Total elapsed time in seconds = 0.00 Return to continue: Example 3-13 Move media back to the slot ======================================================================= enter selection: 11 source type [moving from]: 2 = SE, 3 = IEE, 4 = DTE: 4 source address moving from: 00000000 destination type [moving to]: 2 = SE, 3 = IEE, 4 = DTE: 2 destination address moving to: 00000006 execute move_medium stype = 4, saddr = 0, dtype = 2, daddr = 6 analyze() called with rc 1 status 0 (SUCCESS) data 0 Total elapsed time in seconds = 33.00 Return to continue:
To display information about the library or drive, including the serial number, use 49: inquiry (Example 3-14 on page 121). In Library Mode, you must specify from which device (changer or tape drive) you want to gather information. In Base mode, NTUTIL returns information only about the opened drive.
120
Example 3-14 Inquiry ======================================================================= enter selection: 49 Drive = 0, Library = 1: 1 Changer Path SCSI data: PortNumber 2, PathId 0 TargetId 2, Lun 1 INQUIRY data: devtype(0): 08, rmb(1): 80 ASO/ECMA/ANSI(2): 05, resp_data_fmt(3): 02 additional_length(4): 45, reserved(5): 00 SCSI_3(6): 00, flags(7): 02 vendor_id (8-15): IBM product_id (16-31): 3573-TL Microcode Revision Level (32-35): 3.03 Unit Serial Number: 00X2U78B0215_LL0 vendor specific (bytes 36-55): 58 32 30 30 58 32 55 37 38 42 30 32 31 35 00 00 00 00 00 01 analyze() called with rc 1 status 0 (SUCCESS) data 0 Total elapsed time in seconds = 2.00 Return to continue: ======================================================================= enter selection: 49 Drive = 0, Library = 1: 0 Device Path SCSI data: PortNumber 2, PathId 0 TargetId 2, Lun 1 INQUIRY data: devtype(0): 01, rmb(1): 80 ASO/ECMA/ANSI(2): 03, resp_data_fmt(3): 02 additional_length(4): 35, reserved(5): 00 SCSI_3(6): 00, flags(7): 02 vendor_id (8-15): IBM product_id (16-31): ULT3580-TD4 Microcode Revision Level (32-35): 73FA Unit Serial Number: 1300000978 vendor specific (bytes 36-55): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20 30 00 00 00 00 analyze() called with rc 1 status 0 (SUCCESS) data 0 Total elapsed time in seconds = 3.00 Return to continue:
NTUTIL can also be run in batch mode. For more information about NTUTIL, refer to the IBM Tape Device Drivers: Installation and Users Guide, GC27-2130. This guide is installed with the packaged device drivers. The manual IBM Tape Device Drivers: Programming Reference, GA32-0566, has information about issuing commands to tape device drivers and manipulating tape APIs.
121
Keep in mind that rebooting the server may alter the device order. See Set up persistent binding on page 132 to understand how the operating system assigns device special file names, and the ways to keep it persistent across reboots. To create this table, use the ntutil inquiry command and IBM System Tape Specialist. The function to return the device serial number is available at NTUTIL V5.0.7.9 and above.
If you want to allocate all free media at this time, you may do so, bearing in mind that this operation will cause NTBACKUP to take ownership of all media. If there are other backup applications that use this media, do not allocate all media. Again, you may prepare (format) the tape volumes as needed through RSM, and NTBACKUP will allocate free (prepared) volumes when required.
122
The Windows 200x backup and restore functions, as used with IBM LTO tape libraries, are illustrated below, and are much the same as for any other natively attached tape libraries and drives. If new media is requested to be written to, then the tape mount preparations take place with RSM driving the Medium Changer in the background. Similarly, mount requests for restore operations are transparent to the application. From the Backup tab (Figure 3-8) you may select the files and directories to be backed up, the backup destination device, and the media to mount for the operation.
In our example, we have selected a full directory for backup. The backup destination is listed as LTO Ultrium (this has been configured through RSM), and the backup media as New Media, which means that NTBACKUP will automatically query the RSM database for a free scratch volume and ask for it to be mounted.
123
Figure 3-9 shows the NTBACKUP restore window. Here you may select the media contained within the IBM tape library from which you want to restore. The available restore media are listed as defined in the RSM database. The LTO Ultrium tape pool shows the tape volumes that are candidates for restore operations. They are automatically stamped with the time of the backup operation. If we click the media, we will be able to see the backed up files and directories that it contains.
124
125
Disabling RSM
We recommend disabling RSM from the services window (select Start Programs Administrative Tools Services, as shown in Figure 3-11) before removing the Ultrium devices. Ensure that all device activity has been halted before performing this step.
Double-click Removable Storage and select the General tab (Figure 3-12). From here, you may stop and then disable RSM.
126
Removing the IBM tape device driver from the system (un-install)
To remove the IBM tape device driver, do the following: 1. Open Device Manager and right-click the device (Figure 3-13).
2. Click Uninstall. You will see a pop-up warning window to confirm that you really want to uninstall the device. Click OK to continue. Windows will proceed to remove the device drivers. Repeat these steps for all tape devices and the Medium Changer. 3. Run the file uninst.exe, located in the directory where the driver was extracted. If you were in the process of upgrading the IBM tape device driver, you can now proceed to install the new version. 4. Shut down the operating system and physically detach the library if required. Uninstall.exe will not remove the .zip file or the files extracted from the .zip file. If you want to remove these files, you will need to do so manually.
127
SCSI host adapter compatibility for Windows 200x with IBM LTO devices is listed in 1.5.1, Windows 2000/2003 SCSI direct attach on page 35. Additional information regarding SCSI interfaces and connector types may be found in: 1.9, LVD and SAS on page 40 1.10, SCSI HD68 and VHDCI cable connectors on page 41 For Adaptec adapters, we suggest that you obtain the latest driver levels and firmware updates for SCSI adapters from the Adaptec Web site:
http://www.adaptec.com/en-US/support/scsi/
Our configuration uses an Adaptec AHA-2940U2W (LVD). When installed in a Windows 200x machine, Windows 200x will detect the card and load its own drivers automatically. You may, however, update the adapter to a later driver level from the Adaptec Web site. Note: The windows included in this section were obtained on a Windows 2003 system. Windows 2000 screens may vary slightly. 1. You will need to shut down the system to install the card. When Windows starts up, you will be prompted to reboot, as shown in Figure 3-15, since it has already loaded its own drivers.
128
2. Select Yes to reboot for a clean install. After the reboot, you may update to a later version of the device driver using Device Manager. Right-click My Computer, select Device Manager SCSI and RAID controllers, right-click the SCSI card to be updated (Adaptec SCSI Card in our example), and select Update Driver, as shown in Figure 3-16.
3. The Upgrade Device Driver Wizard starts, as in Figure 3-17. Click Install from a list and then click Next to begin.
129
4. You are prompted to either search for a device driver or display a known list of drivers (Figure 3-18). Select the Dont Search. I will choose the driver to install option and click Next.
5. Click Show compatible hardware, as shown in Figure 3-19, choose the correct hardware, and then click Next.
Specify the location of the driver file to use for the upgrade (Figure 3-20 on page 131). This is either the CD-ROM (if using a CD) or the directory where you downloaded the device driver.
130
Note: If the driver is not digitally certified by Microsoft, you will see a warning message. This does not necessarily mean that the driver will not function with the LTO library. If you are unsure of the implications, see the readme file for the downloaded driver. The driver is installed. You are notified of the successful installation of the device driver. You may also be prompted to restart the computer. We suggest that you reboot for a clean install.
131
The vendor device name is substituted with the name of the vendors device. For example, the Qlogic 2200 uses Ql2200 for the respective vendor device name. MaximumSGList is set to hex 41 to work properly with TSM (Figure 3-22).
In the following sections, we describe, in more detail, the IBM System Tape Library Specialist applications for the IBM TS3100, TS3200, TS3310, TS3400, and TS3500 Tape Libraries. Note: IBM Tape Library Specialist and Remote Management Unit (RMU) will be used interchangeably from here on. In all our examples, we are using the default user ID and password to connect to the library using the RMU. However, for obvious security reasons, we recommend that you change the default password.
132
7. Press the ENTER button to return to the Configure menu. 8. Press the Cancel button to return to the Main menu. 9. Press the Cancel button to return to the home screen. Note: We recommend using a fixed IP address for the RMU. When DHCP is used, it is hard to determine the IP address of the RMU.
133
You should now be able to access the Tape Library Specialist from a Web browser by entering the RMUs IP address. Figure 3-23 shows the login page and Figure 3-24 shows the welcome page.
Log in as admin with the default password of secure. If you cannot log on, check that the library is not in Offline Mode. Notice that only one connection type can be used to communicate with the library. If you are already logged on using the RMU and then try to log on using the Operator panel, a warning is displayed in the Operator panel. To verify the inventory of the TS3100 / TS3200 Tape Libraries, select Monitor Library Inventory, as shown in Figure 3-25 on page 135.
134
From the Service Library menu, select Upgrade Firmware to upgrade the firmware of the drive and the medium changer, as shown in Figure 3-26.
135
You can download the latest firmware from the following site:
http://www.ibm.com/storage/support/lto
For a complete overview of all the configuration settings, see the IBM System Storage TS3100 Tape Library and TS3200 Tape Library Setup, Operator, and Service Guide, GA32-0545.
136
To verify the library map of the TS3310 Tape Library, select Monitor System Library Map, as shown in Figure 3-28.
From the Service Library menu, select View/Update Library Firmware Level to upgrade the firmware of the library, as shown in Figure 3-29.
137
For a complete overview of all the configuration settings, see the IBM System Storage TS3310 Tape Library Setup and Operator Guide, GA32-0477.
138
You can click the Always trust content from this publisher check box to avoid this message in subsequent browser sessions. After launching the Web User interface, the login window is displayed. You should now be able to access the Tape Library Specialist from a Web browser by entering the RMUs IP address. The default account passwords are: Administrator account: admin, Password: secure Figure 3-31 shows the login page.
After logging in the Welcome page is displayed. Figure 3-32 is an example when the Administrator account is used.
139
To verify the inventory of the TS3400 Tape Libraries, select Library Map, as shown in Figure 3-33.
From the Service Library menu, select Firmware Update to update the firmware of the drive and the medium changer, as shown in Figure 3-34.
You can download the latest firmware from the following site:
http://www.ibm.com/storage/support/lto
140
For a complete overview of all the configuration settings, see the IBM System Storage TS3400 Tape Library Planning and Operator Guide, GC27-2107.
Ethernet ______________________________ Current Settings Frame 1: MAC Address: IP Addresses: Subnet Mask: Gateway: 18:36:F3:98:4F:9A 10.1.1.1 255.255.255.0 10.1.1.254
[Change Settings]
______________________________
BACK
UP
DOWN
ENTER
Click ENTER to make the changes. You can select to disable the Ethernet interface, use DHCP for automatically address assignment (if supported in your network), or manually configure the parameters.
141
After configuring the network connection for the IBM System Tape Library Specialist, enter the TCP/IP address of the library in your browser. The welcome page of the IBM TS3500 Specialist Web interface displays, as shown in Figure 3-36. With the Specialist, you can monitor the library status and perform library operations from a remote location. Use the Work Items area on the left to navigate to available Specialist tasks. For more information, click the ? icon in the top right of the screen.
Use the left-hand side of the panel to navigate between the menus. You can choose between the following options: Cartridges Data Cartridges Cleaning Cartridges I/O Station Cartridge Assignment Policy Barcode Encryption Policy Key Label Mapping Insert Notification Frames Logical Libraries Accessor ALMS Virtual I/O Date and Time Drive Summary Drive Assignment Control Paths World Wide Names Cleaning Mode Fibre Channel Summary Web Security Operator panel Security Key Manager Addresses SNMP Settings
Library
Drives
Ports Access
142
Service Library
SNMP Destinations SNMP System Data SMI-S Agent Library VPD Drive VPD Node Cards Download Library Logs Download Drive Logs View Library Error Log View Drive Error Log Firmware Update Master Console Scanner Speed License Keys
You may also choose between managing the physical library or the logical libraries. For more information about the Advanced Library Management Services, please see 2.3, ALMS on page 77. The IBM TS3500 Tape Library Specialist is a complete interface that allows you to easily configure and monitor the library operations, with graphics and tables like those shown in Figure 3-37.
The IBM TS3500 Library Specialist has menus to manage the cartridges, drives, or library.
143
To view a list of the cartridges in the library, select Cartridges Data Cartridges. Using the drop-down boxes, you can filter the cartridges displayed by frame or logical library. Figure 3-38 lists the cartridges in the logical library Redbook1. After selecting a cartridge, you may move it to a tape drive, remove it from the library, or assign it to a logical library.
For information about Cartridge Assignment Policy, please see Cartridge assignment policy on page 81. To view a list of the drives in the library, select Drives Drive Summary. On the Drives screen, you can use the drop-down menus to limit the drives selected to a specific frame or a specific logical library, or you can select all frames or all logical libraries, as shown in Figure 3-39 on page 145. As shown in Figure 3-40 on page 145, after selecting a tape drive, you can clean it, change its SCSI ID (or Loop ID if FC), view drive details, move a cartridge, or do a power cycle of a drive. This feature can be especially useful when sharing drives in a SAN (for example, LAN-free backup). In this circumstance, when a server is using a drive, it issues a SCSI reserve command, which blocks it from other servers. The drive is unavailable to other jobs until the server with the reserve sends a release command to the tape drive. But if the server with the reserve cannot release it (for example, because it is powered down), a power cycle is required on the tape drive to release the block.
144
To change a drives settings, select that drive from the Drives screen and click Change ID. You will get a warning (Figure 3-41 on page 146) stating this function may interrupt the library activity. Indeed, changing the Drive SCSI/Loop ID will interrupt library and drive activities and may require reconfiguring the host computers.
145
Select Drives Drive Assignment to display the Drive Assignment Filter window. You can select all drives or a specific drive, and all logical libraries or a specific logical library. In Figure 3-42, all drives for logical library Redbook1 are selected for display.
As shown in Figure 3-43 on page 147, after selecting a tape drive, you may unassign the drive or assign the drive as a control path. To assign a drive as a control path, click the block to the left of the check box for the drive and click the Apply button above the Drives column. In Figure 3-43 on page 147, drive 30010E601 is a control path, as is indicated by the icon shown on the left of the check box in the Redbook1 column.
146
You will see a warning (Figure 3-44) that changing a drive or control path assignment may affect the associated host applications and that a reset or rediscovery of its devices may be needed.
You can also configure the library directly from the Specialist panels, specifying the SAN parameters, or the SCSI control paths, control ports, and security options. Note that the TCP/IP configuration function is not available from the IBM System Tape Library Specialist.
147
With password protection on, users may change their password by selecting Access Web Security (see Figure 3-45).
If the password protection is ON, a password is required to access some functions of the Specialist, such as firmware update and the modification of the library configuration. The Specialist interface offers three levels of security access for its windows (also called pages). Before performing library functions, you must determine the type of security access that you need. Table 3-3 describes each level.
Table 3-3 Types of password protection Type of password protection No password protection Password protection for administration pages Description You are never prompted to sign on. You are prompted to sign on to access the administration pages. Administration pages are functions that allow you to change library settings. You are prompted to sign on whenever you use the IBM TS3500 Specialist. This type of protection allows you to view all pages (by using a user password) or to change administration pages (by using an admin password).
The factory default for the IBM TS3500 Specialist is no password protection. The first time that you choose password protection for administration pages or for all pages, the library generates an initial password, which can be changed. Also, if you set the security level back to no password protection, the password will deactivate. The following administration functions are protected if the admin password is enabled: Change control port SCSI IDs. Change drive SCSI or Loop IDs.
148
Change the cleaning mode. Change the date and time. Change the Specialist Web interface admin password. Clean the drive. Configure logical libraries. Cycle power to the drive. Download logs. Enable or disable control paths. Import data or scratch cartridges (importing cleaning cartridges is not password-protected). Inventory the library. Move cartridges. Remove cartridges. Update control port firmware. Update library and drive firmware.
2. Under Personalized support, click My support. 3. If this is your first access, under Sign in, click Register; otherwise, go to step 5. 4. Fill in the information required for registration. Items with an asterisk (*) are required fields. 5. Enter your user ID and password and click Submit to access My Support. 6. Enter the information required for your Edit Profile page. a. Under the Products drop-down menu, select Storage. b. In the next drop-down menu, select Computer Storage. c. In the next drop-down menu, select Tape Storage Systems. d. In the next drop-down menu, select either Tape Libraries (IBM TS3100, IBM TS3200, IBM TS3310, IBM TS3400, or IBM TS3500). e. Click the check boxes for the appropriate products. f. Click Add products at the bottom of the page.
149
g. Review your profile for correctness. h. Under Subscribe to e-mail, select Storage and then check the boxes labeled Flashes and Downloads and Drivers, and click Update. i. Under Welcome, (your name), click Sign out to end your session. You will be notified whenever there is new firmware available for the products you selected during registration.
For the library microcode, use the compressed file appcode.zip for Windows systems, or appcode.tar for UNIX systems.
In the readme file, there is installation instruction as well an instruction about how to use ITDT. The latest firmware of the TS2340 can be found on the following Web site:
http://www-03.ibm.com/servers/storage/tape/lto/
150
151
As an example, we show how to upgrade the library and drive microcode through the SCSI bus interface using the NTUTIL utility for Windows 200x. Then we will discuss the new IBM tool called ITDT.
2. If you have an application device driver other than the IBM tape device driver, you will need to stop it and start the IBM tape device driver. NTUTIL will only work with this device driver, so you will need to install it if you have not already done so. You must also stop the Removable Storage Manager (RSM) if it started. You will find RSM under Start Settings Control Panel Administrative Tools. 3. Open an NTUTIL session on a command line from the directory where the library firmware image was saved (for example, c:\winnt\system32) by typing NTUTIL at a command prompt. This is not necessary, but if you do it now, then in a later step you do not need to type in the complete path. 4. Enter 1 for a manual test (Example 3-15).
Example 3-15 NTUTIL main menu NTutil - Copyright (c) 1997-2000 IBM Corporation Main Menu: Microsoft Windows 2000 version ========== 1: Manual test 2: Batch test 9: Exit ntutil Enter selection: 1
5. The NTUTIL interactive menu will be displayed (Example 3-16 on page 153).
152
Example 3-16 Manual test menu manual test menu: ======================================================================= 1: set device special file 2: display symbols 3: set block size R/W (now !0 fixed) 5: set return error when fail 6: set/reset trace 7: set exit on unexpected result 8: Library Mode ======================================================================= 20: open 21: close 22: read 23: write 24: read and display block 25: flush (buffer->media) 26: read block id 27: erase 28: locate block id 29: display block data ======================================================================= 30: write filemark(s) 31: rewind 32: forward space filemark(s) 33: unload 34: reverse space filemark(s) 35: load 36: forward space record(s) 37: return error 38: reverse space record(s) 39: test unit ready 43: set media parms (block size) 44: set dev parms(compression) 46: get device information 47: restore data 48: get medium information 49: inquiry 50: poll registered devices 53: space EOD 54: display message ======================================================================= 70: system command ======================================================================= 80: Force Dump 81: Read Dump 82: Update MicroCode 83: Log Sense 84: Get Last Sense 85: Get Version 86: Associative/Persistent WProtect 87: Read/Write Test 88: List registered devices 89: Get MTDevice Info ======================================================================= 99: return to main menu ======================================================================= enter selection:
7. Obtain the device names that will be used to set the device special file in the next step by entering 88 (Example 3-18).
Example 3-18 List registered devices enter selection: 88 Device found: Tape0 @"Scsi Port 2\Scsi Bus 0\Target Id Device found: Changer0 @"Scsi Port 2\Scsi Bus 0\Target Device found: Tape1 @"Scsi Port 2\Scsi Bus 0\Target Id Device found: Changer0 @"Scsi Port 2\Scsi Bus 0\Target Total elapsed time in seconds = 0.00 Return to continue: 0\Logical Unit Id Id 1\Logical Unit 1\Logical Unit Id Id 1\Logical Unit 0" Id 1" 0" Id 1"
153
8. Select 1: set device special file. Enter the name of the tape and library path displayed in the previous step. In this example, we use Tape0 and Changer0 (Example 3-19).
Example 3-19 Set special file enter selection: 1 Enter device special file (tape path) name or return for no change: tape0 Enter device special file (changer path) name, or "def" for default lun1 changer or return for no change: changer0 Total elapsed time in seconds = 10.00 Return to continue:
9. Enter 20 to open the tape device and Medium Changer. Enter 1 for read/write (RW) operations when prompted (Example 3-20).
Example 3-20 Open the library and tape devices enter selection: 20 Enter open mode (1) RW (2) RO: 1 special file (\\.\tape0) will be opened special file (\\.\changer0) will be opened analyze() called with rc 8 err 0 (ERROR_SUCCESS) data 0 Total elapsed time in seconds = 1.00 Return to continue:
11.Enter 82 from the menu to update the microcode. 12.Enter the name of the saved .lif file. 13.Enter 1 for the library. 14.Press Enter. Do not touch the drive until the firmware load has completed. During this time the library will reboot. The NTUTIL session will lose visibility to the library and will have to be restarted to enable communication (Example 3-22 on page 155).
154
Example 3-22 Update library firmware enter selection: 82 Enter microcode image name (1 to 8 characters), or return to skip: 370B_001.lif Drive = 0, Library = 1: 1 Image size = 1442272 Transferring 65536 image bytes, total bytes = 65536 Transferring 65536 image bytes, total bytes = 131072 Transferring 65536 image bytes, total bytes = 196608 Transferring 65536 image bytes, total bytes = 262144 Transferring 65536 image bytes, total bytes = 327680 Transferring 65536 image bytes, total bytes = 393216 Transferring 65536 image bytes, total bytes = 458752 Transferring 65536 image bytes, total bytes = 524288 Transferring 65536 image bytes, total bytes = 589824 Transferring 65536 image bytes, total bytes = 655360 Transferring 65536 image bytes, total bytes = 720896 Transferring 65536 image bytes, total bytes = 786432 Transferring 65536 image bytes, total bytes = 851968 Transferring 65536 image bytes, total bytes = 917504 Transferring 65536 image bytes, total bytes = 983040 Transferring 65536 image bytes, total bytes = 1048576 Transferring 65536 image bytes, total bytes = 1114112 Transferring 65536 image bytes, total bytes = 1179648 Transferring 65536 image bytes, total bytes = 1245184 Transferring 65536 image bytes, total bytes = 1310720 Transferring 65536 image bytes, total bytes = 1376256 Transferring 65536 image bytes, total bytes = 1441792 Transferring 480 image bytes, total bytes = 1442272 Waiting for tape device to write flash-prom Do not touch drive until complete analyze() called with rc 1 err 0 (ERROR_SUCCESS) data 0 Total elapsed time in seconds = 1894.00 Return to continue:
The output indicates the firmware update was successful (ERROR_SUCCESS), as shown in Example 3-23. To verify that the firmware installed correctly, at the LTO tape library operator console, follow the instructions for your library listed in 3.7.2, Check the installed firmware on page 150 and check if the version shown is the same as the firmware version used to update the library.
Example 3-23 Firmware version (C) 2003 IBM SerNum:xxxxxxx Version:370B
155
2. If you have an application device driver other than the IBM tape device driver, you will need to stop it and start the IBM tape device driver. NTUTIL will only work with this device driver, so you need to install it if you have not already done so. You also have to stop RSM if started. You will find the RSM under Start Settings Control Panel Administrative Tools. 3. Open an NTUTIL session on a command line from the directory where the library firmware image was saved, by typing NTUTIL at a command prompt. 4. Select 1: manual test (Example 3-24).
Example 3-24 NTUTIL main menu Main Menu: Microsoft Windows 2003 version ========== 1: Manual test 2: Batch test 9: Exit ntutil Enter selection:
6. Select read/write operations 1. 7. Update the microcode by entering 82. 8. Enter the name of the *.ro file. 9. Press Enter. Do not touch the drive until the firmware load has completed (Example 3-26).
Example 3-26 Update firmware enter selection: 82 Enter microcode image name (1 to 8 characters), or return to skip: 53Y2L2F.ro Image size = 1048576 Transferring 65536 image bytes, total bytes = 65536 Transferring 65536 image bytes, total bytes = 131072 Transferring 65536 image bytes, total bytes = 196608 Transferring 65536 image bytes, total bytes = 262144 Transferring 65536 image bytes, total bytes = 327680 Transferring 65536 image bytes, total bytes = 393216 Transferring 65536 image bytes, total bytes = 458752 Transferring 65536 image bytes, total bytes = 524288 Transferring 65536 image bytes, total bytes = 589824 Transferring 65536 image bytes, total bytes = 655360 Transferring 65536 image bytes, total bytes = 720896 Transferring 65536 image bytes, total bytes = 786432 Transferring 65536 image bytes, total bytes = 851968 Transferring 65536 image bytes, total bytes = 917504 Transferring 65536 image bytes, total bytes = 983040 Transferring 65536 image bytes, total bytes = 1048576 ======================================================================= Waiting for tape device to write flash-prom
156
Do not touch drive until complete (Avg 45 - 50 sec) Microcode updated, standby for the drive to initialize analyze() called with rc 1 err 0 (ERROR_SUCCESS) data 0 Total elapsed time in seconds = 97.00 Return to continue:
10.The rc 1 err 0 (ERROR_SUCCESS) message will be displayed after a successful download, and just above it, the instruction to exit NTUTIL and reboot the drive.
157
158
Chapter 4.
Copyright IBM Corp. 2002, 2003, 2004, 2005, 2007. All rights reserved.
159
Be sure to check the Web site for supported operating system versions, kernel levels, adapters, and device drivers.
In addition, there are several files in the IBM tape device driver download directory that provide additional information regarding the use of IBM tape drives and libraries with Linux. See these at:
ftp://ftp.software.ibm.com/storage/devdrvr/Linux/
We recommend reading at least IBMtape_Ultrium.ReadMes for LTO or IBMtape_359x.ReadMe for IBM TS1120, IBMtape.fixlist, and LinuxNative.pdf. The Readme files are located in the relevant OS folders.
160
The IBMtapeutil.ReadMe and IBMtapeutil.fixlist files contain additional information for the users of IBMtapeutil for particular versions and levels of Linux. The LinuxNative.pdf file contains hints and tips about using the native device drivers and standard Linux commands, such as mt or tar. The device drivers allow the operating system and the application software to interface with tape devices and medium changers to automate the use of the tape media. The tape devices and medium changer are managed using a special device file name. The special device file name is the name used to address the tape or media changer device (see Table 4-1 for more information).
Table 4-1 Special device file names used with Linux Native Linux device drivers Medium changer Tape device /dev/sg[0-32] /dev/st[0-32] /dev/nst[0-32] /dev/sg[0-32] Native Linux device drivers with scsidev /dev/scsi/sgh0-0c0i1l0 /dev/scsi/sth0-0c0i1l0 /dev/scsi/nsth0-0c0i1l0 /dev/scsi/sgh0-0c0i1l0 IBM tape device drivers /dev/IBMchanger[0-32] /dev/IBMtape[0-32] /dev/IBMtape[0-32]n
Find the sub-directory corresponding to your Linux distribution and version. The driver comes in an RPM package in the form Lin_tape-x.x.x-y.y.y.-y.zzzz.rpm.bin or IBMtape-x.x.x-y.y.y.-y.zzzz.rpm.bin, where x.x.x is the version of the driver itself, y.y.y-y is the version of the Linux kernel that it supports, and zzzz is the type of the machine. Both of Lin_tape and IBMtape are IBM tape device drivers; the first one is open source and the later one is closed source. You also need to download, from the same directory, the IBMtapeutil program (which includes the IBMtapeconfig tool). IBMtapeutil provides a comprehensive collection of tape and library commands. The IBMtapeutil utilities exist in a separate tar package from the device driver. The package is called IBMtapeutil.x.x.x.zzzz.tar.bin. We are installing the IBM tape device driver in the following environment: IBM System x 335 server with RHAS 4 64-bit QLogic QLA2342 64-bit PCI Fibre Channel HBA IBM System Storage TS3200 server with native FC drives
161
Example 4-1 shows the installation of the IBM tape device driver. Details can also be found in the IBM Tape Device Drivers: Installation and Users Guide, GC27-2130, available at:
ftp://index.storsys.ibm.com/devdrvr/Doc/
If you are running the IBM tape device driver, V1.4.1 or higher, and the IBMtaped daemon is running, IBMtaped will automatically create the special files under the /dev directory for you. In our case, the IBMtaped started automatically. Otherwise, you need to run IBMtapeconfig to manage the creation of special files for the attached devices. The following two commands, shown in Example 4-2, allow you to view the devices (tape drives and changer) created by the IBMtape device driver:
cat /proc/scsi/IBMtape cat /proc/scsi/IBMchanger Example 4-2 Viewing devices created by IBMtaped # cat /proc/scsi/IBMtape IBMtape version: 3.0.5 IBMtape major number: 252 Attached Tape Devices: Number Model SN 0 ULT3580-TD4 1300000979 1 ULT3580-TD4 1300001012 # cat /proc/scsi/IBMchanger IBMtape version: 3.0.5 IBMtape major number: 252 Attached Tape Devices: Number Model SN 0 3573-TL 000000000000_LL0 1 3573-TL 000000000000_LL0
FO Path NA NA
FO Path NA NA
To verify that the installation was successful, use the command rpm -qs IBMtape, as shown in Example 4-3. For a successful install, the status should show normal.
Example 4-3 Checking the status of the IBM Ultrium tape device driver # rpm -qs IBMtape normal /etc/IBMtaped.conf normal /lib/modules/2.6.9-42.EL/kernel/drivers/scsi/IBMtape.ko normal /lib/modules/2.6.9-42.ELsmp/kernel/drivers/scsi/IBMtape.ko normal /usr/bin/IBMtaped normal /usr/bin/startIBMtape normal /usr/include/sys/IBM_tape.h normal /usr/share/doc/IBMtape-3.0.5 normal /usr/share/doc/IBMtape-3.0.5/IBMtape_359X.ReadMe normal /usr/share/doc/IBMtape-3.0.5/IBMtape_Ultrium.ReadMe normal /usr/share/doc/IBMtape-3.0.5/IBMtaped.ReadMe normal /usr/share/doc/IBMtape-3.0.5/License
162
Now we can install IBMtapeutil package to test the communication between the operating system and the IBM tape library. Example 4-4 shows the installation of IBMtapeutil.
Example 4-4 IBMtapeutil installation # tar -xvf IBMtapeutil.1.4.1.x86_64.tar IBMtapeutil.1.4.1/ IBMtapeutil.1.4.1/IBMtapeutil IBMtapeutil.1.4.1/IBMtapeconfig IBMtapeutil.1.4.1/IBM_tape.h IBMtapeutil.1.4.1/IBMtapeutil.c IBMtapeutil.1.4.1/IBMtapeutil.ReadMe IBMtapeutil.1.4.1/IBMtapeutil.h IBMtapeutil.1.4.1/makefile # make install cp -f IBMtapeutil /usr/bin/. cp -f IBMtapeconfig /usr/bin/.
Now we are ready to use the Ultrium tape and library devices with the IBM driver. Even if you plan to use the IBM Ultrium tape and library devices with the native Linux drivers, we recommend installing the IBM drivers to allow microcode updates of the IBM Ultrium tape and library devices. If you are using a Linux kernel version that is not supported by the IBM drivers, we recommend installing a supported kernel as an alternative boot kernel for this purpose. Example 4-5 shows the initial invocation screen for IBMtapeutil.
Example 4-5 Start screen of IBMtapeutil IBMtapeutil for Linux, Version 1.4.1, Jan. 03, 2007 ========================================= 1. Tape 2. Changer 3. Quit ========================================= Enter your choice:
Example 4-6 shows the general SCSI commands as well as the tape-specific commands that are available through IBMtapeutil.
Example 4-6 Tape command selection screen of IBMtapeutil for Linux -------------------------- General Commands: ----------------------------1. Open a Device 9. Mode Sense Pag 2. Close a Device 10. Switch Tape/Changer Devic 3. Inquiry 11. Create Special Files 4. Test Unit Ready 12. Query Driver Version 5. Reserve Device 13. Query Device Path 6. Release Device 14. Display All Paths 7. Request Sense 15. Enable A Path 8. Log Sense Page 16. Disable A Path Q. Quit IBMtapeutil --------------------------- Tape Commands: -------------------------------20. Rewind 33. Set Block Size 21. Forward Space Filemarks 34. Retension Tape 22. Backward Space Filemarks 35. Query/Set Tape Position 23. Forward Space Records 36. Query Tape Status 24. Backward Space Records 37. Load Tape
163
25. FSFM 38. Unload Tape 26. BSFM 39. Lock Tape Drive Door 27. Space to End of Data 40. Unlock Tape Drive Door 28. Read and Write Tests 41. Take Tape Offline 29. Write Filemarks 42. Enable/Disable Compression 30. Read or Write Files 43. Flush Drive's Buffer 31. Erase 44. Self Test 32. Reset Drive 45. Display Message --------------------------- IBMtape Commands: ------------------------------46. Query Sense 53. Read Tape Position 47. Query Inquiry 54. Query Mtdevice Number 48. Query/Set Tape Parameters 55. Synchronize Buffers 49. Query/Set Tape Position 56. List Tape Filemarks 50. Query/Set MT/ST Mode 57. Query Encryption Status 51. Report Density Support 52. Locate Tape Position --------------------------- Service Aid Commands: ------------------------70. Dump Device 74. Read Persistent Reservation Keys 71. Force Dump 75. Read Persistent Reservations 72. Load Ucode 76. Register Persistent Reservation Key 73. Reset Drive 77. Remove Persistent Reservation 78. Clear All Persistent Registrations --------------------------------------------------------------------------99. Back To Main Menu Enter Selection:
Example 4-7 shows, as an example of using IBMtapeutil, how a SCSI inquiry command can be sent to the tape device.
Example 4-7 Sending a SCSI inquiry command to an LTO tape drive with IBMtapeutil Enter Selection: 1 Enter device name (<enter> for /dev/IBMtape0): Select mode (<enter> or 1=Read/Write, 2=Read Only, 3=Write Only, 4=Append): 1 Opening device... Hit <enter> to continue... (...) Enter Selection for /dev/IBMtape0: 3 Enter page code in hex or <enter> for standard inquiry: Issuing inquiry... Inquiry Data: Peripheral Qualifier-------------------0x00 Peripheral Device Type----------------0x01 Removal Medium Bit--------------------1 Device Type Modifier------------------0x00 ISO version---------------------------0x00 ECMA version--------------------------0x00 ANSI version--------------------------0x03 Asynchronous Event Notification Bit---0 Terminate I/O Process Message Bit-----0 Response Data Format------------------0x02 Additional Length---------------------0x35 Medium Changer Mode-------------------0x00
164
Relative Addressing Bit---------------0 32 Bit Wide Data Transfers Bit--------0 16 Bit Wide Data Transfers Bit--------0 Synchronous Data Transfers Bit--------0 Linked Commands Bit-------------------0 Command Queueing Bit------------------1 Soft Reset Bit------------------------0 Vendor ID-----------------------------IBM Product ID----------------------------ULT3580-TD4 Product Revision Level----------------71G0 vendor1, Length 20 0123456789ABCDEF [.............. 0] [.... ]
0 1 2 3 4 5 6 7 8 9 A B C D E F 0000 - 0000 0000 0000 0000 0000 0000 0000 2030 0010 - 0000 0000
vendor2,
0 1 2 3 4 5 6 7 8 9 A B C D E F 0000 - 0000 0000 0000 0000 0000 0000 0000 0000 0010 - 0000 0000 0000 0000 0000 0000 0000 00
Example 4-8 shows that a similar set of commands are available to interact with the tape library (Option 2 from the start screen in Example 4-5 on page 163).
Example 4-8 Library command selection screen of IBMtapeutil for Linux -------------------------- General Commands: ----------------------------1. Open a Device 9. Mode Sense Pag 2. Close a Device 10. Switch Tape/Changer Devic 3. Inquiry 11. Create Special Files 4. Test Unit Ready 12. Query Driver Version 5. Reserve Device 13. Query Device Path 6. Release Device 14. Display All Paths 7. Request Sense 15. Enable A Path 8. Log Sense Page 16. Disable A Path Q. Quit IBMtapeutil ------------------------- Medium Changer Commands: ----------------------60. Element Information 65. Load/Unload Medium 61. Position To Element 66. Initialize Element Status 62. Element Inventory 67. Prevent/Allow Medium Removal 63. Exchange Medium 68. Initialize Element Status Range 64. Move Medium 69. Read Device Identifiers -------------------------- Service Aid Commands: ------------------------70. Dump Device 72. Load Ucode 71. Force Dump 73. Reset Drive --------------------------------------------------------------------------99. Back To Main Menu Enter Selection:
165
Example 4-9 shows how the Ultrium Tape Library Medium Changer answers to a SCSI inquiry command.
Example 4-9 Sending a SCSI inquiry command to an LTO library with IBMtapeutil Enter Selection: 1 Enter device name (<enter> for /dev/IBMchanger0): Opening device... Hit <enter> to continue... (...) Enter Selection for /dev/IBMchanger0: 3
Enter page code in hex or <enter> for standard inquiry: Issuing inquiry... Inquiry Data: Peripheral Qualifier-------------------0x00 Peripheral Device Type----------------0x08 Removal Medium Bit--------------------1 Device Type Modifier------------------0x00 ISO version---------------------------0x00 ECMA version--------------------------0x00 ANSI version--------------------------0x05 Asynchronous Event Notification Bit---0 Terminate I/O Process Message Bit-----0 Response Data Format------------------0x02 Additional Length---------------------0x45 Medium Changer Mode-------------------0x00 Relative Addressing Bit---------------0 32 Bit Wide Data Transfers Bit--------0 16 Bit Wide Data Transfers Bit--------0 Synchronous Data Transfers Bit--------0 Linked Commands Bit-------------------0 Command Queueing Bit------------------1 Soft Reset Bit------------------------0 Vendor ID-----------------------------IBM Product ID----------------------------3573-TL Product Revision Level----------------3.04 vendor1, Length 20 0123456789ABCDEF [GY000000000000..] [.... ]
0 1 2 3 4 5 6 7 8 9 A B C D E F 0000 - 4759 3030 3030 3030 3030 3030 3030 0000 0010 - 0000 0001
vendor2,
0 1 2 3 4 5 6 7 8 9 A B C D E F 0000 - 0000 0000 0000 0000 0000 0000 0000 0000 0010 - 0000 0000 0000 0000 0000 0000 0000 00
166
Device closed...
Here are some ways to create this table: Check the /proc/scsi/IBMtape file on page 167 Issue IBMtapeutil inqpage command on page 168 You should keep in mind that rebooting the server or executing the IBMtapeconfig command will refresh the list. You should also refer to 5.3, Persistent binding on page 194 to understand how the operating system assigns device special file names, and how to keep them persistent across reboots.
FO Path NA NA
167
Example 4-11 The tapeutil devids command output sample # IBMtapeutil -f /dev/IBMchanger0 devids Reading element device ids... Drive Address 256 Drive State .................... ASC/ASCQ ....................... Media Present .................. Robot Access Allowed ........... Source Element Address Valid ... Media Inverted ................. Same Bus as Medium Changer ..... SCSI Bus Address Vaild ......... Logical Unit Number Valid ...... Device ID, Length 34 0123456789ABCDEF [IBM ULT3580-] [TD4 13000010] [12 ]
0 1 2 3 4 5 6 7 8 9 A B C D E F 0000 - 4942 4D20 2020 2020 554C 5433 3538 302D 0010 - 5444 3420 2020 2020 3133 3030 3030 3130 0020 - 3132
Drive Address 257 Drive State .................... ASC/ASCQ ....................... Media Present .................. Robot Access Allowed ........... Source Element Address Valid ... Media Inverted ................. Same Bus as Medium Changer ..... SCSI Bus Address Vaild ......... Logical Unit Number Valid ...... Device ID, Length 34
0 1 2 3 4 5 6 7 8 9 A B C D E F 0000 - 4942 4D20 2020 2020 554C 5433 3538 302D 0010 - 5444 3420 2020 2020 3133 3030 3030 3039 0020 - 3739
Example 4-12 on page 169 shows that /dev/IBMtape0 is a tape drive with the serial number of 1300000979.
168
Example 4-12 Verify the device by using the IBMtapeutil inqpage command # IBMtapeutil -f /dev/IBMtape0 inqpage 80 Issuing inquiry for page 0x80... Inquiry Page 0x80, Length 14 E F 0123456789ABCDEF [....1300000979 ]
Note: All tape devices that use the IBMtape driver must be closed and cannot be in use when IBMtape is uninstalled or the uninstall fails.
169
When the data path failover is enabled, 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 (either IBMchanger0 or IBMchanger1). If an application opens IBMchanger0 and a permanent path error occurs, the device driver initiates failover error recovery automatically on the alternate path (IBMchanger1). If successful, the current operation continues on the alternate path without interrupting the application. Important: The library Control Path Failover FC1680 must be installed and enabled on the library (IBM 3582, and 3583) and FC1682 on the libraries IBM TS3200, TS3310, and TS3500 in order for the Linux IBM tape device driver to detect alternate control paths. In addition, you have to enable the control path for additional drives on the library using either the library Operator panel or the TotalStorage Specialist. For instructions on enabling the control path through these interfaces, see 3.3.3, Configuring and unconfiguring Data Path Failover on page 113.
3. Add the following line in your /etc/modules.conf file for the 2.4 kernel or /etc/modprobe.conf.local file for the 2.6 kernel file: options IBMtape alternate_pathing=1 4. Run depmod. 5. Re-load the IBMtape driver into memory:
modprobe IBMtape
You may ignore the Unresolved symbols in /lib/modules/<your kernel name>/drivers/scsi/IBMtape.o message after the depmod command. You can check if the IBMtape driver has recognized multiple control paths for your library by reading the /proc/scsi/IBMchanger file. If your library lists Primary or Alternate under the FO Path, as in Example 4-14 on page 171, then you have successfully enabled the control path failover feature for your library. If NA is listed under the FO Path, then the control path failover is not enabled. When IBMtape is loaded into kernel memory, the first logical medium changer device that IBMtape sees in the system will be the primary path for that medium changer. The other logical medium changers that IBMtape attached for the same medium changer will be configured as alternate paths. The device driver supports up to 16 physical paths for a single device.
170
Example 4-14 An example of the /proc/scsi/IBMchanger file [root@saab root]# cat /proc/scsi/IBMchanger IBMtape version: 1.4.11 IBMtape major number: 253 Attached Changer Devices: Number Model SN HBA 0 ULT3583-TL IBM1234567 QLogic Fibre Channel 2200 1 ULT3583-TL IBM1234567 QLogic Fibre Channel 2300 2 ULT3583-TL IBM1234567 QLogic Fibre Channel 2300
Alternatively, you can display the primary and alternate path configuration for any device by running the following command:
IBMtapeutil -f /dev/IBMchangerx path
IBMchangerx is the logical name of any device. After the alternate pathing support is enabled, it remains set until the IBMtape driver is reloaded with the alternate_pathing driver parameter set to OFF. The alternate pathing setting is retained even if the system is rebooted. If you want to turn off the control path failover feature in the IBMtape device driver, execute the following steps: 1. Run IBMtaped stop. 2. Run rmmod IBMtape. 3. Delete the following line in your /etc/modules.conf file:
options IBMtape alternate_pathing=1
The number will be the number of the path you want to enable.
171
172
3. Add the following line to your /etc/modules.conf file for the 2.4 kernel or /etc/modprobe.conf.local file for the 2.6 kernel file:
options IBMtape alternate_pathing=1 dpf_keys="abcdefghijklmnop"
where abckdefghijklmnop is an example of a data path failover feature key. If you have multiple libraries and multiple data path failover feature keys, input your keys as follows:
dpf_keys="key1;key2;..."
Note that no feature key is required for 3592 drives. 4. Run depmod. 5. Re-load the IBMtape driver into memory:
modprobe IBMtape
You may ignore the Unresolved symbols in /lib/modules/<your kernel name>/drivers/scsi/IBMtape.o message after the depmod command. 7. You can check if the IBMtape driver has recognized multiple data paths for your library by reading the /proc/scsi/IBMtape file. If your library lists Primary or Alternate under the FO Path, as shown in Example 4-15, then you have successfully enabled the data path failover feature for your library. If NA is listed under the FO Path, then the data path failover feature is not enabled.
Example 4-15 An example of the /proc/scsi/IBMtape file IBMtape version: 1.5.3 IBMtape major number: 253 Attached Tape Devices: Number Model SN 0 ULT3583-TL IBM1234567 1 ULT3583-TL IBM1234567 2 ULT3583-TL IBM1234567
HBA QLogic Fibre Channel 2200 QLogic Fibre Channel 2300 QLogic Fibre Channel 2300
Alternatively, you can display the primary and alternate path configuration for any device by running the following command:
IBMtapeutil -f /dev/IBMtapex path
173
After the alternate pathing support is enabled, it remains set until the IBMtape driver is reloaded with the alternate_pathing driver parameter set to OFF. The alternate pathing setting is retained even if the system is rebooted. If you want to turn off the data path failover feature in the IBMtape device driver, execute the following steps: 1. Run IBMtaped stop. 2. Run rmmod IBMtape. 3. Delete the following line in your /etc/modules.conf file:
options IBMtape alternate_pathing=1
The number will be the number of the path you want to enable.
174
Check carefully for the correct driver version related to the Linux and kernel version. The driver for the QLogic card comes as a source code tgz-archive. Download and unpack the .tgz file and follow the instructions in the Readme.qla2x00 for installation steps. As always, it is a good idea to review all kernel settings and to keep a backup kernel that allows the machine to be rebooted in case anything goes wrong with the new kernel. If the new kernel boots successfully, the boot messages should look similar to the output in Example 4-16.
Example 4-16 Boot messages from the QLA2300 adapter caddi:~ # dmesg (...) SCSI subsystem initialized QLogic Fibre Channel HBA Driver (f918ba20) ACPI: PCI interrupt 0000:01:02.0[A] -> GSI 18 (level, low) -> IRQ 18 qla2300 0000:01:02.0: Found an ISP2312, irq 18, iobase 0xf90f6000 qla2300 0000:01:02.0: Configuring PCI space... qla2300 0000:01:02.0: Configure NVRAM parameters... qla2300 0000:01:02.0: Verifying loaded RISC code... qla2300 0000:01:02.0: LIP reset occurred (f7f7). qla2300 0000:01:02.0: Waiting for LIP to complete... qla2300 0000:01:02.0: LOOP UP detected (2 Gbps). qla2300 0000:01:02.0: Topology - (F_Port), Host Loop address 0xffff scsi0 : qla2xxx qla2300 0000:01:02.0: QLogic Fibre Channel HBA Driver: 8.00.00 QLogic QLA2340 - 133MHz PCI-X to 2Gb FC, Single Channel ISP2312: PCI-X (100 MHz) @ 0000:01:02.0 hdma-, host#=0, fw=3.03.01 IPX Vendor: IBM Model: ULTRIUM-TD3 Rev: 54KC Type: Sequential-Access ANSI SCSI revision: 03 qla2300 0000:01:02.0: scsi(0:0:0:0): Enabled tagged queuing, queue depth 32. Vendor: IBM Model: 03584L32 Rev: 465u Type: Medium Changer ANSI SCSI revision: 03 qla2300 0000:01:02.0: scsi(0:0:0:1): Enabled tagged queuing, queue depth 32. Vendor: IBM Model: ULTRIUM-TD3 Rev: 54KC Type: Sequential-Access ANSI SCSI revision: 03 qla2300 0000:01:02.0: scsi(0:0:1:0): Enabled tagged queuing, queue depth 32. Vendor: IBM Model: ULTRIUM-TD3 Rev: 54KC Type: Sequential-Access ANSI SCSI revision: 03 qla2300 0000:01:02.0: scsi(0:0:2:0): Enabled tagged queuing, queue depth 32. Attached scsi tape st0 at scsi0, channel 0, id 0, lun 0 st0: try direct i/o: yes (alignment 512 B), max page reachable by HBA 1048575 Attached scsi tape st1 at scsi0, channel 0, id 1, lun 0 st1: try direct i/o: yes (alignment 512 B), max page reachable by HBA 1048575 Attached scsi tape st2 at scsi0, channel 0, id 2, lun 0 st2: try direct i/o: yes (alignment 512 B), max page reachable by HBA 1048575 Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 1 Attached scsi generic sg1 at scsi0, channel 0, id 0, lun 1, type 8 Attached scsi generic sg2 at scsi0, channel 0, id 1, lun 0, type 1 Attached scsi generic sg3 at scsi0, channel 0, id 2, lun 0, type 1 (...)
175
All the devices found at the Fibre Channel are made available through a generic device entry (sgx). In Example 4-17, we can see how the sg_scan command displays the devices that are available.
Example 4-17 Showing all devices accessible through the FC HBA caddi:~ # /dev/sg0: IBM /dev/sg1: IBM /dev/sg2: IBM /dev/sg3: IBM sg_scan -i scsi0 channel=0 ULTRIUM-TD3 scsi0 channel=0 03584L32 scsi0 channel=0 ULTRIUM-TD3 scsi0 channel=0 ULTRIUM-TD3 id=0 lun=0 54KC id=0 lun=1 465u id=1 lun=0 54KC id=2 lun=0 54KC
[rmb=1 cmdq=1 pqual=0 pdev=0x1] [rmb=1 cmdq=1 pqual=0 pdev=0x8] [rmb=1 cmdq=1 pqual=0 pdev=0x1] [rmb=1 cmdq=1 pqual=0 pdev=0x1]
If more than one HBA is installed, there are three possibilities for handling the duplicate devices generated by multiple HBAs: Configure only one device representation in the backup application. The other representations can be used for a manual failover solution if the backup application provides an easy way to update the device definitions. Hide the remaining appearances through Switch Zoning on the FC switch. Assign a specific device to a specific host adapter through persistent binding. Refer to 5.3, Persistent binding on page 194 for more details. While the first two alternatives are always possible, the third possibility depends on the capabilities of the FC device driver. Persistent binding is a function of the adapter and adapter device driver. Please check with the adapter vendor for support.
176
S AN IB M 2109 FC S w itch
LTO 3584
The Fibre Channel topology supported for the System z models is fabric only. Neither point-to-point connection nor arbitrated loops are supported by the current System z Fibre Channel Protocol. Please see the IBM Redpaper Getting Started with zSeries Fibre Channel Protocol, REDP-0205, for more details on the supported configurations for Fibre Channel device attachment on System z models. This document can be downloaded from this Web site:
http://www.redbooks.ibm.com/redpapers/pdfs/redp0205.pdf
The Linux Fibre Channel adapter device driver zfcp is available in the kernel that supports the System z Fibre Channel Protocol. The zfcp device configuration methods in 2.6 and 2.4 kernels are different. For 2.6 kernels, see Chapter 5, SCSI-over-Fibre Channel device driver, in Linux for zSeries and S/390: Device Drivers, Features, and Command, November 30, 2004, LNUX-1403, found at:
http://awlinux1.alphaworks.ibm.com/developerworks/linux390/docu/lx26apr04dd03.pdf
For 2.4 kernels, there are three ways to load the zfcp device driver in order to see the attached tape devices: Create an /etc/zfcp.conf file and make a ramdisk to statically attach tape devices to your system. You may use this method only if you have a persistent mapping in a SAN environment. Every time you reboot the system, the zfcp will be automatically loaded and the tape devices can be seen from the system. Modify the /etc/modules.conf file to add the zfcp module parameters, and then run the depmod -A and modprobe zfcp commands. Please do not use this choice together with option 1, or it will cause conflicts. The zfcp map in /etc/modules.conf always takes higher priority than the map in /etc/zfcp.conf. 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. These three options are described further in the following sections.
177
The zfcp device driver uses the map module parameter to recognize a physically attached tape device. The map takes the following format:
map="<devno><port scsi-id>:<wwpn><unit-scsi-lun>:<fcp-lun>;
Where: devno: The device number of the HBA (16 bits, see /proc/subchannels). It is 0xf1c0 or 0xf1c1 in the above example. port scsi-id: The Linux internal SCSI ID assigned to the Fibre Channel port of the SCSI target device (32-bit, must not be 0, and must be a unique one-to-one mapping for each World Wide Port Name). It is 0x1 in the above example. wwpn: The World Wide Port Name that identifies the Fibre Channel port of the SCSI target device (64-bit). It is 0x5005076300402733 in the above example. unit scsi-lun: The Linux internal SCSI Logical Unit Number (32-bit). It is 0x0 in the above example. fcp-lun: The Logical Unit Number associated with the SCSI target device (64-bit). In the above example, 0x0000000000000000 is the Logical Unit Number 0, and 0x0001000000000000 is the Logical Unit Number 1. We recommend, for tape attachment, that each LUN be associated with a unique devno. If you use the same devno numbers for several logical units, you should ensure that each <unit-scsi-lun> is unique. After /etc/zfcp.conf is created, run the following commands:
>mk_initrd >zipl
Reboot the system. After it is booted up, your tape device should be shown in the /proc/scsi/scsi file.
The map arguments are the same as the ones listed for the /etc/zfcp.conf file. After modifying /etc/modules.conf, save and close it. Then run the following commands:
>depmod -A >modprobe zfcp
This will install the zfcp device driver and all of its prerequisite kernel modules.
178
Now you can check the /proc/scsi/scsi file 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, and so on. Then run the following commands to install zfcp:
>rmmod zfcp >modprobe zfcp
The scsi add-single-device command takes four parameters, corresponding to the four parameters scsi, channel, id, and lun in the /proc/scsi/scsi file. The value of scsi is 0 for the first devno, 1 for the second devno (if it is different from the first devno), and so on. The value of channel can start from 0 for each different SCSI value. The value of id is the one you use for <unit scsi-lun> in the above mapping. The value of lun is the LUN of the target device, for example, the last number in the above mapping. Currently, the zfcp device driver does not support dynamically removing the attached devices. If you need to remove the tape devices from the system, run rmmod zfcp. Then you can delete the entry in /etc/modules.conf and reload zfcp, or reload zfcp first and dynamically add the devices you want. After you have done all the mapping, if you can see all of the attached tape devices in /proc/scsi/scsi, you have successfully attached those devices to your system. Refer to 4.3.1, Installing the IBM tape device driver and utilities on page 161 for details on installing the IBM Tape Device Drivers.
179
180
Chapter 5.
SAN considerations
In this chapter, we discuss considerations for SAN attached tapes and libraries. We emphasize issues generally relevant to SAN tape attachment, including: Design considerations for SAN attached tape libraries Switch fabric zoning Persistent binding We also provide additional information about SAN setup for the IBM TotalStorage 3583 Tape Library and IBM TotalStorage 3584 Tape Library where necessary. We assume the reader is already familiar with basic SAN concepts. For more information about general SAN concepts and design, please refer to these IBM Redbooks publications: Designing an IBM Storage Area Network, SG24-5758 IBM System Storage: Implementing an IBM SAN, SG24-6116 IBM SAN Survival Guide, SG24-6143 Introduction to Storage Area Networks, SG24-5470 Designing and Optimizing an IBM Storage Area Network, SG24-6419 IBM Tape Solutions for Storage Area Networks and FICON, SG24-5474-03
Copyright IBM Corp. 2002, 2003, 2004, 2005, 2007. All rights reserved.
181
182
Overloaded ISLs or HBAs may cause problems, like job aborts, timeouts, tape drives not responding, and bad performance. Therefore, it is essential to provide enough bandwidth for tape operations. You can enlarge your bandwidth if you install additional HBAs and increase the number of ISLs. Table 5-1 provides a rule of thumb for how many tape drives per HBA and ISL could run concurrently. Figure 5-1 shows a typical SAN layout with ISL between the servers and tapes.
Table 5-1 How many tape drives can run concurrently on HBA or ISL Drives per HBA / ISL TS1120 IBM LTO Gen4 IBM LTO Gen4 per Drive 104 MB/s 120 MB/s 80 MB/s 4 Gb 1-2 1-2 1-2-3 2 Gb 1 1 1-2
183
Most SAN fabric hardware provides the ability to measure the real data transfer rate achieved on the SAN. For example, if you have an IBM SAN Fibre Channel Switch, you can use the Fibre Channel Switch Specialist to measure data throughput. Enter the IP address of one of the IBM SAN Fibre Channel switches in the browser window, and select the switch to which your HBA is attached (Figure 5-2) to bring up the Switch Management View.
You can also use the command-line interface on the IBM 2109 switches. Use the portperfshow command to show the data transfer rate on the switch.
184
IBM TS3500
Intel Server
Fibre Channel Aapter
2109 FC Switches
The IBM Ultrium drivers have been installed. Boot the server to detect the new devices. To display the devices, select Start Settings Control Panel System Hardware Device Manager. In Figure 5-4, you can see that the medium changer and two tape drives have been detected twice, once on each HBA in the server, giving a total of four tape drives and two SCSI Medium Changers. This gives the impression there are more devices available than are actually physically present.
To solve this problem: You can enable zoning, which allows one HBA to see only certain tape drives. You can use persistent binding for the HBAs to see only certain WWN. You can use the alternate path function within the IBM tape device driver.
185
The different options are described in: 5.2, Zoning on page 190 5.3, Persistent binding on page 194 3.3, Path failover on page 107 4.3.4, Setting up control path failover on Linux on page 169
186
160 M Bps
SAN
80 M Bps 80 M Bps
LT O 3 80 M Bps
Figure 5-5 Tape and disk on the same HBA
As long as there is no other disk I/O activity during the backup operation, it may work without problems. But, if during the backup, other applications are running that also access the disk, performance will be impacted. Because disk access uses smaller blocksize and is quicker and more frequent, the disk I/O will occupy the FC link and cause the tape to wait to get on the link, causing backhitches and thus affecting performance. Or even worse, the disk I/O will keep the command queue filled up so that no tape command can go through. For a backup server where a high I/O load exists and for LAN-free clients, where during the backup some other disk I/O occurs, you should use multiple HBAs and separate the disk and tape I/O (see Figure 5-6 on page 188). This is especially true for backup servers using a disk storage pool (for example, with Tivoli Storage Manager) where the backup data is staged to disk and then migrated to tape. If the backup and migration run simultaneously, it will cause a high I/O load. Keep in mind that your environment will evolve over time (usually the data traffic will increase). Although it might have been justified (generally from a cost perspective) in a simple installation with low traffic to share the HBA, you must reevaluate the situation on a regular basis. In most cases, you will reach a point where it becomes necessary to install additional HBAs. Note: Monitor your environment over time, and when traffic grows, consider the installation of additional HBAs.
187
Backup Server
Tape&Disk IO
Tape IO
SAN
SAN
If you cannot avoid combining disk and tape I/O (for example, no more PCI slots are available on the host), you should at least implement your SAN in accordance with the following rules and configure your FC HBAs accordingly: Create different zones for disk and tape. Create a different zone for every server. Enable FCP-2 recovery (also called FC Tape Support) on the FC HBA. Set up persistent binding (as described in 5.3, Persistent binding on page 194). Disable SCSI Bus Reset to tape devices, if possible. Enable PLOGI instead of PDISC after LIP. Design your SAN for high bandwidth, as high bandwidth is needed for tape I/O. Do not overload the HBA. Provide enough HBAs, as described in 5.1.1, What bandwidth do we need for FC tape on page 182. Pay attention to the PCI bus performance (see PCI bus performance on page 189). Provide enough bandwidth between the switches (ISLs), and consider enabling trunking for the ISL (see also 5.1.1, What bandwidth do we need for FC tape on page 182). Most SANs are designed for disk I/O (high IOPS) rather than high bandwidth (for example, tape), which means there may not be enough ISLs for high bandwidth. As discussed in 5.1.1, What bandwidth do we need for FC tape on page 182, you need at least one ISL for every three to four tape drives. If you have more than one ISL between two switches, you should also consider enabling trunking. This is because there is no load balancing on the basis of real I/O over several ISLs as long there is no trunking enabled.
188
Many switches (for example, IBM 2109 and IBM 2005) have DLS (dynamic load balancing on the basis of the routing table) disabled, which means that load balancing is done during startup of the switch only; you should check periodically if all ISLs are working. After installing an additional ISL, you should run the dynamic load balancing at least once by setting dlsset. When done, remember to disable it again, as recommended by IBM. Another potential issue is the device driver level. IBM attempts to be on the same supported FC HBA device driver levels for tape and disk, but it is possible that because of a temporary issue, a given tape device will require a different device driver level than disk or vice-versa. For all of these reasons, our general recommendation is that, wherever possible, a single HBA should not be shared for concurrent disk and tape operation. IBM will support mixing disk and tape on an HBA, and the IBM Support Center will accept problems reported on these configurations. However, if the problem determination process reveals that the cause is the mixing of tape and disk traffic, IBM may choose to tell the client that the only fix is to separate the traffic. Important: We does not recommend sharing of disk and tape I/O on the same HBA.
189
5.2 Zoning
Zoning allows you to partition your SAN into logical groupings of devices so that each group is isolated from each other and can only access the devices in their own group. Using zoning, you can arrange fabric-connected devices into logical groups, or zones, over the physical configuration of the fabric. Zones can be configured dynamically. They can vary in size depending on the number of fabric connected devices, and devices can belong to more than one zone. Because zone members can access only other members of the same zone, a device not included in a zone is not available to members of that zone. Therefore, you can use zones to: Create closed user groups, for example, between test and development environments. Create a barrier between different environments, such as Windows and UNIX operating systems. Secure fabric areas. Figure 5-7 on page 191 shows two slightly overlapping zones, represented by the solid lines and the dotted lines.
190
UNIX
Windows 2000
Zone green
Zone red
IBM tape device driver for AIX, Windows, Linux, HP-UX, and Sun Solaris supports multiple paths to the same tape. It provides automatic control path and automatic data path failover to preconfigured redundant paths in the event of a loss of an HBA, drive, or control path, without aborting the current jobs in progress. Other drivers do not support these features. Servers using other drivers can also use multiple HBAs and multiple connections to the SAN fabric, but there is no automatic failover to an individual tape device. What generally occurs is that the physical device is represented twice by the operating system. To solve this, we must hide the additional paths to the library and tapes using zoning, persistent binding, or software.
191
Figure 5-8 shows how we can set up a zone to eliminate dual pathing so that there is only one connection from the host to the tape devices. The physical FC connections enclosed in the circled zone could be zoned by WWN or a physical port connection on the FC switch creating a single path between host and tape drive.
Host
FC
FC
Host
FC
FC
2108 SDG
SCSI
Disk System
In the next example (shown in Figure 5-9), there are multiple tape drives and HBAs. You might use zones as shown so that the drives are split between the HBAs for performance or security reasons. Without zoning or other configurations, you would see the same dual pathing issue, as mentioned in 5.1.2, Multiple paths to tape drives on page 184.
Server
Fibre Channel Aapter
Zone B
Zone A
Figure 5-9 IBM TS3500 with 8 FC LTO Drives, 1 server with 2 HBA, 2 zones
You may also manage this scenario by using persistent binding, as described in 5.3, Persistent binding on page 194.
192
Hardware zoning
Hardware zoning is based on the physical fabric port number. It can be implemented in the following configurations: One-to-one One-to-many Many-to-many
Disadvantage
The zoning configuration can become unusable if the device is connected to a different port, since hardware zoning relies on each device being connected to a specific port.
Advantage
Hardware zoning works independently of influence from other sources, such as HBA firmware. The switch hardware ensures that there is no data transfer between unauthorized zone members. However, devices can transfer data between ports within the same zone. Consequently, hard zoning provides the greatest security possible. Use it where security must be rigidly enforced. Hardware zoning also has a very low impact on the routing performance. If you use hardware zoning, you must carefully document and update your SAN fabric. Careful documentation is always a necessary task for managing a SAN.
Software zoning
Software zoning is implemented within the Simple Name Server (SNS) running inside the fabric switch. In a soft zone, at least one zone member is specified by WWN, which is a globally unique 8-byte number. When a device logs in, it queries the name server for devices within the fabric. If zoning is in effect, only the devices in the same zone(s) are returned. Other devices are hidden from the name server query reply.
193
The members of a zone can be defined with: Node WWN (WWNN) Port WWN (WWPN)
Advantage
Software zoning is not affected by moving devices to different physical switch ports. If you use WWNs for the zone members, even if a device is connected to another physical port, it will still remain in the same zoning definition because the devices WWN remains the same.
Disadvantage
Each component of the SAN fabric must support soft zoning. The switch does not control data transfer, so there is no guarantee against data transfer from unauthorized zone members. You can intermix hardware and software zoning.
194
Note: The default Microsoft Windows naming scheme for tape devices means that dynamic and device names change as devices are added and removed. It assigns device names in the form \\.\Tapex, where x is a number. In this naming scheme, tape devices are given names starting with the tape device with the lowest SCSI address first and then numbered in ascending order starting from zero. The disadvantage of this is that regardless of persistent binding, the name assigned to a physical device can easily change if new devices are added with lower SCSI addresses. Windows will name the new devices starting from \\.\Tape0 and the names assigned to existing devices will change. Correspondingly, if devices fail or are removed from the fabric, existing \\.\Tapex device names can change.
Server Name Server query FCP Name Server WWN Drive Public loop Switch FC-AL N-Port Login
WWN Drive
Figure 5-10 N-Port login
195
Per SNIA specification, IBM LTO3 and LTO4 drives attempt first to negotiate as a Loop device. If unsuccessful, then the drive attempts to log in as a fabric device. If you want the LTO3 or LTO4 drive to log in always as a fabric device, then you need to change the settings on your switch so that FC-AL login is disallowed. Here is an example, for an IBM 2109 or 2005 switch, of how to change the settings so that the switch only allows FCP devices: 1. Telnet to the switch. 2. Display Port Config:
portcfgshow nn
For other switches, refer to your vendor documentation. You can change the port settings for IBM tape drives using the IBM TS3100, TS3200, TS3310, TS3400, and TS3500 console or Web interface. Refer to Appendix A, Recommended HBA settings for LTO drives and libraries on page 267 for further details about HBA settings.
196
Part 2
Part
Copyright IBM Corp. 2002, 2003, 2004, 2005, 2007. All rights reserved.
197
198
Chapter 6.
Copyright IBM Corp. 2002, 2003, 2004, 2005, 2007. All rights reserved.
199
IBM*
AIX AS/400*** HEWLETTLinux zSeries DIGITAL PACKARD OpenEdition MVS Tru64 FUJITSU*** HP-UX zOS MICROSOFT Windows XP Windows 2000 Windows 2003
NAS NDMP
APPLE Macintosh
Supported Networks APPC IPX/SPX Named Pipes Shared Memory TCP/IP 3270 Emulation
VM Linux OS/400 zOS AIX Solaris HP-UX Windows W2K /2003
NOVELL NETWARE
mySAP
SYBASE WebSphere SILICON Application SUN Solaris GRAPHICS Server IRIX SunOS
IBM ESS
IBM Tivoli Storage Manager for Mail Lotus Notes on AIX Lotus Notes on Windows Domino on AIX Domino on Windows Microsoft Exchange Server IBM Tivoli Storage Manager for Databases Microsoft SQL Server Oracle Backup on AIX Oracle Backup on HP-UX Oracle Backup on Sun Solaris Informix IBM DB2 (included in DB2)
IBM Tivoli Storage Manager for Hardware IBM Tivoli Storage Manager for ERP Data Protection for mySAP on DB2 and Oracle IBM Tivoli Storage Manager for Data Retention IBM Tivoli Storage Manager for Hardware IBM ESS IBM Tivoli Storage Manager for Application Servers Data Protection for Websphere Application Server
Disk Optical
Tape
Storage Hierarchy
IBM Tivoli Storage Manager allows users to confidently protect and manage information; it integrates unattended network backup and archive capabilities with centralized storage management and powerful disaster recovery functions. IBM Tivoli Storage Manager is intended for companies with homogeneous or heterogeneous platforms and complex environments that include both traditional LANs as well as SANs. It is a best-of-breed, scalable storage management solution that helps provide consistent and reliable protection and management of mission-critical data that is spread across your company's enterprise. It protects a broad range of data across the enterprise from the mobile computer to the data
200
center. IBM Tivoli Storage Manager is an industrial-strength centralized storage management product for your enterprise. IBM Tivoli Storage Manager can protect almost any backup-archive client, as shown in Figure 6-1 on page 200. IBM Tivoli Storage Manager server is provided for z/OS, Windows 2000/2003, AIX, Solaris, HP-UX, Linux, and OS/400. This breadth of platform coverage affords you the choice in selecting the storage management platform that suits your environment and leverages your hardware and software investments. IBM Tivoli Storage Manager can help control the cost of distributed storage management by leveraging storage resources, helping to reduce the cost of downtime and lost data, and helping to increase the productivity of storage administrators and users. IBM Tivoli Storage Manager exploits the numerous advantages of SANs with its LAN-free, server-free, and library sharing functions. These help to remove traffic from the LAN, allow for multiple IBM Tivoli Storage Manger servers to share a library, and off-load backup processing from mission-critical servers. IBM Tivoli Storage Manager includes LAN-free backup/restore functionality for many databases and applications, as well as the file-based backup/archive clients. For more information about IBM Tivoli Storage Manager, visit:
http://www-306.ibm.com/software/tivoli/products/storage-mgr/
For the list of currently available storage management products and supported servers and clients, see:
http://www-306.ibm.com/software/tivoli/products/storage-mgr/product-links.html
201
Tape library partitioning Some tape libraries (for example, IBM TS3200, TS3310, and TS3500) have the ability to be physically partitioned into multiple logical libraries. Each logical library will have its own storage slots and tape devices, but will share the robotics and import/export station with other logical libraries in the same physical library. Each library partition can be managed by a backup application (such as IBM Tivoli Storage Manager). Tape library sharing Tape library sharing is two or more servers sharing the robotics of a tape library. The tape drives and slots within the library may or may not be shared among the attached servers.
LAN
clients
Read Data
Mount a tape
FC
FC
SCSI I/O
ITSM server
Library manager select drive mount, dismount volumes release, query volumes
SCSI I/O
Tape Lib
Figure 6-2 IBM Tivoli Storage Manager library sharing overview
Library Manager
The Library Manager physically controls the library. All the communication with the library is done by this server. The Library Manager also serializes access to the tape drives, so that only one server is using a tape drive at the same time. The check-in and check-out of volumes will be performed by the Library Manager.
202
This IBM Tivoli Storage Manager server is the only server with a library inventory table for that library. The ownership is added to the inventory table to keep track of which tape belongs to a certain library client. This is the only server in the environment that knows all the volumes. The Library Manager can also use the library for its own purposes, without being a library client at the same time (no library client configuration is necessary on the manager).
Library client
The library client uses server-to-server communications to contact the Library Manager for the handling of the physical hardware. The client sends the requests to the Library Manager, and, afterwards, reads or writes to the tape drive it was given access to. Server-to-server communication protocol is used to send requests from the library client to the Library Manager, and to send the response from the manager to the client.
203
1
ITSM Client Storage Agent
Meta data
LAN
3
ITSM server
2
Read Data
3 Write Data
SAN
204
Installation summary
When installing IBM Tivoli Storage Manager, the default configuration sets up a disk storage pool for storing backup data. Before you can begin using a tape device as a backup destination, you must do the following: 1. Disable RSM (using the procedure in Disabling RSM on page 126). 2. Attach the devices to your system. 3. Install the IBM LTO Ultrium device drivers for the Windows system you are using (as described in 3.2.1, Installing the medium changer and tape device driver on page 105). 4. Install the Tivoli Storage Manager server software. 5. Initialize the server. 6. Define the library. 7. Define the library path. 8. Define the drives in the library. 9. Define the drive paths. 10.Define a device class using the library. 11.Define a storage pool associated with the device class. 12.Include the storage pool in the storage hierarchy. 13.Label the tape library media. After completing step 3, follow the instructions in IBM Tivoli Storage Manager for Windows Installation Guide (for your version of Tivoli Storage Manager) to install Tivoli Storage Manager (step 4). We installed the Tivoli Storage Manager server first (using the Custom option with the default features), then the Tivoli Storage Manager device driver (tsmscsi). Before installing, you should always check that you have the latest code fixes. Refer to the following Web site for Tivoli product requirements, supported devices, and code levels:
http://www-306.ibm.com/software/sysmgmt/products/support/IBMTivoliStorageManager.html
To perform the subsequent tasks, you can use any one of the following interfaces: Tivoli Storage Manager configuration wizard Administrative client command line Web administration interface We will continue the configuration (step 5) by initializing the server using the IBM Tivoli Storage Manager configuration wizard. The other configuration tasks will be shown using the configuration wizards and the administrative command line. The command-line interface is the same across all present IBM Tivoli Storage Manager versions. For the Web-based administrator interface, refer to the Tivoli Storage Manager manuals and IBM Redbooks publications for details for using the Administrative Console interface.
205
If you want to use the CLI (dsmadmc) to configure your server, you must install the client code on the IBM Tivoli Storage Manager server using a Custom installation, during which you may opt to install the administrative command line. If you are new to the product, we suggest that you run through the wizard configuration first to quickly get the server up and running. The server parameters may be reconfigured later using the Web browser interface or the command line. We will here specifically show how to get the IBM Tivoli Storage Manager server up and running with the IBM tape library and drives only. You can start the configuration wizard by clicking the Tivoli Storage Manager Management Console icon on the desktop, or by selecting Start Programs Tivoli Storage Manager Management Console. Note that the Management Console is an application for the Microsoft Management Console (MMC). If the Initial Configuration Task Window (Figure 6-5 on page 207) does not appear automatically, click Tivoli Storage Manager and scroll down to the entry that matches the server just installed. In this instance, this is server LILO. Right-click the server name and select Add a new Tivoli Storage Manager Server, as shown in Figure 6-4.
This will begin the Initial Configuration Task List (Figure 6-5 on page 207). In the list window, click Start and the wizard will commence. Note that the wizard will perform all of the listed tasks in succession. You may, however, choose the Minimal configuration, or cancel out of the wizard at any stage to configure the server later. We will show you how to configure IBM tape devices using the wizard configuration, and using the command line.
206
207
As shown in Figure 6-7, the Properties window lists the devices using the alias names as Tivoli Storage Manager would normally see them. The window should look somewhat similar to the one below; you should have all of your IBM tape devices on the right side, meaning that Tivoli Storage Manager will not claim those devices.
6.2.2 Defining the library and drives using the Configuration Wizard
You should have already installed the tape drives and library using the IBM Ultrium device drivers for Windows 2003, according to Chapter 3, Basic IBM tape setup for Windows on page 101. The Device Configuration Wizard will start automatically if we run through the Tivoli Storage Manager configuration wizard from the beginning, as detailed in Initialize the server on page 205. Alternatively, you may run it at any time if you have not already done so by accessing the Tivoli Storage Manager Management Console from the desktop. Click Wizards and then Device Configuration. Note that the server must have been initialized for use before performing this step. The Device Configuration Wizard will commence, as in Figure 6-8 on page 209. Click Next.
208
Note For Windows 2000 only: If the IBM Tivoli Storage Manager Device Driver is not running, you will be prompted to start it (Figure 6-9 on page 209). Answer No, since we use IBM tape driver to control both the library medium changer and the tape drives.
Note: As of IBM Tivoli Storage Manager, the IBM Tivoli Storage Manager Device Driver is no longer used to control the IBM tape library medium changer. Use the IBM Ultrium Device Driver for both medium changer and drive.
Figure 6-9 IBM Tivoli Storage Manager Device Driver start prompt
The wizard will detect the IBM tape library and drives attached to the system, as shown in Figure 6-10 on page 210. The device name, type, and location are listed in the left panel. The device name will be listed as: lbx.x.x.x: Library mtx.x.x.x: Tape device The Xs represent the SCSI ID, LUN, bus, and port numbers, respectively. For example, a device listed as lb2.1.0.2 corresponds to a library at SCSI ID 2, LUN1, bus0, and port2.
209
The element address and serial number will appear on the Detailed tab. When configuring multiple tape drives in a library, you can determine which entry corresponds to which physical tape drive. You may want to reorder them so they match the order of the physical installation. For some cases, the element address and serial number may not appear here; in this case, check the device information using the procedures described in 3.4.1, Creating a library device table on page 122 (Windows) or 4.3.2, Creating a library device table on page 167 (Linux). Check the devices you want to define to Tivoli Storage Manager and click Next (Figure 6-11).
210
You will be asked to select the format type of the device, as shown in Figure 6-12. Choose the Ultrium generation (or TS1120) that is appropriate for the drives in your library. You would, in most cases, select a format with compression for performance reasons. Refer to 6.2.5, Defining the device class using the command line on page 214 for more details on format types.
Select LTO Tape libraries, and scroll to the IBM tape libraries. Click either IBM Tape Libraries to obtain the element addresses. It is worth noting that different element addresses are provided for devices controlled by RSM on behalf of Tivoli Storage Manager and for Tivoli Storage Manager controlled devices. We recommend disabling RSM and having Tivoli Storage Manager control the devices. For example, Figure 6-13 shows the SCSI Element address for drives of the IBM TS3200, and Figure 6-14 on page 212 shows the SCSI Element address for drives of the IBM TS3500. As you may see in the Web page, if you are using Windows RSM, this will remap the element numbers to start with 0. Since we recommend turning off RSM, these are the relevant element numbers.
Figure 6-13 SCSI Element number of tape drives in the IBM TS3200
211
Figure 6-14 SCSI Element number of tape drives in the IBM TS3500
Note that the SCSI Element addresses for the TS3500 (Figure 6-14) are only true if the TS3500 library has been configured without ALMS.
6.2.3 Defining the library and drives using the command line
Manually defining the library using the command line or Administrative interface allows greater control over the options associated with this action. Use the device names as seen in the Tivoli Storage Manager Management Console (Figure 6-15 on page 213) for defining the devices to the Tivoli Storage Manager server.
212
First, define the library and library path using the following commands. When there are multiple choices, the default setting is listed last.
DEFINE LIBRARY library_name LIBTYPE=SCSI DEFINE PATH server_name library_name SRCTYPE=SERVER DESTTYPE=LIBRARY DEVICE=dev_name
For server_name, specify the name you have set for your server with the SET SERVERNAME command This can be checked by issuing the QUERY STATUS command. In our case, we used the name homer2k3_server1. For dev_name, enter the full device name of library, such as lb.0.1.0.2.
DEFINE PATH homer2k3_server1 libts3400 SRCTYPE=SERVER DESTTYPE=LIBRARY DEVICE=lb0.1.0.2
Next, define each of the librarys drives and drives paths with:
DEFINE DRIVE library_name drive_name DEFINE PATH server_name drive_name SRCTYPE=SERVER DESTTYPE=DRIVE LIBRARY=library_name DEVICE=dev_name
For library_name, enter the name of your already defined library (libts3400 in our example). Use the operating system device name of the tape drive being defined for dev_name. Enter the full device name for dev_name, such as mt2.0.0.2. The element number will then be automatically detected by IBM Tivoli Storage Manager when the path to the drive is defined. Keep in mind that your drives are not necessarily configured by the operating system in the same order as they are installed physically in the library, as described in 5.3, Persistent binding on page 194. Therefore, check carefully that the element address maps with your drive configuration. We configured our drives in the IBM TS3400 with:
DEFINE DRIVE libts3400 drive01 DEFINE DRIVE libts3400 drive02 DEFINE PATH homer2k3_server1 drive01 SRCTYPE=SERVER DESTTYPE=DRIVE LIBRARY=libts3400 DEVICE=mt0.0.0.2 DEFINE PATH homer2k3_server1 drive02 SRCTYPE=SERVER DESTTYPE=DRIVE LIBRARY=libts3400 DEVICE=mt1.0.0.2
Tip: Before defining the drives and libraries, make sure that your library is online and your drives are available. Also, there should not be a cartridge loaded in the drive being defined.
213
Continue the implementation in 6.2.5, Defining the device class using the command line on page 214.
The library_name will match the name of the library you previously defined. The FORMAT parameter has the following valid options for LTO: drive The server selects the highest format that can be supported by the drive on which a volume is mounted. This value will use the settings on the tape drive characteristics (device driver) for hardware compression. This is the default. ultrium3 This specifies that IBM Tivoli Storage Manager writes data using the ULTRIUM3 recording format. This format results in a cartridge capacity of 400 GB when using a Ultrium3 400 GB data cartridge. This value overrides the settings on the tape drive characteristics for hardware compression. ultrium3c This specifies that IBM Tivoli Storage Manager writes data using the ULTRIUM3 recording format with compression. This format results in a cartridge capacity of approximately 800 GB when using a Ultrium3 400 GB data cartridge. This value overrides the settings on the tape drive characteristics for hardware compression. ultrium4 Specifies that IBM Tivoli Storage Manager writes data using the ULTRIUM4 recording format. This format results in a cartridge capacity of 800 GB when using Ultrium4 800 GB data cartridges. This value overrides the settings on the tape drive characteristics for hardware compression.
214
ultrium4c Specifies that IBM Tivoli Storage Manager writes data using the ULTRIUM4 recording format with compression. This format results in a cartridge capacity of approximately 1600 GB when using Ultrium4 800 GB data cartridges. This value overrides the settings on the tape drive characteristics for hardware compression. 3592 Specifies that IBM Tivoli Storage Manager writes data using the 3592 recording format. This format results in a cartridge capacity of 300 GB when using 3592 300 GB data cartridges. This value overrides the settings on the tape drive characteristics for hardware compression. 3592c Specifies that IBM Tivoli Storage Manager writes data using the 3592 recording format with compression. This format results in a cartridge capacity of approximately 900 GB when using 3592 300 GB data cartridges. This value overrides the settings on the tape drive characteristics for hardware compression. 3592-2 Specifies that IBM Tivoli Storage Manager writes data using the 3592 recording format. This format results in a cartridge capacity of 500 GB when using 3592 500 GB data cartridges. This value overrides the settings on the tape drive characteristics for hardware compression. 3592-2C Specifies that IBM Tivoli Storage Manager writes data using the 3592 recording format with compression. This format results in a cartridge capacity of approximately 1500 GB when using 3592 500 GB data cartridges. This value overrides the settings on the tape drive characteristics for hardware compression. Compression in general improves backup performance. Therefore, we recommend that you use compression either specifically with FORMAT=ultrium3c/ultrium4c/3592c/3592-2c; or with FORMAT= drive, which implies that the server selects the highest format that is supported by the drive on which a volume is mounted. (Do not use FORMAT= drive for a library containing a mix of Ultrium 3 and 4 drives. Use the specific definitions, as described in detail in 6.12, Device migration and coexistence on page 248.) If you use recording FORMAT=ultrium3c/ultrium4c/3592c/3592-2c/drive, then your LAN-free clients also use compression regardless of whether hardware compression is enabled. Note that IBM Tivoli Storage Manager also provides optional client compression. If this is enabled, then clients compress their data before sending it to the storage device. This is particularly useful where the network connection between the client and server is slow and traffic needs to be minimized. With client compression on, using tape drive compression has little effect and is not recommended. You should evaluate your environment and requirements (probably by performing some appropriate testing) to determine if client compression is beneficial. If so, enable it and use the uncompressed (FORMAT=ultrium3/ultrium4/3592/3592-2) flag when defining the device class. If not, then tape drive compression should be used.
215
The option MOUNTLIMIT specifies the maximum number of sequential access volumes that can simultaneously be mounted for the device class. This parameter is optional. The default is drives, which means that the maximum is set to the number of drives installed and available in the library. There are two reasons why you might use a specific value rather than the default: If you are going to share the library among multiple servers, you may want to specify a number instead of the default drives to limit the number of drives each server has access to. If you have a mixture of LTO generation drives in the same library, see 6.12, Device migration and coexistence on page 248 for more information. We recommend that the default value of drives not be used for the older Ultrium x device classes. For example, when specifying MOUNTLIMIT=drives, the IBM Tivoli Storage Manager server will load Ultrium 3 cartridges into Ultrium 3 drives in preference to Ultrium 4 drives, but there exists the possibility that all Ultrium 4 drives could be loaded with Ultrium 3 cartridges and therefore an Ultrium 4 cartridge could not be loaded. It may be necessary to set the MOUNTLIMIT parameter to a value that is equal to the number of that version of drives, or certainly to a value less than the total number of drives in the library. To define the IBM TS3400 in our Windows environment, we called the device class TS3400CLASS, pointing to our previously defined library libts3400. In the example, we have two TS1120 drives in the library, so we specified DRIVE for the FORMAT parameter and we set the MOUNTLIMIT to DRIVES:
DEFINE DEVCLASS TS3400CLASS DEVTYPE=3592 LIBRARY=libts3400 FORMAT=DRIVE MOUNTLIMIT=DRIVES
216
This storage pool will be assigned (written) to the device class we just defined, so we specify the name ts3400class. We used poolts3400 as the stgpool_name:
DEFINE STGPOOL poolts3400 ts3400class MAXSCRATCH=200
217
Now you can use this storage pool in your management class copy groups, so that the device will be used for backups or archives.
LTO and 3592 cartridges are also available from several other licensed manufacturers, which vary from country to country. IBM Tivoli Storage Manager requires each tape used to have a physical label written on it for identification. You can label volumes individually or process multiple volumes with variations of the label command. Here, we want to perform initial labeling of all the new tapes in our library. Since the IBM TS3400 model has a barcode reader, and the tapes already have an external barcode label, this command will cause the matching label to be written onto the tape. It is not necessary that the magnetic label be the same as the barcode label; however, you will avoid a lot of confusion by making them identical. We put the new tapes directly into the library, then we can label them using the media labeling wizard or we can use the command line (see Preparing the cartridges using the command-line interface on page 221.
Click the Media Labeling Wizard and click Start. When the wizard appears (Figure 6-17 on page 219), click Next.
218
You are logged into the IBM Tivoli Storage Manager server and it presents you with a list of discovered devices. You will be prompted to make a drive selection. For our purposes, we want to label all tapes in the library so that they are initialized for IBM Tivoli Storage Manager. We must make our selection at the library level by checking the box next to the library name, as shown in Figure 6-18. This will also automatically select the tape drives attached to it and ensure that every tape in the library is detected as a candidate for the labeling operation.
Click Next and all tape volumes residing in the library will be detected (Figure 6-19 on page 220). Select the tapes that you want to label. There are several available options for labeling, including: Overwrite existing label: Specify this if you want to write a fresh label to the tape. The default is no, since it might lead to inadvertently overwriting a tape that contains valid data. Barcode reader: Tivoli Storage Manager will read the barcode label and use that to internally label the cartridge. Keep volumes in library: This will retain the volumes inside the library and not check them out once each is labeled.
219
Prompt user to insert volumes: The user will be asked to insert cartridges to be labeled. To avoid this, insert the cartridges directly into the library or in the bulk I/O slot beforehand.
Click Label Now and the media labeling process begins. The Media labeling Monitor appears (Figure 6-20) showing the progress and the end of the operation.
When finished, click OK and then Next and the Media Labeling Wizard will ask if you would like to check in the volumes that you have just labelled, as shown in Figure 6-21 on page 221. You must check in the tape volumes before they can be used by Tivoli Storage Manager. Select Barcode Reader to use the cartridge barcode label to check in the cartridges (unless you have created labels different from the external barcode label, or your tape device does not have a barcode reader). If you do not specify a barcode reader, you will be prompted to specify the volumes you want to check in.
220
Click Check-In Now and the wizard will proceed to check in the library tape volumes. A pop-up window will appear (Figure 6-22) indicating that this can take some time and you can monitor the progress through the server console monitor.
When the check-in is complete, click Next and another pop-up window will appear indicating that the task was successful. It will also suggest that you verify that the cartridges are able to be written to by performing a backup on an IBM Tivoli Storage Manager client.
The parameter SEARCH=YES means that IBM Tivoli Storage Manager searches inside the library for any unlabeled volume with a readable barcode. It then mounts each cartridge in turn and writes the label onto the tape. The tape is finally checked in and available for use by IBM Tivoli Storage Manager. Attention: There should be no cleaning cartridges in the library inventory accessible from the host, as IBM Tivoli Storage Manager will try to label and mount them into a drive. If you have enabled the tape librarys autoclean function, and cleaning cartridges were inserted as appropriate, then those cartridges are not accessible from the host, and no labeling operation will occur for them.
221
After the above command, you can check on the status of the inserted volumes with the QUERY LIBVOL command. Example 6-3 shows all the labeled cartridges with scratch status. The element address is also displayed so that we can tell which physical location contains each volume.
Example 6-3 QUERY LIBVOL Library Name Volume Name -----------LIBTS3400 LIBTS3400 LIBTS3400 LIBTS3400 LIBTS3400 LIBTS3400 LIBTS3400 LIBTS3400 LIBTS3400 LIBTS3400 ----------J1S343 J1S350 J1S390 J1S551 J1S564 JBL136 JBL148 JJG060 JJG074 JJG075 Status ---------Scratch Scratch Scratch Scratch Scratch Scratch Scratch Scratch Scratch Scratch Owner ---------Last Use --------Home Element ------4,106 4,109 4,111 4,100 4,101 4,099 4,112 4,104 4,103 4,108 Device Type -----3592 3592 3592 3592 3592 3592 3592 3592 3592 3592
If you have only a few cartridges to insert, use the I/O station and use the option SEARCH=bulk. You will be prompted on the administrator console to insert all the volumes to be labeled into the I/O station, and to indicate that this has been done by issuing the command (at an administrative command prompt):
REPLY request_id
The server will then load and label the volumes it finds. If you do not have an open administrator console you can also issue the commands QUERY REQUEST or QUERY ACTLOG to display information about pending mount requests. Example 6-4 shows you an output of the activity log when inserting one cartridge into the IBM 3584. We used this command:
LABEL LIBVOLUME libts3400 SEARCH=bulk LABELSOURCE=barcode CHECKIN=scratch
04/11/2007 12:32:34
222
(SESSION: 12) ANR8352I Requests outstanding: (SESSION: 12) ANR8373I 001: Fill the bulk entry/exit port of library LIBTS3400 with all 3592 volumes to be processed within 60 minute(s); issue 'REPLY' along with the request ID when ready. (SESSION: 12) ANR2017I Administrator ADMIN issued command: REPLY 001 (SESSION: 12) ANR8499I Command accepted. (SESSION: 12) ANR8810I Volume JJS016 has been labeled in library LIBTS3400. (SESSION: 12, PROCESS: 6) ANR0985I Process 6 for LABEL LIBVOLUME running in the BACKGROUND completed with completion state SUCCESS at 12:34:03. (SESSION: 12, PROCESS: 6)
You will be prompted to insert the cartridge and to indicate when it is available by issuing the following command (at an administrative command prompt):
REPLY request_id
You can insert only one cartridge for each command. It will then be labeled by the server. Example 6-5 shows you an output of the activity log for using this method with one unlabeled cartridge in an IBM 3584. We use this command:
LABEL LIBVOLUME libts3400 unlab02 CHECKIN=SCRATCH
223
LIBTS3400. ANR8427I CHECKIN LIBVOLUME for volume UNLAB02 in library LIBTS3400 completed successfully. ANR8800I LABEL LIBVOLUME for volume UNLAB02 in library LIBTS3400 completed successfully. ANR0985I Process 28 for LABEL LIBVOLUME running in the BACKGROUND completed with completion state SUCCESS at 15:16:16.
The parameter SEARCH=bulk means that IBM Tivoli Storage Manager will search the library I/O station for usable volumes to check in. Set the CLEANINGS parameter to the number of uses specified for your cartridge; for LTO and 3592, this is 50. Insert one or more cleaner cartridges into the I/O station, and reply to the request issued by the server, as shown in Example 6-6.
Example 6-6 Insert cleaner cartridge 04/11/2007 12:55:50 ANR2017I Administrator ADMIN issued command: CHECKIN LIBVOLUME LIBTS3400 STATUS=cleaner CHECKLABEL=barcode SEARCH=bulk CLEANINGS=50 (SESSION: 12) ANR0984I Process 8 for CHECKIN LIBVOLUME started in the BACKGROUND at 12:55:50. (SESSION: 12, PROCESS: 8) ANR8422I CHECKIN LIBVOLUME: Operation for library LIBTS3400 started as process 8. (SESSION: 12, PROCESS: 8) ANR8373I 002: Fill the bulk entry/exit port of library LIBTS3400 with all 3592 volumes to be processed within 60 minute(s); issue 'REPLY' along with the request ID when ready. (SESSION: 12, PROCESS: 8) ANR2017I Administrator ADMIN issued command: REPLY 002 (SESSION: 12) ANR8499I Command accepted. (SESSION: 12) ANR8430I Volume CLN541 has been checked into library LIBTS3400. (SESSION: 12, PROCESS: 8) ANR8431I CHECKIN LIBVOLUME process completed for library LIBTS3400; 1 volume(s) found. (SESSION: 12, PROCESS: 8) ANR0985I Process 8 for CHECKIN LIBVOLUME running in the BACKGROUND completed with completion state SUCCESS at 12:56:16. (SESSION: 12, PROCESS: 8)
04/11/2007 12:56:04 04/11/2007 12:56:04 04/11/2007 12:56:16 04/11/2007 12:56:16 04/11/2007 12:56:16
224
After installing and starting the server, we recommend using the administrative client command-line interface (CLI) to configure the subsequent steps. The command-line interface is the same across all present IBM Tivoli Storage Manager versions. Refer to the IBM Tivoli Storage Manager manuals for details about using the Administrative Console interface. To use CLI (dsmadmc), you must install the client code on the IBM Tivoli Storage Manager server or an IBM Tivoli Storage Manager client. Our examples use the CLI. We show how to set up the IBM Tivoli Storage Manager server with the IBM tape library and drives only. For more general information about the setup of the IBM Tivoli Storage Manager for Linux, see: IBM Tivoli Storage Manager for Linux Administrator's Guide V5.3, GC23-4690 IBM Tivoli Storage Manager for Linux Installation Guide V5.3, GC32-1599 IBM Tivoli Storage Manager for Linux Administrator's Reference Guide V5.3, GC23-4691 IBM Tivoli Storage Manager for Linux Administrator's Guide V5.4, SC32-0119 IBM Tivoli Storage Manager for Linux Installation Guide V5.4, SC32-0136 IBM Tivoli Storage Manager for Linux Administrator's Guide V5.4, SC32-0125 We described how to install the IBMtape drivers in Chapter 4, Basic IBM tape setup for Linux on page 159. The following examples summarize the device installation and IBM Tivoli Storage Manager server installation.
225
First, define the library and library path using the following commands. When there are multiple choices, the default setting is listed last:
DEFINE LIBRARY library_name LIBTYPE=SCSI DEFINE PATH server_name library_name SRCTYPE=SERVER DESTTYPE=LIBRARY DEVICE=dev_name
For server_name, specify a name you have set for your server with the SET SERVERNAME command, which can be checked by issuing the QUERY STATUS command. In our case, we used the name saab. For dev_name, enter the full device name of library, such as /dev/IBMchanger0:
DEFINE PATH goofy libts3200 SRCTYPE=SERVER DESTTYPE=LIBRARY DEVICE=/dev/IBMchanger0
Next, define each of the librarys drives and drives paths with:
DEFINE DRIVE library_name drive_name DEFINE PATH server_name drive_name SRCTYPE=SERVER DESTTYPE=DRIVE LIBRARY=library_name \ DEVICE=dev_name
For library_name, enter the name of your already defined library (libts3200, in our example). Use the operating system device name of the tape drive being defined for dev_name. Enter the full device name for dev_name, such as /dev/IBMtape0. We configured our drives in the IBM TS3200 with the following commands:
DEFINE DRIVE libts3200 drive01 DEFINE DRIVE libts3200 drive02 DEFINE PATH goofy drive01 SRCTYPE=SERVER DESTTYPE=DRIVE LIBRARY=libts3200 \ DEVICE=/dev/IBMtape0 DEFINE PATH goofy drive02 SRCTYPE=SERVER DESTTYPE=DRIVE LIBRARY=libts3200 \ DEVICE=/dev/IBMtape1
Tip: Before defining the drives and libraries, make sure that your library is online and your drives are available. Also, there should not be any cartridges loaded in the drive being defined.
226
The library_name will match the name of the library you previously defined. The FORMAT parameter has the following valid options for LTO: drive The server selects the highest format that can be supported by the drive on which a volume is mounted. This value will use the settings on the tape drive characteristics (device driver) for hardware compression. This is the default.ultrium ultrium3 Specifies that IBM Tivoli Storage Manager writes data using the ULTRIUM3 recording format. This format results in a cartridge capacity of 400 GB when using Ultrium3 400 GB data cartridges. This value overrides the settings on the tape drive characteristics for hardware compression ultrium3c Specifies that IBM Tivoli Storage Manager writes data using the ULTRIUM3 recording format with compression. This format results in a cartridge capacity of approximately 800 GB when using Ultrium3 400 GB data cartridges. This value overrides the settings on the tape drive characteristics for hardware compression. ultrium4 Specifies that IBM Tivoli Storage Manager writes data using the ULTRIUM4 recording format with compression. This format results in a cartridge capacity of approximately 800 GB when using Ultrium4 800 GB data cartridges. This value overrides the settings on the tape drive characteristics for hardware compression. ultrium4c Specifies that IBM Tivoli Storage Manager writes data using the ULTRIUM4 recording format with compression. This format results in a cartridge capacity of approximately 1600 GB when using Ultrium4 800 GB data cartridges. This value overrides the settings on the tape drive characteristics for hardware compression. 3592 Specifies that Tivoli Storage Manager writes data using the 3592 recording format. This format results in a cartridge capacity of 300 GB when using 3592 300 GB data cartridges. This value overrides the settings on the tape drive characteristics for hardware compression. 3592c Specifies that Tivoli Storage Manager writes data using the 3592C recording format with compression. This format results in a cartridge capacity of approximately 900 GB when using 3592 300 GB data cartridges. This value overrides the settings on the tape drive characteristics for hardware compression.
227
3592-2 Specifies that IBM Tivoli Storage Manager writes data using the 3592 recording format. This format results in a cartridge capacity of 500 GB when using 3592 500 GB data cartridges. This value overrides the settings on the tape drive characteristics for hardware compression. 3592-2C Specifies that IBM Tivoli Storage Manager writes data using the 3592 recording format with compression. This format results in a cartridge capacity of approximately 1500 GB when using 3592 500 GB data cartridges. This value overrides the settings on the tape drive characteristics for hardware compression. Compression in general improves backup performance. Therefore, we recommend that you use compression either specifically with FORMAT=ultrium3c/ultrium4c/3592c/3592-2c, or with FORMAT= drive, which implies that the server selects the highest format that is supported by the drive on which a volume is mounted. (Do not use FORMAT= drive for a library containing a mix of Ultrium 3 and 4 drives. Use the specific definitions, as described in detail in 6.12, Device migration and coexistence on page 248.) If you use recording FORMAT=ultrium3c/ultrium4c/3592c/3592-2c/drive, then your LAN-free clients also use compression regardless of whether hardware compression is enabled. Note that IBM Tivoli Storage Manager also provides optional client compression. If this is enabled, then clients compress their data before sending it to the storage device. This is particularly useful where the network connection between the client and server is slow and traffic needs to be minimized. With client compression on, using tape drive compression has little effect and is not recommended. You should evaluate your environment and requirements (probably by performing some appropriate testing) to determine if client compression is of benefit. If so, then enable it, and use the uncompressed (FORMAT=ultrium3/ultrium4/3592/3592-2) flag when defining the device class. If not, then tape drive compression should be used. The option MOUNTLIMIT specifies the maximum number of sequential access volumes that can simultaneously be mounted for the device class. This parameter is optional. The default is drives, which means that the maximum is set to the number of drives installed and available in the library. There are two reasons why you might use a specific value rather than the default: If you are going to share the library among multiple servers, you may want to specify a number instead of the default drives to limit the number of drives each server has access to. If you have a mixture of LTO generation drives in the same library, see 6.12, Device migration and coexistence on page 248 for more information. We recommend that the default value of drives not be used for the older Ultrium x device classes. For example, when specifying MOUNTLIMIT=drives, the IBM Tivoli Storage Manager server will load Ultrium 3 cartridges into Ultrium 3 drives in preference to Ultrium 4 drives, but there exists the possibility that all Ultrium 4 drives could be loaded with Ultrium 3 cartridges and therefore an Ultrium 4 cartridge could not be loaded. It may be necessary to set the MOUNTLIMIT parameter to a value that is equal to the number of that version of drives, or certainly to a value less than the total number of drives in the library. To define the IBM TS3200 in our Linux environment, we called the device class TS3200CLASS, pointing to our previously defined library libts3200. In the example, we have two LTO4 drives in the library:
DEFINE DEVCLASS ts3200class DEVTYPE=LTO LIBRARY=libts3200
228
This storage pool will be assigned to the device class we just defined, so we specify the name TS3200CLASS. We used ts3200pool as the stgpool_name:
DEFINE STGPOOL ts3200pool ts3200class MAXSCRATCH=9999
Now you can use this storage pool in your management class copy groups, so that the device will be used for backups or archives.
229
in in in in in in
tsm: GOOFY> query libvolume Library Name Volume Name ---------------------LIBTS3200 3FO188L3 LIBTS3200 3IA011L3 LIBTS3200 3IR077L3 LIBTS3200 3IR094L4 LIBTS3200 3SS010L3 LIBTS3200 3TE059L3
Owner ----------
Additional steps, such as creating domains, management classes, and copygroups are described in the IBM Tivoli Storage Manager manuals. They are beyond the scope of this book.
6.3.1 Performance hints for IBM Tivoli Storage Manager, LTO, and 3592
Since IBM Tivoli Storage Manager writes a record in its database of each file backed up, it will perform better with large file workloads than with small file workloads. This is because of the proportion of time spent doing database writes and updates as a fraction of the total backup time. Therefore, to get the best performance from IBM Tivoli Storage Manager with LTO and IBM 3592 drives, be sure to update the parameter TXNGroupmax on the server to a higher value than the default 256. This parameter controls how many files are transferred as a group between the client and server. Note that the larger the txngroupmax value, the bigger the IBM Tivoli Storage Manager database log area needs to be. In the client option file, also set the parameter TXNBytelimit to its maximum of 2097152 (2 GB). This parameter specifies the number of kilobytes the client program can buffer together in one transaction before it sends data to the server. To set TXNGroupmax, edit dsmserv.opt on the IBM Tivoli Storage Manager server, as shown in Example 6-9 on page 231. If you are using the Storage Agent for LAN-free backup, you should also set this parameter to the same value in the options file dsmsta.opt. The restart of
230
the server process is required to enable this change (for Storage Agent, a restart of the Storage Agent process is required).
Example 6-9 TXNGroupmax entry in dsmserv.opt and dsmsta.opt *============================================================================== * * TXNGROUPMAX * * Specifies the maximum number of files transferred as a group between * the client and storage agent. * * Syntax * +------------------+----------------------------------------------+ * | TXNGroupmax | value | * +------------------+----------------------------------------------+ * * Parameters * value Specifies the maximum number of files that are * transferred as a group between the client and * storage agent. The minimum value is 4 and the maximum * value is 65000. The default value is 256. * * Examples TXNGroupmax 65000 *
To set the client parameter TXNBytelimit, edit dsm.sys (for UNIX clients) or dsm.opt (for all other clients). The entry should be similar to Example 6-10.
Example 6-10 TXNBytelimit entry in dsm.opt/dsm.sys TXNBytelimit 2097152
In general, small file workloads will back up faster if they are staged initially to a disk storage pool, which then migrates to the tape pool.
IBM Tivoli Storage Manager can only distinguish LTO WORM media from rewritable media only when the media is mounted in a drive. Therefore, all WORM media needs to either be checked in with CHECKLabel=Yes or labeled with the CHECKIN parameter specified. Any media that is checked in without mounting in the drive is considered rewritable by IBM Tivoli Storage Manager. Note that this also means that you cannot make use of the AUTOLABEL
231
attribute of the library for WORM media. Once the media is checked into IBM Tivoli Storage Manager, IBM Tivoli Storage Manager is aware that this is a WORM cartridge and will treat it accordingly. Note: This limitation is only for LTO in SCSI libraries, and does not apply to 3592 WORM in either SCSI or 3494 libraries.
232
Figure 6-23 How each of the SCALECAPACITY parameters initialize 3592 JA cartridges
When SCALECAPACITY is set to 100 (default), Tivoli Storage Manager will initialize the cartridge as a 300 GB cartridge. When set to 90, it will initialize the cartridge as a segmented tape. When set to 20, it will initialize the cartridge to use only the first 60 GB. Depending on the client requirements, in most cases you should use either the SCALECAPACITY=100 for capacity oriented applications (for example, data backup) or SCALECAPACITY=20 for access oriented applications, such as HSM. There is no practical reason for using SCALECAPACITY=90, because you cannot control where the data is written on the tape. After the first 60 GB segment is filled, the drive will proceed to write on the rest of the (slower-access) tape. Each of the segmented parts need to be defined to a different storage pool to fully utilize the segmented function, but with the current IBM Tivoli Storage Manager architecture, it is not possible to define two storage pools for one volume.
233
For a JA cartridge, define the device class as below; you have the option to specify the SCALECAPACITY parameter:
DEFINE DEVCLASS devclass_name DEVTYPE=3592 FORMAT=3592/3592c/3592-2/3592-2c/drive \ LIBRARY=library_name SCALECAPACITY=20/90/100
The SCALECAPACITY parameter with a value other than 100 (default) can be specified only with the standard-length R/W cartridge. When the short-length cartridges are initially defined to a storage pool; query volume and query stgpool will show you 300 GB (or 900 GB for compress) for each of the volumes defined. When the EOV (end-of-volume) is reached, query commands will show the actual data written for the volume.
234
Several IBM Tivoli Storage Manager servers can share the same tape library using the library sharing feature, as shown in Figure 6-2 on page 202. Tape library sharing is supported between any combination of Windows, AIX, Solaris, Linux, and HP-UX IBM Tivoli Storage Manager servers. We recommend using the latest code level. You can find the link to download the latest code fixes at:
http://www-306.ibm.com/software/sysmgmt/products/support/IBMTivoliStorageManager.html
All servers that will share the library need to have a FC/SAN connection to the tape drives in the library. One server will control the library robotics and is designated the Library Manager. Other library users are designated Library Clients. Services are requested from the Library Manager, rather than the library itself, as in non-shared library configurations. For example, if a library client wants to write data to a tape, then the client has to ask the Library Manager to mount the tape volume. After the tape is mounted by the Library Manager, then the library client can write the data directly over the physical SAN path to the tape drive.
Define drives and path information as for the non-shared environment. Because library sharing uses server-to-server communication for sending and receiving requests, you need to configure server-to-server communications between the Library Manager and the library clients. Set the following parameters on the Library Manager (servername, password, serverhladdress, serverlladdress, and set crossdefine) to on:
SET SET SET SET SET SERVERNAME server_name SERVERPASSWORD server_password CROSSDEFINE on SERVERHLADDRESS server_ip_address SERVERLLADDRESS server_ip_portaddress
Next, we define the Library Manager server on each of the library clients, so that they will know which system is managing the tape libraries. Use the DEFINE SERVER command and match the parameters to the server definitions on the Library Manager (server name, password, IP address, and port number):
DEFINE SERVER library_manager_servername SERVERPASSWORD=library_ manager_password HLADDRESS=library_manager_ip_address LLADDRESS=library_manager_port_number COMM=tcpip
As we have set crossdefine to on, the above commands should automatically create library client definitions on the Library Manager. Check this with the QUERY SERVER command.
Chapter 6. Configuring IBM Tivoli Storage Manager on Windows and Linux
235
Note the use of the LIBTYPE=shared parameter. You must use the same library_name as was defined on the library server. On the Library Manager, define each of the tape drive paths for each library client as:
DEFINE PATH server_name drive_name SRCTYPE=SERVER DESTTYPE=DRIVE \ LIBRARY=library_name DEVICE=device_name
For server_name, enter the name of the library client, and for device_name, specify the name of the device special file on the library client machine. Important: Keep in mind that the drives are not necessarily configured by the operating system in the same order as they are installed physically in the library, as described in 5.3, Persistent binding on page 194. Therefore, check carefully that the element address matches your drive configuration. You can check the result with the Q PATH command. Now you can define the device class and the storage pool using the library definitions, as described in 6.2.7, Defining the storage pool using the command line on page 217.
QUERY LIBVOLUME
If you use the QUERY LIBVOLUME on the Library Manager, the output will now also display which IBM Tivoli Storage Manager server is the owner of each volume, as shown in Example 6-11.
Example 6-11 Q LIBVOL on a Library Manager Library Name -----------LTO_3584 LTO_3584 LTO_3584 LTO_3584 LTO_3584 LTO_3584 LTO_3584 LTO_3584 Volume Name ----------ABA920 ABA922 ABA923 ABA924 ABA925 ABA926 ABA927 ABA928 Status ---------Private Private Scratch Scratch Private Private Private Private Owner ---------SICILY SICILY Last Use --------Data Data Home Element -----------4,114 4,104 4,106 4,107 4,130 4,098 4,102 4,111
Data Data
236
LTO_3584 LTO_3584
ABA929 ABA990
Private Private
BRAZIL BRAZIL
Data Data
4,112 4,133
The library client is only using the drives, and has no knowledge of the library contents. Example 6-12 shows executing QUERY LIBVOLUME on a library client.
Example 6-12 Q LIBVOL on a library client tsm: BRAZIL> QUERY LIBVOLUME ANR2017I Administrator ADMIN issued command: QUERY LIBV ANR2034E QUERY LIBVOLUME: No match found using this criteria.
QUERY VOLUME
Querying the volumes (QUERY VOLUME) on any attached server will report only those volumes that belong to that server (see Example 6-13).
Example 6-13 QUERY VOLUME on a shared library tsm: SICILY>q volume Volume Name Storage Pool Name Device Class Name ---------3580_DEVCLASS 3580_DEVCLASS Estimated Capacity (MB) --------95,367.0 190,734.0 Pct Util ----2.4 0.8 Volume Status -------Filling Filling
AUDIT LIBRARY
Performing an AUDIT LIBRARY command from a library client does not actually perform a physical audit on the shared library; instead, the library clients database is checked and synchronized against the Library Managers database. No tape mounts are performed. Performing this command on the Library Manager mounts or inspects tapes in the library, the same as it does in non-shared configurations.
LABEL LIBVOLUME
When the IBM tape library is shared, tape labeling must be performed on the Library Manager. If you try to execute the LABEL LIBVOLUME command from a library client, the operation will fail with an error. You can share the scratch volumes between all the library clients. This is because the Library Manager serves as a central repository for information about all the volumes contained in the library. Since all media handling requests are handled by the Library Manager, it can keep track of which tape belongs to which library client, and which tapes are unallocated and available for use by any library client. There is no special configuration required to utilize this feature; simply make sure there is an adequate supply of labeled scratch tapes in the library. The Library Manager will allocate them as needed to the requesting library clients or to itself.
237
Once a particular volume is assigned to a library client, the Library Manager flags that volume as used by that client, and prevents other clients from accessing it
.
Note: The Library Manager is itself a fully functional IBM Tivoli Storage Manager server, that is, it typically supports its own backup client workload and can access and use the volumes just like a library client. However, it also has the particular function of overall management of the devices and tape inventory.
238
Table 6-2 Configuring LAN-free backups Step 1) 2) 3) On server .................................................... ................................................... .................................................... On client Install tape drives according to above. Install the IBM Tivoli Storage Manager client code. Modify dsm.sys of the backup-archive client as follows: ENABLELANFREE YES LANFREECommethod TCPIP LANFREETCPPort port_number If the clients do not reside on the same system as the storage agent, set the following option with the appropriate value: - LANFREETCPSERVERADDRESS ip_address 4) 5) .................................................... .................................................... Install the Storage Agent. Specify the DEVCONFIG option in the dsmsta.opt of Storage Agent: DEVCONFIG outputfile ....................................................
6)
Define each LAN-free client Storage Agent as though it was a server. Use the DEFINE SERVER command. ....................................................
7)
Set the installation data for the Storage Agent with: DSMSTA SETSTORAGESERVER ................................................... Obtain Tape Device information (see 7.7.2 6.7.2, Define path considerations on page 240). ...................................................
8) 9)
Register clients for LAN-free backup. If needed; define a separate domain. ....................................................
10)
Use the DEFINE PATH command to define paths from the Storage Agent to the drives that are available to the IBM Tivoli Storage Manager server (see 6.7.2, Define path considerations on page 240). ....................................................
11)
Note: Make sure TXNGROUPMAX in dsmsta.opt is set at the same value as that in dsmserv.opt. When using LTO or 3592 drives, it is recommended to set this value to 256 or higher for performance reason (see 6.3.1, Performance hints for IBM Tivoli Storage Manager, LTO, and 3592 on page 230).
239
Where: storageagent_name is the name of the Storage Agent. drive_name is the tape drive name defined on the IBM Tivoli Storage Manager server. library_name is the tape library name defined on the server. dev_name_on_storageagent is the device special file name of the tape drive on the Storage Agent machine (for example, mt2.2.0.2). Important: Keep in mind that the drives are not necessarily configured by the operating system in the same order as they are installed physically in the library, as described in 5.3, Persistent binding on page 194. Therefore, check carefully that the element address matches your drive configuration.
240
241
242
Figure 6-25 Library on Tivoli Storage Manager server: drives on NAS system
243
However, after day 4 it is no longer possible to restore just the day 1 backup. In this case, day 4 represents the ACTIVE backup, with day 2 and day 3 being INACTIVE backup versions. On day 5 when another differential backup is made, both the day 1 and day 2 backups will be marked for expiration. At this stage, as shown in Figure 6-26, the day 5 backup represents the ACTIVE backup, day 3 and day 4 backups are INACTIVE, and the day 1 and day 2 backups are deleted.
Versioning example: VEREX ISTS=3 Day 1:
full backup
Expired Day 2:
differential
Expired Day 3:
full backup
Inactive
Day 4:
differential
Inactive
Day 5:
differential
Active
6.9 IBM Tivoli Storage Manager and redundant library control paths
The IBM TS3200, TS3310, TS3400, and TS3500 allow you to enable multiple control paths to a single logical library. Support is provided under AIX, Linux, HP-UX, Windows, and Solaris for both SCSI and Fibre Channel attachments when the IBM tape device driver is used. This provides improved redundancy to the libraries. If there is only a single control path available, a failure in this path would result in loss of communication with the library. Therefore, multiple control paths eliminate this single point of failure. See also 3.3, Path failover on page 107 and 4.3.4, Setting up control path failover on Linux on page 169 for further details in particular environments. IBM Tivoli Storage Manager cannot automatically handle multiple control paths to one logical library on its own; however, it can work with automatic control path failover for the operating system. This feature provides an automatic failover to an alternate control path when the primary control path fails. An error on the control path would have no effect on your IBM Tivoli Storage Manager server. Figure 6-27 on page 245 shows an IBM TS3500 with two drives. Both drives have the control path enabled.
244
Server
TS3500
Control path enabled
FC Adapter FC Adapter
Drive
SAN Switch
Drive
Medium Changer
If you enable multiple control paths on your IBM TS3200, TS3310, TS3400, and TS3500, you will see several SCSI media changer devices with primary and alternate paths. For example, with Linux, as in this example, you can check if the IBMtape driver has recognized multiple control paths for your library by reading the /proc/scsi/IBMchanger file. If your library lists Primary or Alternate under the FO Path, as in Example 6-14, then you have successfully enabled the control path failover feature for your library. If NA is listed under the FO Path, then the control path failover is not enabled. When IBMtape is loaded into kernel memory, the first logical medium changer device that IBMtape sees in the system will be the primary path for that medium changer. The other logical medium changers that IBMtape attached for the same medium changer will be configured as alternate paths. The device driver supports up to 16 physical paths for a single device.
Example 6-14 An example of /proc/scsi/IBMchanger file [root@saab root]# cat /proc/scsi/IBMchanger IBMtape version: 1.4.11 IBMtape major number: 253 Attached Changer Devices: Number Model SN HBA 0 ULT3583-TL IBM1234567 QLogic Fibre Channel 2200 1 ULT3583-TL IBM1234567 QLogic Fibre Channel 2300 2 ULT3583-TL IBM1234567 QLogic Fibre Channel 2300
Whether you use automatic control path failover or not, you should only configure one control path to the library in IBM Tivoli Storage Manager. If you configure the second control path, then you will get a second library. If a failure occurs on the first control path (IBMchanger0), and we do not use automatic control path failover, we could switch to the second path (IBMchanger1) with:
UPDATE PATH server_name library_name SRCTYPE=SERVER DESTTYPE=LIBRARY DEVICE=/dev/IBMchanger1
With automatic control path failover enabled, we would not need to perform the UPDATE PATH command, since failover happens automatically.
245
Server
TS3500
FC Adapter A 3592 Drive
SAN Switch
FC Adapter B
Medium Changer
You can check if the IBMtape driver has recognized multiple data paths for your library by reading the /proc/scsi/IBMtape file. If your library lists Primary or Alternate under the FO Path, as shown in Example 6-15 on page 247, then you have successfully enabled the data path failover feature for your library. If NA is listed under the FO Path, then the data path failover is not enabled. 246
Implementing IBM Tape in Linux and Windows
Example 6-15 An example of the /proc/scsi/IBMtape file IBMtape version: 1.5.3 IBMtape major number: 253 Attached Tape Devices: Number Model SN 0 ULT3583-TL IBM1234567 1 ULT3583-TL IBM1234567 2 ULT3583-TL IBM1234567
HBA QLogic Fibre Channel 2200 QLogic Fibre Channel 2300 QLogic Fibre Channel 2300
Whether you use automatic data path failover or not, you should only configure one data path to each of the drives defined to the IBM Tivoli Storage Manager server. Defining a path to IBMtape0, if a failure occurs on this path, the IBM device driver will automatically and transparently to the application (for example, IBM Tivoli Storage Manager) fail over to the alternate path (/dev/IBMtape1) without interrupting the current Tivoli Storage Manager operation.
247
Example 6-17 QUERY ACTLOG command output tsm: SERVER1>query actlog begindate=-15 search=TapeAlert Date/Time -------------------03/24/04 18:23:09 Message ---------------------------------------------------------ANR8948S Device /dev/rmt/11smc, volume unknown has issued the following Critical TapeAlert: The library mechanism is having difficulty communicating with the drive: 1. Turn the library off then on. 2. Restart the operation. 3. If the problem persists, call the library supplier help line. (SESSION: 9) ANR8950W Device /dev/rmt/11smc, volume unknown has issued the following Warning TapeAlert: There is a problem with the library mechanism. If problem persists, call the library supplier help line. (SESSION: 9) ANR8950W Device /dev/rmt/11smc, volume unknown has issued the following Warning TapeAlert: There is a potential problem with the barcode label or the scanner hardware in the library mechanism. 1. No action needs to be taken at this time. 2. If the problem persists, call the library supplier help line. (SESSION: 9)
03/24/04
18:23:09
03/24/04
18:23:09
248
The design specifications for LTO devices are: LTO1 LTO2 LTO3 LTO4 Can read and write LTO1 cartridges. Can read and write LTO1 and LTO2 cartridges. Can read and write LTO2 and 3 cartridges, and can read LTO1 cartridges. Can read and write LTO3 and 4 cartridges, and can read LTO2 cartridges.
Note: IBM Tivoli Storage Manager support for LTO4 is available as of V5.3.5.0 or V5.4.1.0.
6.12.1 Scenarios
In the lifetime of a IBM Tivoli Storage Manager server, there will be times when new technology or customer requirements will allow the expansion of storage capacity through new devices. This might occur through the addition of a new library to an existing Tivoli Storage Manager server, or through increased capacity of a new or upgraded tape drive in an existing library. In both of these instances, you need to decide whether to install the new technology and retire the old technology, or operate both technologies in parallel. For LTO2, LTO3, and LTO4 drives, Table 6-3 describes some of the migration and co-existence possibilities in one physical library, and also the migration from an existing library to a new LTO library, relative to the version of IBM Tivoli Storage Manager used. You may need to upgrade the library firmware for LTO3 or LTO4 device support and library partitioning support. We discuss each scenario in more detail in the following sections. The table and subsequent discussion do not attempt to show all migration possibilities, but cover the most obvious scenarios. For several of the configuration scenarios, there are two identical discussions. In general, whatever applies to coexistence and migration of LTO3 and 4, is also valid for the coexistence and migration of the older LTO2 and 3, or even LTO1 and 2.
Table 6-3 LTO migration and co-existence examples Scenario 1 Configuration a) LTO 3 + 4 drives LTO 3 Media ----------------b) LTO 2 + 3 drives, LTO 2 Media a) LTO 3 + 4 drives LTO 3 + 4 Media ----------------b) LTO 2 + 3 drives, LTO 2 + 3 Media LTO 2 + 3 + 4 drives LTO 2 + 3 + 4 Media a) Migrate LTO 3 to 4 drives LTO 3 + 4 Media ----------------b) Migrate LTO 2 to 3 drives LTO 2 + 3 Media TSM V5.2.4 TSM V5.3.5 or V5.4.1 1 logical library 1 devclass -------------------1 logical library 1 devclass 1 logical library 2 devclass -------------------1 logical library 2 devclass 1 logical library 3 devclass 1 logical library 1 devclass -------------------1 logical library 1 devclass
3 4
249
Scenario 5
Configuration a) Migrate LTO 3 to 4 drives Migrate media LTO 3 to 4 ----------------b) Migrate LTO 2 to 3 drives Migrate Media LTO 2 to 3 Migrate LTO 2 to 4 drives Migrate media LTO 2 to 4 Migrate existing tape storage to LTO
TSM V5.2.4
-------------------1 logical library 1 devclass 1 logical library 1 devclass 2 libraries 2 devclass 2 libraries 2 devclass
6 7
Scenario 1
There are two similar scenarios in Scenario 1: Install LTO4 drives in addition to the current LTO3 drives and media. Use the equivalent scenario for the older generation, that is, install LTO3 drives in addition to the current LTO2 drives and media. We can install the new LTO4 devices with existing LTO3 devices into the same logical library and device class because of mixed generation support. The LTO4 devices will be able to read and write the LTO3 cartridges at the LTO3 speed and capacity. Similarly, we can install the LTO3 devices with existing LTO2 devices into the same logical library and device class because of mixed generation support. The LTO3 devices will be able to read and write the LTO2 cartridges at the LTO2 speed and capacity.
Scenario 2
Install LTO4 drives and LTO4 media in addition to existing LTO3 drives and LTO3 media. As of IBM Tivoli Storage Manager V5.2, mixed media types are supported in one library, and thus different generations of tape devices can coexist in the same logical library. However, two device classes are required because of the two media types. All of the tape devices are available to the LTO3 device class, but only LTO4 devices are available to the LTO4 device class. IBM Tivoli Storage Manager will ensure that LTO4 media will only be loaded into LTO4 devices for reading and writing. LTO3 media will be read from or written to by all the LTO3 and LTO4 devices.
250
Tip: MOUNTLIMIT For read or write tape mounts, IBM Tivoli Storage Manager will select LTO3 drives for LTO3 media first. If no LTO3 devices are available, an available LTO4 drive will be selected for the LTO3 media. To prevent the case where all LTO4 drives are loaded with LTO3 media (leaving no drives available to read/write LTO4 media), set the DEVCLASS parameter MOUNTLIMIT appropriately. For example: MOUNTLIMIT can be set to the number of LTO3 drives in the library for the LTO3 devclass, so it will not use LTO4 drives at all. MOUNTLIMIT can be set to the number of LTO3 drives plus half the number of LTO4 drives. This is a compromise position to allow good drive utilization, but reserves some LTO4 drives for LTO4 media. You should define a suitable MOUNTLIMIT that works for your environment.
Scenario 3
As of IBM Tivoli Storage Manager V5.3.5, LTO4 drives are supported, and any combination of LTO 2, 3, and 4 drives and media can be used in one library. As discussed in Scenario 2 on page 250, LTO4 drives can read and write LTO3 media. Similarly, the LTO3 drives can read and write LTO2 media. Although LTO4 drives can read the LTO2 media (but cannot write to it), care should be taken to avoid attempted writing. Set the MOUNTLIMIT option for the LTO2 devclass to less than the sum of LTO2 and 3 drives (see the previous Tip), thereby preventing the LTO2 media from being loaded in the LTO4 drives. The LTO2 media will still be available for normal use by the LTO2 and 3 drives. Alternatively, the migration path will be to have all LTO2 media set to read-only for use by all drives, and the LTO2 drives and media eventually phased out of the library.
Scenario 4
Replace all LTO3 drives with LTO4 drives, using the existing LTO3 media and installing additional LTO4 media: 1. Delete the existing LTO3 device DRIVE and PATH entries and define new DRIVE and PATH entries for the LTO4 devices. 2. The replacement of the LTO3 drives with LTO4 drives will also affect the IBM Tivoli Storage Manager device class parameter format, which should now be set to ultrium4c. Tip: The devclass format parameter is used to pre-determine the capacity value of a storage pool. Because we now have media with varying amounts of capacity (400 GB and 800 GB native), the storage pool values will not be correct. If this is an issue, then use two device classes, as described in Scenario 2 on page 250. The same discussion applies using the older generation LTO2 and LTO3 media and drives.
251
Scenario 5
Replace all LTO3 drives with LTO4 drives, and choose to migrate the existing LTO3 media to LTO4 media: 1. Delete the existing LTO3 device DRIVE and PATH entries, and define new DRIVE and PATH entries for the LTO4 devices. 2. Remove empty LTO3 media and install LTO4 media (label 1 in Figure 6-29 on page 253). 3. Over time, update the LTO3 media ACCESS to READONLY. This ensures they will then not be written to any more by any Tivoli Storage Manager client or server operation (label 2 in Figure 6-29 on page 253). 4. You can leave the existing utilized LTO3 cartridges as they are, and over time, expiration of old backups and reclamation will reduce the usage of the old cartridges. 5. However, if you want to drain the existing LTO3 cartridges more quickly, you can execute a MOVE DATA volume_name LTO_storage_pool_name command, selecting each individual LTO3 volume and targeting the LTO storage pool. 6. Once the old LTO3 cartridges are emptied, the cartridges can be checked out of the library and new LTO4 cartridges can be checked in to replace them (label 3 in Figure 6-29 on page 253). 7. The replacement of the LTO3 drives and media with LTO4 drives and media will also affect the device class parameter format, which should be set to DRIVE, ultrium4, or ultrium4C. If the format parameter is left at ultrium3 or ultrium3C, a write will still occur to the end of LTO4 media, but the pre-determined capacity of the storage pool will only show LTO3 capacity after running the command query stgpool.
252
1
checkout
LTO3
LTO4
checkin
LTO3
LTO4
checkin
LTO3
LTO4
LTO4
LTO3
LTO4
TSM Server LTO Library
LTO4
LTO4
R/O
LTO4
R/O
LTO4
R/O
LTO3
TSM Server LTO Library
3
checkout
LTO4
LTO4
checkin
LTO3
R/O
LTO4
LTO4
LTO4
LTO4
LTO4
TSM Server LTO Library
The same discussion applies to migrating the older generation LTO2s to LTO3s.
Scenario 6
LTO4 drives can read the LTO2 media. The discussion in Scenario 5 on page 252 applies here, although in this scenario it is imperative that all LTO2 media are updated to ACCESS of READONLY. All new writes are to the new LTO4 media, and all data on LTO2 media is moved specifically, or phased out over time.
253
Scenario 7
Replace an existing tape library and migrate the client data to a new LTO tape library. The steps are the same whether migrating to LTO3 or LTO4 drives and media. You are, however, encouraged always to migrate to the newest generation library. Various techniques can be used. We describe migrating the data by using an existing management class. This only requires modifying the currently used storage pool to cascade to the new LTO storage pool. This has the advantage of being less disruptive, and has no affect on the client option files. We give two possibilities for storage pools, depending on whether the primary destination is a disk or tape (sequential) pool.
254
1
Old Storage
Old Mgmt Class
LTO
R/O
Old Storage
Old Mgmt Class
LTO
Old Storage
LTO
LTO Mgmt Class
255
7. Once the old sequential storage pool is emptied, modify the NEXTSTGPOOL parameter of the disk storage pool to point to the new LTO storage pool (label 3 in Figure 6-31). 8. Delete the DRIVE and PATH, and also the LIBRARY and PATH entries for the old library and drives.
1
Disk Storage Old Mgmt Class Old Storage
LTO
2
Old Mgmt Class
R/O
Old Storage
LTO
R/O
Disk Storage Old Storage
LTO
To enable these functions, the DEFINE LIBRARY and DEFINE DRIVE commands have been enhanced to allow manual entry or automatic detection of the serial and element numbers. Also, the DEFINE PATH command is enhanced to automatically update the serial number. This new syntax is described in 6.2.3, Defining the library and drives using the command line on page 212. Refer to the IBM Tivoli Storage Manager documentation for further details.
SAN discovery
To avoid the need for manual modification, there is an accurate SAN device mapping feature available in IBM Tivoli Storage Manager V5.3. This mapping process involves two steps: 1. Detecting that the device has changed. This detection is accomplished by recording the devices serial number, manufacturer, and World Wide Node Name (WWNN), if it exists, in the IBM Tivoli Storage Manager database. Whenever a device is opened, its identity is verified. This feature is now available on Windows, AIX, Sun, and Linux servers as well as Storage Agents, and was implemented in IBM Tivoli Storage Manager V5.2 for Windows. 2. Reconciling the device definitions (paths) dynamically when changes are detected. This reconciliation requires Tivoli Storage Manager to discover devices in the SAN environment. New commands are available in IBM Tivoli Storage Manager V5.3. To activate SAN device mapping, set the SANDISCOVERY option to ON in the dsmserv.opt file:
SANDISCOVERY ON
This setting is the default for Windows platforms. For all other platforms, you must set this option in the server options file. To activate SAN discovery in a running IBM Tivoli Storage Manager instance, use the following setting:
SETOPT SANDISCOVERY ON
257
258
Chapter 7.
Copyright IBM Corp. 2002, 2003, 2004, 2005, 2007. All rights reserved.
259
The NetWorker product has four major components: the NetWorker server, client, storage node, and the License Manager: NetWorker server: The NetWorker server software provides control and scheduling for NetWorker operations. On the NetWorker server, you can enter the enabler licenses for the NetWorker server and all the functions the NetWorker server controls, such as autochanger modules, additional client connections, and ClientPak licenses. You can also define the clients, devices, and media that the NetWorker server controls, define the schedules for backups and other operations, and monitor all the NetWorker operations. NetWorker client: The NetWorker client software provides on-demand backup and recovery functionality, communicating with the NetWorker server. You install the NetWorker client software on all computers that need to back up to the NetWorker server. NetWorker storage node: You can back up data directly to devices attached to either a NetWorker server or to a NetWorker storage node. A storage node controls storage devices, such as tape drivers, autochangers, and silos. License Manager: The License Manager provides a central place for managing the licenses of all your NetWorker clients and servers. Instead of managing licenses separately, you can maintain all your NetWorker licenses from a single computer. Installation of the License Manager is an option when installing the NetWorker software.
Or for up-to date documentation, you should log in with your EMC user ID at this Web site:
https://powerlink.emc.com/nsepn/webapps/btg548664833igtcuup4826/kmlogin/login.jsp?CTAuthMod e=BASIC
You should already have installed and configured the tape drives as described in Chapter 3, Basic IBM tape setup for Windows on page 101.
260
Note: You can only use non-rewinding devices with the NetWorker server. If you use a rewinding device, the read/write head is repositioned at the beginning of the volume, and the previously backed-up data is overwritten.
Many improvements have been made in V6.0 to the Veritas NetBackup product that make it much more robust in meeting the needs of the customers, including several core architecture changes. Because of these changes and the number of new features now offered in NetBackup, Symantec encourages you to upgrade any systems running a pre-6.0 version to the latest version of NetBackup (6.0). Before upgrading, go to the following Web site:
http://ftp.support.veritas.com/pub/support/products/NetBackup_Enterprise_Server/285590.pdf
Copyright (c) 2005 VERITAS Software Corporation. All rights reserved. VERITAS, the VERITAS Logo and NetBackup are trademarks or registered trademarks of VERITAS Software Corporation or its affiliates in the U.S. and other countries. Other names may be trademarks of their respective owners.
Chapter 7. Implementing other backup software with IBM Open System Tape
261
To learn more about interfacing with IBM TS3500 ALMS, go to the following Web site:
http://ftp.support.veritas.com/pub/support/products/NetBackup_Enterprise_Server/284200.pdf
Note: You can only use non-rewinding devices with the NetBackup server. If you use a rewinding device, the read/write head is repositioned at the beginning of the volume, and the previously backed-up data is overwritten.
You should already have installed and configured the tape drives as described in Chapter 3, Basic IBM tape setup for Windows on page 101. With the IBM TS3000 family of libraries, we recommend using the IBM Ultrium Tape device driver. If this device driver is installed when using other libraries, you must remove the IBM device driver and use the standard Veritas pass through driver.
You are recommended always to use the Veritas pass through driver.
262
Or for up-to date documentation, you should log in with your BakBone user ID at this Web site:
http://www.bakbone.com/Support.aspx?id=124
BakBone uses its device driver to manage the devices. An IBM Ultrium Tape device driver or Windows RSM service are not necessary.
Chapter 7. Implementing other backup software with IBM Open System Tape
263
Arkeia uses multi-flow technology and client side compression, making it capable of backup speeds that could exceed the network's rated speed. Its unique transaction engine allows multiple backups and restores to be performed simultaneously with total reliability. In the case of network and system errors, Arkeia is designed to restart, recover, and survive. Arkeia's systems management facility allows prioritization of other processing activities while a backup is in progress, and leverages standard TCP/IP protocol to intelligently monitor network errors. Should a network error occur, Arkeia restarts the backup procedure from the point of interruption. Arkeia's centralized catalog keeps a full record of all data and metadata managed by the system. It appends the relevant part of the catalog onto each tape. In the event of complete backup server failure, the catalog can be rebuilt and the data recovered by using the fail-safe restore utility. For more information about the Arkeia product, go to their Web site at:
http://www.arkeia.com
Or for up-to date documentation, you should subscribe to the Arkeia Newsletter at this Web site:
http://www.arkeia.com/support/usermailinglist/index.php
Arkeia uses its device driver to manage the devices. The IBM Ultrium Tape device driver and Windows RSM service are not necessary.
264
Part 3
Part
Appendixes
Copyright IBM Corp. 2002, 2003, 2004, 2005, 2007. All rights reserved.
265
266
Appendix A.
Copyright IBM Corp. 2002, 2003, 2004, 2005, 2007. All rights reserved.
267
268
Port Driver Installed Boot BIOS Level Adapter Controls Automatically Map SCSI Devices Query Name Server for all N-Ports Allow Multiple Paths to SCSI Targets Point to Point Register for State Change Use Report LUNs Use Name Server after RSCN (Should be checked if using soft zoning on the switch) (Should be checked if using soft zoning on the switch) LUN Mapping Automatic LUN Mapping Scan in Device ID Order Enable Class 2 for SCSI Devices Report Unknown SCSI Devices Look for Disappearing Devices Translate Queue Full to Busy Use Bus Reset Status for Retries Retry Unit Attention Retry PLOGI Open Failures
Checked (enabled) Checked (enabled) Checked (enabled) Not shown on screen Checked (enabled) Checked (enabled)
Checked (enabled) Checked (enabled) Checked (enabled) Not checked (disabled) Checked (enabled) Checked (enabled)
Not checked (disabled) Not checked (disabled) Checked (enabled) Checked (enabled) Not checked (disabled) Not checked (disabled) Checked (enabled) Not checked (disabled) Not checked (disabled) Not checked (disabled) Not checked (disabled) Not checked (disabled) Checked (enabled) Checked (enabled) Not checked (disabled) Not checked (disabled) Checked (enabled) Not checked (disabled) Not checked (disabled) Not checked (disabled) Not checked (disabled) Not checked (disabled)
269
Maximum Number of LUNs (value > or = to the number of LUNs available to the HBA on any attached target) Maximum Queue Depth Link Timer Retries E_D_TOV AL_TOV Wait Ready Timer Retry Timer R_A_TOV ARB_TOV Performance Parameters Max Interrupt Latency Min I/O Completions per Interrupt Max I/O Completions per Interruptions Link Control Parameters Topology Link Speed
(Value > or = to the number of LUNs available to the HBA on any attached target) 8 30 seconds 64 2000 ms 15 ms 45 seconds 2000 ms 2 seconds 1000 ms
(Value > or = to the number of LUNs available to the HBA on any attached target) 8 30 seconds 64 2000 ms 15 ms 45 seconds 2000 ms 2 seconds 1000 ms
0 0 128
270
Appendix B.
SNMP setup
This appendix describes setting up SNMP on the different IBM System Storage libraries: IBM System Storage TS3100 Tape Library and IBM System Storage TS3200 Tape Library IBM System Storage TS3310 Tape Library IBM System Storage TS3400 Tape Library IBM System Storage TS3500 Tape Library We also show some examples of usage with the IBM Tivoli NetView software.
Copyright IBM Corp. 2002, 2003, 2004, 2005, 2007. All rights reserved.
271
The IBM TS3000 family of tape libraries has the SNMP monitoring function included in the firmware, and supported by the Tape Library Specialist module. The SNMP connection requires an Ethernet port, which is included in all the TS3000 family of tape libraries.
272
To set up direct e-mail notification, select Configure Library Event Notification, as shown in Figure B-2. This allows you to define a specific e-mail address to receive the trap information, and to select the error level that should be submitted. When you Submit, a test message is sent to this address.
273
Click the Submit button to apply the changes. A confirmation window appears. Click ENTER to confirm the updates. You can enable the SNMP version that fits with your SNMP server; however, SNMP V3 is always enabled for this library. Note that if you are using SNMP V3, your login password must be eight characters long or greater. You will see there is also a selection to download the MIB file to provide it to the SNMP servers. From the Tape Library Specialist, select Manage Library Settings SNMP Traps to define your trap settings. This will lead you through a set of windows, the first of which is shown in Figure B-4 on page 275.
274
Define your SNMP community, and enable the SNMP level according to the requirements for your SNMP server. The TS3310 cannot receive SNMP requests from the server, but you can define which traps to send where. When you select Add from the drop-down menu in Figure B-4, you get a window to add the SNMP server IP address, as shown in Figure B-5. The default port is 162.
275
You may also send e-mail notifications directly from the library. To enable this, and set up a receiving address, select Manage Library Settings Email Notifications, as shown in Figure B-6. From the drop-down menu, you can enable/disable this functionality, and add or change mail receivers.
276
To configure SNMP and trap notifications, the network settings for the tape library must be assigned correctly. It is also necessary to set the gateway address if the tape library and the SNMP manager belong to different subnets. Then you need to provide information for the following parameters: 1. Community: SNMP Community name to which the library belongs. 2. Name: Unique SNMP name for the system. 3. Location: Physical location of the system. 4. Contact: Contact persons name. 5. Enter the trap IP addresses to be notified when an event takes place in the Trap To fields. Up to four destination addresses can be configured. 6. Select the event level to report in the Trap Event field: Emergency events Emergency and Error events Emergency, Error, and Warning events Every event (default) 7. Submit the settings to apply the changes. To send a test alert, select the Test button. The TS3400 library may also send e-mail traps directly. Selecting the Email Setting tab, ash shown in Figure B-7, you get a very similar window to define an e-mail server, and up to four mail receivers.
277
After you have configured the library to send SNMP alerts to the SNMP server, configure your SNMP monitoring product (like Tivoli NetView) to use the MIB-supplied file and to monitor the events. An example of the Tivoli NetView V6.0.1 window is shown in Figure B-8, where our tape drive BAVARIA is discovered as a node.
Tip: For more information about NetView, see Tivoli NetView 6.01 and Friends, SG24-6019.
278
The IBM TS3500 sends SNMP traps over all configured Ethernet ports. If using more than one Ethernet port, then you will also receive more than one SNMP trap for one single failure. The library acquires TapeAlert 3.0 compatibility information from the drives and sends this information to an SNMP server. In the event of a power loss, the library will detect the loss and generate an SNMP trap for notification. Up to five different SNMP managers can be configured to receive trap events. The TS3500 library supports SNMP Version 1.0 or 2.0c and can act as an SNMP server, responding to SNMP requests and generating SNMP traps, using the get/get-response mechanism. A get is a request for information about the library issued from a monitoring server and transmitted by SNMP. A get-response is the information provided in response to the get request. This functionality is provided with the TS3500. It generally requires an up-to-date library Management Information Base (MIB). In addition to the IBM TS3500 MIB, you also must load the Storage Networking Industry Association-Storage Media Library (SNIA-SML) MIB into your SNMP monitoring product. You can load the MIB for the IBM TS3500 from the following FTP site: ftp://ftp.software.ibm.com/storage/358x/3584/
Some SNMP monitoring applications only support Version 1 SNMP traps, while others only support Version 2 traps. The IBM 3584 supports both Version 1 and Version 2c.
279
To send a different version of traps, select V1/V 2 in the SNMP Menu. The V1/V2 Traps screen displays the version of the traps that were last sent by the SNMP agent. To change the setting, click UP or DOWN to specify the version of the trap (Figure B-10), and then click ENTER. The screen redisplays with the new version of the trap. To accept the new setting and return to the previous panel, click Back.
To view or change the destination IP address of a monitoring station to which SNMP alerts will be sent, choose Destination IP Addresses from the SNMP menu. Then click UP or DOWN to specify the destination IP address that you want to view or change (Figure B-11), and then click ENTER. You can have the library send the SNMP traps to up to five different monitoring stations.
The Set Destination IP Address screen displays with the current value of the destination IP address that you specified (Figure B-12 on page 281). Click UP or DOWN to change to the value that you want, and then click ENTER. The screen redisplays with the new destination IP address. To accept the new setting and return to the previous screen, click Back.
280
To view or change the community name, click UP or DOWN to highlight Community Name and click ENTER. The Community Name screen displays with the current password (Figure B-13). To change the password, click UP or DOWN to specify the character that you want and click ENTER. Repeat this operation for the following characters. When you are done, the library displays the message Updating Community Name and the update of the password begins. When the update is finished, Community Name change displays. Click ENTER to display the new password.
To use the Operator panel to send a test SNMP trap and ensure proper connection of the IBM TS3500, do the following: From the librarys touchscreen, press Menu Settings Network SNMP Send a Test Trap Enter. The library displays the message A test trap with the text This is a test SNMP trap. has been sent to all defined target hosts. Click ENTER to continue. The library sends an SNMP trap to all SNMP IP addresses at the remote port that you specified. The trap contains the machine type, model number, and serial number of the library, as well as other fields. For more information about SNMP traps, see the IBM System Storage TS3500 Tape Library Operator Guide, GA32-0560.
281
Next, enter the destination SNMP monitoring server. Up to five SNMP monitoring servers can be defined. Select SNMP Destinations in the Specialist and enter the IP address(es) and port(s) of any SNMP monitoring server(s) to which you want to send SNMP alerts. Click Apply to accept the information, as shown in Figure B-15 on page 283.
282
You must also establish the SNMP System data, as shown in Figure B-16. Fill in the required information and Apply.
283
2. Select the Other tab and specify the Hostname, the IP Address of the IBM TS3500, and the Subnet Mask (see Figure B-18 on page 285). Before you can create this new object, you have to verify the connection. Click the Verify icon for that purpose.
284
3. On the NetView console, you can browse the network segment that your library belongs to. The color of the icon indicates the status of the library. See Figure B-19 for an illustration of several libraries with different statuses.
285
4. By choosing the properties of one object (one library) and selecting the event tap, you can see all SNMP traps received by NetView (see Figure B-20).
5. If you double click one of these SNMP traps, you will get a detailed description of why the library sent an SNMP trap. In most cases, depending on the failure, you also get suggestions for what to do to resolve the failure (see Figure B-21).
286
287
To obtain a list of all cartridges in the library, issue an SNMP get request on the object numberOfPhysicalMedias. This indicates how many cartridges are present in the library (see Figure B-23). Issue an SNMP get request on the object physicalMedia-PhysicalLabel.1 through physicalMedia-PhysicalLabel.n where n is the number returned by numberOfPhysicalMedias. This gives you a list of the physical label (volser) of all the cartridges in the library. You can also use (depending on your SNMP monitor product) the subtitle physicalMediaEntry (see Figure B-24 on page 289) for the status and the volser of all the cartridges.
288
Note: These SNMP requests issued from Tivoli NetView has been included as a sample of how to use SNMP. Configure your monitoring application to take advantage of the SNMP traps and functions provided by the TS3500 library.
289
290
Appendix C.
Additional information
This appendix provides some additional information that is useful when implementing IBM LTO tape drives and libraries. The topics are: Some performance considerations for tape devices IBM Tivoli Storage Manager tape drive and library commonly used commands EMC Legato NetWorker autochanger maintenance commands Using ntutil and IBMtapeutil to verify correct device attachment Troubleshooting considerations
Copyright IBM Corp. 2002, 2003, 2004, 2005, 2007. All rights reserved.
291
Performance considerations
Performance analysis is approached by determining which component of the data path impacts performance. Typically, a performance problem can be isolated by looking at one aspect of the data path at a time. The data path mainly consists of: Client file system Client server hardware Network Application server hardware Application server file system The application itself (for example, database) Connection to the tape drives Type of HBAs: 1 GBit, 2 Gbit, or 4Gbit What are the HBAs connected to? Which type of PCI Bus? What else is on the same PCI Bus? Size of files that you are backing up If you think you have a performance problem, then you have to determine which link of your chain is causing the problem, that is, where does the bottleneck occur? Therefore, look at each link separately. Attention: The numbers presented here are not intended to reflect any real performance that might be achieved. The tests were run without particular attention to optimizing performance and are intended to be used for comparative results only.
Linux
The Linux command dd can be used to get a baseline performance level. You may test the performance of your disk subsystem first by writing and reading from the disk to /dev/zero. Then you may want to test the performance from the server to the tape by writing and reading from tape to /dev/zero. Finally, you write files from the disk to the tape. The dd command has the following syntax:
dd if=input_file/device of=output_file/device bs=blocksize count=amount_of block_reading/writing
You may use dd in conjunction with time to measure the time. We suggest that you write or read at least 1 GB; therefore, use bs=262144 count=4096. First, test the file system performance with:
time dd if=<filename> of=/dev/null bs=262144
Substitute <filename> with a large file that you have created or that is already available. Then test the tape performance with:
time dd if=/dev/zero of=/dev/IBMtapex bs=262144
And with:
time dd if=filename of=/dev/IBMtape0 bs=262144
292
Windows
With NTUTIL in batch mode, you can test the native performance of the tape drives. For this task, you have to generate a batch file with the content shown in Example C-1.
Example: C-1 Sample NTUTIL batch file to test tape drive performance command open RW command set_device_parameters compression = 0 command set_media_parameters block_size = 262144 set block_size = 262144 command write records = 4096 command write_filemark 2
With this example, we are writing 1 GB data (4096 x 256 KB) from the cache to the tape using blocksize 256 k. Compression is set to off. We are using an Ultrium 1 drive. Save this file as ntutil.in in the directory where you open NTUTIL. Set the device special file, as described in 3.4, Testing the library with NTUTIL on page 114. Load a scratch tape to the tape drives that you want to test (use NTUTIL, StorWatch, or do it manually). Then go back to the main menu (see Example C-2) and select 2.
Example: C-2 NTUTIL main menu NTutil - Copyright (c) 1997-2003 IBM Corporation Main Menu: Microsoft Windows 2000 version ========== 1: Manual test 2: Batch test 9: Exit ntutil Enter selection:2
This runs the batch job in the file ntutil.in and generates output in ntutil.out. In our case, the batch job opens the tape drive, disables compression, and writes 4096 times 256 KB random blocks to the drive. After the job is finished, view the output file ntutil.out. At the end of the file, you see the calculated performance (see Example C-3).
Example: C-3 ntutil.out Batch test begin at time Sat Mar 22 20:48:44 2003 Test tool version 5.0.4.7 command line library mode off 20:48:44 Line 1 >>> command open RW special file (\\.\tape1) will be opened 20:48:44 Line 2 >>> command set_device_parameters compression = 0 execute set_device_parameters compression = OFF 20:48:44 Line 3 >>> command set_media_parameters block_size = 262144 execute set_media_parameters block_size = 262144 20:48:44 Line 4 >>> set block_size = 262144 20:48:44 Line 5 >>> command write records = 4096 attempt write 262144, actual write 262144 bytes, data = 4707372 attempt write 262144, actual write 262144 bytes, data = 4707372 attempt write 262144, actual write 262144 bytes, data = 4707372 attempt write 262144, actual write 262144 bytes, data = 4707372 attempt write 262144, actual write 262144 bytes, data = 4707372
293
attempt write 262144, actual write 262144 bytes, data = 4707372 . . attempt write 262144, actual write 262144 bytes, data = 4707372 attempt write 262144, actual write 262144 bytes, data = 4707372 attempt write 262144, actual write 262144 bytes, data = 4707372 20:49:20 Line 6 >>> command write_filemark 2 20:49:21 Line 7 >>> Total elapsed time in seconds = 37.00 Bytes transferred = 1073741824.000000 Data rate = 29020049.30 bytes/second Batch test end rc=0 at time Sat Mar 22 20:49:21 2003
During this test, it may be helpful to monitor the real-time performance values on your SAN Switch (if FC Drives). You can use either the switch GUI or command-line interfaces. For IBM 2109 (Brocade) switches, you can use the portperfshow command to show the performance of the attached devices. Example C-4 shows the portperfshow output from an IBM 2109-F16 Switch. The tape is connected on port 7 and the HBA is connected on port 5. Performance varies between 35 and 36 MB/s, with the values updated automatically every second.
Example: C-4 IBM 2109 SAN Switch: portperfshow
portPerfShow 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 -------------------------------------------------------------------------------0 0 0 0 0 35m 0 35m 0 0 0 0 0 0 0 0 0 0 0 0 0 36m 0 36m 0 0 0 0 0 0 0 0 0 0 0 0 0 36m 0 36m 0 0 0 0 0 0 0 0 0 0 0 0 0 36m 0 36m 0 0 0 0 0 0 0 0 0 0 0 0 0 35m 0 35m 0 0 0 0 0 0 0 0 0 0 0 0 0 36m 0 36m 0 0 0 0 0 0 0 0 112 0 0 0 0 35m 0 35m 0 0 0 0 0 0 0 0 0 0 0 0 0 36m 0 36m 0 0 0 0 0 0 0 0 0 0 0 0 0 36m 0 36m 0 0 0 0 0 0 0 0 0 0 0 0 0 36m 0 36m 0 0 0 0 0 0 0 0 0 0 0 0 0 36m 0 36m 0 0 0 0 0 0 0 0 0 0 0 0 0 36m 0 36m 0 0 0 0 0 0 0 0 0 0 0 0 0 35m 0 35m 0 0 0 0 0 0 0 0 0 0 0 0 0 36m 0 36m 0 0 0 0 0 0 0 0 112 0 0 0 0 36m 0 36m 0 0 0 0 0 0 0 0
294
Command CHECKIN LIBVOLUME CHECKOUT LIBVOLUME LABEL LIBVOLUME AUDIT LIBRARY REPLY nnn QUERY PATH
Description Check in volumes to the library. Check out volumes to the library. Write TSM labels on cartridges. Check the consistency of the library inventory. Reply to console requests. Obtains information about library and device paths.
295
Also, you should have already determined which operating system device name corresponds to which tape drive in the library. You could create a list like Table C-3.
Table C-3 Library device table Device name \\.\tape0 \\.\tape1 \\.\tape2 WWN 5005076300410801 5005076300410802 5005076300410803 Tape drive in the library Drive 1 Drive 2 Drive 3 SCSI element address 257 258 259
If your list is incorrect, or you have not made one yet, the procedures here will show you how to correct it. You should run this test for every attached tape drive.
3. Select 2: Changer. 4. Select 1: Open a Device. 5. Enter /dev/IBMchanger0 for the device name (Example C-7).
Example: C-7 tapeutil changer menu Enter device name (<enter> for /dev/IBMchanger0): /dev/IBMchanger0 Opening device... Hit <enter> to continue... -------------------------- General Commands: ----------------------------1. Open a Device 7. Request Sense 2. Close a Device 8. Log Sense Page 3. Inquiry 9. Mode Sense Page 4. Test Unit Ready 10. Switch Tape/Changer Device 5. Reserve Device 11. Create Special Files 6. Release Device 12. Query Driver Version
296
Q. Quit IBMtapeutil ------------------------- Medium Changer Commands: ----------------------60. Element Information 65. Load/Unload Medium 61. Position To Element 66. Initialize Element Status 62. Element Inventory 67. Prevent/Allow Medium Removal 63. Exchange Medium 68. Initialize Element Status Range 64. Move Medium 69. Read Device Identifiers -------------------------- Service Aid Commands: ------------------------70. Dump Device 72. Load Ucode 71. Force Dump 73. Reset Drive --------------------------------------------------------------------------99. Back To Main Menu
6. Select 3: Inquiry. Press Enter when prompted for an inquiry page. This concludes a very basic test of the device, SCSI connection, and the device driver. You may stop the test here or continue to perform a more complete test. 7. Select 62: Element Inventory. 8. From the output of the previous step, select a writable scratch cartridge and determine its element ID (see also Using tapeutil element inventory (Linux) on page 300). Also, select the element ID of the tape drive that your are working with; refer to Table C-3 on page 296. 9. Select 64: Move Medium, and then supply the address of the cartridge, followed by the address of the tape drive that you want to test. Use the element address from Table C-3 on page 296. Verify that the cartridge moved. 10.Close the medium changer (option 2) and return to the main menu (99). 11.Select 1: Tape from the main menu.
Example: C-8 tapeutil tape main menu -------------------------- General Commands: ----------------------------1. Open a Device 7. Request Sense 2. Close a Device 8. Log Sense Page 3. Inquiry 9. Mode Sense Page 4. Test Unit Ready 10. Switch Tape/Changer Device 5. Reserve Device 11. Create Special Files 6. Release Device 12. Query Driver Version Q. Quit IBMtapeutil --------------------------- Tape Commands: -------------------------------20. Rewind 33. Set Block Size 21. Forward Space Filemarks 34. Retension Tape 22. Backward Space Filemarks 35. Query/Set Tape Position 23. Forward Space Records 36. Query Tape Status 24. Backward Space Records 37. Load Tape 25. FSFM 38. Unload Tape 26. BSFM 39. Lock Tape Drive Door 27. Space to End of Data 40. Unlock Tape Drive Door 28. Read and Write Tests 41. Take Tape Offline 29. Write Filemarks 42. Enable/Disable Compression 30. Read or Write Files 43. Flush Driver's Buffer 31. Erase 44. Self Test 32. Reset Drive 45. Display Message --------------------------- IBMtape Commands: ------------------------------46. Query Sense 52. Locate Tape Position 47. Query Inquiry 53. Read Tape Position 48. Query/Set Tape Parameters 54. Query Mtdevice Number 49. Query/Set Tape Position 55. Synchronize Buffers 50. Query/Set MT/ST Mode 56. List Tape Filemarks 51. Report Density Support
297
--------------------------- Service Aid Commands: ------------------------70. Dump Device 72. Load Ucode 71. Force Dump 73. Reset Drive --------------------------------------------------------------------------99. Back To Main Menu
12.On the Tape menu, select 1: Open a device. 13.Enter /dev/IBMtape0 (or the device name of the drive you want to test referring to Table C-3 on page 296) when prompted for the device name. 14.Select 1: Read/Write. 15.Select 4: Test Unit Ready and wait until no error occurs and the tape drive is ready (see Example C-9).
Example: C-9 Test unit ready Enter Selection for /dev/IBMtape0: 4 Issuing test unit ready... Unit ready. Hit <enter> to continue...
If your drive is not ready after one minute, then do a visual check to see if the cartridge is loaded on the right drive. If not, then your library device table (Table C-3 on page 296) may be wrong and you will have to figure out it by iteration. Close your device by selecting 2, try to open a different device name, and start again at step 12. Repeat steps 12 to 15 until you find a device that is ready, then update your library device table (Table C-3 on page 296). 16.Select 28: Read and Write Tests. 17.Select 1: Read/Write. Press the Enter key three times to accept the defaults and run the test. 18.Select 38: Unload Tape. Wait until the medium is unloaded. 19.Then close the tape device with option 2 and go back to the main menu with 99. 20.Select 2: Changer 21.Select 1: Open a Device. 22.Select /dev/IBMchanger0 for the device name. 23.Select 62: Move Medium, and then supply the address of the tape drive, followed by the address of the cartridge slot where it was before. Verify that the cartridge moved. 24.Select 2: Close a Device. 25.Select Q: Quit Program.
298
You also need an unassigned cartridge available for loading in at least one of the slots: 1. Open a terminal session. 2. Start ntutil. The ntutil menu will be displayed (as in Example 3-2 on page 115). 3. Select 1: Manual test. 4. Select 8: Library Mode 5. List all available devices with 88: List registered devices, as shown in Example C-10.
Example: C-10 List registered devices enter selection: 88 Device found: Changer0 @"Scsi Port 3\Scsi Bus 1\Target Id 0\Logical Unit Id 1" Device found: Tape0 @"Scsi Port 3\Scsi Bus 1\Target Id 0\Logical Unit Id 2" Device found: Tape1 @"Scsi Port 3\Scsi Bus 1\Target Id 0\Logical Unit Id 4" Total elapsed time in seconds = 0.00 Return to continue:
6. Select 1: Set the device special file (Example C-11). a. Enter the special file name for the tape (tape0). b. Enter the special file name for the changer (changer0).
Example: C-11 ntutil: Set special file name enter selection: 1 Enter device special file (tape path) name or return for no change: tape0 Enter device special file (changer path) name, or "def" for default lun1 changer or return for no change: changer0 Total elapsed time in seconds = 41.00 Return to continue:
If you are testing other tape drives, then you have to enter the appropriate special file name. 7. Select 20: Open to open the tape and the changer. 8. Select 14: Additional ioctls calls and then 2: Library Inventory. 9. From the output of the previous step, select a writable, scratch cartridge and determine its element ID. Also, select the element ID of the tape drive that you are working with (refer to Table C-3 on page 296). 10.Select 11: Move Medium, then select 2 (SE = Storage Element) or 3 (IEE = Import / Export Element), depending on where your cartridge is stored. Supply the address of the cartridge. As the destination type, select 4 (DTE = Data Transfer Element = Tape Drive), followed by the address of the tape drive, as seen in Example C-12. Verify that the cartridge moved.
Example: C-12 Move medium enter selection: 11 source type [moving from]: 2 = SE, 3 = IEE, 4 = DTE:2 source address moving from: 4120 destination type [moving to]: 2 = SE, 3 = IEE, 4 = DTE:4 destination address moving to: 258
299
11.Select 39: Test Unit Ready until no error occurs. If your drive is not ready after one minute, check to see if the cartridge actually loaded in the right drive. If not, then your library device table (Table C-3 on page 296) may be wrong and you will have to figure out it by iteration. Close your device by selecting 2 and try to open a different device name by selecting a different device special file name. Open it and try it again with 39: Test Unit Ready. Repeat these steps until you find a device that is ready, then update your library device table (Table C-3 on page 296). 12.Select 87: Read and Write Tests. 13.Select 33: Unload Tape. Wait until the medium is unloaded. 14.Select 11: Move Medium, and then supply the address of the tape drive, followed by the address of the cartridge slot where it was before. Verify that the cartridge moved. 15.Select 2: Close a Device. 16.Select Q: Quit Program or start again at step 6 with a different tape drive.
Normal 0000 No No No
0 1 2 3 4 5 6 7 8 9 A B C D E F 0000 - 0000 0000 0000 0000 0000 0000 0000 0000 0010 - 0000 0000 0000 0000 0000 0000 0000 0000 0020 - 0000 0000
Import/Export Station Address 16 Import/Export State ............ ASC/ASCQ ....................... Media Present .................. Import Enabled ................. Export Enabled ................. Robot Access Allowed ........... Source Element Address Valid ... Media Inverted ................. Volume Tag, Length 36
0123456789ABCDEF [................]
300
0010 - 0000 0000 0000 0000 0000 0000 0000 0000 0020 - 0000 0000
[................] [.... ]
Hit <enter> to continue... Import/Export Station Address 17 Import/Export State ............ ASC/ASCQ ....................... Media Present .................. Import Enabled ................. Export Enabled ................. Robot Access Allowed ........... Source Element Address Valid ... Media Inverted ................. Volume Tag, Length 36 0123456789ABCDEF [................] [................] [.... ]
0 1 2 3 4 5 6 7 8 9 A B C D E F 0000 - 0000 0000 0000 0000 0000 0000 0000 0000 0010 - 0000 0000 0000 0000 0000 0000 0000 0000 0020 - 0000 0000
Scroll down to continue the listing of the rest of the import/export slots. Next, the drives are listed (Example C-14).
Example: C-14 Tapeutil element inventory: drives Drive Address 256 Drive State .................... ASC/ASCQ ....................... Media Present .................. Robot Access Allowed ........... Source Element Address Valid ... Media Inverted ................. Same Bus as Medium Changer ..... SCSI Bus Address ............... Logical Unit Number Valid ...... Volume Tag, Length 36 0123456789ABCDEF [................] [................] [.... ] Normal 0000 No Yes No No Yes 0 No
0 1 2 3 4 5 6 7 8 9 A B C D E F 0000 - 0000 0000 0000 0000 0000 0000 0000 0000 0010 - 0000 0000 0000 0000 0000 0000 0000 0000 0020 - 0000 0000
Drive Address 257 Drive State .................... ASC/ASCQ ....................... Media Present .................. Robot Access Allowed ........... Source Element Address Valid ... Media Inverted ................. Same Bus as Medium Changer ..... SCSI Bus Address ............... Logical Unit Number Valid ...... Volume Tag, Length 36
301
0 1 2 3 4 5 6 7 8 9 A B C D E F 0000 - 0000 0000 0000 0000 0000 0000 0000 0000 0010 - 0000 0000 0000 0000 0000 0000 0000 0000 0020 - 0000 0000
0 1 2 3 4 5 6 7 8 9 A B C D E F 0000 - 0000 0000 0000 0000 0000 0000 0000 0000 0010 - 0000 0000 0000 0000 0000 0000 0000 0000 0020 - 0000 0000 .. .. .. Slot Address 4102 Slot State ..................... ASC/ASCQ ....................... Media Present .................. Robot Access Allowed ........... Source Element Address ......... Media Inverted ................. Volume Tag, Length 36
0 1 2 3 4 5 6 7 8 9 A B C D E F 0000 - 4142 4139 3230 4C31 0000 0000 0000 0000 0010 - 0000 0000 0000 0000 0000 0000 0000 0000 0020 - 0000 0000
You can see that slot 4102 is occupied, since Media Present is set to Yes and the Volume Tag (Barcode label) contains ABA9201L1, indicating that this tape cartridge is located in this slot. Slot 4097 is empty, since Media Present is set to No. Therefore, when selecting option 1: Move Medium, assuming we knew the tape in slot 4102 was not already used by an application, we could specify source address 4102 and destination address 256. This would load that tape into the tape drive. To unload the media (after selecting 33: Unload Tape), we would move the medium from 256 back to 4102.
302
Example: C-16 NTUTIL element inventory DATA TRANSFER ELEMENTS -- DRIVES Element address = 258 Accessible = 1 Lun flag = 0 Lun = 0 Full = 0 Svalid = 0 Source Address= 0 SCSI flag = 1 SCSI ID = 10 Barcode = Barcode length = 0 Element address = 259 Accessible = 1 Lun flag = 0 Lun = 0 Full = 0 Svalid = 0 Source Address= 0 SCSI flag = 1 SCSI ID = 11 Barcode = Barcode length = 0
STORAGE ELEMENTS Element address = 4120 Accessible = 1 Full = 0 Svalid = 0 Source Address= 0 Barcode = Barcode length = 0 Element address = 4121 Accessible = 1 Full = 0 Svalid = 0 Source Address= 0 Barcode = Barcode length = 0 .................................. Storage element output deleted IMPORT/EXPORT ELEMENTS Element address = 16 Accessible = 1 Full = 0 Svalid = 0 Source Address= 0 Barcode = Barcode length = 0 Element address = 17 Accessible = 1 Full = 1 Svalid = 0 Source Address= 0 Appendix C. Additional information
303
Barcode = H00512L1 Barcode length = 8 .... ............................. Import/Export element output deleted
You can see that slot 17 is occupied, since Full is set to 1 and the Barcode contains H00512L1, indicating that this tape cartridge is located in this slot. All other slots are empty, since Full is set to 0. Therefore, when selecting option 11: Move Medium, assuming we knew the tape in slot 17 was not already used by an application, we could specify source address 17 and destination address 258. This would load that tape into the tape drive. To unload the media (after selecting 33: Unload Tape), we would move the medium from 258 back to 17.
Troubleshooting
In this section, we present an approach to troubleshooting problems with LTO drives and libraries.
Example: C-17 NTUTIL save library logs enter selection: 81 Drive = 0, Library = 1: 1 Enter dump name (1 to 8 characters) or return for default dump0001: libdump analyze() called with rc 1 err 0 (ERROR_SUCCESS) data 0 Total elapsed time in seconds = 37.00 Return to continue:
Select 70: Dump Device. Save the dump to local disk (Example C-18).
Example: C-18 Tapeutil save library logs Enter Selection for /dev/IBMchanger0: 70 Enter destination filename (<enter> for dump0001.dmp): lib_dump.dmp Issuing read dump... Total dump data length is 3840. Total number of transfers is 1. Transfering dump data... Current transfer number is 1. Wrote 3840 bytes. Total dump data length is 3840. Total number of transfers is 1. Transfering dump data... Current transfer number is 1. Wrote 3840 bytes. Hit <enter> to continue...
Save the Library logs with the IBM System Storage Tape Specialist
You can also use the IBM System Storage Tape Library Specialist to download the library logs. If you are using a backup application that uses its own device driver for the medium changer, you cannot use tapeutil; you have to use the Tape Library Specialist. Compared to tapeutil, where you just download one log for the whole library, if you are using the Tape Library Specialist, you have to download several logs. The different libraries will all provide similar possibilities, as shown in the following figures (see Figure C-1 through Figure C-5 on page 307). Generally, there are separate selections for drive and library logs.
We see that we can capture the logs by individual drives or by the different logical libraries.
305
Some libraries will display the log content directly and give us the option to filter the log according to error codes before downloading. Generally the libraries all provide similar viewing and downloading capabilities, but it may have slightly different description and selections from the Library Tasks menu.
Figure C-3 IBM TS3400 Tape Specialist view and download library logs
306
Figure C-5 IBM TS3500 Tape Specialist view library error log
307
We notice for the TS3500 that the Library has a number of different logs that can be downloaded one by one, as seen in Figure C-4 on page 307, and that there are selections for just viewing the logs, as shown in Figure C-5 on page 307.
308
Example: C-20 tapeutil save drive logs Enter Selection for /dev/IBMtape0: 70 Enter destination filename (<enter> for dump0001.dmp): tape_before.dmp Issuing read dump... Querying tape parameters... Total dump data length is 307740. Total number of transfers is 5. Transfering dump data... Current transfer number is 1. Wrote 65536 bytes. Current transfer number is 2. Wrote 65536 bytes. Current transfer number is 3. Wrote 65536 bytes. Current transfer number is 4. Wrote 65536 bytes. Current transfer number is 5. Wrote 45596 bytes. Hit <enter> to continue...
3. Select 81: Read Dump and choose 0 for the drive. 4. Save the dump to a local disk (for example, after_drivex).
3. Select 70: Dump Device. 4. Save the dump to a local disk (for example, after_drivex).
309
Hints
Finally, here are some miscellaneous operational hints.
310
Related publications
The publications listed in this section are considered particularly suitable for a more detailed discussion of the topics covered in this book.
Other publications
These publications are also relevant as further information sources: IBM SAN Data Gateway Router 2108 Model R03 Installation and User's Guide, SC26-7355 IBM Storage Area Network Data Gateway Installation and User's Guide, SC26-7304 IBM Storage Area Network Data Gateway Module Setup, Operator and Service Guide, GA32-0436 IBM Tivoli Storage Manager for Linux Administrator's Guide V5.3, GC23-4690 IBM Tivoli Storage Manager for Linux Administrator's Reference Guide v5.3, GC23-4691 IBM Tivoli Storage Manager for Linux Installation Guide V5.3, GC32-1599 IBM Tivoli Storage Manager for Linux Quick Start V5.2, GC23-4692 IBM Tivoli Storage Manager for Linux Storage Agent Users Guide V5.3, GC23-4693 IBM Tivoli Storage Manager for SAN for AIX Storage Agent User's Guide V5.3, GC32-0771
Copyright IBM Corp. 2002, 2003, 2004, 2005, 2007. All rights reserved.
311
IBM Tivoli Storage Manager for Windows Adminstrator's Guide V5.3, GC32-0782 IBM Tivoli Storage Manager for Windows Quick Start V5.2, GC32-0784 IBM Tivoli Storage Manager for Windows Storage Agent Users Guide V5.3, GC32-0785 IBM Tivoli Storage Manager for Windows Installation Guide V5.3, GC32-1602 IBM TotalStorage 3580 Tape Drive Setup, Operator, and Service Guide, GC26-7708 IBM TotalStorage 3581 Tape Autoloader Models L28/L38/L3H and F28/F38/F3H Setup, Operator and Service Guide, GA32-0470 IBM TotalStorage 3582 Tape Library Setup, Operator, and Service Guide, GA32-0458 IBM TotalStorage 3583 Tape Library 3583 Setup and Operator Guide for Multi-Path Libraries, GA32-0411 IBM TotalStorage 3953 Tape Frame Model F05 and Library Manager Model L05 Introduction and Planning Guide, GA32-0472 IBM TotalStorage Enterprise Tape System 3592 Introduction and Planning Guide, GA32-0464 IBM TotalStorage SMI-S Agent for Tape Installation Guide, GC35-0512 IBM TotalStorage Tape Device Drivers Installation and Users Guide, GC35-0154 IBM TotalStorage Tape Device Drivers Programming Reference, GC35-0346 IBM TotalStorage UltraScalable Tape Library 3584 Introduction and Planning Guide, GA32-0469 IBM Total Storage UltraScalable Tape Library 3584 Operator Guide, GA32-0468 IBM TotalStorage UltraScalable Tape Library 3584 SCSI Reference, GA32-0454 IBM TotalStorage Ultrium Device Drivers Programming Reference, GC35-0483 IBM TotalStorage Ultrium Tape Autoloader 3581 Setup, Operator and Service Guide, GA32-0461 IBM Tape Device Drivers Installation and User Guide, GC27-2130
Online resources
These Web sites and URLs are also relevant as further information sources: Adaptec
http://www.adaptec.com
Adaptec - Support
http://www.adaptec.com/worldwide/support/suppbyproduct.jsp?fromPage=driverindex&cat=%2fT echnology%2fSCSI+Host+Adapters
312
IBM 3580 Tape Drive: Interoperability matrix- IBM TotalStorage Tape Storage Systems
http://www.ibm.com/servers/storage/tape/3580/interop.html
IBM 3584 Tape Library: Interoperability matrix - IBM TotalStorage Tape Storage Systems
http://www.ibm.com/servers/storage/tape/3584/interop.html
IBM Software Support: Tivoli: IBM Tivoli Storage Manager Supported Devices for AIX HPUX SUN WIN
http://www-306.ibm.com/software/sysmgmt/products/support/IBM_TSM_Supported_Devices_for_A IXHPSUNWIN.html
IBM Tivoli Storage Manager - NDMP backup for Network Attached Storage
http://www-306.ibm.com/software/tivoli/products/storage-mgr/network-data-mgt-protocol.ht ml
IBM Tivoli Storage Manager for Storage Area Networks - Product overview
http://www-306.ibm.com/software/tivoli/products/storage-mgr-san
IBM TotalStorage UltraScalable Tape Library 3584 Advanced Library Management System Technology White Paper, found at:
http://www-1.ibm.com/servers/storage/tape/whitepapers/pdf/advanced_library_management_sy stem.pdf
Related publications
313
Index of ftp://index.storsys.ibm.com/358x/3581
ftp://index.storsys.ibm.com/358x/3581
Index of ftp://ftp.software.ibm.com/storage/358x/3583
ftp://ftp.software.ibm.com/storage/358x/3583
Index of ftp://ftp.software.ibm.com/storage/devdrvr/Doc
ftp://ftp.software.ibm.com/storage/devdrvr/Doc
Index of ftp://ftp.software.ibm.com/storage/devdrvr/Linux
ftp://ftp.software.ibm.com/storage/devdrvr/Linux
Index of ftp://ftp.software.ibm.com/storage/devdrvr/Windows/Win2000
ftp://ftp.software.ibm.com/storage/devdrvr/Windows/Win2000
Index of ftp://ftp.software.ibm.com/storage/devdrvr/Windows/Win2003
ftp://ftp.software.ibm.com/storage/devdrvr/Windows/Win2003
Index of ftp://ftp.software.ibm.com/storage/san/2108
ftp://ftp.software.ibm.com/storage/san/2108
Index of ftp://metalab.unc.edu/pub/Linux/system/backup
ftp://metalab.unc.edu/pub/Linux/system/backup
java.com
http://java.com/en
The Linear Tape-Open Technology Organization Web site provides information about the technology, formats, and licensing
http://www.lto-technology.com/
QLogic Support
http://www.qlogic.com/support
314
rscan-scsi-bus.sh script
http://www.garloff.de/kurt/linux/rescan-scsi-bus.sh
SANBlade Manager Users Guide Management Application for SANBlade Host Bus Adapters for your specific HBA, found at:
http://www.qlogic.com/support/drivers_software.asp
Solaris documentation
http://docs.sun.com/
Related publications
315
316
Index
Symbols
/etc/modules.conf 178 control paths 108 CPF 112 cpio 263
Numerics
3592 WORM 233
D
daisy-chaining 39 data path failover 12, 19 data streaming 186 Data Transfer Element 79 device attachment with tapeutil 295 device driver 39 download 103, 161 QLogic 175 removing 127 SCSI adapter 129 Ultrium 161 device driver selection 102, 160 device drivers 40 Device Manager 104, 125 device special file 153, 161 device special name 117 DHCP 61, 141 discovery 69 dismount 102 dmesg 175 drive compression 182, 214, 227 daisy-chaining 39 deleting 125 device special name 117 element address 257 element numbers 211 firmware download 155 maximum number 38 microcode download 150 multidrop 40 SCSI inquiry 164 update firmware 152, 155 Drive Mounting Kit 14, 16 drive sharing 47 drives multiple paths 184 DTE 118 dual pathing 192 dual-gripper 13 duplicate drive definitions 184 dynamic device attachment 179
A
ACSLS 44 Adaptec 128 Advanced Library Management System. See ALMS AIX multiple control path 108 allocate media 122 ALMS 17, 21, 23, 46, 7783 assign drives 90 cartridge assignment policy 87 migration 96 using 98 API 121 Arbitrated Loop 182 Arkeia 263 assign drives 90 Atape alternate pathing support 108 control paths 108 Atape alternate pathing support 108 autochanger maintenance commands 295
B
BakBone NetVault 263 block size 39
C
cables 41 CAP 81 cartridge assignment policy 81, 87 cartridge labeling 218 cartridge memory 8 cartridge policy 87 cartridges mounting 119 catridge 233 CD-ROM 130 Changer Bus Enumerator 112 cleaning tape drives 224 compression 182 configuration discovery 69 configuring SNMP 276 configuring the Library Client 235 configuring the Library Manager 235 control path failover 19, 104
E
EKM 2627, 2930, 32 element addresses 2123, 7778, 211 element numbers 22, 211 element type 118 EMC Legato NetWorker see Legato NetWorker
Copyright IBM Corp. 2002, 2003, 2004, 2005, 2007. All rights reserved.
317
F
FCA 13 Fibre Channel mix disk and tape 186 FICON zSeries Linux 176 filesize and tape performance 182 firmware 150, 152, 155, 193 LTO-TDX 157 FLOGI 195 FMR 152 for 149
H
hardware zoning 193 HBA 39, 102 firmware 193 number of drives 38 using multiple 184 HD68 41 Hewlett-Packard 4 hexadecimal 118 high availability via control paths 111 hot-plug 104 HVD 40
I
I/O station 14, 16 IBM 2109 StorWatch Specialist 184 IBM 3494 library sharing 44 IBM 3581 check firmware 150 firmware 150 installed firmware 150 set IP address 51, 133, 138 IBM 3581 2U RMU 1012 SNMP 1012 Tape Library Specialist 1012 IBM 3582 configure SNMP 274 Library Specialist SNMP 54 Library Specialist users 54 IBM 3583 149 configure SNMP 276 partitioning setup 59 IBM 3584 accessor 17 alternate control path 109 assign drives 90 barcode reader 14, 16
bulk-loading 14, 16 cartridge assignment policy 87 control path failover 109 data path failover 19 element addresses 2223 element numbers 22 expansion frame 13, 23 Frame Control Assembly Feature 14, 16 high availability 111 I/O station 14, 16 insert notification 82 Library Specialist 61, 67, 142 Library Specialist menus 142 Library Specialist password 148 Linux zSeries 34 logical address 23 logical libraries 65 MAC address 60, 141 MCP 141 Model D22 16 Model D52 14 Model L22 15 partition with labels 67 partitioning 65, 67 physical address 23 reliability 17 set IP address 60, 141 SNMP See SNMP tape drive element numbers 22 IBM 3592 232 scaling 232 segmentation 232 IBM SAN Data Gateway 36 IBM SAN Fibre Channel Switch 184 IBM Support 103 IBMtapeutil 161 SCSI inquiry 164, 166 IEE 118 input/output station 14, 16 inquiry 120 Insert Notification 81 inserting unlabeled data cartridges 223 intermediate capacity feature 13 inventory 300, 302 ioctl 118 ISV applications 35 device driver selection 102 ITSM device driver (tsmscsi) 225
J
Java 49, 132
L
labeling data cartridges 221 LAN-free backup 48, 62, 144, 203 LAN-free data transfer 238 Legato NetWorker 260 client 260
318
installation 260, 262264 License Manager 260 server 260 storage node 260 Legato NetWorker commands 295 libraries 248 library firmware download 152 inventory 118 library client 235 library management 44 Library Manager 235 library sharing definitions 44 TSM 235 Library Specialist 148 3584 61, 142 users 54 Linear Tape-Open initiative 4 Linux /etc/modules.conf 177178 /etc/zfcp.conf 177178 basic LTO setup 159 boot messages 175 device attachment test 296 device driver READMEs 161 device driver selection 160 device map 178 device mapping 179 device special file 161 disable alternate path 171 dynamic device attachment 179 generic device drivers 176 IBMtapeutil 161 install Emulex driver 176 install QLogic driver 175 installing device drivers 160 installing tapeutil 161 Intel 160 labelling TSM volumes 230 library element inventory 300 LTO connectivity 37, 160 microcode updates 163 modprobe zfcp 177 persistent binding 176 Red Hat 34 sg_scan 176 SuSE 34 TSM configuration steps 225 Ultrium device driver 161 Ultrium driver download 161 uninstalling Ultrium driver 169 zSeries 34, 160 zSeries FICON enablement 176 Linux commands dd 292 time 292 load balancing 19 logical library 45 look 175
LTO 4, 101, 159 API 121 basic setup 102 block size 39 buying media 218 cartridge memory 8 compression 182 delete device 125 destination address 119 device drivers 40 device inquiry 120 device special file 161 device special name 117 disabling in Windows 2000 125 element type 118 generic device drivers 176 ISV software 35 Linux connectivity 37 Linux drivers 161 Linux installation 160 Linux setup 159 logs 304 LTO-TDX 152 mixed media with TSM 248 multi-path architecture 50 partitioning 45 read/write test 120 roadmap 4 SCSI attachment 35 source address 119 supported operating systems 34 supported servers 34 technology migration with TSM 248 test basic operations 114 troubleshooting 304 update firmware 152 Vital Product Data selection 151 Windows 2000 connectivity 35 Windows 2000 requirements 102 WORM 8, 231 LTO 1 tape capacity 6 LTO 2 tape capacity 6 LTO Ultrium 4 LTO4 59, 62, 68, 86, 182, 196, 228, 249252 LTO-TDX 152, 157 LVD 40, 128
M
MAC address 60, 141 Management Information Base (MIB) 272, 284 Maximum Number of Cartridges 78, 81 MCP 60, 141 media suppliers 218 medium changer 45, 47 device attachment test 296 device special name 117 microcode 40, 163 Microsoft Tape Format 263 Index
319
migration of LTO 248 mixed media 248 Mixed Media Support 17 mount 102 MTE 118 mtlib 44 multidrop 40 multi-path architecture 19, 21, 45, 50, 77 multiple tape paths 184
Q
QLogic HBA install driver 175
R
RAID 129 read/write test 120 Redbooks Web site 315 Contact us xiv redundant library control paths 244, 246 registry 124 Remote Management Unit (RMU) 1012 RMU 132 roadmap 4 RSM 114, 122, 205 disabling 126 RSMConfg 124
N
NAS 240 NDMP backup with Tivoli Storage Manager 241 metadata 241 NetView 20 network 240 Network Attached Storage see NAS NTBACKUP 122 allocate media 122 and SAN 124 backup directory 123 restore 124 with SAN 124 NTUTIL 114, 293, 304 base mode 116 basic functions 114 device inquiry 120 device special file 153 dismount cartridge 120 inquiry 154 interactive mode 114 ioctl 118 library element inventory 302 library mode 116 list registered devices. 117 manual test 115 mount cartridge 119 move medium 118 operating modes 114 read/write test 120 test basic operations 114 test medium changer 117 update drive firmware 155 update library firmware 152 view installed devices 117 view library inventory 118 ntutil 299
S
SAN and NTBACKUP 124 bandwidth 182 fabric 102, 182 performance 182 Simple Name Server 193 switch 192 tapes and libraries 181 TSM device mapping 256 with NTBACKUP 124 WWN 193 WWNN 194 WWPN 194 zoning 185, 190 SAN discovery 257 SAS 3, 89, 11 SCALECAPACITY 233 scratch pool 48 SCSI attach with Linux 37 cables 41 commands 114 device driver 129 element address 21, 23, 77 hot-plug 104 inquiry 164, 166 LTO with Linux 37 LTO with Windows 2000 35 mix disk and tape 186 Read ElementStatus 124 Ultra160 40 Ultra2 40 SCSI adapter Adaptec 128 install in Windows 2000 128 SCSI Commands reserve 144 SCSI commands release 63, 144 reserve 6263, 144
P
password protection 148 performance block size 39 performance considerations 292 persistent binding 176, 181, 185, 194 physical address 22 PLOGI 195 point-to-point 182
320
SCSI element address 2123, 77 SE 118 Seagate 4 sense data 114 sg_scan 176 Simple Name Server 193 slot pooling 77, 80 SMI-S 20 SNIA 196 SNMP 1012, 20, 54, 80, 100, 271272, 281 Community Name 281 Set Destination IP Address 280 test trap 281 traps 279 SNMP alerts 272 Software xi software zoning 193 switch commands portperfshow 294
T
tape barcode reader 219 element number 211 tape alert 247 tape categories 45 Tape Encryption xi, xv, 3, 12, 25, 2829 tape library partitioning 43 sharing 43 tape library commands 294 Tape Library Specialist 1012, 132 tape management system 102 TapeAlert 247 tapeutil 131, 161 device attachment tests 296 library element inventory 300 update drive firmware 155 tapeutil element inventory 300, 302 Tivoli Storage Manager see TSM troubleshooting 304 TS1030 13 TS1040 5, 13, 2527 TS1120 1516 TS2230 3, 5, 89 TS2340 3, 5, 9, 128, 150, 223 TS3100 3, 5, 910, 25, 4950, 52, 101, 118, 132, 134, 196, 273, 305 TS3200 3, 5, 1011, 25, 4952, 101, 103, 108, 132, 134, 161, 170, 172, 196, 202, 211, 226, 228, 244, 273, 305 TS3310 3, 5, 1112, 25, 4950, 5354, 101, 103, 108, 132, 136, 170, 172, 196, 202, 244, 274275, 306 TS3400 xv, 3, 2325, 30, 4950, 5759, 101, 108, 132, 138, 196, 204, 213, 216, 218, 232, 276277, 306 TS3500 3, 5, 1216, 1820, 22, 43, 46, 4950, 60, 79, 81, 83, 101, 103, 108109, 111, 170, 172, 184, 192, 196, 201202, 211, 232, 244, 262, 278282, 307308 TSM browser interface 212 checkin volumes 220
client 201 client compression 215, 228 command line interface 212 data migration 249 define storage pool 217, 229 defining devices 208 device class 212, 214 device co-existence 249 Device Configuration Wizard 208 device driver 207 device mapping 256 device mapping - new functions 256 dsm.opt 231 dsm.sys 231 dsmserv.opt 230 element autodetection 256 element number autodetection 256257 initial configuration 205 insert cleaner cartridge 224 insert data cartridges 222 labeling cartridges 218 LAN-free backup 203 library client 203, 235 Library Manager 202, 235 Library Manager Server 235 library sharing 202, 235 Linux LTO configuration 226 LTO migration 248 Management Console 206, 208, 218 metadata 238 migration and co-existence 249 mixed generation device 248 mixed media libraries 248 MOUNTLIMIT 216, 228 mountlimit 251 performance hints 230 RSM 205 SAN device mapping 256 SAN discovery 256257 SCALECAPACITY 233 scratch volumes 237 serial number autodetection 256257 server 201 server-to-server communication 235 server-to-server communications 203 Storage Agent 238 storage pools 212, 217, 229 supported platforms 200 tape alert 247 tape library 201 TXNBytelimit 231 TXNGroupmax 230 unlabeled cartridges 223 Windows installation 204 TSM commands 294 AUDIT LIBRARY 310 CHECKIN LIBVOLUME 224 DEFINE DEVCLASS 214, 216, 227228 DEFINE DRIVE 213, 226, 236, 257 DEFINE LIBRARY 213, 226, 236, 257
Index
321
DEFINE PATH 213, 226, 240, 257 DEFINE STGPOOL 217, 229 LABEL LIBVOLUME 221223, 230 QUERY ACTLOG 222 QUERY LIBVOLUME 222, 236237 QUERY PATH 236 QUERY REQUEST 222 REPLY 222 SET CROSSDEFINE 235 SET SERVERHLADDRESS 235 SET SERVERLLADDRESS 235 SET SERVERNAME 235 SET SERVERPASSWORD 235 SET TAPEALERTMSG 247 TSM devclass 3592 format 215, 227 3592c format 215, 227 Ultrium format 214, 227 Ultrium2 format 214, 227 Ultrium2c format 215, 227 Ultriumc format 214 TSM for NDMP 241 configurations 242 expiration and retention policies 243
U
Ultra160 40 Ultra160 SCSI 40 Ultra2 SCSI 40 Ultrium 4 device drivers 40 roadmap 4 tape pool 124 Ultrium 1 6 Ultrium 2 6 Ultrium device driver 185, 191 install in Linux 161 installing 104 NTUTIL 114 removing 127 tapeutil 161 uninstall in Linux 169 update firmware NTUTIL 152 upgrade firmware 149 using the StorWatch Specialist 68
library element inventory 302 TSM installation 204 Windows 2000 backup and restore 123 basic LTO setup 101 delete LTO device 125 Device Manager 104, 125, 185 device special name 117 disabling LTO device 125 Driver Installation Wizard 104 install SCSI adapter 128 install tape driver 104 install Ultrium driver 104 library inventory 118 LTO connectivity 35 LTO requirements 102 NTBACKUP 122 registry 124 removing Ultrium driver 127 resource kit utility 124 RSM 114, 122 test basic LTO operations 114 Ultrium device driver 103 Windows 2003 disabling LTO device 125 NTBACKUP 122 removing Ultrium driver 127 RSM 114 Ultrium device driver 103 WORM 6, 8, 231, 233 WWN 192194 WWNN 194 WWPN 194
Z
zoning 181, 185, 190 and dual pathing 192 hardware 193 SNS 193 software 193 zSeries connectivity information 176 Linux 160 zfcp.conf 178 zSeries Linux FICON enablement 176 Ultrium driver download 161
V
VHDCI 41 Virtual I/O 21, 8283 Virtual Tape xi Vital Product Data selection 151 VOLSER 21, 77, 80 Volser 81, 99
W
Windows device attachment test 298
322
Back cover