Escolar Documentos
Profissional Documentos
Cultura Documentos
ibm.com/redbooks
International Technical Support Organization Implementing IBM Tape in UNIX Systems October 2005
SG24-6502-03
Note: Before using this information and the product it supports, read the information in Notices on page xiii.
Fourth Edition (October 2005) This edition applies to IBM TotalStorage 3580 Tape Drive, IBM TotalStorage 3581 Tape Autoloader, IBM TotalStorage 3581 2U Tape Autoloader, IBM TotalStorage 3582 Tape Library, IBM TotalStorage 3583 Tape Library, IBM TotalStorage 3584 Tape Library, and IBM TotalStorage 3592 Tape Drive.
Copyright International Business Machines Corporation 2002, 2003, 2004, 2005. 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
Figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix Notices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiv Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv The team that wrote this redbook. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv Become a published author . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvi Comments welcome. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii Summary of changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xix October 2005, Fourth Edition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xix July 2004, Third Edition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xix Part 1. Setting up IBM tape in UNIX. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Chapter 1. Introduction to LTO Ultrium with UNIX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.1 LTO overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.1.1 IBM TotalStorage LTO Ultrium models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.1.2 IBM TotalStorage 3580 Tape Drive. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.1.3 IBM TotalStorage 3581 Tape Autoloader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 1.1.4 IBM TotalStorage 3581 2U Tape Autoloader . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 1.1.5 IBM TotalStorage 3582 Tape Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 1.1.6 IBM TotalStorage 3583 Tape Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 1.1.7 IBM TotalStorage 3584 Tape Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 1.2 Hardware and operating system platforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 1.2.1 Hardware server platforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 1.2.2 ISV storage management software. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 1.3 Connectivity. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 1.3.1 SCSI direct attach . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 1.3.2 SAN attach . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 1.3.3 Determining the number of drives on a SCSI bus. . . . . . . . . . . . . . . . . . . . . . . . . 30 1.4 Host Bus Adapters and device drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 1.5 LVD versus HVD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 1.5.1 What are LVD and HVD? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 1.5.2 Why is this important?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 1.6 SCSI HD68 and VHDCI cable connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 Chapter 2. IBM LTO 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.2 Partitioning multi-path tape libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2.1 Partitioning the IBM 3582 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2.2 Partitioning the IBM 3583 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2.3 Partitioning the IBM 3584 (ALMS not enabled). . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2.4 Partitioning the IBM 3584 using the wizard (ALMS not enabled) . . . . . . . . . . . . . 2.2.5 Partitioning the IBM 3584 with the operator panel (ALMS not enabled) . . . . . . . . 35 36 36 38 40 41 41 42 45 47 52
Copyright IBM Corp. 2002, 2003, 2004, 2005. All rights reserved.
iii
2.3 ALMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.3.1 Functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.3.2 Configuring ALMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.3.3 Using ALMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 3. SAN considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.1 SAN design considerations for IBM tape libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.1.1 Bandwidth needed for FC tape . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.1.2 Multiple paths to tape drives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.1.3 Tape and disk on the same HBA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.1.4 Different SAN fabrics for disk and tape . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2 Zoning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2.1 Some basic information on zoning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2.2 Types of zoning. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2.3 Suggestion on zoning for tapes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2.4 World Wide Names of FC Host Bus Adapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3 Persistent binding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3.1 The need for persistent binding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3.2 Persistent binding with QLogic HBA on Solaris . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3.3 Persistent binding with Emulex HBA on Solaris . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3.4 Persistent binding not applicable to AIX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.4 Connection type of IBM tapes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 4. Basic IBM tape setup for UNIX systems. . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1 Installing library and device drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.2 Installing IBM tape device driver for AIX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.2.1 Atape driver installation using the command line interface . . . . . . . . . . . . . . . . . 4.2.2 Installation using SMIT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.2.3 Configuring tape and medium changer devices . . . . . . . . . . . . . . . . . . . . . . . . . 4.2.4 Verifying the Atape driver installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.2.5 Configuring the IBM tape device parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.2.6 Setting up control path failover for AIX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.2.7 Data path failover for LTO 2 and 3 FC and 3592 drives on AIX . . . . . . . . . . . . . 4.2.8 Deleting tape devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.2.9 Removing Atape driver from the system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.3 Installing IBM tape device driver for Solaris . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.3.1 IBMtape driver installation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.3.2 Configuring tape and medium changer devices . . . . . . . . . . . . . . . . . . . . . . . . . 4.3.3 Verifying the IBMtape driver installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.3.4 Deleting tape devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.3.5 Removing IBMtape driver from the system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.3.6 Setting up control path failover on Solaris. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.3.7 Setting up data path failover on Solaris . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.4 Installing IBM tape device driver for HP-UX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.4.1 Atdd driver installation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.4.2 Verifying the atdd driver installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.4.3 Setting up control path failover on HP-UX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.4.4 Configuring tape devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.5 Testing the library with tapeutil . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.6 Creating a library device table. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.7 Fibre Channel HBA driver installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.8 IBM pSeries or RS/6000 FC HBA installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.8.1 IBM HBA microcode installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
55 56 61 73 75 76 76 79 80 82 83 85 85 86 86 88 89 93 95 97 99
101 102 103 104 106 107 107 111 112 117 124 125 126 127 129 133 134 135 136 138 140 141 142 144 148 149 150 152 153 155
iv
4.8.2 HBA configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.9 Solaris Fibre Channel HBA driver installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.9.1 QLogic QLA2310 HBA driver installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.9.2 QLogic QLA2310 HBA driver configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.9.3 QLogic HBA FCode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.9.4 Emulex LP8000 HBA driver installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.9.5 Emulex LP8000 HBA driver configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.9.6 Emulex HBA firmware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.9.7 JNI driver configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.10 IBM Tape Library Specialist . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.10.1 IBM 3581 2U Tape Library Specialist . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.10.2 IBM 3582 Tape Library Specialist . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.10.3 IBM 3583 Tape Library Specialist . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.10.4 IBM 3584 Tape Library Specialist . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.11 Updating library, drive, and RMU firmware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.11.1 Using My Support to stay up-to-date with your drivers and firmware . . . . . . . . 4.11.2 Check the installed firmware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.11.3 Upgrading drive firmware using the IBM Tape Library Specialist . . . . . . . . . . . 4.11.4 Upgrading the drive firmware using LTO-TDX . . . . . . . . . . . . . . . . . . . . . . . . .
156 157 157 159 160 160 163 164 164 164 165 168 171 175 183 183 183 188 189
Part 2. LTO libraries and backup software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195 Chapter 5. Implementing IBM Tivoli Storage Manager . . . . . . . . . . . . . . . . . . . . . . . . 5.1 IBM Tivoli Storage Manager overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.1.1 Tivoli Storage Manager commonly used terms. . . . . . . . . . . . . . . . . . . . . . . . . . 5.1.2 Tivoli Storage Manager and tape library sharing . . . . . . . . . . . . . . . . . . . . . . . . 5.2 Non-shared tape device with Tivoli Storage Manager . . . . . . . . . . . . . . . . . . . . . . . . 5.2.1 Installing Tivoli Storage Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.2.2 Configure non-shared tape library and drives for AIX . . . . . . . . . . . . . . . . . . . . . 5.2.3 Configure non-shared tape library and drives for Solaris . . . . . . . . . . . . . . . . . . 5.2.4 Configure non-shared tape library and drives for HP-UX . . . . . . . . . . . . . . . . . . 5.2.5 Define device class and storage pool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.2.6 Inserting data and cleaning cartridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.2.7 Performance hints for Tivoli Storage Manager with LTO or 3592 . . . . . . . . . . . . 5.3 LTO WORM (Write Once Read Many) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.4 Various 3592 media types and Tivoli Storage Manager . . . . . . . . . . . . . . . . . . . . . . . 5.5 Sharing LTO libraries with Tivoli Storage Manager. . . . . . . . . . . . . . . . . . . . . . . . . . . 5.5.1 Configuring the Library Manager to share libraries . . . . . . . . . . . . . . . . . . . . . . . 5.5.2 Configuring the library client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.5.3 Define library and drives for library client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.5.4 Administering shared libraries. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.6 LAN-free backup with Tivoli Storage Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.6.1 LAN-free configuration setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.6.2 Define path considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.7 NDMP backup with Tivoli Storage Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.7.1 Network Attached Storage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.7.2 Overview of Tivoli Storage Manager NDMP backup. . . . . . . . . . . . . . . . . . . . . . 5.7.3 Tivoli Storage Manager NDMP backup configurations . . . . . . . . . . . . . . . . . . . . 5.8 Tivoli Storage Manager and redundant library control paths . . . . . . . . . . . . . . . . . . . 5.9 Tivoli Storage Manager and data path failover . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.10 Tape alert support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.11 Device migration and co-existence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.11.1 Scenarios . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197 198 199 200 202 202 203 206 209 212 216 219 220 221 223 223 224 224 225 226 227 228 229 229 230 230 232 234 235 237 237
Contents
5.12 Tivoli Storage Manager V5.2 SAN device mapping . . . . . . . . . . . . . . . . . . . . . . . . . 244 5.12.1 SAN device mapping functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244 Chapter 6. Implementing EMC Legato NetWorker with LTO . . . . . . . . . . . . . . . . . . . . 6.1 EMC Legato NetWorker overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.1.1 NetWorker and IBM LTO interoperability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.2 NetWorker installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.2.1 Installation in an AIX environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.2.2 Installation in a Solaris environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.2.3 Installation in an HP-UX environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.3 NetWorker implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.3.1 3583 autochanger configuration on NetWorker 6.1 . . . . . . . . . . . . . . . . . . . . . . 6.3.2 IBM 3584 autochanger configuration on NetWorker 7.0 . . . . . . . . . . . . . . . . . . . 6.4 Installation verification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.4.1 Inventorying and labeling volumes with barcodes. . . . . . . . . . . . . . . . . . . . . . . . 6.5 Adding a new LTO device to NetWorker . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.6 NetWorker exploitation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.6.1 Dynamic drive sharing (DDS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.6.2 Sharing autochangers between NetWorker hosts. . . . . . . . . . . . . . . . . . . . . . . . 6.6.3 Auto media management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247 248 248 249 249 251 255 258 258 262 270 272 274 275 275 276 277
Part 3. Appendixes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279 Appendix A. IBM SAN Data Gateway. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Connecting tape drives to a SDG. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . WWN of SDG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Get WWN of the SDG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SAN Data Gateway setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SAN Data Gateway basic setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Install and use the IBM SDG Specialist . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SDG LUN mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Access control by channel zoning. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Access control by Virtual Private SAN (VPS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Appendix B. SNMP setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Simple Network Management Protocol (SNMP) alerts . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuring SNMP for the IBM 3582 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuring SNMP for the IBM 3583 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuring SNMP for the IBM 3584 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Enable SNMP traps using the Operator panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Enable SNMP Traps using Tape Library Specialist . . . . . . . . . . . . . . . . . . . . . . . . . . . Enabling or disabling SNMP requests. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Appendix C. LTO tips and troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Guidelines for booting SAN Data Gateway and FC hosts . . . . . . . . . . . . . . . . . . . . . . . . . Performance considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . AIX commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SUN Solaris commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Tivoli Storage Manager tape and tape library commands . . . . . . . . . . . . . . . . . . . . . . . . . EMC Legato NetWorker autochanger maintenance commands . . . . . . . . . . . . . . . . . . . . Verifying proper device attachment with tapeutil . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . AIX tape and medium changer device attachment test. . . . . . . . . . . . . . . . . . . . . . . . . Solaris and HP tape and medium changer device attachment test . . . . . . . . . . . . . . . Using tapeutil element inventory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281 282 282 282 283 284 286 293 296 296 299 300 301 302 304 305 307 311 317 318 318 321 321 322 322 323 323 324 325
vi
Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326 Collect real-time failure information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327 Hints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 330 Abbreviations and acronyms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331 Related publications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IBM Redbooks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Other publications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Online resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . How to get IBM Redbooks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Help from IBM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333 333 333 334 335 335
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 337
Contents
vii
viii
Figures
1-1 1-2 1-3 1-4 1-5 1-6 1-7 1-8 1-9 1-10 1-11 1-12 1-13 1-14 2-1 2-2 2-3 2-4 2-5 2-6 2-7 2-8 2-9 2-10 2-11 2-12 2-13 2-14 2-15 2-16 2-17 2-18 2-19 2-20 2-21 2-22 2-23 2-24 2-25 2-26 2-27 2-28 2-29 2-30 2-31 2-32 2-33 2-34 LTO Ultrium road map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Ultrium generation media compatibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 The LTO Ultrium product family . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 IBM TotalStorage 3580 Tape Drive L1x, H1X, L23 and H23 . . . . . . . . . . . . . . . . . . . . 8 IBM TotalStorage 3580 Tape Drive L33/L3H. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 IBM TotalStorage 3581 Tape Autoloader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 IBM TotalStorage 3581 2U Tape Autoloader. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 IBM TotalStorage 3582 Tape Library. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 IBM TotalStorage 3583 Tape Library. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 IBM TotalStorage 3584 Tape Library. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Example of a 16-frame 3584 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Storage Products microcode Web site. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Device data flow. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 SCSI connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 IBM 3494 tape library sharing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 IBM multipath architecture and logical partitioning . . . . . . . . . . . . . . . . . . . . . . . . . . 38 Tivoli Storage Manager library sharing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 LAN-free backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 Library sharing done by TSM. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 IBM 3582 partitioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 IBM 3583 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 IBM 3583 Tape Library Specialist Operator panel . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 IBM 3583 setting up partitioning 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 IBM 3583 Setting up partitioning 2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 IBM 3583 setting up partitioning 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 IBM 3583 setting up partitioning 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 IBM 3584 partitioning example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 IBM 3584 Specialist main screen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 IBM 3854 Tape Library Specialist Logical Libraries entry panel . . . . . . . . . . . . . . . . 48 IBM 3854 Tape Library Specialist configuration wizard . . . . . . . . . . . . . . . . . . . . . . . 49 Current physical configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 IBM 3584 Tape Library Specialist Logical Libraries. . . . . . . . . . . . . . . . . . . . . . . . . . 50 IBM 3854 Tape Library Specialist drives and slots . . . . . . . . . . . . . . . . . . . . . . . . . . 51 Rename logical library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 IBM 3584 operator panel: Main Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 IBM 3584 operator panel: Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 IBM 3584 Configuration display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 IBM 3584 operator panel: Set Logical Libraries. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 IBM 3584 operator panel: Set Storage Slots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 IBM 3584 operator panel: Set Drives. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 IBM 3584 operator panel: Configuration Summary . . . . . . . . . . . . . . . . . . . . . . . . . . 55 IBM 3584 with ALMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 Welcome screen before enabling ALMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 Enable ALMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 Create Logical Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 Create Logical Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 Added new Logical Library. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 Cartridge assignment policy main screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Copyright IBM Corp. 2002, 2003, 2004, 2005. All rights reserved.
ix
2-35 2-36 2-37 2-38 2-39 2-40 2-41 2-42 2-43 2-44 2-45 2-46 2-47 2-48 2-49 3-1 3-2 3-3 3-4 3-5 3-6 3-7 3-8 3-9 3-10 3-11 3-12 3-13 3-14 3-15 4-1 4-2 4-3 4-4 4-5 4-6 4-7 4-8 4-9 4-10 4-11 4-12 4-13 4-14 4-15 4-16 4-17 4-18 4-19 4-20 4-21 4-22 4-23 x
Cartridge Assignment Policy assignments. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 assign Data Cartridge menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 Assign cartridge to a logical library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 Cartridge list. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 Drive Assignment. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 Drive with control path . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 Drive details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 Display drive element number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 Drive gap warning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 Change maximum number of cartridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 Logical Library details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 Detailed information before ALMS is enabled . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 Detailed Information after ALMS enabled . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 Inventory before move medium . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 Inventory after moving cartridge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 SAN Bandwidth for tape. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 Switch Management window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 Port performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 Our lab configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 Tape and disk on the same HBA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 SAN example for backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 Zoning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 Zone to restrict the tapes to one HBA only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 3584 with 8 FC LTO drives, one server with two HBA and two zones. . . . . . . . . . . . 84 Lab configuration with Sun server and 3584 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 Lab configuration with one 3583 and one 3570 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 One Drive is missing during boot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 Binding with QLogic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 Binding with Emulex. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 N-Port login . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 IBM 3582: Enable control paths. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 IBM 3583: Enable control path. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 IBM 3584: Enabling additional control paths without ALMS . . . . . . . . . . . . . . . . . . 114 IBM 3584: Enabling additional control paths with ALMS enabled . . . . . . . . . . . . . . 115 High availability control path configuration on an IBM 3584 . . . . . . . . . . . . . . . . . . 117 Datapath failover with LTO 2 FC drive. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 Database failover with IBM 3592 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 Dynamic load balancing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 Tapeutil main menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150 Net Parameter command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166 IBM 3581 Tape Library Login screen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166 Maintenance screen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167 Firmware update screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168 3582 operator panel: Configuring RMU IP address . . . . . . . . . . . . . . . . . . . . . . . . . 168 3582 Specialist welcome screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169 IBM 3582 Specialist: Configuration panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170 3582 Specialist: Diagnostics file panel. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171 IBM 3582 Specialist: Operator panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171 IBM 583 operator panel: Configuring RMU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172 IBM 3583 Specialist: Welcome panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172 IBM 3583 Specialist: Configuration panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174 IBM 3583 Specialist: Diagnostics file panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174 IBM 3583 Specialist: Operator panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
4-24 4-25 4-26 4-27 4-28 4-29 4-30 4-31 4-32 4-33 4-34 4-35 4-36 4-37 4-38 4-39 4-40 4-41 5-1 5-2 5-3 5-4 5-5 5-6 5-7 5-8 5-9 5-10 5-11 5-12 5-13 6-1 6-2 6-3 6-4 6-5 6-6 6-7 6-8 6-9 6-10 6-11 6-12 6-13 A-1 A-2 A-3 A-4 A-5 A-6 A-7 A-8 A-9
Change Ethernet parameters on IBM 3584 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IBM 3854 Specialist: Welcome page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IBM 3584 Specialist: Physical Library drive panel . . . . . . . . . . . . . . . . . . . . . . . . . . IBM 3584 Specialist: Cartridges. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IBM 3584 Specialist - Drive summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IBM 3584 Specialist: ID change warning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IBM 3584 Specialist: Drive Assignment Filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IBM 3584 Specialist: Drive assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IBM 3584 Specialist: Assignment change warning . . . . . . . . . . . . . . . . . . . . . . . . . Change Password screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IBM 3584 Specialist: Check drive firmware version. . . . . . . . . . . . . . . . . . . . . . . . . Tapeutil inquiry on tape drive. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Tape Library Specialist: Updating RMU firmware . . . . . . . . . . . . . . . . . . . . . . . . . . LTO-TDX selection screen 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LTO-TDX selection screen 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LTO-TDX Selection screen 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LTO-TDX selection screen 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LTO-TDX selection screen 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IBM Tivoli Storage Manager supported platforms . . . . . . . . . . . . . . . . . . . . . . . . . . Tivoli Storage Manager library sharing overview . . . . . . . . . . . . . . . . . . . . . . . . . . . Tivoli Storage Manager LAN-free data transfer overview . . . . . . . . . . . . . . . . . . . . How each of the SCALECAPACITY parameter initializes 3592 JA cartridges . . . . LAN-free backup lab example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Library connected to NAS system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Library on Tivoli Storage Manager server; drives on NAS system . . . . . . . . . . . . . How version control works for NDMP backups . . . . . . . . . . . . . . . . . . . . . . . . . . . . IBM 3584 with multiple control paths enabled . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3592 drive with multiple data paths configured . . . . . . . . . . . . . . . . . . . . . . . . . . . . Migration scenario 5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Migrating to LTO as sequential primary copy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Migrating to LTO through disk primary copy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Specify source window of the software installation GUI interface . . . . . . . . . . . . . . Select NetWorker package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Subproducts selection window of the software install dialog . . . . . . . . . . . . . . . . . . Install window after the successful package installation . . . . . . . . . . . . . . . . . . . . . Library view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Device view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . NetWorker administration GUI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Jukeboxes window for the LTO tape library. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Jukebox labeling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Inventorying the library. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuring a new tape device. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . NetWorker Dynamic Drive Sharing (DDS) example . . . . . . . . . . . . . . . . . . . . . . . . How NetWorker autochanger sharing works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Example of a connection with SDG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . WWN of the SDG. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Connected to the SDG. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Install of the SDG StorWatch Specialist. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SDG StorWatch connect to server. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SDG StorWatch logon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Connect to SDG. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Install firmware on the SDG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Select the SCSI option. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Figures
175 176 177 178 179 179 180 181 181 182 185 187 188 190 191 191 192 192 198 200 201 221 227 231 231 232 233 235 241 243 244 256 256 257 257 269 270 271 272 273 273 274 276 277 282 283 284 288 289 289 289 290 291 xi
A-10 A-11 A-12 A-13 A-14 A-15 A-16 A-17 A-18 B-1 B-2 B-3 B-4 B-5 B-6 B-7 B-8 B-9 B-10 B-11 B-12 B-13 B-14 B-15 B-16 B-17 B-18 B-19 B-20 B-21 C-1 C-2
SCSI Channel parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Select the Fibre Channel options. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Fibre Channel parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Basic SCSI connection to a system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SDG attached through Fibre Channel: Host view . . . . . . . . . . . . . . . . . . . . . . . . . . Select Device Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Device mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Select channel zoning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Channel zoning settings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IBM 3582 Tape Library Specialist: SNMP MIB download . . . . . . . . . . . . . . . . . . . . IBM 3582 Tape Library Specialist: configuring SNMP . . . . . . . . . . . . . . . . . . . . . . . IBM 3583 Tape Library Specialist: SNMP MIB download . . . . . . . . . . . . . . . . . . . . IBM 3583 Tape Library Specialist: Configuring SNMP . . . . . . . . . . . . . . . . . . . . . . Tivoli NetView SNMP monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IBM 3584 operator panel: Enable/disable SNMP . . . . . . . . . . . . . . . . . . . . . . . . . . IBM 3584 operator panel: V1/V2 Traps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IBM 3584 operator panel: Destination IP address . . . . . . . . . . . . . . . . . . . . . . . . . . IBM 3584 operator panel: Set destination IP address . . . . . . . . . . . . . . . . . . . . . . . IBM 3584 operator panel: Set community name . . . . . . . . . . . . . . . . . . . . . . . . . . . IBM 3584 Tape Library Specialist: Enabling SNMP. . . . . . . . . . . . . . . . . . . . . . . . . IBM 3584 Tape Library Specialist: SNMP destinations . . . . . . . . . . . . . . . . . . . . . . Tivoli NetView: Create new Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . NetView: Create new object. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . NetView - Browse network segment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . NetView - SNMP Traps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . NetView - Detailed description of 3584 SNMP Trap . . . . . . . . . . . . . . . . . . . . . . . . Enable SNMP Request with IBM 3584 Specialist . . . . . . . . . . . . . . . . . . . . . . . . . . SNMP Request: Drive status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SNMP Request: Number of all physical cartridges . . . . . . . . . . . . . . . . . . . . . . . . . SNMP Request: List of all physical media . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IBM Specialist 3582 download logs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IBM Specialist Download 3584 logs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
291 292 293 293 294 295 295 296 296 301 302 303 303 304 305 305 306 306 306 307 308 309 309 310 310 311 312 313 314 315 327 328
xii
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 illustrates 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. 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 IBM's application programming interfaces.
Copyright IBM Corp. 2002, 2003, 2004, 2005. All rights reserved.
xiii
Trademarks
The following terms are trademarks of the International Business Machines Corporation in the United States, other countries, or both:
Eserver Eserver Redbooks (logo) iSeries pSeries xSeries z/OS zSeries AIX 5L AIX AS/400 ESCON FICON IBM Netfinity NetView OS/390 OS/400 Redbooks RS/6000 SANergy Tivoli TotalStorage
The following terms are trademarks of other companies: Java, Solaris, StorageTek, Sun, Sun Fire, Sun Microsystems, Ultra, and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both. Microsoft, Windows NT, 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, and service names may be trademarks or service marks of others.
xiv
Preface
This IBM Redbook follows The IBM TotalStorage Tape Libraries Guide for Open Systems, SG24-5946, and will help you plan, install, and configure IBM Ultrium LTO tape drives and libraries, as well as the IBM 3592 tape drive in UNIX environments. This book focuses on the setup and customization of these drives and libraries in both direct-attached SCSI and SAN configurations for the AIX, Solaris, and HP-UX operating systems. The first part of the book describes how to attach and configure the drives and libraries, and covers basic installation and administration. It also describes 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 two documents how to use these products with popular data backup applications such as IBM Tivoli Storage Manager and EMC Legato NetWorker. This redbook will help IBM personnel, Business Partners, and customers to better understand and implement the IBM Ultrium LTO product line as well as the 3592 Enterprise tape drive in UNIX environments. We assume that the reader is familiar with tape drives and libraries, and understands basic SAN concepts and technologies.
Copyright IBM Corp. 2002, 2003, 2004, 2005. All rights reserved.
xv
Development and Field Engineering Service Planning, she was a Large Systems System Engineer. She became a Certified IT Architect while working in IGS. Since joining the ATS, she has supported zOS tape products and now supports LTO tape products.
The team: Alv Jon, Charlotte, Abbe, and Reena Thanks to the following people for their contributions to this project: The authors of the previous editions of this book: Anthony Abete, Marco Ceresoli, Bertrand Dufrasne, Carsten Krax, Tony Rynan, Takashi Makino, Josef Weingand, and Erwin Zwemmer. Alison Chandler, Emma Jacobs International Technical Support Organization Jennifer Bappert, Bill Baxter, Janet Bolton, Craig Bell, Kevin Cummings, Tommy De Jesus, Brett Dennis, Glen Jaquette, Lee Jesionowski, Jeffrey Li, Khanh Ngo, Anh Nguyen, Diem Nguyen, Steve Nunn, Debra Parker, Carla Ruhl, Ann Sargent, James Thompson, Dan Watanabe IBM tape development and marketing, Tucson
Find out more about the residency program, browse the residency index, and apply online at:
ibm.com/redbooks/residencies.html
Comments welcome
Your comments are important to us! We want our Redbooks to be as helpful as possible. Send us your comments about this or other Redbooks in one of the following ways: Use the online Contact us review redbook form found at:
ibm.com/redbooks
Mail your comments to: IBM Corporation, International Technical Support Organization Dept. QXXE Building 80-E2 650 Harry Road San Jose, California 95120-6099
Preface
xvii
xviii
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-6502-03 for Implementing IBM Tape in UNIX Systems as created or updated on October 18, 2005.
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. All rights reserved.
xix
xx
Part 1
Part
Copyright IBM Corp. 2002, 2003, 2004, 2005. All rights reserved.
Chapter 1.
Copyright IBM Corp. 2002, 2003, 2004, 2005. All rights reserved.
For more information on LTO technology, see The IBM TotalStorage Tape Libraries Guide for Open Systems, SG24-5946. The IBM LTO homepage is:
http://www.ibm.com/storage/lto
The LTO Ultrium road map (Figure 1-1) shows the evolution of LTO technology. At the time of writing, IBM Ultrium generation 2 and 3 products are offered; however, there are many existing installations of now-withdrawn Ultrium 1 products, so they are included for your reference. 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
Media compatibility
Figure 1-2 depicts the media compatibility characteristics for the three generations of Ultrium tape.
100 * GB
0G B*
Silver-grey bottom
* Native sustained data rate, native physical capacity
xxxxxxLT
Ultrium 1
The Ultrium 1 Tape Drive is not compatible with (cannot read or write) the cartridges of its successors, the Ultrium 2 and Ultrium 3 Tape Drives. Cartridge compatibility for the Ultrium 1 Tape Drive is as follows: Reads and writes Ultrium 1 format on Ultrium 1 cartridges
Ultrium 2
The Ultrium 2 Tape Drive is compatible with the cartridges of its predecessor, the Ultrium 1 Tape Drive. Cartridge compatibility for the Ultrium 2 Tape Drive is as follows: Reads and writes Ultrium 2 format on Ultrium 2 cartridges Reads and writes Ultrium 1 format on Ultrium 1 cartridges Does not write Ultrium 2 format on Ultrium 1 cartridges Does not write Ultrium 1 format on Ultrium 2 cartridges
Ultrium 3
The Ultrium 3 Tape Drive is compatible with the cartridges of its predecessors, the Ultrium 2 and Ultrium 1 Tape Drive. Cartridge compatibility for the Ultrium 3 Tape Drive is as follows: Reads and writes Ultrium 3 format on Ultrium 3 cartridges Reads and writes Ultrium 2 format on Ultrium 2 cartridges Reads Ultrium 1 format on Ultrium 1 cartridges Does not write Ultrium 3 format on Ultrium 2 cartridges Does not write Ultrium 2 format on Ultrium 3 cartridges
The LTO Ultrium 3 specification for WORM includes the use of low level encoding in the Cartridge Memory (CM) and is also mastered into the servo pattern as part of the manufacturing process. This encoding is designed to prevent tampering. Data can be appended at the end of a WORM cartridge to which data was previously written, allowing the full use of the high capacity tape media. LTO Ultrium 3 WORM cartridges can be used with any LTO Ultrium 3 tape drive with the appropriate microcode and firmware. LTO Ultrium 3 non-WORM-enabled and WORM-enabled drives can coexist in the same library.
IBM 3580-L23 has an Ultrium 2 drive and a Low-Voltage Differential (LVD) Ultra2 SCSI attachment that connects to LVD fast/wide adapters. IBM 3580-H23 has an Ultrium 2 drive and a High-Voltage Differential (HVD) Ultra SCSI attachment that connects to HVD fast/wide adapters. IBM 3580-L33 and IBM 3580-L3H have an Ultrium 3 drive and a Low-Voltage Differential (LVD) Ultra SCSI attachment that connects to LVD fast/wide adapters. The IBM 3580-L33 and IBM 3580-L3H are functionally identical; the only difference is that the IBM 3580-L3H is an Express Model which is part of the On-Demand Express Portfolio. The four previously available model types are: IBM 3580-L11 and IBM 3580-L13 have an Ultrium 1 drive and a Low-Voltage Differential (LVD) Ultra2 SCSI attachment that connects to LVD fast/wide adapters. The IBM 3580-L11 and IBM 3580-L13 are functionally identical; the only difference is that the IBM 3580-L13 has a three-year Customer Element Exchange warranty. IBM 3580-H11 and IBM 3580-H13 have an Ultrium 1 drive and a High-Voltage Differential (HVD) Ultra SCSI attachment that connects to HVD fast/wide adapters. The IBM 3580-H11 and IBM 3580-H13 are functionally identical; the only difference is that the IBM 3580-H13 has a three year Customer Element Exchange warranty. Note: The IBM 3580-L11 and IBM 3580-L13 were withdrawn from marketing in July 2004, and the replacement products are the IBM 3580-L23, IBM 3580-L33 and IBM 3580-L3H. The IBM 3580-H11 and IBM 3580-H13 were withdrawn from marketing in January 2005, and the replacement products are the IBM 3580-H23, IBM 3580-L33 and IBM 3580-L3H.
Figure 1-4 shows the IBM 3580-L1x, H1X, L23 and H23 and Figure 1-5 shows the IBM 3580-L33/L3H.
Figure 1-4 IBM TotalStorage 3580 Tape Drive L1x, H1X, L23 and H23
10
The IBM TotalStorage 3581 2U Tape Autoloader Model F28 The IBM 3581-F28 has an Ultrium 2 drive and a 2 Gbps native switched fabric Fibre Channel attachment. The IBM TotalStorage 3581 2U Tape Autoloader Model L38/L3H The IBM 3581-L38 has an Ultrium 3 drive and a Low-Voltage Differential (LVD) Ultra 160 SCSI attachment that connects to LVD fast/wide adapters. The IBM TotalStorage 3581 2U Tape Autoloader Model F38/F3H The IBM 3581-F38 has an Ultrium 3 drive and a 2 Gbps Native Switched Fabric Fibre Channel attachment. The IBM 3581-L38 and IBM 3581-L3H are functionally identical. The IBM 3581-F38 and IBM 3581-F3H are functionally identical.The only difference is the IBM 3580-L3H and IBM 3581-F3H are Express Models and are part of the On-Demand Express Portfolio.
11
using the many years of IBM tape experience to provide a tape cartridge that provides fast data transfer, but stands up to the rigors of automated handling. The IBM 3582 is designed for easy expansion. It has a one-cartridge Import/Export station and 22 data cartridge slots. With Ultrium 2 drives and media, the IBM 3582 provides a media capacity of up to 4.8 TB (9.6 TB with 2:1 compression) and a sustained data rate of up to 35 MB per second (uncompressed). With Ultrium 3 drives and media, the IBM 3582 provides a media capacity of up to 9.6 TB (19.2 TB with 2:1 compression) and a sustained data rate of up to 80 MB per second (uncompressed). The IBM 3582 comes standard with multi-path architecture, which allows the sharing of the library robotics. This allows the IBM 3582 to be partitioned into one to two logical libraries, providing each library with its own control path, drives, and storage slots. The Import/Export station (slot) is shared among logical libraries on a first come, first served basis. The cartridges under library control are not shared among the logical libraries. This feature will enable up to two heterogeneous applications to manage a single physical library. The tape library Import/Export (I/O) station allows cartridges to be inserted and removed without disrupting library operation. There are two I/O station options: A single import/export slot option to load or remove single tapes Two 7-slot magazines to perform bulk load and unloads A Bar Code Reader is standard for reading data cartridge labels, although the library can function with unlabeled cartridges. The IBM 3582 with Ultrium 2 and Ultrium 3 drives supports SCSI HVD, SCSI LVD and native Fibre Channel connected Ultrium 2 or Ultrium 3 drives. The direct attached SCSI drives may be any mixture of SCSI LVD, SCSI HVD or Fibre Channel up to a total of two drives.
autonomic self-healing capabilities similar to control path failover, with transparent failover to an alternate data path in the event of a failure in the primary host-side path. Data path failover and load balancing for Ultrium 3 Tape drives in all supported operating environments require an optional feature 1681 and the control path failover feature code 1680. Data path failover and load balancing for Ultrium 2 Tape drives in an AIX environment require the control path failover feature 1680 but do not require an optional feature; in non-AIX environments, the control path failover feature 1680 and an RPQ are required.
13
With Ultrium 2 drives and media, the IBM 3583 library provides a sustained data rate of up to 35 MB per second (uncompressed). With Ultrium 3 drives and media, the IBM 3583 provides a sustained data rate of up to 80 MB per second (uncompressed). With Ultrium 1 drives and media, the IBM 3583 provides a sustained data rate of up to 20 MB per second (uncompressed). Each aspect of the library subsystem has been designed for repeated, reliable, and unattended tape handling. The tape handling mechanism is designed to reliably move cartridges to IBM Ultrium Tape Drives within the library. The IBM Ultrium tape cartridges have been refined using the many years of IBM tape experience to provide a tape cartridge that provides fast data transfer, but stands up to the rigors of automated handling. The tape library is designed for easy expansion. It can accommodate from one to six tape drives and from 18 to 72 cartridges. There are three Library Models: L18, L36, and L72. The cartridge capacities of the models are: IBM 3583-L18 - 18 cartridges IBM 3583-L36 - 36 cartridges IBM 3583-L72 - 72 cartridges The IBM 3580-L18 and IBM 3580-L36 can be field upgraded to hold 72 cartridges. Cartridge expansion is in increments of 18 cartridges. One IBM Ultrium drive is required and five additional drives are available for factory or field installation. Upgrade features are modular units that are easy to install. Table 1-1 and Table 1-2 show the storage capacity of the IBM 3583 Library models with Ultrium 2 and Ultrium 3 tape drives.
Table 1-1 IBM 3583 model capacities with Ultrium 2 tape drives Model L18 L36 L72 Cartridge slots 18a 36b 72c Data capacity (native) 3.6 TB 6.4 TB 14.4 TB Data capacity (compressed) 7.2 TB 12.8 TB 28.8 TB IBM Ultrium Tape Drives 16 16 16
a. Plus one (1) I/O station slot b. Plus one (1) I/O station slot c. Including twelve (12) I/O Station slots Table 1-2 IBM 3583 model capacities with Ultrium 3 tape drives Model L18 L36 L72 Cartridge slots 18a 36b 72c Data capacity (native) 7.2 TB 14.4 TB 28.8 TB Data capacity (compressed) 14.4 TB 28.8 TB 57.6 TB IBM Ultrium Tape Drives 1-6 1-6 1-6
a. Plus one (1) I/O station slot b. Plus one (1) I/O station slot c. Including twelve (12) I/O Station slots
The tape library input/output (I/O) station enables cartridges to be inserted and removed without disrupting library operation. The IBM 3583 comes standard with a one-cartridge I/O station on the 3583-L18 and L36, or a 12-cartridge I/O station on the IBM 3583-L72. The IBM 3583-L18 and L36 can each be upgraded to a 12-cartridge I/O station with an optional feature 14
Implementing IBM Tape in UNIX Systems
(#8012). The I/O station can be defined as I/O slots or data storage, and the definition affects the number of cartridges available for data storage. Refer to Table 1-3 and Table 1-4 for the various combinations and resulting cartridge storage capacities.
Table 1-3 IBM 3583-L18 and L36 library capacity with feature #8012 Model L18 L18 with one FC 8007 (18-slot option) L18 with two FC 8007 (18-slot option) L36 L36 with one FC 8007 (18-slot option) Slots without FC 8012 Storage: 18 I/O: 1 Storage: 36 I/O: 1 Storage: 54 I/O: 1 Storage: 36 I/O: 1 Storage: 54 I/O: 1 Slots w/FC 8012 Defined as Storage Storage: 36 I/O: 0 Storage: 54 I/O: 0 Storage: 72 I/O: 0 Storage: 54 I/O: 0 Storage: 72 I/O: 0 Slots w/FC 8012 Defined as/O Slots Storage: 24 I/O: 12 Storage: 42 I/O: 12 Storage: 60 I/O: 12 Storage: 42 I/O: 12 Storage: 60 I/O: 12
Table 1-4 IBM 3583-L72 library capacity I/O door definition L72 with I/O door defined as storage L72 with I/O door defined as I/O Slots Storage: 72 I/O: 0 Storage: 60 I/O: 12|
15
Multi-path support
The patented multi-path support feature of the IBM 3583 supports sharing of the library robotics. This is accomplished by partitioning the library into up to three multiple logical libraries and providing each logical library its own separate and distinct drives, storage slots, and control paths. Note: An 18-slot storage column needs to be dedicated to each logical partition. I/O slots are shared on a first-come, first-served basis. This type of partitioning allows heterogeneous applications to share the library robotics independent of each other. Cartridges under library control are not shared between logical libraries nor allowed to be moved between logical libraries. An example of heterogeneous sharing is a Microsoft Windows 2000 application using the drive and storage slots of one logical library while a UNIX application uses the drive and slots of another logical library. Logical libraries can also be used for separating different generations of Ultrium Tape Drives and cartridges for applications that do not support mixing the drives in the same logical library. Support for multi-path architecture and partitioning may require an updated microcode level. Download the latest microcode from either of these Web sites:
http://www.ibm.com/servers/storage/support/lto/3583/downloading.html ftp://ftp.software.ibm.com/storage/358x/3583/
failover mechanism is designed to automatically provide error recovery to retry the current operation using an alternate, preconfigured path without aborting the current job in progress. This allows you flexibility in SAN configuration, availability, and management. When accessing a tape drive device that has been configured with alternate pathing across multiple host ports, the IBM device driver automatically selects a path through the host bus adapter (HBA) that has the fewest open tape devices, and assigns that path to the application. This autonomic self-optimizing capability is called load balancing. The dynamic load balancing support is designed to optimize resources for devices that have physical connections to multiple HBAs in the same machine. The device driver is designed to dynamically track the usage on each HBA as applications open and close devices, and balance the number of applications using each HBA in the machine. This may help optimize HBA resources and improve overall performance. Further, data path failover provides autonomic self-healing capabilities similar to control path failover, with transparent failover to an alternate data path in the event of a failure in the primary host-side path. Data path failover and load balancing for Ultrium 3 drives in all supported operating environments require optional feature code 1681 and the control path failover feature code 1680. Data path failover and load balancing for Ultrium 2 drives in an AIX environment require the control path failover feature code 1680 but do not require the optional feature code 1681; in non-AIX environments, the Control Path Failover feature code 1680 and an RPQ are required.
17
The IBM Tape Library Specialist is the primary hardware management tool that enables network access (via a Web browser) to the library for more detailed status and control. All library operator panel functions can be accessed using the IBM Tape Library Specialist. We provide detailed information in 4.10.4, IBM 3584 Tape Library Specialist on page 175.
Demand features, you can enable storage elements in the IBM 3584 L52 to increase the available capacity to 129 cartridge slots, or 219 to 287 cartridge slots (depending on the features you order). The IBM 3584-L52 Base Frame has support for up to 12 tape drives with an incremental reduction of storage slots for more than four drives or with the additional I/O station installed. This model has a smaller footprint than the IBM 3584-L32. The IBM 3584-L52 is designed with an optimized gripper for use with IBM LTO or 3592 tape cartridges. Data capacity for the IBM 3584-L52 depends on the types of cartridges. Up to 12 logical libraries can be configured for each frame. Details of the capacity of the IBM 3584 with the various expansion options are in Table 1-5 on page 23 and Table 1-6 on page 23. Each IBM 3584-L52 library has a standard 16-slot cartridge I/O station for importing or exporting LTO tape cartridges from the library without requiring a re-inventory. An additional 16-slot cartridge I/O station is optionally available for either IBM LTO or 3592 data cartridges. Libraries containing a mixture of IBM LTO and 3592 drive technologies must have one LTO I/O station and one 3592 I/O station. For bulk loading of tape cartridges the library door can be opened. Each time the library door is closed, a bar code reader mounted on the autochanger scans the cartridge labels, enabling a re-inventory of the cartridges in the library frame in typically less than 60 seconds. A door lock is included to restrict physical access to cartridges in the library.
19
300 GB (900 GB with 3:1 compression). It uses an optimal dynamic compression method called byte-level compression scheme swapping, which is designed to achieve maximum data compression, and unlike other tape drive compression methods, is designed to prevent data expansion. The IBM 3592 has a dual-ported 2-Gbps native switched fabric Fibre Channel interface. The IBM 3592 also has additional characteristics that may help improve performance, capacity, and availability, including: Large 128 MB internal data buffer Digital speed matching to adjust the drive's native data rate to the net host data rate (after data compressibility has been factored out) to improve throughput performance Channel calibration, which is designed to allow for customization of each read/write data channel for optimum performance High resolution tape directory plus enhanced search speed to improve nominal and average access times Streaming Lossless Data Compression (SLDC) algorithm, which is designed to offer an improvement over previous IBM lossless compression algorithms The IBM TotalStorage 3592 Tape Drive Model J1A supports Write Once Read Many (WORM) data cartridges, and Economy (short-length 60 GB) rewritable or WORM data cartridges. The IBM 3592 WORM data cartridges are designed to provide non-alterable, non-rewritable tape media for long-term records retention. When the IBM 3592 detects a WORM cartridge, the tape drive prevents overwrite or changes to existing customer data. New data can be appended to existing data until the cartridge capacity is reached. WORM cartridges are available in two sizes, 300 GB or 60 GB native capacity. These new media types are reported to the host by the IBM 3592. WORM and standard tape cartridges can be intermixed within the IBM TotalStorage 3584 Tape Library.
21
set of four drives installed. A fully configured IBM 3584 with one IBM 3584-L32 frame and fifteen IBM 3584-D32 frames supports up to 192 drives with an aggregate data rate of 18 TB per hour (2:1 compression), or up to 6881 storage slots with a total capacity of 1376 TB native or 2752 TB with 2:1 compression. Each frame can have up to 12 logical libraries and 12 control paths due to the multi-path architecture of the IBM 3584.
16 Frames
192 LTO Drives
Table 1-5 shows the different slot and drive capacities contained in the IBM 3584-L32 and D32 frames with Ultrium 2 drives and cartridges.
22
Table 1-5 IBM 3584 frame capacity with Ultrium 2 drives Slots in 3584-L32 Frame (without Capacity Expansion Feature)
Quantity Native Capacity (in TB) Comp. Capacity (in TB)
Drives in 3584L32 Frame 0-4 5-8 9-12 Drives in 3584D32 Frame 0 1-4 5-8 9-12
Slots in 3584-L32 Frame (with Capacity Expansion Feature and 30 I/O slots)
Quantity Native Capacity (in TB) Comp. Capacity (in TB)
Slots in 3584- L32 Frame (with Capacity Expansion Feature and 10 I/O slots)
Quantity Native Capacity (in TB) Comp. Capacity (in TB)
141 113 87
Slots in 3584-D32 Frame Quantity 440 423 409 396 Native Capacity (in TB) 88.0 84.6 81.8 79.2 Compressed Capacity (in TB) 176.0 169.2 163.6 158.4
Note: The quantity of slots depends on whether the Capacity Expansion Feature is installed, whether the upper and lower I/O stations are used, and the number of drives installed in a frame. The Capacity Expansion Feature of the IBM 3584 enables use of columns on the library door to provide extra cartridge storage slots. Table 1-6 shows the different slot and drive capacities contained in the IBM 3584-L52 and D52 frames and the native capacity with Ultrium 3 drives and cartridges.
Table 1-6 IBM 3584 frame capacity with Ultrium 3 drives. Type of Frame L52 L52 L52 L52 L52 L52 L52 L52 D521 Type of Capacity on Demand Feature Entry Intermediate Full Full Full Full Full Full N/A2 Quantity of Drives 0-12 0-12 0-4 5-8 9-12 0-4 5-8 9-12 0 Quantity of I/O Slots 16 16 16 16 16 32 32 32 N/A Quantity of Storage Slots 64 129 287 273 261 245 231 219 440 Ultrium 3 Native Capacity (in TB) 25.6 51.6 114.8 109.2 104.4 98.0 92.4 87.6 176.0
23
1. If the L frame is not an IBM 3584-L32 or L52, then the first D frame of a mixed media library will have one less storage slot to accommodate a diagnostic cartridge. 2. N/A = not applicable
Note: The quantity of storage slots depends on the type of Capacity on Demand Expansion feature installed, whether the upper and lower I/O stations are used and the quantity of drives in a frame.
Multi-path support
The multi-path architecture of the IBM 3584 provides the capability for sharing of the library robotics. This is accomplished by partitioning the library into up to 192 multiple logical libraries (up to the number of drives installed), and providing each logical library its own separate and distinct drive(s), storage slots, and control path(s). I/O slots are shared on a first-come, first-served basis. This type of partitioning allows heterogeneous applications to share the library robotics independent of each other. Cartridges under library control are not shared between logical libraries, nor allowed to be moved between logical libraries. An example of heterogeneous sharing is a Microsoft Windows 2000 application using the drive and storage slots of one logical library, while a UNIX application uses the drive and slots of another logical library. Logical libraries can also be used for separating different generations of IBM LTO drives and cartridges, or IBM 3592 drives and cartridges, for applications which do not support mixing the drives in the same logical library. Support for multi-path architecture and partitioning may require an updated microcode level. Download the latest microcode from either of these Web sites:
http://www.ibm.com/servers/storage/support/lto/3584/downloading.html ftp://ftp.software.ibm.com/storage/358x/3584/
24
25
appear to the host as I/O slots. These storage slots are called virtual import/export elements (VIEEs). With virtual I/O slots, the library automatically moves cartridges from the I/O stations to the VIEEs. In this way, the library enhances its import and export capabilities. The goal of virtual I/O slots is to reduce the dependencies between the system administrator and library operator so that each performs their import and export tasks without needing the other to perform any actions: In a typical import scenario without virtual I/O slots, a library operator needs to stand at the physical library and fill the I/O station with cartridges; a system administrator must trigger the applications to send commands for moving cartridges out of the I/O station and into library storage slots. After filling the I/O station with cartridges, the operator must wait for the I/O station to be cleared before inserting additional cartridges, which means the operator is waiting on the system administrator to clear the I/O station of each set of inserted cartridges. If the library is enabled with virtual I/O slots, the operator can continuously insert cartridges into the I/O station and the administrator does not need to issue commands to move each new set of inserted cartridges. Instead, the library automatically moves the cartridges and places them into virtual I/O slots until they are ready to be processed later as one composite set of inserted cartridges. In a typical export scenario without virtual I/O slots, the system administrator may need to export a large number of cartridges from the library. However, after the I/O station is filled, the system administrator must wait for the operator to physically remove cartridges from the entire I/O station before issuing another export command. This operation can be inconvenient. If the library is enabled with virtual I/O slots, the administrator does not have to wait to issue all export commands (up to 255 export commands can be issued at the same time for each logical library) and the operator can remove cartridges from the I/O stations as soon as the accessor automatically moves them from the storage slots. After enabling virtual I/O slots, the library can use the Cartridge Assignment Policy and Insert Notification features to determine the best storage slot location for each inserted cartridge. This determination is designed to optimize the mount throughput for the logical library to which the inserted cartridge is assigned. For more information, see Cartridge assignment policy and Virtual I/O on page 60.
26
SMI-S support
To communicate with storage devices in a SAN, management software uses other software known as the Storage Management Initiative - Specification (SMI-S) Agent for Tape. You must install the SMI-S Agent for Tape on an Intel machine that runs the SUSE Linux Enterprise Server 9 operating system. The SMI-S Agent for Tape communicates by using the Web-Based Enterprise Management (WBEM) protocol, which allows management software to communicate with the IBM 3584. The SMI-S Agent for Tape is designed to be compliant with the Storage Management Initiative - Specification. The SMI-S is a design specification of the Storage Management Initiative (SMI), which that was launched by the Storage Networking Industry Association (SNIA). The SMI-S specifies a secure and reliable interface that allows storage management systems to identify, classify, monitor, and control physical and logical resources in a Storage Area Network (SAN). The interface is intended as a solution that integrates the various devices to be managed in a SAN and the tools used to manage them. The SMI-S was developed to address the problems that many vendors face in managing heterogeneous storage environments. It creates a management interface protocol for multi-vendor storage networking products. By enabling the integration of diverse multi-vendor storage networks, the initiative is able to expand the overall market for storage networking technology. For detailed information about SMI-S, see the IBM TotalStorage SMI-S Agent for Tape Installation Guide, GC35-0512.
Note: Always check the Web site for the most current, detailed, and accurate information.
27
1.3 Connectivity
In this section we cover methods of connecting LTO models to servers using the IBM 3584 as an example.
pLinux Servers
Red Hat Enterprise Linux 3.0 SUSE Linux Enterprise Server 8,9
1. Integrated LVD adapter with AIX 4.3.3 or higher on 7044 models 170 & 270, pSeries 620 (7025-6F1) & (7025-6F0), 7025 model F80, pSeries 640 (7026-B80), pSeries 660 (7026-6H1) & (7026-6H0) & (7026-6M1), 7026 models H80 & M80. For 6203 & 6204, pSeries 670 (7040-671) through I/O drawer (7040-61D), pSeries 690 (7040-681) through I/O drawer (7040-61D), 9112-265. 2. Integrated Ultra 3 SCSI LVD adapter with AIX 4.3.3 or higher on pSeries 610 (7028-6C1) & (7028-6E1), 9112-265. 3. Certain restrictions may apply. See the details above for your operating system. 4. Support for pSeries 9111 Model 520, 9113 Model 550 running AIX 5.3, 9117 Model 570 running two partitions AIX 5.2H, AIX 5.3. 5. Control Path Failover support for Ultrium 2 & 3592 drives. 6. Data Path Failover support for Ultrium 2 & 3592 drives.
28
Using this table as an example, the following is true: In order to attach an IBM 3584 to a pSeries with AIX, you need to be running 5.1 or higher of the operating system. Let us assume for our example that you want attach the IBM 3584 to a pSeries 9119-590 (model 590) through SCSI. The matrix reflects that there is a choice of eight PCI SCSI HBAs that you can order through feature codes. Feature codes 6204 and 6207 are for the HVD interface, and feature codes 6205 and 6203 are the LVD versions. Feature codes 5703, 5710, 5711, and 5712 are PCI-X adapters. Also, note that some models of the pSeries have an integrated LVD adapter, which is also supported. Let us assume that you are considering a 5711 PCI-X adapter in your pSeries. The next step is to check if that adapter 5711 is actually supported on the pSeries model. To determine if an adapter is supported on a particular pSeries, check the IBM announcement letters or the IBM Sales manual. You can find them at the following Web address:
http://www.ibm.com/common/ssi/
When visiting the site the first time, you may need to do the following: 1. Select your home country. 2. Select available home page language. 3. Select primary document language to be displayed in search results. 4. Select the maximum number of documents to be returned for a search. When the Offering Information screen is displayed, in the Specific information search drop-down box, select HW & SW Desc (Salesmanual, RPQ) and press Go. On the HW & SW Desc (Salesmanual, RPQ) screen, in the Product Number field, enter the following keyword: 9119-590 By looking in the 9119-590 Sales Manual, you will find that the 5711 PCI-X adapter is supported on this pSeries model. You also find the specifications of that adapter, and also some configuration rules for this adapter in model 9119-590.
This site lists SAN HBA, switch, and SAN device interoperability among IBM and non-IBM devices. Assuming that you have a Fibre Channel HBA feature 5716, and want to check if this card is supported on your pSeries, and if the latest firmware is installed for that adapter, the search results are returned as in Figure 1-12.
29
On the 5716 line, click View Details; from there you will be able to download the supported microcode level. More information on using SCSI and SAN adapters to attach the LTO drives and libraries is in Chapter 4, Basic IBM tape setup for UNIX systems on page 101, and Chapter 3, SAN considerations on page 75.
30
The type of application is also very 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. Another situation where daisy-chaining may be required is when connecting a multi-drive library through a SAN Data Gateway (SDG) (withdrawn from marketing). The SDG has a total of four ports and one is recommended for the SCSI medium changer. Therefore, if more than three drives are installed in the library, daisy-chaining will be required.
31
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
32
33
adapter characteristics to determine the plug type. One source of this information is the IBM TotalStorage 3584 Tape Library Operator Guide, GA32-0468 available online at:
http://www-03.ibm.com/servers/storage/tape/resource-library.html#publications
Before the June 12, 2001 IBM LTO announcement, all the LTO tape drives used HD68 connectors. The current IBM 3584 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.
VHDCI
Figure 1-14 SCSI connectors
HD68
34
Chapter 2.
Copyright IBM Corp. 2002, 2003, 2004, 2005. All rights reserved.
35
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. Still 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.
36
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.
37
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 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 3584. For further detail see 2.3, ALMS on page 55.
server. The master server controls physical access (such as mount and demount cartridges) and sequencing to the medium changer (see Figure 2-3). The tape drives appear to each server as locally attached devices. When a server requests a tape to be loaded for a tape operation, the server contacts the master with the request. The master mounts the tape, then passes control back to the requesting server. The server then reserves (SCSI reserve) the same drive to itself (to ensure that no other server can access the tape drive and overwrite data). When the operation is complete, the server unloads the cartridge, releases (SCSI release) the reserve on the drive, and notifies the master to demount the cartridge. The master then demounts the media.
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
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
Figure 2-4 LAN-free backup Chapter 2. IBM LTO Tape Library sharing and partitioning
39
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. 40
Implementing IBM Tape in UNIX Systems
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).
41
Drive1
Drive2
IO Slot
Partition 1
Partition 2
For a description of how to configure the logical partitions, see the IBM TotalStorage 3582 Setup, Operator, and Service Guide, GA32-0458, available at:
http://www-1.ibm.com/servers/storage/tape/resource-library.html#publications
42
Logical libraries have predetermined, fixed configurations: Two logical libraries with a 12-slot I/O station Logical library 1: 24 slots (column 1, column2), 1- 2 tape drives (drive 1, drive 2) Logical library 2: 18 - 36 slots (column 4, column 5), 1- 4 tape drives (drive 3, drive 4, drive 5, drive 6) Logical library 1: 18 slots (column 2), 1- 2 tape drives (drive 1, drive 2) Logical library 2: 18 - 36 slots (column 4, column 5), 1- 4 tape drives (drive 3, drive 4, drive 5, drive 6) Logical library 1: 24 slots (column 1, column 2), 1 - 2 tape drives (drive 1, drive 2) Logical library 2: 18 slots (column 4), 1- 2 tape drives (drive 3, drive 4) Logical library 3: 18 slots (column 5), 1- 2 tape drives (drive 5, drive 6) Logical library 1: 18 slots (column 2), 1- 2 tape drives (drive 1, drive 2) Logical library 2: 18 slots (column 4), 1- 2 tape drives (drive 3, drive 4) Logical library 3: 18 slots (column 5), 1- 2 tape drives (drive 5, drive 6)
Column 5 Storage
Column 4 Storage
Picker Assembly
Column 2 Storage
Interface Modules
1- 6 Drives
Power Modules
IBM 3583
Figure 2-7 IBM 3583
Partitioning the IBM 3583 with the Library Specialist or Operator panel
Partitioning is set up using the Operator panel. Partitioning can be invoked from either the physical library operator interface or through the Tape Library Specialist operator interface. They have the same interface: one is the physical representation and the other is the logical representation. If you are using Tape Library Specialist to set up partitioning, select the Operator Panel tab. You will be asked to authenticate and will then see the screen shown in Figure 2-8.
43
From the Operator panel, select More and then Setup (shown in Figure 2-9).
Select Library and Partitions (Figure 2-10). To enable partitions, you need at least one tape drive and control path enabled for each partition, that is, there must at least be one tape drive in slots 1 and 3 from the bottom, as shown in Figure 2-8.
The panel indicates the default non-partitioned environment. To change the partition configuration, click Next to select which of the listed partition options is required. Click OK to confirm the selection. Figure 2-11 shows before and after setting up for a two partition library.
44
The library will reboot to effect the partition change (Figure 2-12).
The second error screen is displayed as the library is rebooting, and is informational only. Once the library has rebooted, the screen will be refreshed with the operator panel. For more details on configuring partitions, see The IBM TotalStorage 3583 Tape Library 3583 Setup and Operator Guide for Multi-Path Libraries GA32-0411, at:
http://www-1.ibm.com/servers/storage/tape/resource-library.html#publications
45
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-13 shows an example. This is an L52 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 possibility 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.
Slots free 20
Slots free 21
46
There are two ways to partition the IBM 3584 into multiple logical libraries: Configuring the library by using labels With this method, you must manually label the storage elements (storage slots and drives) that you want in each logical library, then select Configure Library to identify them to the library. With this method, you can view the boundaries of your logical library whenever you open the front doors. However, because a logical library bar code label applies to an entire column of storage slots (and not individual slots), this method does not allow you to choose any number of slots from that column. Configuring the library by using menus With this method, you choose the exact number of storage elements that you want by selecting them from the Advanced Configuration menu selection, or using the Tape Library Specialist menu. If you use this method, you do not need to manually label the library elements, and you can choose individual slots from any column. However, you have no visual indication of your logical library whenever you open the front doors. Both methods require you to put the library offline while configuring. For further details on setting up partitions using the Operator Panel, see the IBM TotalStorage 3584 Tape Library Operator Guide, GA32-0468.
2.2.4 Partitioning the IBM 3584 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.
47
2. Click Manage Logical Library on the main pane, or select Manage Library and by Logical Library on the left side. The Manage Logical Libraries window displays (Figure 2-15). .
Figure 2-15 IBM 3854 Tape Library Specialist Logical Libraries entry panel
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 couple of drives may take less than a minute). Click Next to continue. 4. The Select Configuration Method window displays (Figure 2-16), showing the alternatives: Automated configuration (configuration with barcode labels) or Advanced configuration. Select Advanced configuration and click Next.
48
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-17). If not, then stop here and try the configuration discovery again. If the problem is still not solved, call your service representative.
6. Click Next. The number of logical partitions can now be selected (Figure 2-18).
49
7. Select the number of logical libraries from the pull-down list. Select Next. The desired number of drives and slots can now be assigned to each logical library (Figure 2-19). 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. 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 screens. That means you can first configure a range of LTO elements, and then a range of 3592 elements. Select Next when finished.
50
Figure 2-19 IBM 3854 Tape Library Specialist drives and slots
8. A new window shows the selections. The configuration can now be reviewed before being applied. 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 screen (Figure 2-15 on page 48), select the library to be renamed and click rename. On the next screen (Figure 2-20) enter a new name. The logical library name is only used by the Library Specialist, and has no affect on the communication with your backup application.
Before we can work again with the library, we have to adjust the logical library configuration with the backup application which 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 on 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.
Chapter 2. IBM LTO Tape Library sharing and partitioning
51
Also, cartridges that belong to the logical library must be moved to the appropriate set of storage cells.
2.2.5 Partitioning the IBM 3584 with the operator panel (ALMS not enabled)
These are the steps: 1. From the librarys Activity window, click Menu. The Main Menu displays (Figure 2-21).
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, then 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-22). 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 panel displays, identifying the librarys existing physical configuration
52
(Figure 2-23). The panel shows the total quantity of drives, storage slots, and 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.
Panel 0102
Physical Configuration ______________________________ Total Frames: Total LTO: Total 3592: Total Drives: Total LTO: Total 3592: 3 2 1 34 22 12
Total Storage Slots: 930 Total LTO: 571 Total 3592: 359 Total I/O Slots: Total LTO: Total 3592: 26 10 16
BACK
DOWN
ENTER
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 panel displays indicating the type of media used by the logical library (Figure 2-24). The following panels 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. 9. When the desired quantity of libraries displays, click Enter. The Set Storage Slots panel displays (Figure 2-25).
53
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 panel displays (Figure 2-26).
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 panel for Logical Library 1 is displayed (Figure 2-27). The panel contains the range of SCSI element addresses for the cartridge storage slots and the drives.
54
Panel 0103
Logical Library Storage Slots: Elem Addr Range: Location Start: Location End: Drives: Elem Addr Range: Location Start: Location End:
1 0064 1025 - 1088 [F1,C01,R02] [F1,C03,R21] 001 0257 - 0257 [F1,R01] [F1,R01]
ENTER
13.Click Enter to display the Configuration Summary panel for each logical library. After displaying the panel 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 (FC #1690), provides enhanced flexibility and capabilities for partitioning the IBM 3584. ALMS virtualizes the SCSI element addresses while maintaining the approach of the multi-path architecture and using SCSI-3 Medium Changer commands. Without ALMS all library references are based on the SCSI element address (location-centric). 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 bar code label of the cartridge). ALMS allows the following new capabilities on the IBM 3584: 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 off line Virtualize I/O slots to automatically manage the movement of cartridges between I/O station slots and storage slots The IBM 3584 is compliant with the SCSI Medium Changer standard whether ALMS is enabled or not and once 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
55
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. Restriction: Only the IBM 3584 can be enabled for ALMS. FC #1690 is required to enable ALMS.
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
56
(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/assigned drives are not changed from their previous values. However, after ALMS is enabled, the DTE addresses for any newly installed/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. With ALMS enabled, 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 (x'101'); see Figure 2-28. 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/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. By using the dynamic Drive Assignment capability of ALMS, any drive in any position within any frame is available to be assigned to any logical library without creating gaps in DTE addresses.
Library
LL 2 g e ra Sto ol Po ts
lo 80 S
Host 1 Drive SCSI Element: 257, 258 Storage SCSI Element: 1025 - 1104
LL 3 Storage Pool
200 Slots
SAN
Host 2 Drive SCSI Element: 257,258 Storage SCSI Element: 1026 - 1225
St LL or 1 10 Po age 0 ol S
lo ts
Host 3 Drive SCSI Element: 257..261 Storage SCSI Element: 1027 - 1126
57
dedicated drives and shared drives. Each logical library will map a drive element address to the location of both dedicated and shared drives. This option reduces the requirement to configure the tape drive every time it is needed and unconfigure it when it is not needed. The Drive Assignment Web screen supports the following point-and-click capabilities, which are non-disruptive to other logical libraries: Assign the drive Remove the drive assignment Reassign the drive When a cartridge is mounted in a shared drive, the library will only accept a de-mount command requested via the source logical library; any de-mount command requested via other logical libraries will be rejected. However, the data path to the tape drive itself is not protected by the library. Therefore, the customer must make sure that shared drives are not accessed by the wrong application via the data path. To ensure this, one option is to use the SCSI reserve/release option on open and close. The device driver together with the application handles this. On opening a tape drive, the application initiates a SCSI reserve through the tape device driver. No other server can access the tape drive any more (except for commands such as Inquiry). This ensures that data is not overwritten by any other host or application. After the device is closed, the application must send a SCSI release to the tape drive. Most applications handle this, but it should be confirmed with the backup software provider. SAN zoning can also be used to prevent access to the same tape drives by different servers. When a tape drive is shared by applications, any application using the drive has no knowledge of the other applications sharing the tape drive. For example, if there is already a cartridge loaded and in use by application A, application B does not know it and tries also to mount a cartridge in the same drive. Application B would in that case get a failure, and the job 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 will consider this tape drive offline. In any case we recommend to not allow multiple applications to use shared tape drives concurrently. In other words, set tape drives offline (or in service mode) from the application whenever it is not used by that application. The sharing option is mainly intended for environments where some drives are just needed once in a while and must be pre-configured for the application. Attention: An application which occasionally leaves cartridges in drives or which periodically scans all configured drives will not be a good candidate for sharing drives between logical libraries.
58
Insert notification
Insert notification is an option that enables the IBM 3584 to monitor the I/O station for any new media which 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 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 time-out period when the deferral will automatically take effect.
59
Virtual I/O
The IBM 3584 has input/output (I/O) stations and I/O slots that allow you to import and export up to 32 cartridges at any given time. The I/O slots are also known as import/export elements (IEEs). Virtual I/O slots increase the quantity of available I/O slots by allowing storage slots to appear to the host as I/O slots. Storage slots appearing to the host as I/O slots are called virtual import/export elements (VIEEs). The goal of virtual I/O slots is to reduce the dependencies between the system administrator and library operator so that each performs their import and export tasks without needing the other to perform any actions. With virtual I/O slots, the library automatically moves cartridges from the I/O stations to physical storage slots and from physical storage slots to the I/O stations. With Virtual I/O slots, you can configure up to 255 VIEEs per logical library. Each logical library will have a unique VIEE address space that is not accessible by other logical libraries. The number of VIO (virtual I/O) slots can be set using the Max VIO Slots button for the logical libraries (see Figure 2-33 on page 64). New logical libraries will by default be assigned the maximum number, while logical libraries defined before ALMS is enabled will initially have the number of physical I/O slots in the library. Before virtual I/O slots, the IEE space consisted of physical I/O station slots (10, 30, 16, or 32, depending on the frame model type) which were shared by all logical libraries. If the application or system administrator did not explicitly import the cartridges from the I/O station into library storage the cartridges would remain in the I/O station. This reduced the number of IEEs available to process imports and exports. With virtual I/O slots, when cartridges are inserted into the I/O station, the library will work with the cartridge assignment policy or insert notification to assign a cartridge to the correct logical library VIEE space, and cartridges will automatically be moved into library storage slots. If there is no cartridge assignment policy assigned, and insert notification is disabled for a particular cartridge, then that cartridge will be inserted into the VIEE space of all logical libraries and automatically be moved into a library storage slot. The VIEE temporarily takes on the attributes of an IEE until a host moves the cartridge into a storage element (StE). If a cartridge cannot be assigned, this will be reported as Assignment Pending. This can occur if the assigned logical library has no available VIEE slots, or if all of the logical libraries do not have a common VIEE to share. To resolve this, either free up VIEE addresses so this is available in all libraries, or make a specific assignment of this cartridge to a logical library. When the host move occurs, if the cartridge is in a storage slot, no physical move is needed and the element transitions from a VIEE to an StE. Similarly, when a host exports a cartridge from an StE, the physical storage slot will be reported as a VIEE without moving the cartridge to the I/O station. The library will monitor when free space is available in the I/O station and move exported cartridges at the librarys convenience. As seen in Figure 2-33 on page 64, there is also a button for Hide/Show Exports. Show Exports is the default, and this will show a VIEE inventory of cartridges exported from the logical library. These cartridges will then fill one of the VIEE slots for that logical library. Export Complete will be shown when the exported cartridge is physically in an I/O station slot. Selecting Hide Exports will move the exported cartridges to a library-maintained export queue, the VIEE is free immediately for other import/exports, and the exported cartridge will disappear from the host applications inventory data. Exporting a cartridge will be reported as Export in Progress if there is no available VIEE, and will not complete until one is available. With Hide Exports this situation will not occur. Support for virtual I/O slots is provided at the latest released level of library microcode (5360) and will be enabled by default when ALMS is enabled. For existing customers whose IBM
60
3584 has already enabled ALMS, a newer level of library microcode that supports virtual I/O Slots will be required and virtual I/O slots will need to be manually enabled.
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 URL in your browser. If login security has been enabled there will be a login prompt, and then you will see the welcome screen with the message that ALMS is disabled at the bottom (see Figure 2-29).
2. On the left side of the screen, select Manage Library Enable ALMS. This will display a warning and a specific selection to Enable ALMS (Figure 2-30).
Chapter 2. IBM LTO Tape Library sharing and partitioning
61
Note: You can enable or disable ALMS in the IBM 3584 using the Tape Library Specialist, but not the operator panel. 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 screen shown in Figure 2-30 has the option Disable ALMS instead. Caution: 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. Attention: 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
62
status during this inventory process will show a cartridge assignment status of pending (Figure 2-31).
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-32. 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, LTO 2 and LTO 3.
3. The library created will appear in the Manage Logical Library display, as in Figure 2-33, 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.
63
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, see Figure 2-35, and click Apply.
64
3. All unassigned cartridges and all new inserted cartridges within the specified range do 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. 1. To begin, navigate Manage Cartridges Data Cartridges (see Figure 2-36). Select the frame or logical library, select one or more cartridges to assign, and click Assign.
2. Select the library to which you want to assign the cartridge(s) (see Figure 2-37). Click Next to complete the operation. The cartridge will then logically be moved to the new library.
65
3. In Figure 2-38, the Data Cartridges menu shows that the cartridge has moved to the new library. However, the cartridge remains in the same physical slot 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 (non-disruptive to other logical libraries) Unassign drive (non-disruptive to other logical libraries) Reassign drive (non-disruptive to other logical libraries) Assign drive to multiple logical libraries
66
Change control paths Although the drive assign procedure is non-disruptive, the application or server to which the drive is assigned must be configured. This server or application configuration may not necessarily be non-disruptive. 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 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 Manage Drives Drive Assignment. On the introduction panel 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 as in Figure 2-39. On the drive assignment panel, you can easily assign and unassign tape drives to a logical library. On the left-hand side of the screen, 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 on the check boxes you can easily assign tape drives to logical libraries. After you have completed your selections, click Apply to make the changes effective.
67
Tape drives with control path enabled are indicated by the icon shown in Figure 2-40.
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 57. One drive may be shared by a maximum of 10 logical libraries. In the example in Figure 2-39, 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 one shared tape drive to each logical library. For all applications we thus 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 Manage Drives Drive Summary. This displays the drive information as shown in Figure 2-41. Notice that this is now the virtualized element addresses, and that each logical library may show the same element address.
68
Alternatively, if you let the cursor hover over assigned element as in Figure 2-42, you will get a small pop-up identifying the element number for that drive.
By default, all drives will be assigned the lowest available SCSI element address, which for Redbook1 will be elements 257, 258, and 259 (the shared drive). 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-43.
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.
69
IBM-supplied device driver. For more information on tapeutil, see 4.5, Testing the library with tapeutil on page 149.
Example 2-1 Reported storage slots # tapeutil -f /dev/smc1 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 15 1185 30 769 1 257
To change the Maximum Number, select Manage Logical Library; select the logical library and click Maximum Cartridges (as in Figure 2-31 on page 63). Warning: Changing maximum settings for a logical library may interrupt drive and library activities and require reconfiguration of the host applications for the selected logical library.
A window like Figure 2-44 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 #tapeutil -f /dev/smc1 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
70
You can also look at these details by selecting Details in the Logical Library menu (Figure 2-31 on page 63). This will then display as in Figure 2-45.
This change is non-disruptive 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. The ability to change the maximum number may 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).
71
You can enable ALMS using the Tape Library Specialist. Select Manage Library Enable ALMS (refer to Enable ALMS on page 61 for details). To illustrate how ALMS changes the configuration of the logical libraries, in Figure 2-46 and Example 2-3 we show the detailed information for the logical library named Redbook1. It indicates three tape drives with SCSI element addresses 257, 258, and 259. The storage element address range is 1025 to 1104 (80 storage slots). The physical library has 175 storage slots in total.
Figure 2-46 Detailed information before ALMS is enabled Example 2-3 Elementinfo from logical library Redbook 1 # tapeutil -f /dev/smc4 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-47 and Example 2-4, 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.
72
Example 2-4 Element info after ALMS enabled # tapeutil -f /dev/smc4 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
Now, we again check the inventory of the library (see Figure 2-49). We see that the SCSI element address has changed to 1032, but the cartridge is still in the same physical location: Frame 1, Column 1, Row 19.
73
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. 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.
74
Chapter 3.
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 on 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, refer to these redbooks: Designing an IBM Storage Area Network, SG24-5758 Planning and Implementing an IBM SAN, SG24-6116 IBM SAN Survival Guide, SG24-6143 Implementing an Open IBM SAN, SG24-6116 Introduction to Storage Area Networks, SG24-5470 Designing and Optimizing an IBM Storage Area Network, SG24-6419
Note: The IBM SAN Data Gateway (SDG) Router models 2108-R03 and 2108-G07 were withdrawn from marketing in September 2002. The SAN Data Gateway Integrated Module is no longer available as a feature in new IBM 3583s. The SAN Data Gateway features were withdrawn from marketing in October 2004. For more information on the SDG, see Appendix A, IBM SAN Data Gateway on page 281.
Copyright IBM Corp. 2002, 2003, 2004, 2005. All rights reserved.
75
76
As already described, an FC link can sustain about 160 MB/sec. An ISL may handle slightly more, but with four to five (depending on the data and compression) Ultrium 2 tape drives running simultaneously you can overload one single 2 Gbit ISL. 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 3-1 provides a rule of thumb for how many tape drives per HBA and ISL can run concurrently. Figure 3-1 shows a typical SAN layout with ISL between the servers and tapes.
Table 3-1 Number of tape drives that can run concurrently on HBA or ISL Native drive speed 3590 - LTO Gen1 LTO Gen2 LTO Gen3 3592 14 - 15 MB/sec 35 MB/sec 80 MB/sec 40 MB/sec Number of drives at 1 Gps 2-3-4 1 - 2 Drives 1 Drive 1 - 2 Drives Number of drives at 2 Gps 4 - 8 Drives 3 -4 Drives 1-2 Drives 3 - 4 Drives
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 3-2) to bring up the Switch Management view.
Chapter 3. SAN considerations
77
Click the Performance icon to display the performance window, as in Figure 3-3. You can see traffic on ports 3 and 25 of around 45-50 MB/sec generated by an LTO 2 drive. If any ports consistently show traffic around 80 MB/sec with 1 Gb FC, or 160 MB/s with 2 Gb FC, you should consider load balancing by adding additional HBAs and ISL, or enabling trunking.
78
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.
3584
pSeries Server
2109 FC Switches
Fibre Channel Aapter
If we boot the pSeries or run cfgmgr to detect the new devices, when we list the tapes found (using the lsdev command) we get output as in Example 3-1.
Example 3-1 Duplicate device names because of dual pathing # lsdev -Cc tape smc0 Available 20-58-01 rmt0 Available 20-58-01 rmt1 Available 20-58-01 smc1 Available 10-68-01 rmt2 Available 10-68-01 rmt3 Available 10-68-01 IBM IBM IBM IBM IBM IBM 3584 3580 3580 3584 3580 3580 Library Ultrium Ultrium Library Ultrium Ultrium Medium Changer (FCP) Tape Drive (FCP) Tape Drive (FCP) Medium Changer (FCP) Tape Drive (FCP) Tape Drive (FCP)
You can see that the medium changer and two tape drives are each detected and defined twice: once on each HBA in the pSeries, 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. This is not a good situation. There are at least three ways to solve this problem: You can enable zoning, which allows one HBA to see only certain tape drives. You can use the alternate path function within the IBM Tape Device Driver. You can use persistent binding for the HBAs to see only certain WWN. These options are described in 3.2, Zoning on page 83, 4.2.7, Data path failover for LTO 2 and 3 FC and 3592 drives on AIX on page 117, and 3.3, Persistent binding on page 88.
79
1 6 0 M B /s e c
SAN
8 0 M B /s e c 8 0 M B /s e c
LT O 3 8 0 M B /s e c
Figure 3-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 other applications that also access the disk are running during the backup, 80
Implementing IBM Tape in UNIX Systems
performance will be impacted. Because disk access uses smaller block size, 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 commands 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 3-6). This is especially true for backup servers using a disk storage pool (such as 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, and 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. Tip: Monitor your environment over time and when traffic grows, consider the installation of additional HBAs.
Backup Server
Tape&Disk IO
Tape IO
SAN
SAN
If you cannot avoid combining disk and tape I/O (for example, when 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. 81
Set up persistent binding (as described in 3.3, Persistent binding on page 88). Disable SCSI Bus Reset to tape devices, if possible. Enable PLOGI instead of PDISC after LIP. Design your SAN for high bandwidth since high bandwidth is needed for tape I/O. Do not overload the HBA. Provide enough HBAs as described in 3.1.1, Bandwidth needed for FC tape on page 76. Pay attention also to the PCI Bus performance (see Table 4-2 on page 123). Provide enough bandwidth between the switches (ISLs); consider enabling trunking for the ISL. Most SANs are designed for disk I/O (high IOPS) rather than high bandwidth (such as tape), which means there may not be enough ISLs for high bandwidth. As discussed previously, 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 if trunking is not enabled. 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, IBMs 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 a 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 customer that the only fix is to separate the traffic. Important: IBM does not recommend sharing of disk and tape I/O on the same HBA.
82
3.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 3-7 shows two slightly overlapping zones, represented by the green solid lines and the red dotted lines.
Unix
Windows NT/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 pre-configured 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
Chapter 3. SAN considerations
83
by the operating system. To solve this, we must hide the additional paths to the library and tapes using zoning, persistent binding, or software. Figure 3-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 can be zoned by WWN or physical port connection on the FC switch, creating a single path between host and tape drive.
Host
FC
FC
Host
FC
FC
2109 FC Switch
FC
Disk System
In the example shown in Figure 3-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 reasons. Without zoning or other configurations, you will see the same dual pathing issue as described in 3.1.2, Multiple paths to tape drives on page 79.
Unix Server
Fibre Channel Aapter
Zone B
2109 FC Switch
Zone A
Figure 3-9 3584 with 8 FC LTO drives, one server with two HBA and two zones
You can also manage this scenario by using persistent binding as described in 3.3, Persistent binding on page 88.
84
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
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 zones are returned. Other devices are hidden from the name server query reply.
Chapter 3. SAN considerations
85
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. Example 3-2 shows the Emulex HBA device driver. You need to make sure the zone-rscn option is set to 1 in the lpfc.conf file. More information on configuring this device driver is in 4.9.5, Emulex LP8000 HBA driver configuration on page 163.
Example 3-2 Enabling software zoning with Emulex HBA # Setting zone-rscn to 1 causes the driver to check with the # NameServer to see if an N_Port ID received from an RSCN applies. # If "Soft Zoning" is used, with Brocade Fabrics, this # should be set to 1. zone-rscn=1;
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.
Type lscfg -vl fcsx, where x is the adapter number (Example 3-4). 86
Implementing IBM Tape in UNIX Systems
Part Number.................00P4494 EC Level....................A Serial Number...............1E3120A68D Manufacturer................001E Feature Code/Marketing ID...2765 FRU Number.................. 00P4495 Network Address.............10000000C932A7FB ROS Level and ID............02C03951 Device Specific.(Z0)........2002606D Device Specific.(Z1)........00000000 Device Specific.(Z2)........00000000 Device Specific.(Z3)........03000909 Device Specific.(Z4)........FF401210 Device Specific.(Z5)........02C03951 Device Specific.(Z6)........06433951 Device Specific.(Z7)........07433951 Device Specific.(Z8)........20000000C932A7FB Device Specific.(Z9)........CS3.91A1 Device Specific.(ZA)........C1D3.91A1 Device Specific.(ZB)........C2D3.91A1 Device Specific.(YL)........U0.1-P2-I4/Q1
Type fcmsutil /dev/tdx where x is the adapter number (Example 3-6). The WWN of the adapter is the value of the N_Port Port World Wide Name parameter.
Example 3-6 WWN of HBA on HP-UX # fcmsutil /dev/td0 Vendor ID is Device ID is XL2 Chip Revision No is PCI Sub-system Vendor ID is PCI Sub-system ID is Previous Topology Link Speed Local N_Port_id is Local Loop_id is = = = = = = = = = 0x00103c 0x001029 2.2 0x00103c 0x00128c UNINITIALIZED UNINITIALIZED 0x000000 126
87
N_Port Node World Wide Name N_Port Port World Wide Name Driver state Hardware Path is Number of Assisted IOs Number of Active Login Sessions Dino Present on Card Maximum Frame Size Driver Version 14:34:15, PHSS_28509
= = = = = = = = =
0x50060b000010949d 0x50060b000010949c AWAITING_LINK_UP 0/1/0/0 0 0 NO 960 @(#) PATCH_11.11: libtd.a : Dec 12 2003,
The entries beginning with qla2200-hba1-adapter-node-name and qla2200-hba1-adapter-port-name give the WWN and WWPN of the QLogic 220 HBA. The entry beginning with lpfc0: WWPN gives the same information for the Emulex LP8000 HBA.
drives, and for example they will wait indefinitely for a media mount or until the request is manually killed. We show how to display element addresses for drives as well as the slots in Appendix C, LTO tips and troubleshooting on page 317. Once a configuration has been set, it will survive reboots and any hardware configuration changes. Binding also solves the dual pathing problem. Binding can be implemented by WWNN or WWPN. Persistent binding is mainly useful in a Solaris environment, and we highly recommend that you use it. It is not required for AIX, since it is not so dependent on the LUN and target ID for accessing SAN devices. This is explained in 3.3.4, Persistent binding not applicable to AIX on page 97. Tip for IBM Tivoli Storage Manager users: Recent releases of Tivoli Storage Manager eliminate the need for persistent binding with the SAN discovery feature. For more information, see 5.12, Tivoli Storage Manager V5.2 SAN device mapping on page 244.
3584
SUN Server
2109 FC Switches
Fibre Channel Aapter
5005076300410501 5005076300410502
Output of dmesg Aug 9 17:05:11 sol-e unix: qla2200-hba1-SCSI-target-id-0-fibre-channel-name="5005076300410502"; Aug 9 17:05:11 sol-e unix: qla2200-hba1-SCSI-target-id-1-fibre-channel-name="5005076300410501";
With this setup, the operating system configures two drives and one SCSI Medium Changer. The device names and target/LUN IDs are as discussed in 4.6, Creating a library device table on page 150. The device names are not in order: 0stbn with target 0 and LUN 0 - second tape drive 1smc with target 1 and LUN 1 - the medium changer 2stbn with target 1 and LUN 0 - first tape drive We get this information by going to directory /dev/rmt and listing the device files with ls -la (see Example 3-8). The target/LUN IDs are listed at the end of each line (for example, IBMtape@0,1:smc for the first medium changer).
89
3584
SUN Server
2109 FC Switches
Fibre Channel Aapter
Figure 3-11 Lab configuration with one 3583 and one 3570
After executing either drvconfig or reboot -- -r we see the newly configured tape drives on the directory /dev/rmt. An output of ls -la is shown in Example 3-9.
90
We can see the following configured devices with target/LUN IDs: 0stbn 1smc 2stbn 3stbn 4stbn The output of the ls command does not differentiate between the drives. It also does not tell us which device special file is associated with which tape drive in the library. To get this information, we need to look in the boot-log file using the command dmesg. Example 3-10 shows an output of this command after we connected and rebooted the Sun server.
Example 3-10 Output of dmesg showing device associations
Aug Aug Aug Aug Aug Aug Aug 9 9 9 9 9 9 9 17:05:02 17:05:11 17:05:11 17:05:11 17:05:11 17:05:11 17:05:11 sol-e sol-e sol-e sol-e sol-e sol-e sol-e unix: unix: unix: unix: unix: unix: unix: QLogic qla2200 Fibre Channel Driver v3.07 Instance: 1. Firmware v2.1.31. qla2200(1): Verification complete. Hardware initialized. qla2200-hba1-adapter-node-name="200000e08b0190ef"; qla2200-hba1-adapter-port-name="210000e08b0190ef"; qla2200-hba1-SCSI-target-id-0-fibre-channel-name="5005076300410502"; qla2200-hba1-SCSI-target-id-1-fibre-channel-name="5005076300410501"; qla2200-hba1-SCSI-target-id-2-fibre-channel-name="5005076300410503";
In the dmesg output we can see how the FC adapter assigns SCSI IDs to the device WWNs. Now, we can figure out which stbn device is in which drive in the library: 0stbn with target 0 and LUN 0 - second tape drive 1smc with target 1 and LUN 1 - the medium changer 2stbn with target 1 and LUN 0 - first tape drive
91
3stbn with target 2 and LUN 0 - third tape drive 4stbn with target 3 and LUN 0 - fourth tape drive This is all logical so far; however, the problem is that by default, the target/LUN assignment is not deterministic, and can change. Let us simulate a reconfiguration by turning off one Drive, causing its devices to be no longer visible when we reboot or run drvconfig. Figure 3-12 shows the deleted drive.
3584
SUN Server
2109 FC Switches
Fibre Channel Aapter
5005076300410501 5005076300410502
5005076300410503 5005076300410504
After rebooting we check the dmesg output again (Example 3-11). Drive 4 (which is still visible) has been assigned a different SCSI target ID (three this time). This will create a problem with backup or other software which expects to access the drives at their old addresses on target ID 4; they will fail with I/O errors. Note: The dmesg command displays the contents of a fixed-size buffer. Therefore, if the system has been up for an extended period, messages may have been overwritten with other kernel log entries.
Example 3-11 Output of dmesg with changed SCSI ID Aug 9 17:24:03 sol-e unix: qla2200-hba1-adapter-node-name="200000e08b0190ef"; Aug 9 17:24:03 sol-e unix: qla2200-hba1-adapter-port-name="210000e08b0190ef"; Aug 9 17:24:03 sol-e unix: qla2200-hba1-SCSI-target-id-0-fibre-channel-name="5005076300410502"; Aug 9 17:24:03 sol-e unix: qla2200-hba1-SCSI-target-id-1-fibre-channel-name="5005076300410501"; Aug 9 17:24:03 sol-e unix: qla2200-hba1-SCSI-target-id-2-fibre-channel-name="5005076300410504";
Now, let us see how we can fix this problem of non-definitive target/LUN IDs using persistent binding. We will bind the first drive WWN to target ID 0 and the second to target ID 1, and so on. Detailed instructions for doing this for different HBAs are in 3.3.2, Persistent binding with QLogic HBA on Solaris on page 93, and in 3.3.3, Persistent binding with Emulex HBA on Solaris on page 95.
hba1-SCSI-target-id-0-fibre-channel-name="5005076300410501"; hba1-SCSI-target-id-1-fibre-channel-name="5005076300410502"; hba1-SCSI-target-id-2-fibre-channel-name="5005076300410503"; hba1-SCSI-target-id-2-fibre-channel-name="5005076300410504";
92
We force a new configuration by deleting all files in the directory /dev/rmt and reboot with device configuration (reboot -- -r). By looking at the new dmesg output (Example 3-12) we can see that our devices will be permanently set at: 0smc with target 0 and LUN 1 - the medium changer 1stbn with target 0 and LUN 0 - first tape drive 2stbn with target 1 and LUN 0 - second tape drive 3stbn with target 2 and LUN 0 - third tape drive 4stbn with target 3 and LUN 0 - fourth tape drive
Example 3-12 Output of dmesg after binding
Aug Aug Aug Aug Aug Aug Aug 9 9 9 9 9 9 9 18:07:04 18:07:13 18:07:13 18:07:13 17:05:11 17:05:11 17:05:11 sol-e sol-e sol-e sol-e sol-e sol-e sol-e unix: unix: unix: unix: unix: unix: unix: QLogic qla2200 Fibre Channel Driver v3.07 Instance: 1. Firmware v2.1.31. qla2200(1): Verification complete. Hardware initialized. qla2200-hba1-adapter-node-name="200000e08b0190ef"; qla2200-hba1-adapter-port-name="210000e08b0190ef"; qla2200-hba1-SCSI-target-id-0-fibre-channel-name="5005076300410501"; qla2200-hba1-SCSI-target-id-1-fibre-channel-name="5005076300410502"; qla2200-hba1-SCSI-target-id-2-fibre-channel-name="5005076300410503";
By using persistent binding, the drives will always use the bound target ID even if we power off one drive, or if we add additional devices to the SAN. Tip: Every drive has a unique WWN. Therefore, every drive gets a separate SCSI ID. Without persistent binding, if drives are missing at server boot time or new drives are added, the SCSI IDs will probably change. Therefore, you should always implement persisting binding for native FC tape drives. Tip: If you install native FC tape drives then you cannot expect that the drives defined on the server will show up in the same order as they are installed in the library. Persistent binding will solve this problem too.
hba1-SCSI-target-id-0-fibre-channel-name="5005076300410501"; hba1-SCSI-target-id-1-fibre-channel-name="5005076300410502";
SCSI ID
Figure 3-13 Binding with QLogic
WWN
93
The WWN 5005076300410501 was bound to SCSI target ID 0. This is the first drive in our example (see Figure 3-11 on page 90). WWN 5005076300410502, the second drive, was bound to SCSI target ID 0.
Example 3-13 Binding with QLogic 2200 adapter # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # ======================= Persistent Name Binding ======================= The Persistent Name Binding support for adapter devices associates a user specified World Wide Node Name to a specified adapter instance. In other words, this entry changes the node name of the specified adapter instance to the node name specified in the entry. To enable it, entries of the following format should be added in the qla2200.conf file: hba<#>-adapter-node-name="<World Wide Node Name>"; For example, to associate the following node name to adapter instance 2, the entry will be: hba2-adapter-node-name="200000e08b023227"; The Persistent Name Binding support for target devices associates a SCSI target ID to a specified device World Wide Name. In other words, this entry changes the target ID of the specified device to the number specified in the entry. To enable it, lines of the following format should be added in the qla2200.conf file: hba<#>-SCSI-target-id-<#>-fibre-channel-name="<device WWN>"; For example, to associate the following WWN with target ID 2 on adapter instance 1, the entry will be: hba1-SCSI-target-id-2-fibre-channel-name="2000002037004ac9"; ********* IMPORTANT ********* - Unlike other parameter entries in the qla2200.conf file, values indicated in persistent name binding entries for instance 0 does not apply to other instances when there are no entries for the other instances. - Persistent Name Binding entries are optional entries in the qla2200.conf file. These entries do not dictate which devices are scanned by the driver, and do not perform any device masking. Absence of this entry for any given device name or SCSI ID does not direct the driver to perform any type of device masking. - For adapter devices, if no Persistent Name Binding entries are specified, the default WWNN used by the adapters will be the ones stored in the NVRAM. - For target devices, if no Persistent Name Binding entries are specified, the default SCSI target IDs assigned will be the loop ID of the devices. Please refer to the FAQ section for which default SCSI target IDs are assigned to fabric devices.
94
# # # # # # # # # # # # # # # # # # # # # # # # # # # #
******* CAUTION ******* When the Persistent Name Binding entries are used in combination with the device entries in the /kernel/drv/sd.conf or /kernel/drv/st.conf file, it is possible to purposely mask off certain devices of certain adapter instances from the operating system, by purposely commenting out/deleting entries in the sd.conf/st.conf file for those SCSI target IDs/LUNs bound to those certain adapter instances. However, when the devices are shared among multiple adapters, doing so requires extreme caution, and it is strongly recommeded that all target devices be bound with all adapter instances so that the devices will show up in a predeterminable way. A shared device which is bound on one adapter instance but unbound on another adapter instance may show up at a SCSI target ID which is unexpected by the user for the unbound adapter instance, which may lead to possible data corruption on the device if the user unknowingly writes to the unexpected device. The QLogic Solaris SCSI HBA driver does not filter out the OS scanning of SCSI devices. The target IDs/LUNs scanned by the OS is based on the entries specified in the sd.conf and st.conf files. When the HBA driver first initializes during the system boot process, it assigns a target ID internally to all of the devices it detected. During the OS device scan, the driver ignores the 'class' value indicated in the sd.conf/st.conf file and processes the IOs addressed to a device whose target ID/LUN matches that of a device previously detected by the driver.
After you edit the configuration file, reboot the system to apply the changes. Note that for a QLogic 2300 adapter, entries are of the format:
hbax-SCSI-target-id-x-fibre-channel-port-name="xxxxxxxxxxx";
95
WWNN
Figure 3-14 Binding with Emulex
SCSI ID
Example 3-14 Configuration file for the Emulex Adapter - Example of binding # # # # # # # # # # # # # # # # # # # # # # # # # # # # Setup FCP persistent bindings, fcp-bind-WWPN binds a specific WorldWide PortName to a target id, fcp-bind-WWNN binds a specific WorldWide NodeName to a target id, fcp-bind-DID binds a specific DID to a target id. Only one binding method can be used. WWNN, WWPN and DID are hexadecimal values. WWNN must be 16 digits with leading 0s. WWPN must be 16 digits with leading 0s. DID must be 6 digits with leading 0s. The SCSI ID to bind to consists of two parts, the lpfc interface to bind to, and the target number for that interface. Thus lpfc0t2 specifies target 2 on interface lpfc0. NOTE: Target ids, with all luns supported, must also be in sd.conf. scan-down must be set to 0 or 1, not 2 which is the default!! Here are some examples: WWNN SCSI ID fcp-bind-WWNN="2000123456789abc:lpfc1t0", "20000020370c27f7:lpfc0t2"; WWPN SCSI ID fcp-bind-WWPN="2100123456789abc:lpfc0t0", "21000020370c2855:lpfc0t1", "2100122222222222:lpfc2t2"; DID SCSI ID fcp-bind-DID="0000ef:lpfc0t3"; BEGIN: LPUTIL-managed Persistent Bindings
fcp-bind-WWNN="5005076300410501:lpfc0t0", "5005076300410502:lpfc0t1"; # If automap is set, SCSI IDs for all FCP nodes without # persistent bindings will be automatically generated. # If new FCP devices are added to the network when the system is down, # there is no guarantee that these SCSI IDs will remain the same # when the system is booted again. # If one of the above fcp binding methods is specified, then automap # devices will use the same mapping method to preserve # SCSI IDs between link down and link up. # If no bindings are specified above, a value of 1 will force WWNN # binding, 2 for WWPN binding, and 3 for DID binding. # If automap is 0, only devices with persistent bindings will be # recognized by the system. automap=1;
96
We bound the first drive (WWN 5005076300410501) to target ID 0, and the second drive (WWN 5005076300410501) to target ID 1. Example 3-15 shows you an output of the dmesg after the binding. During the boot only the 3583 was connected to the Sun server. You see that WWN 5005076300410501 was bound to target ID 0.
Example 3-15 dmesg after binding with Emulex
Aug Aug Aug Aug Aug Aug Aug DID Aug Aug Aug Aug Aug 13 14:04:34 13 14:04:34 13 14:04:34 13 14:04:34 13 14:04:34 13 14:04:36 13 14:04:36 0x31700 13 14:04:36 13 14:04:36 13 14:04:36 13 14:04:36 13 14:04:36 sol-e sol-e sol-e sol-e sol-e sol-e sol-e sol-e sol-e sol-e sol-e sol-e Emulex LightPulse FC SCSI/IP 4.20k unix: /pci@1f,2000/fibre-channel@1 (lpfc0): Binding WWNN 10:00:00:60:45:16:1f:f5 to FCP/SCSI Target 4 unix: NOTICE: lpfc0:045:Vital Product Data Data: 82 23 0 36 unix: NOTICE: lpfc0:031:Link Up Event received Data: 1 1 0 0 unix: NOTICE: lpfc0: Firmware Rev 3.81A1 (D2D3.81A1) unix: NOTICE: lpfc0: WWPN:10:00:00:00:c9:23:c3:05 WWNN:20:00:00:00:c9:23:c3:05 unix: unix: unix: unix: NOTICE: Device Path for interface lpfc0: PCI-device: fibre-channel@1, lpfc0 lpfc0 is /pci@1f,2000/fibre-channel@1 NOTICE: lpfc0: Acquired FCP/SCSI Target 0 LUN 0 D_ID 0x31000 WWPN:50:05:07:63:00:41:05:01 WWNN:50:05:07:63:00:41:05:01
97
Example 3-16 AIX tape drive attributes # lsattr -El rmt0 autoload no block_size 0 compress yes debug_trace no devtype ULTRIUMlocation logging no lun_id 0x0 max_log_size 500 new_name node_name 0x500507630001082b retain_reserve no rew_immediate no scsi_id 0x60c79 space_mode SCSI trace_logging no trailer_labels no ww_name 0x500507630041082b Use Autoloading Feature at End-of-Tape Block Size (0=Variable Length) Use Hardware Compression on Tape Debug Trace Logging Enabled Device Type Location Activate volume information logging Logical Unit Number Maximum size of log file (in # of entries) New Logical Name World Wide Node Name Retain Reservation Use Immediate Bit in Rewind Commands SCSI Target ID Backward Space/Forward Space Record Mode Trace Logging Enabled Trailer Label Processing World Wide Port Name True True True True False Truee True True True True False False True True True True True False
If the SAN configuration was changed before rebooting the AIX server or running cfgmgr, the device-to-target/LUN mapping will be preserved because of this connection to the WWN. New devices would get any free device names. Therefore, it is not relevant or necessary to use persistent binding with AIX. In this example, you can see that the rmt0 is not the first drive in the library. As we described in 3.3, Persistent binding on page 88, this can cause problems with many backup applications. Therefore, we have to rename the device names. First, we list all currently configured tape devices with the lsdev command (Example 3-17). We have one Ultrium 1 drive (rmt0) and two Ultrium drives (rmt1 and rmt2).
Example 3-17 List of FC attached tape drives # lsdev -Cc tape rmt0 Available 30-68-01 rmt1 Available 30-68-01 rmt2 Available 30-68-01 smc0 Available 30-68-01 LTO IBM IBM IBM Ultrium Tape 3580 Ultrium 3580 Ultrium 3584 Library Drive (FCP) Tape Drive (FCP) Tape Drive (FCP) Medium Changer (FCP)
Next, we can determine the physically installed order of the tape drives with the lsattr -El rmtx command, where x is the adapter number, as specified in Example 3-16. Finally, we use smit devices to rename the device names to reflect our configuration. Go to Tape drives Change/Show Characteristics of a Tape Drive and select the tape drives you want change. Select the name you want to use in the line New Logical Name. In our case, we have to change rmt0 to rmt2, and vice versa. This cannot be done in one step, because the rmt2 device name is used by another tape device. First, we change the name from rmt0 to rmt3 as shown in Example 3-18. Then we can change rmt2 to rmt0, and finally rmt3 (the original rmt0) to rmt2.
98
Example 3-18 SMIT change/show characteristics of a tape drive Change / Show Characteristics of a Tape Drive
Type or select values in entry fields. Press Enter AFTER making all desired changes. [TOP] Tape Drive Tape Drive type Tape Drive interface Description Status Location Parent adapter Connection address SCSI ID Logical Unit ID World Wide Port Name World Wide Node Name New Logical Name Enable Alternate Pathing Support Block Size (0=Variable Length) Use Hardware Compression on Tape Use Autoloading Feature at End-of-Tape (IBM 3581 and IBM 3583 with single drive only) Activate volume information logging Maximum size of log file (in # of entries) Backward Space/Forward Space Record Mode Use Immediate Bit in Rewind Commands Trailer Label Processing
F1=Help F5=Reset F9=Shell F2=Refresh F6=Command F10=Exit
[Entry Fields] rmt0 LTO fcp LTO Ultrium Tape Drive (FCP) Available 30-68-01 fscsi0 1 0x213ca 0x0 0x5005076300410803 0x5005076300010803 [rmt3] yes + [0] +# yes + no + no + [500] +# SCSI + no + no +
F3=Cancel F7=Edit Enter=Do F4=List F8=Image
If you have natively attached FC Drives, or if you have more than one IBM SAN Data Gateway attached to one library, then you will find that normally the drives on AIX are not configured in the same order as they are physically in the library. This SMIT option allows you to easily change the order to reflect your configuration. If you do this, you must update your library device table, as described in 4.6, Creating a library device table on page 150. Note: The IBM SAN Data Gateway (SDG) Router models 2108-R03 and 2108-G07 were withdrawn from marketing in September 2002. The SAN Data Gateway Integrated Module is no longer available as a feature in a new IBM 3583. The SAN Data Gateway features were withdrawn from marketing in October 2004. For more information on the SDG, see Appendix A, IBM SAN Data Gateway on page 281.
99
the FLOGI (fabric login). If a server wants to communicate to the tape drive, the server queries the name server of the switch, gets the WWN of the drive, and proceeds with a PLOGI (N-Port login) (see Figure 3-15). The same PLOGI will happen if the tape drive is connected as an FCP device.
Server Name Server query FCP Name Server WWN Drive Public loop Switch FC-AL N-Port Login
WWN Drive
Figure 3-15 N-Port login
Per SNIA specification, IBM LTO2 and LTO3 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 LTO2 or LTO3 drive to log in always as a fabric device, 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 3. Disable the switchport 4. Set port characteristics 5. Enable the switchport portcfgshow nn disableport nn portcfggport nn 1 enableport nn
For other switches, refer to your vendor documentation. With the appropriate microcode, you can change the port settings for LTO2 and LTO3 drives within the IBM 3584 operator console or Web interface. To change the settings for the IBM 3592 on the operator panel, navigate to Service Fibre Options Set Port x Set Topology.
100
Chapter 4.
Device, library, and RMU firmware upgrade At the end of this chapter you should be able to understand and implement the tasks required to: Install the required device drivers for the platform you are using Install and configure the required Host Bus Adapter drivers Understand the functions and use of the TotalStorage Tape Specialist Upgrade the library and drive microcode
Copyright IBM Corp. 2002, 2003, 2004, 2005. All rights reserved.
101
102
Table 4-1 Special device file names used with UNIX operating systems AIX Medium changer Tape device smc[0-255] rmt[0-255] rmt[0-255].1a Solaris [0-255]smc [0-255]st [0-255]stbb [0-255]stcc [0-255]stnd [0-255]stbnb,d [0-255]stcbb,c [0-255]stcnc,d [0-255]stcbnb,c,d HP-UX [0-255]chng [0-255]m [0-255]mbb [0-255]mnd [0-255]mnbb,d [tTGTdLUNe]BEST [tTGTdLUNe ]BESTbb [tTGTdLUNe ]BESTnd [tTGTdLUNe ]BESTnbb,d
a. Adding (.1) to the device name, means that it is a No Rewind on Close device. Some backup applications write a file mark on the volume at the end of each backup. When the next backup occurs, the backup application appends data to the volume based on the position of the file mark. If a device automatically rewinds the tape, the file mark position is lost and the next backup overwrites the data! This option is used by some application software, such as EMC Legato NetWorker: See Software installation (AIX) on page 249. b. A (b) stands for Berkeley Software Distribution (BSD) compatibility. The BSD device special file modifies close behavior for non-rewind devices. If the device is opened for no rewind on close, in non-BSD mode, if the last command before closing the device was a read, then the tape is positioned after the file mark immediately following the last block read. If the device is opened for no rewind on close, in BSD mode, if the last command before closing the device was a read, the tape is left positioned exactly where it was following the last block read. If the device is opened for rewind on close, the BSD mode is not relevant. c. A (c) stands for compression. The compression device special file determines whether the tape device will use built-in hardware compression while storing data on the tape. d. An (n) stands for No rewind on close. The no rewind on close device special file does not rewind the tape during a close operation. Otherwise, the tape is rewound when the device is closed. e. The TGT is the SCSI target ID, and LUN is the Logical Unit Number associated with the device.
In the following section, we give detailed examples of installing the drivers in AIX, SUN Solaris, and HP-UX environments.
Look for supported servers and operating systems, and then select the LTO model. Look for the section IBM pSeries, RS/6000, and SP Servers for information about operating systems and supported HBAs. For the supported HBA firmware level and SAN fabric components, see:
http://knowledge.storage.ibm.com/servers/storage/support/hbasearch/interop/hbaSearch.do
You must have AIX root authority to proceed with the installation of the driver. Use lslpp to determine if the Atape.driver is installed and to determine the version, as shown in Example 4-1.
103
Example 4-1 Checking if Atape.driver is installed on AIX # lslpp -l Atape.driver Fileset Level State Description ---------------------------------------------------------------------------Path: /usr/lib/objrepos Atape.driver 8.4.1.0 COMMITTED IBM AIX Enhanced Tape and Medium Changer Device Driver
You can see that the driver is installed at level 8.4.1.0. If the driver is not installed, or to check for a later version, see:
ftp://ftp.software.ibm.com/storage/devdrvr/AIX/
or
http://www.ibm.com/servers/storage/support/lto/index.html
Be sure to check the readme file for the latest installation notes and prerequisites. In our example, we are installing the Atape driver in the following environment: IBM pSeries 6C4 server with IBM AIX Version 5.3.0 IBM TotalStorage SAN Switch 2109-F32 IBM TotalStorage 3584 Tape Library with LTO3 FC drives IBM TotalStorage 3584 Tape Library with 3592 drives We also provide screen shots and tips for connecting to the following non-native FC drive: IBM LTO Ultrium 1 SCSI drive connected to LVD SCSI adapter The installation process is the same for any AIX system and IBM TotalStorage LTO library model. You can use either the command line or SMIT to install the driver. If the Atape device driver is already installed in your system and you just want to update it, first uninstall the previous Atape driver following the instructions in 4.2.9, Removing Atape driver from the system on page 125.
Otherwise, if you have downloaded the driver to your local system, use this command: installp -acXd /directory/filename Atape.driver Assuming you have downloaded the file Atape.9.3.5.0 to the directory /tmp, then use this command string: installp -acXd /tmp/Atape.9.3.5.0 Atape.driver This will install and commit the Atape driver in your system. Example 4-2 is an example of the installp command output.
104
Example 4-2 AIX Atape installation output (root@poco) />installp -acXd /tmp/Atape.9.3.5.0.bin Atape.driver +-----------------------------------------------------------------------------+ Pre-installation Verification... +-----------------------------------------------------------------------------+ Verifying selections...done Verifying requisites...done Results... SUCCESSES --------Filesets listed in this section passed pre-installation verification and will be installed. Selected Filesets ----------------Atape.driver 9.3.5.0 << End of Success Section >> FILESET STATISTICS -----------------1 Selected to be installed, of which: 1 Passed pre-installation verification ---1 Total to be installed 0503-409 installp: bosboot verification starting... installp: bosboot verification completed. +-----------------------------------------------------------------------------+ Installing Software... +-----------------------------------------------------------------------------+ installp: APPLYING software for: Atape.driver 9.3.5.0
. . . . . << Copyright notice for Atape >> . . . . . . . IBM AIX Enhanced Tape and Medium Changer Device Driver (C) COPYRIGHT International Business Machines Corp. 1993 1997 All Rights Reserved Licensed Materials - Property of IBM US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. . . . . . << End of copyright notice for Atape >>. . . . Checking for existing Atape devices... Installing AIX Version 5.2 Atape.driver... Adding device prototype... Adding odm and smit entries... Adding catalogs... Adding trace template... Adding error template... 5 entries added. 0 entries deleted. 0 entries updated. Chapter 4. Basic IBM tape setup for UNIX systems
105
10 secs).
0503-409 installp: bosboot verification starting... installp: bosboot verification completed. 0503-408 installp: bosboot process starting... bosboot: Boot image is 22645 512 byte blocks. 0503-292 This update will not fully take effect until after a system reboot. * * * System system and to A T T E N T I O N * * * boot image has been updated. You should reboot the as soon as possible to properly integrate the changes avoid disruption of current functionality.
installp: bosboot process completed. +-----------------------------------------------------------------------------+ Summaries: +-----------------------------------------------------------------------------+ Installation Summary -------------------Name Level Part Event Result ------------------------------------------------------------------------------Atape.driver 9.3.5.0 USR APPLY SUCCESS
After instating the driver, go to 4.2.3, Configuring tape and medium changer devices on page 107.
Press Enter. A pop-up list will display. Select Atape and press Enter again. Another pop-up will show a line similar to:
@ 9.3.5.0 IBM AIX Enhanced Tape and Medium Changer Device Driver
Select this by pressing F7 and Enter. Complete the installation options on the next screen, as illustrated in Example 4-4. 106
Implementing IBM Tape in UNIX Systems
Example 4-4 AIX Atape SMIT installation options Install and Update from ALL Available Software Type or select values in entry fields. Press Enter AFTER making all desired changes. [Entry Fields] /tmp [+ 9.3.5.0 IBM AIX Enhanced Tape and no + yes + no + yes + yes + no + no + no + yes + no + no +
* INPUT device / directory for software * SOFTWARE to install Medium Changer Device Drive> + PREVIEW only? (install operation will NOT occur) COMMIT software updates? SAVE replaced files? AUTOMATICALLY install requisite software? EXTEND file systems if space needed? OVERWRITE same or newer versions? VERIFY install and check file sizes? DETAILED output? Process multiple volumes? ACCEPT new license agreements? Preview new LICENSE agreements?
After this selection, the installation process begins. You see the same messages as in Example 4-2 on page 105. You are now ready to configure the devices.
This command configures all devices automatically (including any new tape or medium changer device). Power off your system and reboot to configure all devices automatically during the startup, and make available any new tape or medium changer devices in the system.
107
lsdev of multi-path configured IBM 3584 with IBM 3592 drives in Example 4-9 on page 109 lsattr of IBM 3582 in Example 4-10 on page 110 lscfg of IBM 3592 in Example 4-11 on page 110 lsattr of an IBM 3584 FC SCSI medium changer in Example 4-12 on page 110 lscfg of an IBM 3584 FC SCSI medium changer in Example 4-13 on page 111
Example 4-5 3583 non multi-path configured SCSI tape devices # lsdev -Cc tape smc0 Available 14-08-00-6,0 IBM 3583 Library Medium Changer rmt0 Available 14-08-00-0,0 IBM 3580 Ultrium Tape Drive rmt1 Available 14-08-00-1,0 IBM 3580 Ultrium Tape Drive
In the output you can see: smc0, rmt0, and rmt1 are the device special file names for the medium changer and the tape drives. See Table 4-1 on page 103 for a list of the device special file names for each platform. If you have installed a 3580 manual drive, you will not see any entry for the medium changer because it does not have one. Available means that the device is installed correctly and ready. We are using a SCSI attachment. 14-08-00 is the ID of the SCSI adapter, 6 is the SCSI address, and 0 is the LUN for the medium changer. The drives use LUN 0 on SCSI IDs 0 and 1. The SCSI medium changer (smc) has its own SCSI ID with LUN 0. This is an example of a non multi-path architecture IBM 3583. As you will see in the following examples, with a multi-path architecture library the SCSI medium changer uses LUN 1, and does not have its own SCSI (or FC) ID.
Example 4-6 Multi-path configured IBM 3584 with LTO drives # lsdev -Cc tape rmt0 Available 20-58-01 rmt1 Available 20-58-01 rmt2 Available 20-58-01 smc0 Available 20-58-01 smc1 Available 20-58-01 smc2 Available 20-58-01 IBM IBM IBM IBM IBM IBM 3580 3580 3580 3584 3584 3584 Ultrium Ultrium Ultrium Library Library Library Tape Drive (FCP) Tape Drive (FCP) Tape Drive (FCP) Medium Changer (FCP) Medium Changer (FCP) Medium Changer (FCP)
Example 4-6 shows: smcx and rmtx are the device special file names for the medium changer and the tape drives. Refer to Table 4-1 on page 103 for a list of the device special file names for each platform. Available means that the device is installed correctly and is ready. We are using a Fibre Channel HBA indicated by the description (FCP). 20-58-01 is the location ID of the HBA. You do not see a SCSI or FC WWN. If you want to see the WWN, use lsattr -El rmtx as shown in Example 4-7. For each drive, the control path is enabled. Therefore, you see devices smc0 to smc2.
Example 4-7 Details of FC IBM LTO Ultrium 2 lsattr -El rmt0 alt_pathing no autoload no block_size 0 Enable Alternate Pathing Support Use Autoloading Feature at End-of-Tape Block Size (0=Variable Length) True True True
108
compress devtype location logging lun_id max_log_size new_name node_name primary_device retain_reserve rew_immediate scsi_id space_mode trailer_labels ww_name
yes ULT3580-
Use Hardware Compression on Tape Device Type Location no Activate volume information logging 0x0 Logical Unit Number 500 Maximum size of log file (in # of entries) New Logical Name 0x500308c141177003 N/A rmt0 Primary Logical Device no Retain Reservation no Use Immediate Bit in Rewind Commands 0x30be8 SCSI Target ID SCSI Backward Space/Forward Space Record Mode no Trailer Label Processing 0x500308c141577003 World Wide Name
True False True True True True True False False False True True True True False
Example 4-7 shows: All the device driver configuration parameters. See 4.2.5, Configuring the IBM tape device parameters on page 111. Because this is an FC-attached tape drive, scsi_id is the port ID of the SAN switch. ww_name shows the WWN of the FC tape drive. As described in 3.3, Persistent binding on page 88, and 3.3.4, Persistent binding not applicable to AIX on page 97, this is the third tape drive in the first frame of the 3584. Do not get confused and assume this is the first tape drive just because of the device name rmt0.
Example 4-8 lscfg of FC IBM LTO Ultrium 3 (root@poco) />lscfg -vl rmt2 rmt2 U0.1-P2-I1/Q1-W500507630041082A-L0 LTO Ultrium Tape Drive (FCP) Manufacturer................IBM Machine Type and Model......ULTRIUM-TD3 Serial Number...............1200001355 Device Specific.(FW)........54KC
Example 4-8 shows: The serial number and the firmware level of the drive. ULTRIUM-TD3 under Machine Type and Model indicates this is an LTO Ultrium generation 3 drive.
Example 4-9 Multi-path configured 3584 with 3592 drives # lsdev -Cc tape rmt3 Available 20-58-01 rmt4 Available 20-58-01 smc3 Available 20-58-01 smc4 Available 20-58-01 IBM IBM IBM IBM 3592 3592 3584 3584 Tape Drive (FCP) Tape Drive (FCP) Library Medium Changer (FCP) Library Medium Changer (FCP)
Example 4-9 shows: Similar to IBM 3584 with LTO drives described on Example 4-6. However, take into consideration that because each 3592 drive has two FC ports, depending on your configuration, hosts may configure double the number of device files as compared to using LTO drives. The automatic failover of data path between those two device files, which represent one physical tape drive, is mentioned in 4.2.7, Data path failover for LTO 2 and 3 FC and 3592 drives on AIX on page 117.
109
Example 4-10 Details of 3592 drive lsattr -El rmt3 alt_pathing no block_size 0 compress yes dev_status devtype 03592J1A drive_port 0 location logging no lun_id 0x0 max_log_size 500 mode yes mtdevice new_name node_name 0x5005076300010811 primary_device rmt3 retain_reserve no rew_immediate no scsi_id 0x10db1 space_mode SCSI trailer_labels no ww_name 0x5005076300410811 Enable Alternate Pathing Support Block Size (0=Variable Length) Use Hardware Compression on Tape N/A Device Type Drive Port Number Location Activate volume information logging Logical Unit Number Maximum size of log file (in # of entries) Use Buffered Writes Library Device Number New Logical Name N/A Primary Logical Device Retain Reservation Use Immediate Bit in Rewind Commands SCSI Target ID Backward Space/Forward Space Record Mode Trailer Label Processing World Wide Name True True True False False False True True True True True True True False False False True True True True False
Example 4-10 shows: Because this is a FC-attached tape drive, scsi_id is the port ID of the SAN switch. ww_name shows the WWN of the FC tape drive. As described in 3.3, Persistent binding on page 88, and 3.3.4, Persistent binding not applicable to AIX on page 97, this is the first tape drive in the second frame of the IBM 3584.
Example 4-11 lscfg of IBM 3592 drive # lscfg -vl rmt3 rmt3 P1-I1/Q1-W5005076300410811-L0 IBM 3592 Tape Drive (FCP) Manufacturer................IBM Machine Type and Model......03592J1A Serial Number...............000001300280 Device Specific.(FW)........04B8 Loadable Microcode Level....A170029E
Example 4-11 (lscfg) shows: The serial number and firmware level of the drive. 3592J1A under Machine Type and Model indicates this is an IBM 3592.
Example 4-12 Details of FC IBM 3584 medium changer # lsattr -El smc3 alt_pathing no devtype 03584L22 location lun_id 0x1000000000000 new_name node_name 0x5005076300010811 primary_device smc3 reserve_support yes retain_reserve no Enable Alternate Pathing Support Device Type Location Logical Unit Number New Logical Name N/A Primary Logical Device Use Reserve/Release on Open and Close Retain Reservation True False True True True False False True False
110
scsi_id ww_name
True False
Example 4-12 shows: The Control path (smc) uses the lun_id 1. However, it also uses the same port ID and WWN as rmt3 (Example 4-10) because the control path goes through rmt3. Alternate pathing support is not enabled, since alt_pathing is no. For more details on alternate pathing, see 4.2.6, Setting up control path failover for AIX on page 112.
Example 4-13 lscfg of FC IBM 3584 lscfg -vl smc0 smc0 (FCP) P1-I1/Q1-W5005076300410811-L1000000000000 IBM 3584 Library Medium Changer
Example 4-13 (lscfg) shows: The serial number and the firmware level of the library. You can now use the tapeutil utility to test the library. Go to 4.5, Testing the library with tapeutil on page 149 to learn how to use this utility. Open the device, issue inquiry commands (read and write), and move media across the library to check the driver functionality. The drives can also be used with OS commands such as tar.
Tape Drive Tape Drive type Tape Drive interface Description Status Location Parent adapter Connection address SCSI ID Logical Unit ID
111
World Wide Name New Logical Name Enable Alternate Pathing Support Block Size (0=Variable Length) Use Hardware Compression on Tape Use Autoloading Feature at End-of-Tape (IBM 3581 and IBM 3583 with single drive only) Activate volume information logging Maximum size of log file (in # of entries) Backward Space/Forward Space Record Mode Use Immediate Bit in Rewind Commands Trailer Label Processing Example 4-15 SMIT characteristics of an IBM 3592 Change / Show Characteristics of a Tape Drive Type or select values in entry fields. Press Enter AFTER making all desired changes.
+ +# + + + +# + + +
Tape Drive Tape Drive type Tape Drive interface Description Status Location Parent adapter Connection address SCSI ID Logical Unit ID World Wide Name New Logical Name Enable Alternate Pathing Support Block Size (0=Variable Length) Use DEVICE BUFFERS during writes Use Hardware Compression on Tape Activate volume information logging Maximum size of log file (in # of entries) Backward Space/Forward Space Record Mode Use Immediate Bit in Rewind Commands Trailer Label Processing
[Entry Fields] rmt3 3592 fcp IBM 3592 Tape Drive (> Available 20-58-01-PRI fscsi0 2 0x10db1 0x0 0x5005076300410811 [] yes + [0] +# yes + yes + no + [500] +# SCSI + no + no +
Change any updateable device options required and press Enter. Check for the output message rmtx Changed. The default for hardware compression on the tape is yes for every LTO Ultrium and 3592 devices, which is the normal recommended setting for performance reasons. (However, this may vary with particular applications; check with your vendor.) Blocksize=0 means that the device uses variable block size. Some application software may override this value. Refer to Part 2, LTO libraries and backup software on page 195 for specific application software related information.
For example, consider a simple multi-path architecture connection with two HBAs in an AIX host, connected to a library with two drives. Each drive has the control port enabled. The first HBA is connected to the first drive, and the second HBA is connected to the second drive. This simple configuration provides two physical control paths to the same library (one on each drive) for redundancy if one path from an HBA to the library fails. When the AIX server is booted or cfgmgr is run, each HBA detects a control port to the library and two medium changer devices (smc0 and smc1) will be configured. Each logical device is a physical path to the same library; however, an application can open and use only one logical device at time, either smc0 or smc1. Without the Atape alternate pathing support, if an application opens smc0 and a permanent path error occurs (for example, because of an HBA, cable, 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 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.
Important: The library control path failover feature code 1680 must be installed and enabled on the library (3582, 3583, and 3584) before enabling the alternate pathing support in the Atape device driver. 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. This is shown in the following section for the IBM 3582, 3583, and 3584.
113
Figure 4-3 IBM 3584: Enabling additional control paths without ALMS
To enable additional control paths using the Tape Library Specialist with ALMS enabled, perform the followings steps: 1. Select Manage 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 selecting the blue icon to the left of the checkbox such that a drive icon appears as shown in Figure 4-4. In the example, drive 2703 was selected to enable as an alternate control path. Note: Do not select a drive with a cartridge in it, such as drive 2702 in the example. 4. To confirm the changes, click Apply. 5. The Operation in Progress screen displays, followed by a Success screen that indicates that the changes are complete. Click Close. 6. The Drive Assignment screen re-displays with the new assignments.
114
Figure 4-4 IBM 3584: Enabling additional control paths with ALMS enabled
Tape Drive Tape Drive type Tape Drive interface Description Status Location Parent adapter Connection address SCSI ID Logical Unit ID World Wide Name New Logical Name Enable Alternate Pathing Support Use Reserve/Release on Open and Close
The support can also be enabled or disabled using the chdev command. chdev -l device_name -a alt_pathing=yes Example 4-17 shows the output of the chdev command.
115
Example 4-17 Enable alternate pathing support on command line chdev -l smc3 -a alt_pathing=yes smc3 changed
When the device driver configures a logical device with alternate pathing support enabled, the first device configured always becomes the primary path. On SCSI-attached devices, -P is appended to the location field, and on Fibre-attached devices -PRI is appended to the location field of the device. When a second logical device is configured with alternate pathing support enabled for the same physical device, it configures as an alternate path. On SCSI-attached devices, -A is appended to the location field, and on Fibre-attached devices -ALT is appended to the location field of the device. A third logical device is also configured as an alternate path with either -A or -ALT appended, and so on. The device driver supports up to 16 physical paths for a single device. For example, in a SAN environment, if an alternate path is enabled first on smc0, then smc1, followed by smc2, the lsdev-Cc tape looks like Example 4-18.
Example 4-18 3584 multi-path architecture - configured FC tape devices # lsdev -Cc tape rmt0 Available 20-58-01 rmt1 Available 20-58-01 rmt2 Available 20-58-01 smc0 Available 20-58-01-PRI smc1 Available 20-58-01-ALT smc2 Available 20-58-01-ALT IBM IBM IBM IBM IBM IBM 3580 3580 3580 3584 3584 3584 Ultrium Ultrium Ultrium Library Library Library Tape Drive (FCP) Tape Drive (FCP) Tape Drive (FCP) Medium Changer (FCP) Medium Changer (FCP) Medium Changer (FCP)
The labeling of a logical device as either a primary or alternate path is for information only, in order to: Enable you to identify the actual number of physical devices configured on the system, and the specific logical device associated with them. There will be only one logical device labeled the primary path for each physical device. However, there may be many (multiple) logical devices labeled as an alternate path for the same devices. Provide information about which logical devices configured on the system have alternate pathing support enabled. You can display the primary and alternate path configuration for all devices with the lsdev command. There may be two or more logical devices configured for a single physical device, but the first device configured is labeled the primary device. All other logical devices configured after the first device are labeled as alternate devices. To see this, run the lsdev -Cc tape command and look at the location field in the data. By running lsdev -Cc tape | grep P, for example, you can easily determine how many physical devices are configured with alternate pathing support.
116
SAN fabric Server HBA If you have a multi-frame configuration, enable the additional control paths on a different frame, so that you can still use your library even if the AC power for the first frame is lost. In Figure 4-5, the second control path is enabled on the second frame, and goes over a separate SAN switch and fabric (there is no inter-switch link between these switches) to a second HBA. You can still work with the library if any one of these conditions occurs: AC power is lost on the first frame. Drive one in the first frame is down. The FC cable between the drive and switch, or switch and HBA is broken. One switch fails. One SAN fabric is down. One HBA is broken.
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
4.2.7 Data path failover for LTO 2 and 3 FC and 3592 drives on AIX
The Atape.driver for AIX supports alternate drive pathing, which will configure multiple physical paths to the same drive within the device driver. It provides two basic functions: Automatic failover to an alternate physical drive path when a permanent error occurs on one path Dynamic load balancing for devices using multiple HBAs
117
Automatic failover
The automatic failover support provides error recovery on an alternate path when a permanent error occurs on one path. This is transparent to the running application. Note: This function is supported only on IBM Ultrium 2 and 3 native Fibre Channel drives and IBM 3592 Enterprise tape drives. It is not supported on IBM Ultrium 1 drives or for devices that are attached through an IBM San Data Gateway. For example, consider a simple multi-path connection with two HBAs in an AIX host, connected over a SAN to an LTO 2 drive (see Figure 4-6). This simple configuration provides two physical paths to the same LTO drive for redundancy if one path from an HBA to the drive fails. When the AIX server is booted or cfgmgr is run, each HBA detects an LTO drive and two logical devices will be configured (for example, rmt0 and rmt1). Each logical device is a physical path to the same drive. An application can open and use only one logical device at a time, either rmt0 or rmt1. The IBM 3592 has two fibre ports available on the back of each drive for increased redundancy. With the IBM 3592, complete redundancy of the SAN components can be achieved (see Figure 4-7). Without the Atape alternate pathing support, if an application opens rmt0, and a permanent path error occurs (for example, because of an HBA or cable failure), the application fails. It is possible to initiate manual failover by changing the device path to the alternate path (rmt1), but this is a manual operation, and the last failing job has to be resent. Sometimes manual failover may require operator intervention to reset the drive (like a power cycle through TotalStorage Specialist) because a SCSI reservation can still exist on the failing HBA path. When the alternate pathing support is enabled on both rmt0 and rmt1, 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 rmt0 or rmt1). If an application opens rmt0 and a permanent path error occurs, the driver initiates failover error recovery automatically on the alternate path (rmt1), and the current operation continues on the alternate path without interrupting the application. Use of this function with TSM is described in 5.9, Tivoli Storage Manager and data path failover on page 234.
Important: The library data path failover feature code 1681 must be installed on the library (3582, 3583, and 3584) before enabling alternate data path support in the AIX device driver for IBM Ultrium 3 drives only. The feature code is not required for IBM Ultrium 2 FC drives or for IBM 3592 Enterprise drives.
118
LIBRARY CONTROLLER
SERVER
APPLICATION
LTO DRIVE
rmt0
DEVICE DRIVER
Failover
rmt1
rmt0
FC ADAPTER
119
LIBRARY CONTROLLER
SERVER
APPLICATION
3592 DRIVE
rmt0
DEVICE DRIVER
Failover
rmt1
rmt0
FC ADAPTER
120
When the next job opens a tape drive (rmt0), it would be assigned to HBA1, so again there would be two jobs using HBA1 and two jobs using HBA2. Likewise, if the second job finishes and closes the device, HBA2 would have one job using it, and the next job that opens a tape drive (rmt1) would be assigned to HBA2. The dynamic load balancing support is independent from the automatic failover support. Regardless of the path assigned initially for load balancing, if that path fails, the automatic failover support will attempt recovery on the next available path.
LIBRARY CONTROLLER
DRIVE 1
DRIVE 2
SERVER
DRIVE 3
APPLICATION
Job 1 Job 2 Job 3
rmt2
DRIVE 4
Job 4
rmt3
rmt1
DEVICE DRIVER
rmt3 rmt2 rmt1 rmt0 rmt7 rmt6 rmt5 rmt4
FC ADAPTER
It should be noted that dynamic load balancing works when the tape drive is opened, not loaded. The device driver tries to balance the usage of drive opens over several HBAs, but it is not possible to precisely balance the workload or throughput of HBAs. This means it can still happen that the throughput of one HBA is significantly higher than that of other HBAs. Also, if a failover happens, then all open devices will be switched to the next available HBA, regardless of dynamic load balancing. The next open will then try to balance. Thus, recovering from failover is more important than load balancing, and failover must happen fast to avoid application impact. Note: If you are using alternate paths for tape drives, then you do not need to follow the instructions in 3.1.2, Multiple paths to tape drives on page 79.
121
To enable the support globally on all currently configured devices, run this command: /usr/lpp/Atape/instAtape -a To enable or disable the support on a single logical device, run the following command: chdev -l device_name -a alt_pathing=yes Example 4-19 shows sample output of the chdev command.
Example 4-19 Enable alternate pathing support for rmt0 on command line chdev -l rmt0 -a alt_pathing=yes rmt0 changed
The support can also be enabled or disabled through the SMIT interface, by selecting Devices Tape Drive Change/Show Characteristics of a Tape Drive. Select the logical device to change, such as rmt0, rmt1, and so on; then select Yes for Enable Alternate Pathing Support (see Example 4-20).
Example 4-20 Enable alternate pathing support for rmt 0 through SMIT Change / Show Characteristics of a Tape Drive Type or select values in entry fields. Press Enter AFTER making all desired changes. [Entry Fields] rmt0 3580 fcp IBM 3580 Ultrium Tape> Available 20-58-01 fscsi0 27 0x30be8 0x0 0x500308c141577001 [] yes [0] yes no
Tape Drive Tape Drive type Tape Drive interface Description Status Location Parent adapter Connection address SCSI ID Logical Unit ID World Wide Name New Logical Name Enable Alternate Pathing Support Block Size (0=Variable Length) Use Hardware Compression on Tape Use Autoloading Feature at End-of-Tape (IBM 3581 and IBM 3583 with single drive only)
122
Activate volume information logging Maximum size of log file (in # of entries) Backward Space/Forward Space Record Mode Use Immediate Bit in Rewind Commands Trailer Label Processing
no [500] SCSI no no
When the device driver configures a logical device with alternate pathing support enabled, the first device configured always becomes the primary path. On fibre-attached devices, -PRI is appended to the location field of the device. When a second logical device is configured with alternate pathing support enabled for the same physical device, it configures as an alternate path. On fibre-attached devices, -ALT is appended to the location field of the device. A third logical device is also configured as an alternate path with -ALT appended, and so on. The device driver supports up to 16 physical paths for a single device. For example, if an rmt0 is configured first, then an rmt1 and an rmt2, the lsdev -Cc tape command looks as shown in Example 4-21.
Example 4-21 Alternate data path - configured LTO2 FC tape devices # lsdev -Cc tape rmt0 Available 30-68-01-PRI IBM 3580 Ultrium Tape Drive (FCP) rmt1 Available 20-58-01-ALT IBM 3580 Ultrium Tape Drive (FCP) rmt2 Available 10-70-01-ALT IBM 3580 Ultrium Tape Drive (FCP)
You can see by the location code which HBA connection is associated with the primary and alternate paths. In Example 4-21, rmt0 is the primary device, connected to the HBA in location 30-68-01. (Also, the serial number or WWN shown with an lscfg -vl or lsattr -El command for each device file would indicate that each represents the same physical drive.) You also see that the three HBAs are on three separate PCI buses to split the I/O workload between them, which should improve performance. Different types of PCI buses have different performance specifications as shown in Table 4-2. It does make sense to put one 2 Gbps HBA in a 32/33 PCI bus; however, it does not make sense to put more than one 2 Gbps HBA in a 64/33 PCI bus because the throughput will be saturated. Note: Bandwidth throughputs in Table 4-2 are burst rates. Sustained throughput rates are typically around 50% of the burst rates.
Table 4-2 PCI buses Width 32 bit 64 bit 64 bit 64 bit Speed 33 MHz 33 MHz 64 MHz 132 MHz Bandwidth 132 MB/sec 264 MB/sec 512 MB/sec 1056 MB/sec
The labeling of a logical device as either a primary or alternate path is for information only in order to: Enable you to identify the actual number of physical devices configured on the system and a specific logical device associated with them. There will be only one logical device
Chapter 4. Basic IBM tape setup for UNIX systems
123
labeled as the primary path for each physical device. However, there may be many (multiple) logical devices labeled as alternate paths for the same devices. Provide information about which logical devices configured on the system have alternate pathing support enabled. You can display the primary and alternate path configuration for all devices with the lsdev command. There may be two or more logical devices configured for a single physical device, but the first device configured is labeled the primary device. All other logical devices configured after the first device are labeled as alternate devices. To see this, run the lsdev -Cc tape command and look at the location field in the data. By running lsdev -Cc tape | grep P for example, you can easily determine how many physical devices are configured with alternate pathing support.
Select No in the Keep definition in database field, then click OK. The device will then be deleted.
124
Now you can uninstall the Atape driver. You cannot unload the device driver from the kernel until the last device used by this driver has been unconfigured.
Attention: All tape devices that use the Atape driver must be closed and idle when uninstalling Atape, or the uninstall will fail. Example 4-23 shows the output of the installp -u command.
Example 4-23 AIX uninstall Atape driver # installp -u Atape.driver +-----------------------------------------------------------------------------+ Pre-deinstall Verification... +-----------------------------------------------------------------------------+ Verifying selections...done Verifying requisites...done Results... SUCCESSES --------Filesets listed in this section passed pre-deinstall verification and will be removed. Selected Filesets ----------------Atape.driver 9.3.5.0 << End of Success Section >> FILESET STATISTICS -----------------1 Selected to be deinstalled, of which: 1 Passed pre-deinstall verification ---1 Total to be deinstalled 0503-409 installp: bosboot verification starting... installp: bosboot verification completed. +-----------------------------------------------------------------------------+ Deinstalling Software... +-----------------------------------------------------------------------------+ installp: DEINSTALLING software for: Atape.driver 9.3.5.0
There are 4 Atape devices configured: rmt0 Available smc0 Available rmt1 Available rmt2 Available
125
Deleting rmt0... rmt0 deleted Deleting rmt1... rmt1 deleted Deleting rmt2... rmt2 deleted Deleting smc0... smc0 deleted De-installing Atape.driver... Atape.driver de-installed Finished processing all filesets. (Total time:
12 secs).
0503-409 installp: bosboot verification starting... installp: bosboot verification completed. 0503-408 installp: bosboot process starting... bosboot: Boot image is 22610 512 byte blocks. 0503-292 This update will not fully take effect until after a system reboot. * * * System system and to A T T E N T I O N * * * boot image has been updated. You should reboot the as soon as possible to properly integrate the changes avoid disruption of current functionality.
installp: bosboot process completed. +-----------------------------------------------------------------------------+ Summaries: +-----------------------------------------------------------------------------+ Installation Summary -------------------Name Level Part Event Result ------------------------------------------------------------------------------Atape.driver 9.3.5.0 USR DEINSTALL SUCCESS
Look for supported servers and operating systems, and select the LTO model. Look for the section SUN Systems for information about operating systems and supported HBAs. For the supported HBA firmware level and SAN fabric components, see:
http://knowledge.storage.ibm.com/servers/storage/support/hbasearch/interop/hbaSearch.do
126
Select the desired file with the .bin extension and read the IBMtape.readme for latest release information, fixes, and prerequisites. The following sections describe installation, verification, configuration, and removal procedures of the IBMtape driver for the IBM 3583 in a Solaris environment.
127
4.1.1.4> IBM Tape & Medium Changer Device Driver 4.1.1.4 (sparc) 4.1.1.4 IBM Tape & Medium Changer Device Driver for Sun Solaris 7, 8, 9 and 10 Version 4.1.1.4 Contains Licensed Internal Code Licensed Materials - Property of IBM (C) Copyright 1994-. IBM Corporation All Rights Reserved Portions (C) 1994 Sun Microsystems US Government Users Restricted Rights Use, duplication, or disclosure restricted by GSA ADP Schedule Contract with IBM (R) IBM is a registered trademark of IBM Corporation (R) Solaris is a registered trademark of Sun Microsystems Using </opt> as the package base directory. ## Processing package information. ## Processing system information. 1 package pathname is already properly installed. ## Verifying disk space requirements. ## Checking for conflicts with packages already installed. ## Checking for setuid/setgid programs. This package contains scripts which will be executed with super-user permission during the process of installing this package. Do you want to continue with the installation of <IBMtape> [y,n,?] y Installing IBM Tape & Medium Changer Device Driver 4.1.1.4 as <IBMtape> ## Installing part 1 of 1. /opt/IBMtape/IBMtape.conf /opt/IBMtape/diags_info /opt/IBMtape/tapelist /opt/IBMtape/tapeutil /opt/IBMtape/tapeutil.c /opt/IBMtape/tmd /opt/IBMtape/tmd.conf /usr/include/sys/oldtape.h /usr/include/sys/smc.h /usr/include/sys/st.h /usr/include/sys/svc.h /usr/kernel/drv/IBMtape /usr/kernel/drv/sparcv9/IBMtape [ verifying class <none> ] ## Executing postinstall script. ## The /usr/kernel/drv/IBMtape.conf file already exists. ## It will be preserved as the current configuration file ## for the IBM Tape & Medium Changer Device Driver. ## Stopping any running instances of tape monitor daemon... ## The /etc/tmd.conf file already exists.
128
## ##
It will be preserved as the current configuration file for the IBM tape monitor daemon.
## The /var/opt/IBMtape already exists. ## It will be preserved as the current directory ## for the IBM tape monitor daemon. ## The /usr/kernel/drv/IBMtape.conf already contains ## a control node entry. It will be preserved. ## Adding new tmd entry to /etc/inittab... ## Loading IBM Tape & Medium Changer Device Driver. ## Starting IBMtape Monitor Daemon (tmd)... Installation of <IBMtape> was successful.
Before using the tape devices and the library, configure the device driver parameters, as described in the following section.
Because of persistent binding, we know that the tape drives will use SCSI IDs 8 to 10. Therefore, IBMtape.conf needs entries for target ID 8 to 10 (see Example 4-26). Because of multi-path architecture, for every target ID we also use LUN 1 for the medium changer.
Example 4-26 IBMtape.conf for three FC drives name="IBMtape"class="scsi" target=8 lun=0 .............. name="IBMtape"class="scsi" target=8 lun=1 .............. name="IBMtape"class="scsi" target=9 lun=0 Chapter 4. Basic IBM tape setup for UNIX systems
129
.............. name="IBMtape"class="scsi" target=9 lun=1 .............. name="IBMtape"class="scsi" target=10 lun=0 .............. name="IBMtape"class="scsi" target=10 lun=1
Tip: The persistent binding and the IBMtape.conf entries should be sequential and contiguous so that the tape special file names will also be in sequence! To prevent Solaris standard tape driver from claiming the devices, comment out the target ID and LUN for the IBM tape devices from the file /kernel/drv/st.conf.
Example 4-27 /kernel/drv/st.conf example with three native FC drives #name="st" class="scsi" # target=8 lun=0; #name="st" class="scsi" # target=8 lun=1; #name="st" class="scsi" # target=9 lun=0; #name="st" class="scsi" # target=9 lun=1; #name="st" class="scsi" # target=10 lun=0; #name="st" class="scsi" # target=10 lun=1;
After editing the files, reboot the system to enable the changes. One common method to perform a reboot is shown here, but use your installations normal procedures: reboot -- -r Verify operation of the newly installed or readdressed equipment as in 4.3.3, Verifying the IBMtape driver installation on page 133.
130
Example 4-28 shows that SDG with WWN of "100000604516050b" will be assigned a SCSI target ID of 11 every time the server reconfigures its devices. Important: For every SDG attached to the server, LUN 0 is used by the gateway itself, and LUNs 1-126 are used for tape devices attached to the SDG. Tape drives are always assigned an even number LUN and start at 2. The medium changer will have an odd number starting at 1. (See SDG LUN mapping on page 293.) Then for the tape devices, the gateway assigns LUNs in increasing sequence as the devices are discovered on its attached SCSI channels. This means that adding and removing devices, cabling changes, and readdressing of devices may cause gaps in the sequence of assigned LUNs. The assigned LUNs can be checked with TotalStorage SDG Specialist tool, or by Telnet to SDG and issuing the command targets, and if needed, the command mapRebuildDatabase may be used to rebuild the LUN assignments. The basic operation procedures for SDG are described in SAN Data Gateway basic setup on page 284. In this example with SDG, LUN address 0 is not required, so the IBMtape.conf file should contain entries as shown in Example 4-29.
Example 4-29 IBMtape.conf example for smc and two drives connected through a SDG name="IBMtape"class="scsi" target=11 lun=1 block_size=0 buffering=1 immediate=0 trailer=0 sili=0; name="IBMtape"class="scsi" target=11 lun=2 block_size=0 buffering=1 immediate=0 trailer=0 sili=0; name="IBMtape"class="scsi" target=11 lun=4 block_size=0 buffering=1 immediate=0 trailer=0 sili=0;
Block_size=0 means that the device uses variable block size. Some application software may override this value. Refer to Part 2, LTO libraries and backup software on page 195 for specific application software related information. To prevent Solaris standard tape driver from claiming the devices, comment out the target ID and LUN for the IBM tape devices from the file /kernel/drv/st.conf. In our example, target ID 11 needs to be commented out.
Example 4-30 /kernel/drv/st.conf example with SDG .............. #name="st" class="scsi" # target=11 lun=0; #name="st" class="scsi" # target=11 lun=1;
131
If you have multiple SCSI-connected devices attached to the same server, it can be difficult to know which SCSI target ID and LUN number will be assigned by the OS boot scan process to the LTO drives. In this situation, if you are working on a test system, and you can reboot without impacting production operations, try first to include in IBMtape.conf all possible target and LUN numbers, as in Example 4-31. Also, comment out those SCSI target IDs in the st.conf file.
Example 4-31 Including all LUN/target combinations in IBMtape.conf name="IBMtape"class="scsi" target=0 lun=0 .............. name="IBMtape"class="scsi" target=0 lun=1 .............. name="IBMtape"class="scsi" target=0 lun=2 .............. name="IBMtape"class="scsi" target=0 lun=3 .............. name="IBMtape"class="scsi" target=0 lun=0 .............. name="IBMtape"class="scsi" target=1 lun=1 .............. name="IBMtape"class="scsi" target=1 lun=2 .............. name="IBMtape"class="scsi" target=1 lun=3 ..............
You can use every reasonable combination of target and LUN numbers to include in the IBMtape.conf file. Then, after rebooting, you can see which target and LUN IDs were actually assigned for the devices by using the dmesg command. Look for entries similar to Example 4-32.
Example 4-32 Tape entries in the dmesg command output Aug 22 18:22:52 234, Tgt 0, Lun Aug 22 18:22:52 235, Tgt 0, Lun Aug 22 18:22:52 237, Tgt 0, Lun sol-e unix: NOTICE: IBMtape _probe: Found Medium Changer ULT3583-TL, Inst 1 sol-e unix: NOTICE: IBMtape _probe: Found Tape Drive ULT3580-TD1, Inst 2 sol-e unix: NOTICE: IBMtape _probe: Found Tape Drive ULT3580-TD1, Inst 4
The SCSI target and LUN number are the addresses assigned to the tape drives and the medium changer during the boot process.
132
Now you can re-edit IBMtape.conf to exclude the unused entries. Do not leave unused entries in the file, since superfluous entries can slow the boot process. Reboot the system after removing the unused entries in IBMtape.conf. One common method to perform a reboot is shown here, but use your installations normal procedures:
reboot -- -r
Verify operation of the newly installed or readdressed equipment as in 4.3.3, Verifying the IBMtape driver installation on page 133.
Example 4-33 shows: 0smc 1stbn 2stbn The device special file name for the medium changer The device special file name for the first 3580 tape drive The device special file name for the 2nd 3580 tape drive
Example 4-34 shows an IBM TotalStorage 3584 Tape Library with native FC drives connected using the persistent binding setting used in Example 4-25 on page 129.
Example 4-34 Verifying Solaris device configuration ls -l /dev/rmt/*stbn /dev/rmt/*smc lrwxrwxrwx 1 root root 58 Mar 24 17:33 /dev/rmt/0stbn -> ../../devices/pci@1f,4000/fibre-channel@2/IBMtape@8,0:stbn lrwxrwxrwx 1 root root 57 Mar 29 13:22 /dev/rmt/1smc -> ../../devices/pci@1f,4000/fibre-channel@2/IBMtape@8,1:smc lrwxrwxrwx 1 root root 58 Mar 24 17:33 /dev/rmt/2stbn -> ../../devices/pci@1f,4000/fibre-channel@2/IBMtape@9,0:stbn lrwxrwxrwx 1 root root 57 Mar 29 13:22 /dev/rmt/3smc -> ../../devices/pci@1f,4000/fibre-channel@2/IBMtape@9,1:smc lrwxrwxrwx 1 root root 58 Mar 24 17:33 /dev/rmt/4stbn -> ../../devices/pci@1f,4000/fibre-channel@2/IBMtape@a,0:stbn lrwxrwxrwx 1 root root 57 Mar 29 13:22 /dev/rmt/5smc -> ../../devices/pci@1f,4000/fibre-channel@2/IBMtape@a,1:smc
In this example, the fields are: 0stbn Since this device has a SCSI ID of 8 and LUN of 0 (8,0), it is most likely that this device special file represents the device with WWN of 5005076300410801 from
133
the persistent binding setting in Example 4-25 on page 129, which is the first tape drive. 1smc 2stbn 3smc 4stbn 5smc 8,1 indicates that it is the device special file name for the medium changer recognized from the first tape drive. Similarly, this is the device special file name for the second tape drive. The device special file name for the medium changer. The device special file name for the third tape drive. The device special file name for the medium changer.
You can also use the tapelist tool for identifying the relationship between the device special file and which physical device it represents.
Example 4-35 Tape entries in the server using tapelist tool # tapelist -l Inst # Special File Device Serial No TGT/LUN Ucode World Wide NN World Wide PN Device Physical Path Path Type ------ --------------- ------------- ------------ ------- ------ ---------------- ----------------------------------------------------------- ---------3682 /dev/rmt/10st 03592J1A 000001300280 8/0 04B8 5005076300010811 5005076300410811 /devices/pci@1f,4000/fibre-channel@2/IBMtape@8,0:st N/A 3683 /dev/rmt/13smc 03584L22 000001310008 8/1 465u N/A N/A /devices/pci@1f,4000/fibre-channel@2/IBMtape@8,1:smc N/A 3715 /dev/rmt/12st 03592J1A 000001300178 9/0 04B8 5005076300010812 5005076300410812 /devices/pci@1f,4000/fibre-channel@2/IBMtape@9,0:st N/A
Example 4-35 shows that device special file /dev/rmt/12st is representing an IBM 3592-J1A tape drive with assigned SCSI target ID of 9 and LUN of 0, serial number of 1300178, and WWNN of 5005076300010812. IBMtape is listed correctly as the owner of these devices. Refer to Table 4-1 on page 103 for a list of the device special file names for each platform. For performance reasons, it is suggested to use a special device file name that has compression turned on. If you have installed an IBM 3580, you will not see any entry for the medium changer because it does not have one. You can now use the tapeutil utility to test the library. See 4.5, Testing the library with tapeutil on page 149 to learn how to use this utility. Open the device, issue inquiry commands read and write, and move the media across the library to check the driver functionality. The drives can also be used with OS commands such as tar.
134
Then reboot the system in order for the changes to take effect.
135
136
Example 4-37 Output of Primary and Alternate Control Paths using tapelist command #tapelist -1 Inst# Special File Device Serial No TGT/LUN Ucode WWNN WWPN Device Physical Path Path Type ----- ------------ ------ --------- ------- ----- ---- ---- -------------------- --------686 /dev/rmt/12smc 03584L32 0000000T0039 1/1 402j N/A N/A /devices/pci@If,2000/QLGC,qla@1/IBMtape@1,1 Primary 688 /dev/rmt/14smc 03584L32 0000000T0039 2/1 402j N/A N/A /devices/pci@If,2000/QLGC,qla@1/IBMtape@2,1 Alt_path_1 694 /dev/rmt/26smc 03584L32 0000000T0039 5/1 402j N/A N/A /devices/pci@If,2000/QLGC,qla@1/IBMtape@5,1 Alt_path_2
Another method for viewing the primary and alternate control paths is to run tapeutil and select option 54, Query Device Paths. See Example 4-38.
Example 4-38 Output of Primary and Alternate Control Paths using tapeutil Path list in the device: Path 0 Path 1 Path 2 Current active path: Path 0 Enter path number or <enter> for all of the paths: Instance Number ............. 201 SCSI Target ................. 4 SCSI LUN .................... 1 Serial Number ............... 000001301084 Ucode Level ................. 227B Path World Wide NN .......... N/A Path World Wide PN .......... N/A Path Type ....................Primary Path .........................Enable Device Physical Path ........ /devices/pci@1f,2000/scsi@1/IBMtape@4,1 Instance Number ............. SCSI Target ................. SCSI LUN .................... Serial Number ............... Ucode Level ................. Path World Wide NN .......... Path World Wide PN .......... Path Type ................... Path ........................ Device Physical Path ........ Instance Number ............. SCSI Target ................. SCSI LUN .................... Serial Number ............... Ucode Level ................. Path World Wide NN .......... Path World Wide PN .......... Path Type ................... Path ........................ Device Physical Path ........ 231 3 1 000001301084 227B N/A N/A Alt_path_1 Enable /devices/pci@4,2000/pci@1/fibre-channel@4/IBMtape@3,1 293 2 1 000001301084 227B N/A N/A Alt_path_2 Enable /devices/pci@6,4000/lpfc@4/IBMtape@2,1
137
138
automatically on the alternate path (1st). If successful, the current operation continues on the alternate path without interrupting the application. The failover error recovery first restores the previous device state, SCSI Reservation, and tape position, then retries the failing operation. The dynamic load balancing support optimizes resources for devices that have physical connections to multiple Host Bus Adapters (HBA) in the same machine. When an application opens a device that has multiple HBA paths configured, the device driver determines which path has the HBA with the lowest usage, and assigns that path to the application. When another application opens a different device with multiple HBA paths, the device driver again determines the path with the lowest HBA usage and assigns that path to the second application. The device driver will update the usage on the HBA assigned to the application when the device is closed. Dynamic load balancing will use all Host Bus Adapters whenever possible and balance the load between them to optimize the resources in the machine. Important: The library data path failover feature code 1681 must be installed on the library (IBM 3582, 3583, and 3584) before enabling alternate data path support in the Solaris device driver for IBM Ultrium 2 and 3 drives. The feature code is not required for IBM 3592 drives.
139
If for some reason you need to disable DPF support for all drives or for a particular path or drive, perform the following steps: 1. Specify what you want to disable. a. To disable DPF support for all tape drives, set the dpf_support parameter in the IBMtape.conf file to 0. b. To disable DPF support for a particular tape drive or path, do the following: i. To disable a particular path, add the flag entry dpf_support=0 in the path entry in IBMtape.conf. For example: name="IBMtape" class="scsi" target=3 lun=0 dpf_support=0 ii. To disable DPF support for a physical tape drive, remove the key from the list of dpf_keys in IBMtape.conf 2. Stop the TMD (tape monitor daemon) running on the system and unload the IBMtape driver module from the current kernel: # /opt/IBMtape/tmd -s # /usr/sbin/rem_drv IBMtape 3. Reload the IBMtape driver module in the kernel and start the daemon: # /usr/sbin/add_drv -m ' 0666 bin bin' IBMtape # /opt/IBMtape/tmd
Look for supported servers and operating systems, and then select the LTO model. Look for the section Hewlett-Packard Servers for information about operating systems and supported HBAs. For the supported HBA firmware level and SAN fabric components, see:
http://knowledge.storage.ibm.com/servers/storage/support/hbasearch/interop/hbaSearch.do
To find the right driver, go to the subdirectory according to your HP-UX OS level and system architecture (either Precision or PCI) and OS. In our case, we have an HP PCI bus system with HP-UX V11i, therefore, we need to be in the 11i_PCI directory. The IBM tape device driver has the format atdd.3.5.x.x.bin. Note, other bus architectures like Itanium and PA-RISC use different formats for the device driver file. See the README file in the ftp directory to make sure you download the correct package for your architecture. We recommend that you also download the tapeutil utility from the same location. This file is called tapeutil.hpux.x.x.x.x.bin and is packaged separately, unlike for Solaris or AIX. You use tapeutil for tape and medium changer commands such as mount, dismount, move media, write, and read files. Finally, download the InstallAtdd script in ASCII. This is a script provided to automatically install the device driver. You can either execute this script, or follow the manual steps in the next section.
140
Be sure to check the readme for updated information on fixes and prerequisites. The following sections describe installation, configuration, verification, and removal procedures for the atdd device driver for the IBM 3584 with 3592 drives with HP-UX V11i.
2. Use the swlist command to view the products readme file: swlist -d -a readme atdd | more 3. To install atdd from the depot to the default root file system, use the command: swinstall -x ask=true atdd The -ask option means that you will be prompted whether to allow the system to configure automatically (claim) any medium changer devices. You may have to use an alternative method to configure the medium changer; see the IBM Ultrium Device Drivers Installation and Users Guide, GA32-0430 for information. When the command runs, you will be prompted with the question, Would you like to activate the Medium Changer support by ACDD (Y/N) Enter Y to allow the ACDD module to configure all attached IBM medium changer devices, or answer N to allow the HP native changer driver to configure the devices.
141
Depending on the version of HP-UX installed, the atdd driver may or may not require an automatic reboot of the system. The atdd package starting with version 3.5.x.x on HP-UX 11i and 1.15.x.x on HP-UX 11.0 is a Dynamically Loadable Kernel Module (DLKM) package without the system reboot requirement. The atdd DLKM package consists of two DLKM modules, atdd (Advanced Tape Device Driver) which controls tape drives and ACDD (Advanced Changer Device Driver) which controls media changers. Note: If an earlier version of atdd is already installed, the existing version will be replaced. This is true even if the version already installed is more recent than the version being installed. 4. To verify correct installation of the package, use the command: swverify atdd You will see the output in Example 4-39.
Example 4-39 Verifying the correct install with swlist atdd # swverify atdd ======= 07/07/05 14:56:43 MST BEGIN swverify SESSION (non-interactive) (jobid=patti-0429) * Session started for user "root@patti". * Beginning Selection * Target connection succeeded for "patti:/". * Software selections: atdd.driver,l=/opt/atdd,r=3.5.0.26 * Selection succeeded. * Beginning Analysis * Session selections have been saved in the file "/home/root/.sw/sessions/swverify.last". * The analysis phase succeeded for "patti:/". * Verification succeeded. NOTE: More information may be found in the agent logfile using the command "swjob -a log patti-0429 @ patti:/". 07/07/05 14:56:53 MST END swverify SESSION (non-interactive)
=======
(jobid=patti-0429)
142
Example 4-40 ioscan -fnkC tape output ioscan -fnkC tape|pg Class I H/W Path Driver S/W State H/W Type Description ========================================================================= tape 1 0/0/12/0/0.121.8.255.0.0.0 atdd CLAIMED DEVICE IBM ULT3580-TD2 /dev/rmt/1m /dev/rmt/1mnb /dev/rmt/c27t0d0BESTn /dev/rmt/1mb /dev/rmt/c27t0d0BEST /dev/rmt/c27t0d0BESTnb /dev/rmt/1mn /dev/rmt/c27t0d0BESTb tape 2 0/0/12/0/0.121.9.255.0.0.0 atdd CLAIMED DEVICE IBM ULT3580-TD2 /dev/rmt/2m /dev/rmt/2mnb /dev/rmt/c29t0d0BESTn /dev/rmt/2mb /dev/rmt/c29t0d0BEST /dev/rmt/c29t0d0BESTnb /dev/rmt/2mn /dev/rmt/c29t0d0BESTb
Example 4-41 shows an FC-connected control path of an IBM 3584. This control path is connected to drive 1m, as you can see on the H/W Path 8.255.0.0.1. This is the same as for drive 1m except that the LUN is actually 1, indicated by the last digit.
Example 4-41 ioscan -fink autoch output # ioscan -fnkC autoch Class I H/W Path Driver S/W State H/W Type Description ========================================================================= autoch 0 0/0/12/0/0.121.8.255.0.0.1 acdd CLAIMED DEVICE IBM /dev/rmt/4chng
03584L32
To check if all special files were created, issue command ls -la /dev/rmt to display all created special files for tapes, as shown in Example 4-42.
Example 4-42 Verifying atdd driver is correctly installed # ls -la /dev/rmt crw-rw-rw1 bin crw-rw-rw1 bin crw-rw-rw1 bin crw-rw-rw1 bin crw-rw-rw1 bin crw-rw-rw1 bin crw-rw-rw1 bin crw-rw-rw1 bin crw-rw-rw1 bin crw-rw-rw1 bin crw-rw-rw1 bin crw-r--r-1 root crw-rw-rw1 bin crw-rw-rw1 bin crw-rw-rw1 bin crw-rw-rw1 bin crw-rw-rw1 bin crw-rw-rw1 bin crw-rw-rw1 bin crw-rw-rw1 bin bin bin bin bin bin bin bin bin bin bin bin root bin bin bin bin bin bin bin bin 245 245 245 245 245 245 245 245 245 245 245 245 245 245 245 245 245 245 245 245 0x051000 0x051080 0x051040 0x0510c0 0x051000 0x051080 0x051040 0x0510c0 0x057000 0xfffffc 0xfffffd 0xfffffe 0x050000 0x050080 0x050040 0x0500c0 0x051000 0x051080 0x051040 0x0510c0 Aug Aug Aug Aug Aug Aug Aug Aug Aug Aug Aug Aug Aug Aug Aug Aug Aug Aug Aug Aug 16 16 16 17 16 16 16 17 16 16 16 15 16 16 16 16 16 16 16 16 11:28 11:13 11:13 17:51 11:28 11:13 11:13 17:51 11:14 11:13 11:13 11:24 11:13 11:13 11:13 11:13 11:14 11:14 11:14 11:14 1m 1mb 1mn 1mnb 2m 2mb 2mn 2mnb 4chng atdd.cfg atdd.dbg atdd_config c5t0d0BEST c5t0d0BESTb c5t0d0BESTn c5t0d0BESTnb c5t1d0BEST c5t1d0BESTb c5t1d0BESTn c5t1d0BESTnb
The output shows the special files: 1m 2m 4chng This is one of the device special file names used for the first 3580 tape drive. This is one of the device special file names used for the second 3580 tape drive. This is the device special file name for the 3584 medium changer.
Chapter 4. Basic IBM tape setup for UNIX systems
143
See Table 4-1 on page 103 to interpret all the device names. You can now use the tapeutil utility to test the library. If you downloaded the tapeutil installation file as described in 4.4, Installing IBM tape device driver for HP-UX on page 140, install the package with the following commands: swcopy /bavaria/tapeutil.hpux.4.0.0.0.bin tapeutil swinstall tapeutil Then go to 4.5, Testing the library with tapeutil on page 149 to learn how to use tapeutil. Open the device, issue inquiry commands read and write, and move media across the library to check the driver functionality.
144
You can check if the driver has recognized multiple control paths for your library by running: # ioscan -funC autoch If you see an .altpath next to one of the special files as in Example 4-44, then you have successfully enabled the control path failover feature for your library. When atdd is loaded into the kernel, the first logical medium changer device that it sees in the system will be the primary path for that medium changer. The other logical medium changers that atdd 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 4-44 Viewing the primary and alternate paths # ioscan -funC autoch Class I H/W Path Driver S/W State H/W Type Description ========================================================================== autoch 0 0/4/0/1.97.21.255.1.3.1 acdd CLAIMED DEVICE IBM 03584L22 /dev/rac/c9t3d1 /dev/rmt/1chng autoch 1 0/4/0/1.97.33.255.1.3.1 acdd CLAIMED DEVICE IBM 03584L22 /dev/rac/c10t3d1 /dev/rmt/1001chng.altpath
145
In addition to using the ioscan command to display the primary and alternate path configuration for all devices, you can also display this information for any device by running the following command: # tapeutil -f /dev/rmt/Xchng -o phs -v In this command, Xchng is the logical name of any device. This command shows specific information for the primary path and all alternate paths, such as the logical name of the device, the attached host bus adapter, the channel ID, the target ID, the logical unit number under the target, the current enabled status, and how many paths are configured for the device. See Example 4-45.
Example 4-45 Alternate method to view primary and alternate paths # tapeutil -f /dev/rmt/1chng -o phs -v Querying device paths... Primary Path Number 1 SCSI Channel................... Target ID...................... Logical Unit................... Path Enabled................... Path Manually Disabled......... Alternate Path Number 2 Logical Device................. Host Bus Adapter............... SCSI Channel................... Target ID...................... Logical Unit................... Path Enabled................... Path Manually Disabled.........
9 3 1 Yes No
1001chng 10 3 1 Yes No
After the alternate pathing support is enabled, it remains set until atdd_claim is run 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 atdd driver, perform the following steps: 1. Set the alternate_pathing parameter: # /opt/atdd/bin/atdd_failover -a 0 2. Initiate CPF for the devices: # /opt/atdd/bin/atdd_claim
146
To enable a path from a disabled state, run the following command: # tapeutil -f /dev/Xchng -o ena -p /dev/Xchng -v
Example 4-46 Output for disabling and enabling the alternate path ************************** *Disabling alternate path* ************************** # tapeutil -f /dev/rmt/1chng -o dis -p /dev/rmt/1001chng.altpath -v SCSI path disabled. ******************************************** *Verifying alternate path has been disabled* ******************************************** # tapeutil -f /dev/rmt/1chng -o phs -v Querying device paths... Primary Path Number 1 SCSI Channel................... Target ID...................... Logical Unit................... Path Enabled................... Path Manually Disabled......... Alternate Path Number 2 Logical Device................. Host Bus Adapter............... SCSI Channel................... Target ID...................... Logical Unit................... Path Enabled................... Path Manually Disabled.........
9 3 1 Yes No
Total paths configured........... 2 ************************** *Enabling alternate path * ************************** # tapeutil -f /dev/rmt/1chng -o ena -p /dev/rmt/1001chng.altpath -v SCSI path enabled. ******************************************* *Verifying alternate path has been enabled* ******************************************* # tapeutil -f /dev/rmt/1chng -o phs -v Querying device paths... Primary Path Number 1 SCSI Channel................... Target ID...................... Logical Unit................... Path Enabled...................
9 3 1 Yes
147
Path Manually Disabled......... No Alternate Path Number 2 Logical Device................. Host Bus Adapter............... SCSI Channel................... Target ID...................... Logical Unit................... Path Enabled................... Path Manually Disabled.........
1001chng 10 3 1 Yes No
In our case, the two drives are configured at addresses 0/1.97.2 and 0/1.97.3. Issue the command shown in Example 4-48.
Example 4-48 atdd_cfg command to get the instance number /opt/atdd/bin/atdd_cfg -g INSTANCE 0/1.97.2 INSTANCE: 1 /opt/atdd/bin/atdd_cfg -g INSTANCE 0/1.97.3 INSTANCE: 2
Our two devices correspond to instance number 1 and 2. Having the instance number of the device, you can query the device parameters (Example 4-49).
Example 4-49 Querying the device parameters /opt/atdd/bin/atdd_cfg /opt/atdd/bin/atdd_cfg /opt/atdd/bin/atdd_cfg /opt/atdd/bin/atdd_cfg /opt/atdd/bin/atdd_cfg /opt/atdd/bin/atdd_cfg /opt/atdd/bin/atdd_cfg /opt/atdd/bin/atdd_cfg -g -g -g -g -g -g -g -g SILI <instance> DEVICES BLOCKSIZE <instance> COMPRESSION <instance> BUFFERING <instance> IMMEDIATE <instance> TRAILER <instance> ERRNO_LEOT <instance>
148
Example 4-50 Changing the device parameters /opt/atdd/bin/atdd_cfg /opt/atdd/bin/atdd_cfg /opt/atdd/bin/atdd_cfg /opt/atdd/bin/atdd_cfg /opt/atdd/bin/atdd_cfg /opt/atdd/bin/atdd_cfg /opt/atdd/bin/atdd_cfg -s -s -s -s -s -s -s SILI <sili> <instance> BLOCKSIZE <block size> <instance> COMPRESSION <compression> <instance> BUFFERING <buffering> <instance> IMMEDIATE <immediate> <instance> TRAILER <trailer> <instance> ERRNO_LEOT <errno_leot> <instance>
For example, to change COMPRESSION to 1 (On) for the device with instance 1: /opt/atdd/bin/atdd_cfg -s COMPRESSION 1 1 Any changes made here will be lost when the server is rebooted. To make the changes permanent, add entries in the Configuring Parameters Section of the file /sbin/init.d/atdd, as shown in Example 4-51.
Example 4-51 Configuring Parameters Section of atdd configuration file # Configuring Parameters Section # # modify the configuration parameters here, for example: # /opt/atdd/bin/atdd_cfg -s COMPRESSION 0 2
149
General Commands: 1. Open a Device 2. Close a Device 3. Device Info 4. Tape Drive Service Aids Medium Changer Commands: 12. Element Information 13. Position To Element 14. Element Inventory 15. Exchange Medium Tape Commands: 20. Query/Set Parameters 21. Prevent/Allow Medium Removal 22. Rewind 23. Erase Gap 24. Forward Space Filemarks 25. Forward Space Records 26. Space to End of Data 27. Log Sense 28. Display Message 29. Synchronize Buffers Enter Selection:
5. 6. 7. 8.
9. 10. 11. Q.
Log Sense Page Mode Sense Page Release Device Quit Program
Move Medium Load/Unload Medium Initialize Element Status Prevent/Allow Medium Removal
30. 31. 32. 33. 34. 35. 36. 37. 38. 39.
Read and Write Tests Unload Tape Erase Write Filemarks Backward Space Filemarks Backward Space Records Query/Set Tape Position Read or Write Files Query/Create/Change Partition Report Density Support
A list of general subcommands, medium changer subcommands, and tape subcommands are displayed. You must open a device before using these commands and operations. To open a device: 1. Select 1:Open a Device from General Commands. 2. Enter the name of the device special file. Use any special file that exists for the device using your OS conventions, for example, /dev/rmt0, /dev/rmt0.1, /dev/rmt1.smc, or /dev/smc0. See Table 4-1 on page 103 for the device special file names. 3. Enter the Read/Write, Read Only, Write Only, or Append mode to open a device. These modes apply to the tape devices only, not for the medium changer. After you open a device, select a command by using the appropriate number for the command from the menu. Some commands require additional information after they are selected from the menu. You can also use the tapeutil command line interface by entering commands in the format:
tapeutil -f DeviceName Subcommand [Subcommand ...]
We give more examples of using tapeutil in Verifying proper device attachment with tapeutil on page 323. Detailed tapeutil reference information is in the manual IBM Ultrium Device Drivers Installation and Users Guide, GA32-0430.
150
Table 4-3 Library device table Device name rmt0 rmt1 rmt2 WWN/serial number
5005076300410801 5005076300410802 5005076300410803
Here are some ways to create this table: FC-attached drives in AIX using WWN match. If you have FC-attached tape drives, you can use lsattr -El rmtx to read the WWN. Because the last two digits indicate (as described in 3.3, Persistent binding on page 88) the frame and drive number in the library, you easily determine the correlation. Using serial number match for AIX. The serial number of the tape drive that a particular device file represents can be checked by using the command lscfg -vl rmtx. Using tapelist for Solaris.
Example 4-52 Tape entries in the server using tapelist
Inst # Special File Device Serial No TGT/LUN Ucode World Wide NN World Wide PN Device Physical Path Path Type ----- ------------------------------------ ------ ---------------- ---------------------------------------------------------------- ------3682 /dev/rmt/10st 03592J1A 000001300280 8/0 04B8 5005076300010811 5005076300410811 /devices/pci@1f,4000/fibre-channel@2/IBMtape@8,0:st N/A 3683 /dev/rmt/13smc 03584L22 000001310008 8/1 404e N/A N/A /devices/pci@1f,4000/fibre-channel@2/IBMtape@8,1:smc N/A 3715 /dev/rmt/12st 03592J1A 000001300178 9/0 04B8 5005076300010812 5005076300410812 /devices/pci@1f,4000/fibre-channel@2/IBMtape@9,0:st N/A
Example 4-52 shows that device special file /dev/rmt/10st is the 3592J1A tape drive with assigned SCSI target ID of 8 and LUN of 0, serial number of 1300280, and WWNN of 5005076300010811. Using serial number match in AIX, Solaris, and HP-UX platforms. List the serial numbers of every created tape drive file name. Use tapeutil and inquiry option with page x80 as seen in Example 4-53, or use the command: tapeutil -f device_name inqpage 80 For device_name, use the special file name from your OS, such as: /dev/rmt0 - for AIX /dev/rmt/0st - for Sun /dev/rmt/0m - for HP
Example 4-53 tapeutil - reading serial number with inquiry Enter Selection for /dev/rmt1: 5 Enter page code in hex or <enter> for standard inquiry: 80 Issuing inquiry for page 0x80... Inquiry Page 0x80, Length 14 0 1 2 3 4 5 6 7 8 9 A B C D 0000 - 0180 000A 3133 3130 3130 3131 3931 E F 0123456789ABCDEF [. ..1110000237 ]
151
Compare this serial number to the number written on the drives in the library. You can also determine the serial by correlating the SCSI element address on the medium changer (Example 4-54) using the following commands: For AIX and Solaris: tapeutil -f device_name devids For HP-UX: tapeutil -f device_name -o dvc For device_name, use the medium changer special file name from your OS, such as: /dev/smc0 - for AIX /dev/rmt/0smc- for Sun /dev/rmt/0chng - for HP
Example 4-54 tapeutil - reading serial number with inquiry tapeutil -f /dev/smc2 devids Reading element device ids... 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 ...................... Drive Address 258 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 ......................
1310102528
152
drives where available, or with the internal SAN Data Gateway module for the IBM 3583), or by using an external SAN Data Gateway with supported IBM tape models. The tape device driver installation process (already described) is the same for both SCSI-attached and Fibre Channel drives. You need a Fibre Channel Host Bus Adapter (HBA) on the host server to connect it to a SAN fabric or with a point-to-point connection. The FC HBA must be supported for the IBM tape model being connected. Check these Web sites to verify that your HBA is supported, selecting the appropriate server:
http://knowledge.storage.ibm.com/servers/storage/support/hbasearch/interop/hbaSearch.do
Once you have verified your HBA is supported, check the driver level and firmware/fcode, and if necessary, download the latest driver and firmware. Since the links to check and download the HBA driver are specific for each HBA type, you can find this information in the following sections: 4.8.1, IBM HBA microcode installation on page 155 4.9.1, QLogic QLA2310 HBA driver installation on page 157 4.9.4, Emulex LP8000 HBA driver installation on page 160
You should also install the FC device filesets shown in Table 4-6 to enable support of FC-attached tape drives.
153
Table 4-6 AIX software for FC devices Fileset name devices.common.IBM.fc.rte devices.fcp.tape.rte Function Common IBM FC Software FC SCSI Tape Device Software
Once the base filesets are installed, check for any recent fixes (PTFs) to the filesets at:
http://www-1.ibm.com/servers/eserver/support/pseries/aixfixes.html
Select your AIX version under Specific fixes, then enter the fileset name for your adapter (that is, devices.pci.df1080f9*) and click Search. Download and install any required fixes. Assuming your HBAs are installed, they should be visible as shown in Example 4-55. In this example, there is one Fibre HBA.
Example 4-55 Displaying AIX FC adapters # lsdev -C|grep fc fcnet0 Defined 1V-08-02 fcs0 Available 1V-08 fscsi0 Available 1V-08-01 Fibre Channel Network Protocol Device FC Adapter FC SCSI I/O Controller Protocol Device
Next, check the microcode levels for your HBA at the following link:
https://techsupport.services.ibm.com/server/mdownload/adapter.html
Once you have identified the feature code and the related adapter to use, check if your adapter has the latest microcode level. There are two methods to check the microcode level of the installed HBA. The first method uses the lscfg command; it will return much of the information in the adapter VPD. The Z9 field will have the firmware level. This method will also display the FRU part number and Assembly part number. To view the microcode installed for your HBA, use the command: lscfg -vl fcs0 where fcs0 is the adapter device name. Example 4-56 shows sample output.
Example 4-56 Output of lscfg command on AIX HBA # lscfg -vl fcs0 fcs0 U0.1-P2-I1/Q1 FC Adapter
Part Number.................00P4295 EC Level....................A Serial Number...............1F411092C9 Manufacturer................001F Feature Code/Marketing ID...5704 FRU Number..................00P4297 Device Specific.(ZM)........3 Network Address.............10000000C93F2243 ROS Level and ID............02E01035 Device Specific.(Z0)........2003806D Device Specific.(Z1)........00000000 Device Specific.(Z2)........00000000 Device Specific.(Z3)........03000909 Device Specific.(Z4)........FF601032 Device Specific.(Z5)........02E01035 Device Specific.(Z6)........06631035 Device Specific.(Z7)........07631035
154
In this example, the HBA microcode level is 1.00X5 as shown in the Z9 field. The second method uses the lsmcode command, which returns the extension of the firmware image file that is installed. lsmcode -d fcs0 where fcs0 is the adapter device name. Example 4-57 shows sample output.
Example 4-57 Output of lsmcode command on AIX HBA DISPLAY MICROCODE LEVEL fcs0 FC Adapter The current microcode level for fcs0 is 100305. Use Enter to continue.
In this example, 100305 is the extension of the firmware image (df1080f9.100305) that was last loaded on the adapter. If the adapter microcode is not at the level as listed on the Web site, download the file from the Web site with either the AIX (.bin file) or RPM format package, and follow the installation instructions. Next is an example of how to update the microcode installation.
2. Transfer the RPM format file to a temporary directory on the target server. For our example the filename is pci.df1080f9-1-81X1.rpm 3. Be careful to follow the pSeries microcode download procedure. There is a link in the microcode Web site that points to:
https://techsupport.services.ibm.com/server/mdownload/downproc.html
This is where you can obtain the password needed to decompress the zip file. 4. Unpack the file by executing the following instructions:
rpm -ihv --ignoreos pci.df1080f9-1-81X1.rpm
5. Ensure there is no activity running on the adapter. Vary off all volume groups associated with the adapter.
155
6. You are now ready to FLASH the EEPROM in the adapter using the single command (assuming that fcs0 is the device corresponding to the adapter you are updating): diag -d fcs0 -T download This starts the microcode download process. 7. If the process completes successfully, you see a message indicating success and the new level of microcode varies on any devices associated with the adapter.
To change this parameter use the command: chdev -l adapter_name -a init_link=pt2pt -P as shown in Example 4-59.
Example 4-59 Change connection type # chdev -l fcs0 -a init_link=pt2pt -P fcs1 changed
The system must be rebooted for this change to take effect. You can also change this using SMIT Devices FC Adapter FC Adapter Change/Show Characteristics of a FC Adapter. Select the adapter to be changed (such as 156
Implementing IBM Tape in UNIX Systems
fcs0). Change the INIT Link flags value from al to pt2pt if necessary, as shown in Example 4-61. Also, set Apply change to DATABASE only to yes.
Example 4-60 SMIT change connection type Change / Show Characteristics of a FC Adapter Type or select values in entry fields. Press Enter AFTER making all desired changes. [Entry Fields] FC Adapter fcs0 Description FC Adapter Status Available Location 1V-08 Maximum number of COMMANDS to queue to the adapter [200] Maximum Transfer Size [0x100000] Preferred AL_PA [0x1] INIT Link flags [pt2pt] Apply change to DATABASE only yes
+# + + + +
After rebooting, re-issue lsattr to check for the correct setting, as shown in Example 4-61.
Example 4-61 Connection type is Point to Point # lsattr -El fcs0 bus_intr_lvl 89 bus_io_addr 0x4ec00 bus_mem_addr 0xd0040000 init_link pt2pt intr_priority 3 lg_term_dma 0x800000 max_xfer_size 0x100000 num_cmd_elems 200 pref_alpa 0x1 sw_fc_class 2 Bus interrupt level False Bus I/O address False Bus memory address False INIT Link flags True Interrupt priority False Long term DMA True Maximum Transfer Size True Maximum number of COMMANDS to queue to the adapter True Preferred AL_PA True FC Class for Fabric True
157
First, log in to the Solaris server as root. Use the following command to display the installed adapter driver level: pkginfo -l QLA2300 where QLA2300 is the default name of the QLogic adapter driver package. Note: This example uses a Sun SPARC server with Sun Solaris 8 and a PCI bus. If the driver is not installed, you will see the message:
ERROR: information for "QLA2300" was not found
Otherwise, if the driver is already installed, the output will be as in Example 4-62.
Example 4-62 Check QLogic device driver level on Solaris # pkginfo -l PKGINST: NAME: CATEGORY: ARCH: VERSION: BASEDIR: PSTAMP: INSTDATE: STATUS: FILES: QLA2300 QLA2300 QLogic QLA2300 driver system sparc Solaris, Rev=4.13.01 / sunburst20031016124747 Apr 12 2004 13:09 completely installed 6 installed pathnames 4 executables 2370 blocks used (approx)
The currently installed driver level is found in the VERSION field. To download the driver, or to check if there is a later update available, go to this Web site:
http://knowledge.storage.ibm.com/servers/storage/support/hbasearch/interop/hbaSearch.do
This indicates tested and verified microcode levels, and links to the appropriate vendor sites. If necessary, download the installation file and the readme instructions. Be sure to read the instructions file before continuing with the adapter driver installation or update. If you have an old version of the driver installed, be sure to remove the old package before installing the new version. Once you have removed the previous driver, or if you are installing the driver from scratch, follow these steps to install the new version: 1. Copy the downloaded compressed package file to the /tmp directory: cp <source directory>/qla2300.Z /tmp where qla2300.Z is the compressed installation package file name. 2. Uncompress the package file: uncompress qla2300.Z This command replaces the compressed package file with its uncompressed version, qla2300. Note: The .Z file extension must be in uppercase for the uncompress command to work correctly. Rename the file if necessary.
158
3. If the Solaris volume manager is running, stop it with the following command: /etc/init.d/volmgt stop 4. Use the pkgadd command to install the adapter driver package: pkgadd -d <directory containing package file>/qla2300 After starting pkgadd with this command, follow and answer the prompts displayed to finish installation. In response to the package selection prompt, enter the number corresponding to the driver package applicable to the Solaris version installed on the target system. In our example, we chose QLA2300-3. After making the appropriate selection, you will see the messages in Example 4-63 during installation.
Example 4-63 Install Solaris QLogic driver - Verification messages Processing package instance <QLA2300-3> from </tmp/qla2300_Solaris_v307> QLogic QLA2300 driver (sparc) Solaris 5.8, Rev=4.08 Copyright (c) 1996-2000, by QLogic Corporation. All rights reserved. Where do you want the driver object installed (default=/kernel/drv): ## Executing checkinstall script. Using </> as the package base directory. ## Processing package information. ## Processing system information. ## Verifying disk space requirements. ## Checking for conflicts with packages already installed. ## Checking for setuid/setgid programs. This package contains scripts which will be executed with super-user permission during the process of installing this package. Do you want to continue with the installation of <QLA2300-3> [y,n,?] y
5. The driver installation is successful. You need to reboot the server to complete the installation. Use the following command: reboot -- -r Next, configure the HBA driver.
159
We are connecting the LTO library to the Sun server through a SAN. Point-to-point (value 1) is the correct option, which means the HBA uses fabric login (N-Port) to the switch. Next check that hba0-fc-tape is set to 1 (as in Example 4-66) to enable support of Fibre Channel tape drives.
Example 4-66 QLogic Solaris HBA FC tape support parameter # Fibre Channel tape support enable/disable. # 0 = disable, 1 = enabled hba0-fc-tape=1;
If you are connecting the adapter to a SAN fabric switch, you may need to change other adapter configuration settings. See 3.3.2, Persistent binding with QLogic HBA on Solaris on page 93 for more information.
Instructions and the FCode for the Qlogic HBAs are available at:
http://www.qlogic.com
160
Release 4.20k / ultrapci20010531121050 Aug 10 2001 10:37 completely installed 44 installed pathnames 14 shared pathnames 12 directories 13 executables 8013 blocks used (approx)
The currently installed driver level is found in the VERSION field. To download the driver, or to check if there is a later update available, go to this Web site:
http://knowledge.storage.ibm.com/servers/storage/support/hbasearch/interop/hbaSearch.do
This indicates tested and verified microcode levels, and provides links to the appropriate vendor sites. If an upgrade of the driver is required, or if you are installing the driver for the first time, download the installation file. Detailed installation instructions for the LP8000 adapter (PCI) are at:
http://www.emulex.com/ts/fc/docs/frame8k.htm
Click the Drivers for Solaris link and you will find the installation information in the Documentation column. Be sure to read this information before continuing the driver installation. If you have an old version of the driver installed, remove it before installing the newer version. Once you have removed the previous driver, or if you are installing the driver from scratch, follow these steps to install the new version: 1. Download the device driver file to a temporary directory, for example, /tmp, then untar it: tar xvf lpfc-sparc.tar where lpfc-sparc.tar is the compressed adapter driver package file. This command creates subdirectories and unpacks the installation files. 2. Install the package using the command: pkgadd -d 'pwd' You will be prompted to respond as in Example 4-68.
Example 4-68 Install Solaris Emulex driver - select package The following packages are available: 1 lpfc.1 Emulex LightPulse FC SCSI/IP Host Bus Adapter driver (sun4u) Release 4.20k Select package(s) you wish to process (or 'all' to process all packages). (default: all) [?,??,q]:
161
Emulex LightPulse FC SCSI/IP Host Bus Adapter driver(sun4u) Release 4.20k lpfc (FCP) / lpfn (IP) combo driver Copyright (c) 1997, 1998, 1999, 2000 Emulex Corporation 3535 Harbor Boulevard, Costa Mesa, CA 92626 All rights reserved. This product and related documentation is protected by copyright and distributed under licenses restricting its use, copying, distribution and decompilation. No part of this product or related documentation may be reproduced in any form by any means without prior written authorization of Emulex Corporation and its licensors, if any. CAUTION: The lpfc driver will not work with any release of Solaris/SunOS earlier than 2.6/5.6. However, even for later releases, lpfc may have to be compiled specifically for that release of Solaris. This version of lpfc has been built under Solaris/SunOS 5.7 for sun4u. Rebuild manual pages database for section 7d [y,n,?] y
Answer yes [y] if you want to include the driver information in the man pages.
Use IP networking over Fibre Channel [y,n,?] n
Answer no [n] if you do not need the IP protocol over Fibre Channel. This protocol is not used by LTO. Installation continues as in Example 4-70.
Example 4-70 Install Solaris Emulex driver - installation messages Using </> as the package base directory. ## Processing package information. ## Processing system information. 6 package pathnames are already properly installed. ## Verifying disk space requirements. ## Checking for conflicts with packages already installed. ## Checking for setuid/setgid programs. This package contains scripts which will be executed with super-user permission during the process of installing this package. Do you want to continue with the installation of <lpfc> [y,n,?] y Installing Emulex LightPulse FC SCSI/IP Host Bus Adapter driver as <lpfc> ## Installing part 1 of 1. [ verifying class <none> ] /usr/share/man/man7d/lpfc.7d /usr/share/man/man7d/lpfn.7d [ verifying class <manpage> ] /kernel/drv/lpfc /kernel/drv/lpfc.conf /kernel/drv/lpfc.hotplug /kernel/drv/sparcv9/lpfc /kernel/drv/sparcv9/lpfc.hotplug [ verifying class <driver> ] /usr/include/fcdiag.h /usr/lib/libHBAAPI.so /usr/lib/libHBAAPIV6.so /usr/lib/libdfc.a /usr/lib/libemulexhbaapi.so /usr/lib/libemulexhbaapiV6.so /usr/lib/sparcv9/libHBAAPI.so /usr/lib/sparcv9/libdfc.a /usr/lib/sparcv9/libemulexhbaapi.so /usr/sbin/lpfc/CT_fmw /usr/sbin/lpfc/DD_fmw /usr/sbin/lpfc/REV_fmw /usr/sbin/lpfc/SF_fmw /usr/sbin/lpfc/convert_path_lpfc /usr/sbin/lpfc/dfc /usr/sbin/lpfc/dfc32
162
/usr/sbin/lpfc/dfc64 /usr/sbin/lpfc/download_fmw_lpfc /usr/sbin/lpfc/lputil /usr/sbin/lpfc/lputil32 /usr/sbin/lpfc/lputil64 /usr/sbin/lpfc/resetqdepth [ verifying class <diagnostic> ] Modifying /etc/path_to_inst Modifying /etc/system Modifying /kernel/drv/sd.conf [ verifying class <sed> ] ## Executing postinstall script. cat: cannot open //etc/hba.conf Updating /kernel/drv/lpfc.conf Updating /etc/system (moddir) catman -M //usr/share/man -w 7d This may take a while ... Driver lpfc added to system. Adding emulexapilibrary from //etc/hba.conf************ IMPORTANT: You must reboot the system to start this driver. SCSI: If you are using lpfc to access disks, be sure to check the configuration file of your SCSI target driver (presumably sd.conf) to ensure that the driver will probe for all of the targets/luns in your environment. HOTPLUG: If you wish to run with HOTPLUG enabled you must manually: cp //kernel/drv/sparcv9/lpfc.hotplug //kernel/drv/sparcv9/lpfc NOTE: lpfc supports FCP and IP but wasn't configured for networking. ALL: Examine the contents of /kernel/drv/lpfc.conf for driver-specific variables and behavior.************ Installation of <lpfc> was successful.
3. The installation of the driver is successful. You need to reboot the server to complete the installation. Use the following command: reboot -- -r Next, you need to configure the driver.
We are connecting the LTO library to the Sun server through a SAN. Point-to-point (2) is the correct option, which means the HBA will use fabric login (N-Port) to the switch. If you are connecting the adapter to a SAN fabric switch, you may need to change other configuration settings. See 3.3.3, Persistent binding with Emulex HBA on Solaris on page 95 for more information.
163
Download the firmware image from the Web site and copy it to an accessible directory on the Solaris system. Execute the lputil command located in /usr/bin/lpfc. You must have already installed the Emulex device driver to have this command available. Select option 3. Firmware Maintenance, then 1. Load Firmware Image. This will transfer the firmware to flash ROM.
This indicates tested and verified microcode levels, and provides a link to the vendor site. After installing the device driver, confirm the topology settings (that is, loop or fabric mode) are set based on your SAN environment. See the Readme file for the recommended settings.
http://www.jni.com/oem/oem.cfm?ID=4
JNI recommends the following parameter values when working with tape targets: Set CmdTaskAttr to Untagged, which is the default. Set lun_throttle to 1. Set FailoverDelay to 0. Set LunDiscoveryMethod to Report LUNs. Verify these parameters, and especially check the LunDiscoveryMethod. The default is 0, which means no additional LUNs will be discovered, and no SCSI medium changer from an IBM LTO Tape Library will be discovered. See the ReadMe file for additional information.
Once the library is set up for using the IBM Ultrium Tape Library Specialist, you can connect to the Library using a Web browser, for example, Microsoft Internet Explorer. We recommend that you upgrade your Java runtime environment to the latest available version, which is available at:
http://java.com/en/
In the following sections, we describe in more detail the IBM Ultrium Tape Library Specialist Specialist applications for the IBM 3581 2U, 3582, 3583 and 3584. Note: 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.
165
6. Click Next to display the NETMASK screen. It shows the current value of the NETMASK. Use Next and Previous to select each digit in the new address. Press Enter to initiate each new digit and move to the next digit to changed. After all digits have been changed and initiated, click Cancel to return to the NETMASK screen. 7. Click Cancel once to return to the NET PARAMETER screen, twice to return to the Configuration Menu screen, and three times to return to the Home screen. Figure 4-10 shows the Net Parameter menu.
You should now be able to access the Tape Library Specialist from a Web browser by entering the RMUs IP address. Figure 4-11 shows the Login screen.
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. Notice that only one connection type can be used to communicate with the library. If you are already 166
Implementing IBM Tape in UNIX Systems
logged on using the RMU, and then try to log on using the Operator Panel, a warning is displayed in the Operator Panel. Click the Login button to log in. To operate and maintain the library, select Maintenance Operations. This shows a quick status of the library and enables you to select the main operating tasks. See Figure 4-12. Use the menu bar on the left of the panel to navigate between the menus. You can choose from the following options: Information Status Configuration Autoloader Drive Autoloader Media Media Device Network User RTC Log Event Notification Configuration Reset Operations General Diagnostic Advanced Diagnostic Firmware Reset Loader Drive
Maintenance
Logs
167
From the Maintenance menu, select Firmware to upgrade the firmware of the drive and the autoloader. For more information on upgrading the drive and autoloader firmware, see Upgrading drive firmware using the IBM Tape Library Specialist on page 188.
You can download the latest firmware from one of the following sites:
ftp://index.storsys.ibm.com/358x http://www.ibm.com/storage/support/lto
168
Use the Up and Down buttons to enter the IP address and use the Left and Right buttons to move between fields. Next enter the subnet address and gateway (if present). From the last field of the Gateway address, click Right to set the Gateway mask and highlight Execute. Click Enter twice to accept the RMU settings. You should now be able to access the Specialist from a browser by entering the IP address. Figure 4-15 shows the welcome window of the IBM 3582 Ultrium 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 3582 operator panel. Use the menu bar at the top of the panel, right below the title bar, to navigate between the menus. You can choose between the following options: Status Library Status Drive Status RMU User Hostname IP Address MAC Address Library Serial # SNMP SNMP Alerts Library Firmware RMU Firmware Network Configuration User Configuration SNMP Configuration Date and Time Reboot Update RMU Firmware Update Library Firmware Update Drive 1 Update Drive 2
Chapter 4. Basic IBM tape setup for UNIX systems
Configuration
Firmware
169
Diagnostic file
Operator Logs
Library Command Log Library Error Log RMU Support Log RMU Error Log Drive 1 Error Log Drive 1 Dump Drive 2 Error Log Drive 2 Dump To use the Operator Panel Remotely Current Command Log
In the black column, on the left-hand side of the Specialist window, there are Help and Documentation links that allow you to directly access the IBM 3582 publications online. Next, we show some examples of the IBM 3582 Specialist panels. In the configuration panel shown in Figure 4-16, you can set the network configuration parameters, as well as Simple Network Management Protocol (SNMP) settings to send the alerts generated by the RMU to an SNMP server in your private network. We describe setting up SNMP for the IBM 3582 in Configuring SNMP for the IBM 3582 on page 301. The configuration panel also provides user management for the Specialist interface.
In the Diagnostics file panel shown in Figure 4-17, you can view and download the library and RMU logs. These are discussed further in Troubleshooting on page 326.
170
In the operator panel shown in Figure 4-18, you can operate the library exactly as if you were at the real IBM 3582 operator panel. The graphic display showing an image of the 3582 LCD panel has exactly the same functions as the physical library display. This feature allows you to view or update the configuration, reboot the library, vary drives offline, and perform all other operator panel tasks remotely from any browser window.
171
Using the IBM3583 operator panel, set the IP address for the RMU. Select More Setup Library RMU. The panel in Figure 4-19 is displayed.
Use the Up and Down buttons to enter the IP address, subnet address, gateway (if present) and hostname. When finished, select OK. You should now be able to access the Specialist from a browser by entering the IP address. Figure 4-20 shows the welcome window of the IBM 3583 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 and add the users that need access to the Specialist. Remember that every defined user can potentially access every option available on the IBM 3583 operator panel. Use the menu bar at the top of the panel (right below the title bar) to navigate between the menus. You can choose between the following options: Status Library status Drive status RMU user Hostname IP address MAC address Library serial # SNMP alerts Library firmware level RMU firmware level Network configuration SNMP configuration
Configuration
172
User configuration Date and time Reboot Firmware Update library firmware Update RMU firmware Update drive firmware Library command log Library error log RMU support log RMU error log Drive error logs Drive dumps Access every option available on the 3583 operator panel (This is a graphical interface updated every few seconds.) View the current command log
Diagnostic file
Operator panel
Logs
The black column on the left-hand side of the Specialist window contains the Help and Documentation links that allow you to directly access the IBM 3583 publications. Next, we show some examples of the IBM 3583 Ultrium Tape Library Specialist panels. In the configuration panel shown in Figure 4-21, you can set the network configuration parameters, as well as Simple Network Management Protocol (SNMP) settings to send the alerts generated by the RMU to an SNMP server in your private network. We describe setting up SNMP for the IBM 3583 in Configuring SNMP for the IBM 3583 on page 302. The configuration panel also provides user management for the Specialist interface.
173
In the Diagnostics file panel shown in Figure 4-22, you can view and download the library and RMU logs.
In the Operator panel shown in Figure 4-23, you can operate the library exactly as if you were at the real IBM 3583 operator panel. The graphic display showing the image of the IBM 3583 LCD panel has exactly the same functions as the physical library display. This feature allows
174
you to view or update the configuration, reboot the library, vary drives offline, and perform all other Operator panel tasks remotely from any browser window.
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. After configuring the network connection for the IBM Ultrium Tape Library Specialist, enter the TCP/IP address of the library in your browser. The welcome page of the IBM 3584 Specialist Web interface displays, as shown in Figure 4-25. With the Specialist, you can monitor library
Chapter 4. Basic IBM tape setup for UNIX systems
175
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: Manage Cartridges Data Cartridges Cleaning Cartridges I/O Station Cartridge Assignment Policy Insert Notification Drive Summary Drive Assignment Control Paths World Wide Names Cleaning Mode by Frame by Logical Library Accessor Preferred Accessor Zones Disable ALMS Virtual I/O Date and Time 6 Character Volser Reporting Fibre Channel Summary
Manage Drives
Manage Library
Manage Ports
176
Manage Access
Change Password SNMP Settings SNMP Destinations System Data Library VPD Drive VPD Node Card VPD Download Library Logs Download Drive Logs Firmware Update Master Console Adjust Scanner Speed
Service Library
You can also choose between managing the physical library or the logical libraries. For more information on the Advanced Library Management Services, see 2.3, ALMS on page 55. The IBM 3584 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 4-26.
The IBM 3584 Library Specialist has menus to manage the cartridges, drives, or library. To view a list of the cartridges in the library, select Manage Cartridges Data Cartridges. Using the drop-down boxes, you can filter the cartridges displayed by frame or logical library. Figure 4-27 lists the cartridges in the logical library LTO3Fibre. After selecting a cartridge, you can move it to a tape drive, remove it from the library, or assign it to a logical library.
177
For information on Cartridge Assignment Policy, see Cartridge assignment policy on page 59. To view a list of the drives in the library, select Manage 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 4-28, the 3592 Fibre drives are listed. As shown in Figure 4-28, 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.
178
To change a drives settings, select that drive from the Drives screen and click Change ID. You will get a warning (Figure 4-29) 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.
179
Select Manage Drives Drive Assignment to display the Drive Assignment Filter screen. You can select all drives or a specific drive, and all logical libraries or a specific logical library. In Figure 4-30, all drives for logical library LTO3 Fibre are selected for display.
As shown in Figure 4-31, 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 4-31, drive 30002020B is a control path, as is indicated by the icon shown on the left of the checkbox in the LTO3 Fibre column.
180
You will see a warning (Figure 4-32) 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 Tape Library Specialist. With password protection on, the users can change their passwords by selecting Manage Access Change Password (see Figure 4-33). Note, in some versions of the Tape Library Specialist, the navigation sequence is Manage Access Security.
181
A password is required to access some functions of the Specialist, such as firmware updates 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 4-7 describes each level.
Table 4-7 Password protection levels Type of password protection No password protection Password protection for administration pages Password protection for all 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 3584 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 3584 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. 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).
182
Inventory the library. Move cartridges. Remove cartridges. Update control port firmware. Update library and drive firmware.
4.11.1 Using My Support to stay up-to-date with your drivers and firmware
My Support provides e-mail notification when firmware is updated and becomes available for download and installation. To register for My Support: 1. Visit the Web at:
http://www.ibm.com/support
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 My personalized page. a. Select Add products. b. From the Products drop-down, select Storage. c. In the next drop-down, select Computer Storage. d. In the next drop-down, select Computer Tape Storage. e. In the next drop-down, select either Computer tape autoloaders (IBM 3581) or Computer tape libraries (IBM 3582, IBM 3583 or IBM 3584). f. Click the checkboxes for the appropriate products. g. Click Add products at the bottom of the page. h. Review your profile for correctness. i. Under Subscribe to email, select Storage and then check the boxes labeled Flashes and Downloads and Drivers, and click Update. j. 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.
183
ftp://index.storsys.ibm.com/358x/
Here you can find the latest microcode releases for the LTO library, drives, and RMU (if installed). For the library microcode, use the compressed file appcode.zip for Windows systems, or appcode.tar for UNIX systems. It contains the Vn_n_n.lif file that is the microcode image file to upload in the library. For the drive code, download the latest .ro file.
184
185
Table 4-8 gives an indication of the expected firmware upload time using the different methods. We used the IBM 3581. This table is for general information only; your times may vary.
Table 4-8 Firmware upload times through different methods Method Type of firmware Update time Autoloader SCSI (using tapeutil) SCSI (using LTO-TDX) Serial Port RMU Autoloader and Drive Drive Only Autoloader and Drive Autoloader and Drive not tested N/A 6 min. 45 sec. Drive 66 sec. 90 sec. 13 min. 6 min.
Detailed instructions on how to update the firmware are at the following Web site:
http://www-1.ibm.com/servers/storage/support/lto/
Select the appropriate LTO model and then click Download. If you have an IBM 3583 with the optional SAN Data Gateway module installed, you can update the firmware using the gateway itself. For more information, see IBM Storage Area Network Data Gateway Module Setup, Operator and Service Guide, GA32-0436. Note: The IBM SAN Data Gateway and the 3583 SDG module were withdrawn from marketing in October 2004. Note: Before updating firmware on the drives, the library, or the RMU, vary the library OFFLINE to ALL attached hosts. In the following sections we show how to upgrade the library and drive microcode through the SCSI bus interface using the tapeutil utility for UNIX, and how to update the RMU code from the IBM Tape Library Specialist panels and using the LTO-TDX tool.
If you have multiple control paths enabled or you have your library partitioned, you still only have to update the firmware once. If you your library is partitioned, the logical library goes offline. 8. The next window asks you what directory and microcode name to use. Once entered, press F7 to commit. 9. This process takes about 5 to 10 minutes. The library then reboots and executes its normal startup process. Close the tapeutil session; the firmware update process terminates communications to the drive. Verify that the firmware has installed correctly (see 4.11.2, Check the installed firmware on page 183).
0 1 2 3 4 5 6 7 8 9 A B C D E F 0000 - 0180 0302 2100 0130 4942 4D20 2020 2020 0010 - 554C 5433 3538 302D 5444 3120 2020 2020 0020 - 3136 4530 0000
187
2. Open the RMU Web page using a browser and select the Firmware tab (log in if necessary). Put the library offline. 3. Select Update RMU Firmware. Enter the path and firmware file name or browse for the downloaded firmware file. Select Update Firmware as shown in Figure 4-36.
Check the IBM Tape Library Specialist from the main panel for the updated RMU firmware level information after the successful completion of the operation.
4.11.3 Upgrading drive firmware using the IBM Tape Library Specialist
To update the 3581 2U, 3582, 3583, or 3584 drive firmware, use the IBM Tape Library Specialist panels.
Log on to the Specialist as Administrator; the default password is secure. Go to Maintenance Firmware. Select the new firmware and click the Update button. A warning message pops up asking for confirmation. Click Yes to start the update. The Specialist does not show any status screen until the update is complete, but on the Operator Control Panel, the Drive Firmware Upgrade message is shown. A reboot is initiated after the firmware update is finished.
188
From the Ultrium Tape Library Specialist Welcome screen select the Firmware tab. Enter the user name and password. The default settings are Admin for the user and secure for the password. Select the drive you want to update and select the new firmware. Click the Update Firmware button. Status of the drive update process is displayed. It can take more than one hour to update a single drive.
Updating the IBM 3583 drive firmware using the IBM Specialist
The latest firmware for the Ultrium drives can be found at:
ftp://ftp.software.ibm.com/storage/358x http://www.ibm.com/servers/storage/support/lto/
From the Ultrium Tape Library Specialist Welcome screen select the Firmware tab. Enter the user name and password. The default settings are Admin for the user and secure for the password. Select the drive you want to update and click Browse to select the new firmware. Click the Update Firmware button. The status of the drive update process is displayed.
Updating the IBM 3584 drive firmware using the IBM Specialist
To update the drive firmware using the IBM Tape Library Specialist, the latest firmware for the Ultrium drives can be found at:
ftp://ftp.software.ibm.com/storage/358x http://www.ibm.com/servers/storage/support/lto/
1. From the Service Library menu select Firmware Update. An attention screen pops up to verify that you have the firmware update that you want to apply. If not, select the link to the Ultrium support site and download the appropriate firmware update. 2. When you have the appropriate firmware downloaded, click the Launch Firmware Update Wizard icon. Select the model for the drive you want to update and click Next. 3. A warning will pop up indicating that the drive will be taken offline during update. If you wish to continue, click Next. 4. Select a specific drive in the drop-down list to be updated or select All drives. 5. Use the Browse button or enter the file name to load the firmware file you downloaded from the support page. 6. Click Update to finish the firmware update. The drive will be taken offline during the firmware update process. The library should then activate the new firmware automatically.
189
The LTO-TDX tool has the following characteristics: The tool supports all IBM LTO Gen 1, Gen 2, and Gen 3 SCSI and FC drives. The tool will
Select Linear Tape-Open (LTO) in the Product family drop-down, enter your library model in the Product drop-down, and click Go. Click the Download tab, and under Tools and utilities, click Software. You should see a link to download LTO-TDX. Run the downloaded tool file (executable file) to install it. It creates an icon on the Windows desktop and two folders called LTO firmware and LTO dump. Any firmware downloaded for install must go in the firmware folder. Any dumps created are placed in the dump folder. The tool presents a list of the supported devices on the bus. It allows selection of a target device and then performs the download or the dump on the target device. To save time, verify that the drive is empty. The tool checks to see if a cartridge is in the drive (cartridge present sensor activated). If a cartridge is present, it will post an error and request to remove the cartridge. Double-click the LTO-TDX icon from the Windows Desktop. The screen in Figure 4-37 displays.
Verify the firmware you want to download to the drive is in the LTO firmware folder. Press Enter. It will scan the bus for attached LTO devices and display them as shown in Figure 4-38.
190
In our example, two LTO drives are found. Enter the device number to upgrade (for example, Device 1) and press Enter (Figure 4-39).
Enter 1 and press Enter to load the firmware to the drive. (Figure 4-40).
191
A list shows the firmware levels available for selection from the LTO Firmware folder. Enter the number of the firmware for the program to load (Figure 4-41).
The download takes about 90 seconds. After the firmware has been loaded into the drive memory, the drive automatically reboots. During the download process a message is displayed on the Operator Control Panel saying Updating......Please Wait until the reboot. If the program tries to load code and it fails with a sense Key 5 and an ASC/ASCQ of 82/83, it displays the message: Bad Firmware Detected. This means the firmware is the wrong type for your tape drive or the file is corrupted. Consult your drive service provider for the correct file.
192
The two dump files created by the dump function are time stamped with year, month, day, and seconds, and contain the drive serial number. The first dump file read has an A suffix. The second file produced has a B suffix. The files that are created are placed in the LTO Dumps folder in the directory with the tool. These files are now ready to be sent to the Support Center for further analysis.
193
194
Part 2
Part
Copyright IBM Corp. 2002, 2003, 2004, 2005. All rights reserved.
195
196
Chapter 5.
Copyright IBM Corp. 2002, 2003, 2004, 2005. All rights reserved.
197
NAS NDMP
APPLE Macintosh
Supported Networks APPC IPX/SPX Named Pipes Shared Memory TCP/IP 3270 Emulation
VM Linux OS/400 zOS AIX Solaris
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 NT Domino on AIX Domino on Windows NT 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
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. Tivoli Storage Manager is intended for companies with homogeneous or heterogeneous platforms and complex environments that include 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 198
Implementing IBM Tape in UNIX Systems
of mission-critical data that is spread across your company's enterprise. Tivoli Storage Manager is an industrial-strength centralized storage management product for your enterprise. Tivoli Storage Manager can protect almost any backup-archive client as exemplified in Figure 5-1. A Tivoli Storage Manager server is provided for OS/390, 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. 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 end users. 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 Tivoli Storage Manager servers to share a library, and offload backup processing from mission-critical servers. Tivoli Storage Manager includes LAN-free backup/restore functionality for many databases and applications, as well as the file-based backup/archive clients. It exploits Tivoli SANergy to allow for LAN-free transfers to file-based storage pools on disk. For more information about IBM Tivoli Storage Management, 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
199
Tape library partitioning Some tape libraries (for example, the IBM 3582, 3583, and 3584) 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 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
SCSI I/O
FC
TSM server
Library manager select drive mount, dismount SCSI I/O volumes release, query volumes
Tape Lib
Figure 5-2 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 uses a tape drive at any one time. The check-in and check-out of volumes also is performed by the Library Manager. This 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 (that is, no library client configuration is necessary on the manager).
200
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.
1
TSM Client TSM API Storage Agent
Meta data
LAN
3
TSM server
2
Read Data
3 Write Data
SAN
201
To install Tivoli Storage Manager Version 5.3 use the Tivoli Storage Manager Installation Guide manuals for the relevant operating system. For AIX this is IBM Tivoli Storage Manager for AIX Installation Guide, GC32-1597. The manuals can be found at:
http://publib.boulder.ibm.com/infocenter/tivihelp/index.jsp
Notice that there is now a new Web site for the Tivoli Storage Manager V5.3 publications. Note: Tivoli Storage Manager V4.1.2 supports Ultrium 1 drives in the IBM 3580, 3581, 3583, and 3584. Tivoli Storage Manager V5.1.6 supports Ultrium 2 drives. Tivoli Storage Manager V5.1.6.5 supports IBM 3582. Tivoli Storage Manager V5.2 supports mixing Ultrium 1 and 2 in the same logical library. Tivoli Storage Manager V5.1.7.2, V5.2.1 or V5.3 support IBM 3592 tape drives. Tivoli Storage Manager V5.2.3 supports the IBM 3581 2U. Tivoli Storage Manager V5.2.4 or V5.3 supports Ultrium 3 tape drives, and a mix of Ultrium 1, 2 and 3 in the same logical library.
202
Installation summary
When installing Tivoli Storage Manager, the default configuration sets up a disk storage pool for storing backup data. Before you can begin using tape devices as a backup destination, you must do the following: Attach the devices to your system, which includes physically attaching the devices, configuring the device drivers, and determining the device names. Define the library and the drives in the library with their connection paths, a device class using the library, and a storage pool associated with the device class. Include the storage pool in your storage hierarchy. To perform these tasks you can use either the administrative client command line or Web interface. Our examples use the command line interface. This interface is the same across all present Tivoli Storage Manager versions, while the Web-based administrative command interface has changed completely between Tivoli Storage Manager Versions 5.2 and 5.3, with the introduction of the Administrative Console in V5.3. Refer to the Tivoli Storage Manager manuals and Redbooks for details using the Web interface. The next three sections show how to define IBM tape devices in each of the specific AIX, Solaris, and HP-UX standalone (non-shared) environments. 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
For performance reasons, we suggest that you use a variable block size length and have hardware compression turned on. To display or change this setting, use SMIT Devices Tape Drive Change/Show Characteristics of a Tape Drive. Example 5-2 reflects a tape drive configured with Block Size = 0, which means variable length blocks, and Hardware Compression on Tape = yes. The exact content of this example may change with different tape drives and AIX versions. Note that Tivoli Storage Manager can override the device settings for hardware compression by use of the FORMAT parameter in the DEFINE DEVCLASS command (see 5.2.5, Define device class and storage pool on page 212).
203
Example 5-2 Change/show characteristics of a tape drive Change / Show Characteristics of a Tape Drive Type or select values in entry fields. Press Enter AFTER making all desired changes. [TOP] Tape Drive Tape Drive type Tape Drive interface Description Status Location Parent adapter Connection address SCSI ID Logical Unit ID World Wide Port Name World Wide Node Name New Logical Name Block Size (0=Variable Length) Use Hardware Compression on Tape Use Autoloading Feature at End-of-Tape (IBM 3581 and IBM 3583 with single drive only) Activate volume information logging Maximum size of log file (in # of entries) Backward Space/Forward Space Record Mode Use Immediate Bit in Rewind Commands Trailer Label Processing [Entry Fields] rmt1 LTO fcp LTO Ultrium Tape Driv> Available 1V-08-01 fscsi0 2 0x60b7a 0x0 0x500507630041082a 0x500507630001082a [] [0] +# yes + no + no [500] SCSI no no + +# + + +
For server_name, enter the name of your Tivoli Storage Manager server, and for dev_name, enter the full device name of library, like /dev/smc0:
DEFINE PATH sicily lib3584 SRCTYPE=SERVER DESTTYPE=LIBRARY \ DEVICE=/dev/smc0
Next, define each of the librarys drives and drive paths with:
DEFINE DRIVE library_name drive_name ELEMENT=element_number/AUTODETECT \ CLEANFREQUENCY=Gigabytes/ASNEEDED/NONE 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 (lib3584 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, like /dev/rmt0. The element_address is a number that indicates the physical location of a drive within an automated library. Tivoli Storage Manager needs the element address to connect the physical location of the drive to the drives SCSI address. 204
Implementing IBM Tape in UNIX Systems
Starting with V5.2 you can specify autodetect as element_number. When specified as autodetect (default in V5.2) the element number will automatically be detected by Tivoli Storage Manager when the path to the drive is defined. For your reference, you can get the SCSI element_number of your drives from the Operator Guide manual. For example, for the IBM 3584 refer to IBM Total Storage UltraScalable Tape Library 3584 Operator Guide, GA32-0468; and for the IBM 3583, see IBM TotalStorage Ultrium Scalable Tape Library 3583 Setup and Operator Guide for MultiPath Libraries, GA32-0411. You can also get this information from the Tivoli Storage Manager device support Web page:
http://www-306.ibm.com/software/sysmgmt/products/support/IBM_TSM_Supported_Devices_for_A IXHPSUNWIN.html
Under Supported Devices, select LTO Tape Libraries. Click the appropriate device to obtain the element addresses. To use tapeutil (the utility program installed together with the tape drivers), open one device and select option 14: Element Inventory. Search for Drive Address and make sure it shows the correct SCSI bus address matching your operating system device driver. The drive address is the element address of a tape drive. Example 5-3 shows you two drives with element addresses of 257 and 258.
Example 5-3 Element information returned by tapeutil 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 ............ Volume Tag ..................... Drive Address 258 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 ............ Volume Tag ..................... Normal 0000 No Yes No No Yes 33 0
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 3.3, Persistent binding on page 88. Therefore, check carefully that the element address maps with your drive configuration.
205
Note: The CLEANFREQUENCY parameter in the DEFINE DRIVE command is optional. Tivoli Storage Manager-managed cleaning is intended for drives and libraries that do not have an automatic cleaning function. The IBM 3581, 3582, 3583, and 3584 have an automatic cleaning function, which means they take care of drive cleaning. Therefore, it is not necessary to specify the CLEANFREQUENCY parameter since the default value is NONE. The IBM 3581 2U does not have an automatic cleaning function; therefore, it is recommended to let Tivoli Storage Manager manage the cleaning of this device. If you want Tivoli Storage Manager to control drive cleaning, you should use the option ASNEEDED. Change the auto cleaning function setting to the host cleaning function on the autoloader or library. Also, if you use a partitioned IBM 3584, then every logical partition needs its own cleaner cartridge. There is no need to clean LTO drives on a periodic basis (that is, after a set number of gigabytes has been processed by the drive), and additional manual cleanings are discouraged. We configured our drives in the IBM 3584 with:
DEFINE DRIVE lib3584 drive1 DEFINE DRIVE lib3584 drive2 DEFINE PATH sicily drive1 SRCTYPE=SERVER DESTTYPE=DRIVE LIBRARY=lib3584 \ DEVICE=/dev/rmt0 DEFINE PATH sicily drive2 SRCTYPE=SERVER DESTTYPE=DRIVE LIBRARY=lib3584 \ DEVICE=/dev/rmt1
Tip: Before defining the drives and libraries, make sure that your library is online and your drives are available to AIX. Also, there should not be any cartridge loaded in the drive being defined. Continue the implementation with 5.2.5, Define device class and storage pool on page 212.
sys 512 Mar 30 10:35 . sys 9216 Apr 3 15:07 .. root 47 Mar 27 11:34 0st -> ../../devices/pci@1f,4000/scsi@2/IBMtape@8,0:st root 48 Mar 27 11:34 0stb -> ../../devices/pci@1f,4000/scsi@2/IBMtape@8,0:stb root 49 Mar 27 11:34 0stbn -> ../../devices/pci@1f,4000/scsi@2/IBMtape@8,0:stbn root 48 Mar 27 11:34 0stc -> ../../devices/pci@1f,4000/scsi@2/IBMtape@8,0:stc root 49 Mar 27 11:34 0stcb -> ../../devices/pci@1f,4000/scsi@2/IBMtape@8,0:stcb root 50 Mar 27 11:34 0stcbn -> ../../devices/pci@1f,4000/scsi@2/IBMtape@8,0:stcbn root 49 Mar 27 11:34 0stcn -> ../../devices/pci@1f,4000/scsi@2/IBMtape@8,0:stcn root 48 Mar 27 11:34 0stn -> ../../devices/pci@1f,4000/scsi@2/IBMtape@8,0:stn root 48 Mar 27 11:34 1smc -> ../../devices/pci@1f,4000/scsi@2/IBMtape@8,1:smc
206
1 1 1 1 1 1 1 1
47 48 49 48 49 50 49 48
27 27 27 27 27 27 27 27
2st -> ../../devices/pci@1f,4000/scsi@2/IBMtape@9,0:st 2stb -> ../../devices/pci@1f,4000/scsi@2/IBMtape@9,0:stb 2stbn -> ../../devices/pci@1f,4000/scsi@2/IBMtape@9,0:stbn 2stc -> ../../devices/pci@1f,4000/scsi@2/IBMtape@9,0:stc 2stcb -> ../../devices/pci@1f,4000/scsi@2/IBMtape@9,0:stcb 2stcbn -> ../../devices/pci@1f,4000/scsi@2/IBMtape@9,0:stcbn 2stcn -> ../../devices/pci@1f,4000/scsi@2/IBMtape@9,0:stcn 2stn -> ../../devices/pci@1f,4000/scsi@2/IBMtape@9,0:stn
Refer to Table 4-1 on page 103 for the special device file names to be used with the Solaris operating system. The recommendation for Tivoli Storage Manager is to use xst or xstc, which is No BSD-compatibility and rewind on close. Therefore, we can use either /dev/rmt/xst or /dev/rmt/xstc (compression on). For performance reasons we suggest that you use a variable length block and hardware compression from the LTO drives. The block size length is configured in the IBMtape.conf file, as described in 4.3.1, IBMtape driver installation on page 127. For variable block size, set the block_size=0, as shown in Example 5-5.
Example 5-5 IBMtape.conf excerpt name="IBMtape" class="scsi" target=0 lun=2 block_size=0 buffering=1 immediate=0 trailer=0 sili=0;
To enable hardware compression you can specify the /dev/rmt/xstc device file when defining the tape drive. Note that Tivoli Storage Manager can also override the device settings for hardware compression by use of the FORMAT parameter in the DEFINE DEVCLASS command (see 5.2.5, Define device class and storage pool on page 212).
For server_name, enter the name of your Tivoli Storage Manager server, and for dev_name, enter the full device name of library, like /dev/rmt/1smc:
DEFINE PATH sol-e lib3584 SRCTYPE=SERVER DESTTYPE=LIBRARY DEVICE=/dev/rmt/1smc
Next, define each of the librarys drives and drive paths with:
DEFINE DRIVE library_name drive_name ELEMENT=element_number/AUTODETECT \ CLEANFREQUENCY=Gigabytes/ASNEEDED/NONE DEFINE PATH server_name drive_name SRCTYPE=SERVER DESTTYPE=DRIVE \ LIBRARY=library_name DEVICE=dev_name
207
For library_name, enter the name of your already defined library (lib3584 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, like /dev/rmt/0st. The element_address is a number that indicates the physical location of a drive within an automated library. Tivoli Storage Manager needs the element address to connect the physical location of the drive to the drives SCSI address. From V5.2 onwards, you can specify autodetect as element_number. When specified as autodetect (the default for V5.2), the element number will automatically be detected by Tivoli Storage Manager when the path to the drive is defined. For your reference, you can get the SCSI element_number of your drives from the Operator Guide manual. For example, for the IBM 3584 refer to IBM Total Storage UltraScalable Tape Library 3584 Operator Guide, GA32-0468; and for the IBM 3583, see IBM TotalStorage Ultrium Scalable Tape Library 3583 Setup and Operator Guide for MultiPath Libraries, GA32-0411. You can also get this information from the Tivoli Storage Manager device support Web page:
http://www-306.ibm.com/software/sysmgmt/products/support/IBM_TSM_Supported_Devices_for_A IXHPSUNWIN.html
Under Supported Devices, select LTO Tape Libraries. Click the appropriate device to obtain the element addresses. To use tapeutil (the utility program installed together with the tape drivers), open the media changer device and use option 17: Inventory (Example 5-6). Search for the drive address. The drive address is the element address of a tape drive.
Example 5-6 Element information returned by tapeutil Tape Drive Address 257 Tape Drive State ........... Normal ASC/ASCQ ....................... 0000 Media Present .................. No Robot Access Allowed ........... Yes Source Element Address Valid ... No Media Inverted ................. No Same Bus as Medium Changer ..... Yes SCSI Bus Address ............... 35 Logical Unit Number ............ 0 Volume Tag ..................... --- more --Tape Drive Address 258 Tape Drive State ........... Normal ASC/ASCQ ....................... 0000 Media Present .................. No Robot Access Allowed ........... Yes Source Element Address Valid ... No Media Inverted ................. No Same Bus as Medium Changer ..... Yes SCSI Bus Address ............... 36 Logical Unit Number ............ 0 Volume Tag .....................
Remember 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 3.3, Persistent binding on page 88. Therefore, check carefully that the element address maps with your drive configuration.
208
Note: The CLEANFREQUENCY parameter in the DEFINE DRIVE command is optional. Tivoli Storage Manager-managed cleaning is intended for drives and libraries that do not have an automatic cleaning function. The IBM 3581, 3582, 3583, and 3584 have an automatic cleaning function, which means they take care of drive cleaning. Therefore, it is not necessary to specify the CLEANFREQUENCY parameter since the default value is NONE. The IBM 3581 2U does not have an automatic cleaning function; therefore, it is recommended to let Tivoli Storage Manager manage the cleaning of this device. If you want Tivoli Storage Manager to control drive cleaning, you should use the option ASNEEDED. Change the auto cleaning function setting to the host cleaning function on the autoloader or library. Also, if you use a partitioned IBM 3584, then every logical partition needs its own cleaner cartridge. There is no need to clean LTO drives on a periodic basis (that is, after a set number of gigabytes have been processed by the drive), and additional manual cleanings are discouraged. We configured our drives in the IBM 3584 with:
DEFINE DRIVE lib3584 drive1 DEFINE DRIVE lib3584 drive2 DEFINE PATH sol-e drive1 SRCTYPE=SERVER DESTTYPE=DRIVE LIBRARY=lib3584 \ DEVICE=/dev/rmt/0st DEFINE PATH sol-e drive2 SRCTYPE=SERVER DESTTYPE=DRIVE LIBRARY=lib3584 \ DEVICE=/dev/rmt/2st
Tip: Before defining the drives and libraries, make sure that your library is online and your drives are available to Solaris. Also, there should not be any cartridge loaded in the drive being defined. Continue the implementation with 5.2.5, Define device class and storage pool on page 212.
209
crw-rw-rwcrw-r--r-crw-rw-rwcrw-rw-rwcrw-rw-rwcrw-rw-rwcrw-rw-rwcrw-rw-rwcrw-rw-rwcrw-rw-rw-
1 1 1 1 1 1 1 1 1 1
bin root bin bin bin bin bin bin bin bin
bin root bin bin bin bin bin bin bin bin
245 245 245 245 245 245 245 245 245 245
0xfffffd 0xfffffe 0x050000 0x050080 0x050040 0x0500c0 0x051000 0x051080 0x051040 0x0510c0
Mar Mar Mar Mar Mar Mar Mar Mar Mar Mar
16 15 16 16 16 16 16 16 16 16
11:13 11:24 11:13 11:13 11:13 11:13 11:14 11:14 11:14 11:14
atdd.dbg atdd_config c5t0d0BEST c5t0d0BESTb c5t0d0BESTn c5t0d0BESTnb c5t1d0BEST c5t1d0BESTb c5t1d0BESTn c5t1d0BESTnb
For performance reasons we suggest that you use hardware compression. Recording format ultriumc (Ultrium 1), ultrium2c (Ultrium 2), or ultrium3c (Ultrium 3), which are configured when the device class is defined, use hardware compression. More information on how to configure the device class is in 5.2.5, Define device class and storage pool on page 212.
For server_name, enter the name of your Tivoli Storage Manager server, and for dev_name, enter the full device name of the library, such as /dev/rmt/2chng.
DEFINE PATH easter lto_3583 SRCTYPE=SERVER DESTTYPE=LIBRARY DEVICE=/dev/rmt/2chng
Next, define each of the librarys drives and drive paths with:
DEFINE DRIVE library_name drive_name ELEMENT=element_number/AUTODETECT \ CLEANFREQUENCY=Gigabytes/ASNEEDED/NONE 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 (lto_3583 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/rmt/0m. The element_address is a number that indicates the physical location of a drive within an automated library. Tivoli Storage Manager needs the element address to connect the physical location of the drive to the drives SCSI address. From V5.2 onwards, you can specify autodetect as the element_number. When specified as autodetect (default in V5.2) the element number will automatically be detected by Tivoli Storage Manager when the path to the drive is defined. For your reference, you can get the SCSI element_number of your drives from the Operator Guide manual. For example, for the IBM 3584 refer to IBM Total Storage UltraScalable Tape Library 3584 Operator Guide, GA32-0468; for IBM 3583, see IBM TotalStorage Ultrium Scalable Tape Library 3583 Setup and Operator Guide for MultiPath Libraries, GA32-0411. You can also get this information from the Tivoli Storage Manager device support Web page:
http://www-306.ibm.com/software/sysmgmt/products/support/IBM_TSM_Supported_Devices_for_A IXHPSUNWIN.html
210
Under Supported Devices, select LTO Tape Libraries. Click the appropriate device to obtain the element addresses. To use tapeutil (the utility program installed together with the tape drivers), open one device and use option 14: Element Inventory. Search for Drive Address. The drive address is the element address of a tape drive. Example 5-8 shows you two drives with the element addresses of 256 and 257.
Example 5-8 Element information returned by tapeutil 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 ..................... Hit <enter> to continue... 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 ..................... Normal 0000 No Yes No No Yes 0 No
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 3.3, Persistent binding on page 88. Therefore, check carefully that the element address maps with your drive configuration.
211
Note: The CLEANFREQUENCY parameter in the DEFINE DRIVE command is optional. Tivoli Storage Manager-managed cleaning is intended for drives and libraries that do not have an automatic cleaning function. The IBM 3581, 3582, 3583, and 3584 have an automatic cleaning function, which means they take care of drive cleaning. Therefore, it is not necessary to specify the CLEANFREQUENCY parameter since the default value is NONE. The IBM 3581 2U does not have an automatic cleaning function; therefore, it is recommended to let Tivoli Storage Manager manage the cleaning of this device. If you want Tivoli Storage Manager to control drive cleaning, you should use the option ASNEEDED. Change the auto cleaning function setting to the host cleaning function on the autoloader or library. Also, if you use a partitioned IBM 3584, then every logical partition needs its own cleaner cartridge. There is no need to clean LTO drives on a periodic basis (that is, after a set number of gigabytes has been processed by the drive), and additional manual cleanings are discouraged. We configured our drives in the IBM 3583 with:
DEFINE DRIVE lto_3583 drive1 DEFINE DRIVE lto_3583 drive2 DEFINE PATH easter drive1 SRCTYPE=SERVER DESTTYPE=DRIVE LIBRARY=lto_3583 \ DEVICE=/dev/rmt/0m DEFINE PATH easter drive2 SRCTYPE=SERVER DESTTYPE=DRIVE LIBRARY=lto_3583 \ DEVICE=/dev/rmt/1m
Tip: Before defining the drives and libraries, make sure that your library is online and your drives are available to HP-UX. Also, there should not be any cartridges loaded in the drive being defined. Continue the implementation with the following section.
212
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 This specifies that Tivoli Storage Manager writes data using the ULTRIUM recording format. This format results in a cartridge capacity of 100 GB when using an Ultrium 100 GB data cartridge. This value overrides the settings on the tape drive characteristics for hardware compression.
ultriumc
This specifies that Tivoli Storage Manager writes data using the ULTRIUM recording format with compression. This format results in a cartridge capacity of approximately 200 GB when using an Ultrium 100GB data cartridge. This value overrides the settings on the tape drive characteristics for hardware compression. ultrium2 Specifies that Tivoli Storage Manager writes data using the ULTRIUM2 recording format. This format results in a cartridge capacity of 200 GB when using Ultrium2 200 GB data cartridges. This value overrides the settings on the tape drive characteristics for hardware compression.
ultrium2c
Specifies that Tivoli Storage Manager writes data using the ULTRIUM2 recording format with compression. This format results in a cartridge capacity of approximately 400 GB when using Ultrium2 200 GB data cartridges. This value overrides the settings on the tape drive characteristics for hardware compression.
ultrium3
Specifies that 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 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. The FORMAT parameter has the following valid options for the 3592: 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 300GB 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 3592 recording format with compression. This format results in a cartridge capacity of approximately 900 GB when
213
using 3592 300 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=ultriumc/ultrium2c/ultrium3c/3592c; 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 1, 2, or 3 drives. Use the specific definitions, as described in detail in 5.11, Device migration and co-existence on page 237) If you use recording FORMAT=ultriumc/ultrium2c/ultrium3c/3592c/drive, then your LAN-free clients also use compression regardless of whether hardware compression is enabled. Note that 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=ultrium/ultrium2/ultrium3/3592) 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 5.11, Device migration and co-existence on page 237 for more information. It is then recommended that the default value of drives is not used for the older Ultrium x device classes. For example, when specifying MOUNTLIMIT=drives, the Tivoli Storage Manager server will load Ultrium 1 cartridges into Ultrium 1 drives in preference to Ultrium 2 or 3 drives, but there exists the possibility that all Ultrium 2 or 3 drives could be loaded with Ultrium 1 cartridges and therefore, an Ultrium 2 or 3 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 3584 in our UNIX environment, we called the device class 3584ult_devclass, pointing to our previously defined library lib3584, specified ULTRIUM3C for the FORMAT parameter and set the MOUNTLIMIT to 2.
DEFINE DEVCLASS 3584ULT_devclass DEVTYPE=LTO LIBRARY=lib3584 FORMAT=ULTRIUM3C \ MOUNTLIMIT=2
214
Est/Max Capacity (MB): Mount Limit: Mount Wait (min): Mount Retention (min): Label Prefix: Library: Directory: Server Name: Retry Period: Retry Interval: Shared: High-level Address: Minimum Capacity: WORM: Scaled Capacity: Last Update by (administrator): Last Update Date/Time:
2 60 60 ADSM LIB3584
This storage pool will be assigned (written) to the device class we just defined, so we specify the name, 3584ult_devclass. We used 3584ult_stgpool as the stgpool_name, and defined a maximum of 200 tapes belonging to this storage pool:
DEFINE STGPOOL 3584ult_stgpool 3584ult_devclass MAXSCRATCH=200
215
Volume Being Migrated/Reclaimed: Last Update by (administrator): Last Update Date/Time: Storage Pool Data Format: Copy Storage Pool(s): Continue Copy on Error?: CRC Data: Last Update Date/Time:
18:01:50
No 06/09/05 20:50:18
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. Check your local sources for details.
The parameter SEARCH=Yes means that 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. Attention: There should be no cleaning cartridges in the library inventory accessible from the host because 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. After issuing the LABEL LIBVOLUME command, you can check on the status of the inserted volumes with the QUERY LIBVOL command. Example 5-11 shows all the labeled cartridges with scratch status. The element address is also displayed, so we can tell which physical location contains each volume.
216
Example 5-11 Tivoli Storage Manager: query libvol Library Name -----------LIB3584 LIB3584 LIB3584 LIB3584 LIB3584 LIB3584 LIB3584 LIB3584 LIB3584 LIB3584 Volume Name ----------ABA920 ABA922 ABA923 ABA924 ABA925 ABA926 ABA927 ABA928 ABA929 ABA990 Status ---------Scratch Scratch Scratch Scratch Scratch Scratch Scratch Scratch Scratch Scratch Owner ---------Last Use --------Home Element -----------1,024 1,025 1,026 1,037 1,030 1,031 1,032 1,029 1,028 1,036
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 issue either the command QUERY REQUEST or QUERY ACTLOG to display information about pending mount requests. Example 5-12 shows you an output of the activity log when inserting one cartridge into the IBM 3584. We used this command:
LABEL LIBVOLUME Lib3584 SEARCH=bulk LABELSOURCE=barcode CHECKIN=scratch
06/09/05 18:49:18 06/09/05 06/09/05 06/09/05 06/09/05 06/09/05 18:49:44 18:49:44 18:49:48 18:51:00 18:51:42
217
ANR8810I Volume ABA925 has been labeled in library LIB3584. ANR8427I CHECKIN LIBVOLUME for volume ABA925 in library LIB3584 completed successfully.
You will be prompted to insert the cartridge and to indicate when it is available by issuing the 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 5-13 shows you an output of the activity log for using this method with one unlabeled cartridge in an IBM 3584. We used this command:
LABEL LIBVOLUME Lib3584 unlab02 CHECKIN=SCRATCH
06/09/05 15:12:25 06/09/05 15:12:25 06/09/05 15:15:32 06/09/05 15:16:15 06/09/05 15:16:16 06/09/05 15:16:16
218
The parameter SEARCH=bulk means that 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 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 5-14.
Example 5-14 Insert cleaner cartridge 06/09/05 20:02:56 ANR2017I Administrator ADMIN issued command: CHECKIN LIBVOLUME LIB3584 STATUS=CLEANER CHECKLABEL=BARCODE MOUNTWAIT=60 SEARCH=BULK CLEANINGS=50 ANR0984I Process 4 for CHECKIN LIBVOLUME started in the BACKGROUND at 20:02:56. ANR8422I CHECKIN LIBVOLUME: Operation for library LIB3584 started as process 4. ANR0609I CHECKIN LIBVOLUME started as process 4. ANR8468I LTO volume ABA922 dismounted from drive DRIVE2 (/dev/rmt1) in library LIB3584. ANR8373I 001: Fill the bulk entry/exit port of library LIB3584 with all LTO volumes to be processed within 60 minute(s); issue 'REPLY' along with the request ID when ready. ANR2017I Administrator ADMIN issued command: QUERY ACTLOG ANR2017I Administrator ADMIN issued command: REPLY 001 ANR8499I Command accepted. ANR2017I Administrator ADMIN issued command: QUERY ACTLOG ANR2017I Administrator ADMIN issued command: QUERY ACTLOG ANR8430I Volume CLNI17 has been checked into library LIB3584. ANR1434W No files have been identified for automatically storing device configuration information. ANR8431I CHECKIN LIBVOLUME process completed for library LIB3584; 1 volume(s) found. ANR0985I Process 4 for CHECKIN LIBVOLUME running in the BACKGROUND completed with completion state SUCCESS at 20:03:46.
06/09/05 20:02:56 06/09/05 20:02:56 06/09/05 20:02:56 06/09/05 20:03:06 06/09/05 20:03:07
5.2.7 Performance hints for Tivoli Storage Manager with LTO or 3592
Since Tivoli Storage Manager writes a record to 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 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 Tivoli Storage Manager database log area must be. Tip: Tivoli Storage Manager V5.2 increased the maximum size for TXNGroupmax to 8192, and in V5.3 this is further increased to 65000. A value of 4096 or higher is recommended for environments that back up numerous small files such as 10 KB files. With Tivoli Storage Manager V5.3 this parameter may also be defined for the individual clients. Thus an intermediate value, say 2048, can be set for the server, and the high values should then be defined individually when registering the client.
219
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 the dsmserv.opt on the Tivoli Storage Manager server as shown in Example 5-15. 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 the server process is required to enable this change (for Storage Agent, restart of the Storage Agent process is required).
Example 5-15 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 4096
Alternatively, the parameter may be set online to the server by the command:
SETOPT TXNGROUPMAX 4096
To set the client parameter TXNBytelimit, edit dsm.sys (for UNIX clients) or dsm.opt (for all other clients). The entry should look like: 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. More suggestions on storage pool configuration are in IBM Tivoli Storage Manager Implementation Guide, SG24-5416. We also recommended the use of compression on the tape drives as previously discussed in this chapter.
220
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 Tivoli Storage Manager. Note that this also means that you cannot make use of the AUTOLABEL attribute of the library for WORM media. Once the media is checked in to Tivoli Storage Manager, 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.
Figure 5-4 How each of the SCALECAPACITY parameter initializes 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.
Chapter 5. Implementing IBM Tivoli Storage Manager
221
Depending on the customer 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 must be defined to a different storage pool to fully utilize the segmented function, but with the current Tivoli Storage Manager architecture, it is not possible to define two storage pools for one volume.
The SCALECAPACITY parameter with 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 compressed) for each of the volumes 222
Implementing IBM Tape in UNIX Systems
defined. When the EOV (end-of-volume) is reached; query commands will show the actual data written for the volume.
Fast access storage pool with IBM 3592 in Tivoli Storage Manager
To configure a fast access storage pool with 3592 drives, you have two options: 1. Define a device class with SCALECAPACITY=20 and use standard length R/W cartridges. 2. Use short length (economy) cartridges. To set up both the fast access storage pool and the non-fast access (optimized for capacity) storage pool in a single logical library: 1. If using method (1) to configure the fast access storage pool: Define a separate device class for each storage pool, one with SCALECAPACITY=100 and one with SCALECAPACITY=20. The scratch JA tape will automatically be initialized to the storage pool it is called for. 2. If using method (2) to configure the fast access storage pool: Since Tivoli Storage Manager does not distinguish between the short length and the standard length cartridges, you would need to define each of the cartridges explicitly to the storage pool. It is probably be a better idea to just logically partition the library into a short length cartridge only partition (fast access partition), and a standard length cartridge only partition (capacity partition).
All servers that will share the library need to have an 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 instance, 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, the library client can write the data directly over the physical SAN path to the tape drive.
223
REGISTER LICENSE FILE=libshare.lic NUMBER=1 DEFINE LIBRARY lto_3584 LIBTYPE=SCSI SHARED=YES 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 Since we have set crossdefine to on, these commands should automatically create library client definitions on the Library Manager. Check this with the QUERY SERVER command.
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
224
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 3.3, Persistent binding on page 88. Therefore, check carefully that the element address matches your drive configuration. You can check the result with the command Q PATH. Now you can define the device class and the storage pool using the library definitions as described in 5.2.5, Define device class and storage pool on page 212.
QUERY LIBVOLUME
If you use the QUERY LIBVOLUME on the Library Manager, the output will now also display which Tivoli Storage Manager server is the owner of each volume, as shown in Example 5-16.
Example 5-16 Q LIBVOL on a Library Manager Library Name -----------LTO_3584 LTO_3584 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 ABA929 ABA990 Status ---------Private Private Scratch Scratch Private Private 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 4,112 4,133
The library client is only using the drives, and has no knowledge of the library contents. Example 5-17 shows executing QUERY LIBVOLUME on a library client.
Example 5-17 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.
225
Example 5-18 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 because the Library Manager server has 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. 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 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.
the LAN-free path need SAN access to the storage devices, for example, the LTO library. The Tivoli Storage Manager server also requires tape library access via the SAN. LAN-free backup is performed by separating the actual application data (the client data written to or read from the storage pools) from the meta or control data (information contained in the Tivoli Storage Manager database). The metadata is transmitted over the LAN from the Tivoli Storage Manager client to the Tivoli Storage Manager server while the application data is moved directly over the SAN from the Tivoli Storage Manager client to the storage device. Figure 5-5 illustrates this process. A core component of LAN-free technology is the Storage Agent, which is a piece of code installed on each LAN-free client. Essentially, the Storage Agent can be viewed as a lightweight Tivoli Storage Manager server that has no database or storage hierarchy of its own. It behaves like a library client, which contacts the Tivoli Storage Manager server for volume access, and reads/writes data directly to SAN-attached devices.
1
TSM Client TSM API Storage Agent
Meta data
LAN
3
TSM server
3 Write Data
SAN
Read Data
227
Step 3)
On server ....................................................
On client Modify dsm.sys of backup-archive client with: ENABLELANFREE YES LANFREECommethod TCPIP LANFREETCPPort port_number Install the Storage Agent. Specify the DEVCONFIG option in the dsmsta.opt of Storage Agent: DEVCONFIG outputfile ....................................................
4) 5)
.................................................... ....................................................
6)
Define each LAN-free client Storage Agent as if it was a server. Use the DEFINE SERVER command. ....................................................
7)
Set the installation data for the Storage Agent with: DSMSTA SETSTORAGESERVER ...................................................
8)
Register clients for LAN-free backup. If needed, define a separate domain. Also register license for LAN-free nodes. .................................................... Use the DEFINE PATH command to define paths from the Storage Agent to the drives that are available to the Tivoli Storage Manager server (see 5.6.2 Define path considerations). ....................................................
9) 10)
Obtain Tape Device information (see 5.6.2 Define path considerations). ...................................................
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 reasons. Refer to 5.2.7, Performance hints for Tivoli Storage Manager with LTO or 3592 on page 219.
228
Define paths on the server using the device names as seen by the Storage Agent on each client system. Use the DEFINE PATH command: DEFINE PATH storageagent_name drive_name SRCTYPE=SERVER DESTTYPE=DRIVE \ LIBRARY=library_name DEVICE=dev_name_on_storageagent Where: storageagent_name is the name of the storage agent. drive_name is the tape drive name defined on the 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, /dev/rmt0). Important: Remember also 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 3.3, Persistent binding on page 88. Therefore, check carefully that the element address matches your drive configuration.
229
230
Figure 5-7 Library on Tivoli Storage Manager server; drives on NAS system
231
Let us say we set VEREXISTS in the backup copy group to 3 and that we run a series of backups as follows: Day 1: Full backup Day 2: Differential backup Day 3: Full backup Day 4: Differential backup Day 5: Differential backup Each backup operation creates a version in the Tivoli Storage Manager database. After day 4s differential backup, therefore, we have a total of four versions, but the policy settings allow us only three. Therefore, the day 1 backup, being the oldest, will be marked for expiration. However, the first backup cannot be physically expired because the day 2 differential backups depends on it. This is because in order to restore the day 2 backup, we would have to restore the day 1 full and then the day 2 differential. A full backup will never be expired as long as it has dependent differentials. 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, shown in Figure 5-8, 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 IST S=3 Day 1:
full backup
Expired Day 2:
differential
Expired Day 3:
full backup
Inactive
Day 4:
differential
Inactive
Day 5:
differential
Active
point of failure. See also 4.2.6, Setting up control path failover for AIX on page 112 for further details in particular environments. If you enable multiple control paths on your IBM 3582, 3583, or 3584, you will see several SCSI media changer devices at the operating system, depending on how many control paths have been enabled. Figure 5-9 shows an IBM 3584 with two drives. Both drives have the control path enabled.
Server
3584
Control path enabled
FC Adapter FC Adapter
Drive
SAN Switch
Drive
Medium Changer
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 AIX. 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 to your Tivoli Storage Manager server. Example 5-19 shows the output of the lsdev -Cc tape command with automatic control path failover for this configuration. You can see two tape drives and two smc devices. The smc0 device is the primary control path and the smc1 device is the alternate control path.
Example 5-19 3584 multi-path architecture with automatic control path failover # lsdev -Cc tape rmt0 Available 30-68-01 rmt1 Available 30-68-01 smc0 Available 30-68-01-PRI smc1 Available 30-68-01-ALT IBM IBM IBM IBM 3580 3580 3584 3584 Ultrium Ultrium Library Library Tape Drive (FCP) Tape Drive (FCP) Medium Changer (FCP) Medium Changer (FCP)
Example 5-20 shows the output of the lsdev -Cc tape command if the automatic control path failover for AIX is not installed. You will again see two tape drives and two smc devices, but without a primary or alternate control path.
Example 5-20 3584 multi-path architecture without automatic control path failover # lsdev -Cc tape rmt0 Available 30-68-01 rmt1 Available 30-68-01 smc0 Available 30-68-01 smc1 Available 30-68-01 IBM IBM IBM IBM 3580 3580 3584 3584 Ultrium Ultrium Library Library Tape Drive (FCP) Tape Drive (FCP) Medium Changer (FCP) Medium Changer (FCP)
233
Whether you use automatic control path failover or not, you should only configure one control path to the library in 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 (smc0), and we do not use automatic control path failover, we could switch to the second path (smc1) with:
UPDATE PATH server_name library_name SRCTYPE=SERVER DESTTYPE=LIBRARY DEVICE=/dev/smc1
With automatic control path failover enabled, we would not need to perform the UPDATE PATH command, since failover happens automatically.
234
Server
3584
FC Adapter A 3592 Drive
SAN Switch
FC Adapter B
Medium Changer
Example 5-21 shows the output of the lsdev -Cc tape command for this setup with automatic data path failover enabled. You can see two tape drives. The rmt0 device is the primary data path and the rmt1 device is the alternate data path.
Example 5-21 3592 drives with automatic data path failover # lsdev -Cc tape rmt0 Available 20-58-01-PRI rmt1 Available 30-68-01-ALT smc0 Available 20-58-01 smc1 Available 30-68-01 IBM IBM IBM IBM 3592 3592 3584 3584 Tape Drive (FCP) Tape Drive (FCP) Library Medium Changer (FCP) Library Medium Changer (FCP)
Example 5-22 shows the output of the lsdev -Cc tape command for an LTO setup where automatic data path failover for AIX is not installed. You can again see two tape drives, but without a primary or alternate data path.
Example 5-22 3584 multi-path architecture without automatic control path failover # lsdev -Cc tape rmt0 Available 20-58-01 rmt1 Available 30-68-01 smc0 Available 20-58-01 smc1 Available 30-68-01 IBM IBM IBM IBM 3580 3580 3584 3584 Ultrium Ultrium Library Library Tape Drive (FCP) Tape Drive (FCP) Medium Changer (FCP) Medium Changer (FCP)
Whether you use automatic data path failover or not, you should only configure one data path to each of the drives defined to the Tivoli Storage Manager server. Defining a path to rmt0, if a failure occurs on this path, the IBM device driver will automaticallyand transparently to the applicationfailover to the alternate path (/dev/rmt1) without interrupting the current Tivoli Storage Manager operation.
235
a drive is dismounted. These messages help determine problems that are not related to the Tivoli Storage Manager server. There are three severity levels of tape alert messages: Informational For example, you may have tried to load a cartridge type that is not supported. These messages will log in as ANR8951I messages. Warning For example, a hardware failure is predicted. These messages will log in as ANR8950W messages. Critical For example, there is a problem with the tape and your data is at risk. These messages will log in as ANR8948S or ANR8949E messages. Tape alert messages are turned off by default. You can set tape alert messages to ON or OFF using the SET TAPEALERTMSG command. The current setting of the tape alert can be checked with the QUERY TAPEALERTMSG command. The messages from the device are logged into the actlog, which can be checked with the QUERY ACTLOG command. The following are examples of the QUERY TAPEALERTMSG, and QUERY ACTLOG commands.
Example 5-23 QUERY TAPEALERTMSG command output tsm: SERVER1>query tapealertmsg ANR8960I QUERY TAPEALERTMSG: The display of Tape Alerts from SCSI devices is Enabled. Example 5-24 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
236
Note: Tivoli Storage Manager V5.2.4.0 or higher provides support for the Ultrium 3 drives, while support for Ultrium 2 is available as of V5.1.6.1.
5.11.1 Scenarios
In the lifetime of a 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 these instances you need to decide whether to install the new technology and retire the old technology, or operate both technologies in parallel. For Ultrium 1, Ultrium 2, and Ultrium 3 drives, Table 5-2 describes some of the migration and co-existence possibilities in one physical library, and also the migration from an existing
Chapter 5. Implementing IBM Tivoli Storage Manager
237
library to a new LTO library, relative to the version of Tivoli Storage Manager used. You may need to upgrade the library firmware for Ultrium 2 or Ultrium 3 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 2 identical discussions. In general, whatever applies to coexistence and migration of Ultrium 2 and 3, is also valid for coexistence and migration of the older Ultrium 1and 2.
Table 5-2 LTO migration and co-existence examples Scenario 1 Configuration a) Ultrium 2 + 3 drives Ultrium 2 Media ----------------b) Ultrium 1 + 2 drives, Ultrium 1 Media a) Ultrium 2 + 3 drives Ultrium 2 + 3 Media ----------------b) Ultrium 1 + 2 drives, Ultrium 1 + 2 Media Ultrium 1 + 2 + 3 drives Ultrium 1 + 2 + 3 Media a) Migrate Ultrium 2 to 3 drives Ultrium 2 + 3 Media ----------------b) Migrate Ultrium 1 to 2 drives Ultrium 1 + 2 Media a) Migrate Ultrium 2 to 3 drives Migrate media Ultrium 2 to 3 ----------------b) Migrate Ultrium 1 to 2 drives Migrate Media Ultrium 1 to 2 Migrate Ultrium 1 to 3 drives Migrate media Ultrium 1 to 3 Migrate existing tape storage to LTO Ultrium 2 libraries 2 devclass 2 libraries 2 devclass TSM V5.1.6.1 TSM V5.2 TSM 5.2.4 or 5.3 1 logical library 1 devclass -------------------1 logical library 1 devclass -------------------1 logical library 1 devclass 1 logical library 2 devclass -------------------2 logical libraries 2 devclass -------------------1 logical library 2 devclass 1 logical library 3 devclass 1 logical library 1 devclass -------------------1 logical library 1 devclass -------------------1 logical library 1 devclass 1 logical library 1 devclass -------------------1 logical library 1 devclass -------------------1 logical library 1 devclass 1 logical library 1 devclass 2 libraries 2 devclass
3 4
6 7
Scenario 1
There are 2 similar scenarios. Install Ultrium 3 drives in addition to the current Ultrium 2 drives and media, or the equivalent scenario for the older generation: install Ultrium 2 drives in addition to the current Ultrium 1 drives and media. We can install the new Ultrium 3 devices with existing Ultrium 2 devices into the same logical library and device class because of mixed generation support. The Ultrium 3 devices will be able to read and write the Ultrium 2 cartridges at the Ultrium 2 speed and capacity. Similarly, we can install the Ultrium 2 devices with existing Ultrium 1 devices into the same logical library and device class because of mixed generation support. The Ultrium 2 devices will be able to read and write the Ultrium 1 cartridges at the Ultrium 1 speed and capacity.
238
Scenario 2
Install Ultrium 3 drives and Ultrium 3 media in addition to existing Ultrium 2 drives and Ultrium 2 media. As of Tivoli Storage Manager V5.2, mixed media types are supported in one library, and thus different generations of tape devices can co-exist 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 Ultrium 2 device class, but only Ultrium 3 devices are available to the Ultrium 3 device class. Tivoli Storage Manager will ensure that Ultrium 3 media will only be loaded into Ultrium 3 devices for reading and writing. Ultrium 2 media will be read from or written to by all the Ultrium 2 and 3 devices. Tip: MOUNTLIMIT For read or write tape mounts, Tivoli Storage Manager will select Ultrium 2 drives for Ultrium 2 media first. If no Ultrium 2 devices are available, an available Ultrium 3 drive will be selected for the Ultrium 2 media. To prevent the case where all Ultrium 3 drives are loaded with Ultrium 2 media (leaving no drives available to read/write Ultrium 3 media, set the DEVCLASS parameter MOUNTLIMIT appropriately. For example: MOUNTLIMIT can be set to the number of Ultrium 2 drives in the library for the Ultrium 2 devclass, so it will not use Ultrium 3 drives at all. MOUNTLIMIT can be set to the number of Ultrium 2 drives plus half the number of Ultrium 3 drives. This is a compromise position to allow good drive utilization, but reserves some Ultrium 3 drives for Ultrium 3 media. You should define a suitable MOUNTLIMIT, which works for your environment. In Tivoli Storage Manager V5.1, we would have to separate the physical Ultrium device types into separate logical libraries and device classes. Therefore, one Tivoli Storage Manager with both Ultrium 1 and 2 drives would have to define at least two logical libraries and the physical library would have to support library partitioning. Again, Tivoli Storage Manager will ensure that only Ultrium 2 media are loaded in the Ultrium 2 drives, while Ultrium 1 media can be read and written by both Ultrium 1 and 2 drives.
Scenario 3
As of Tivoli Storage Manager V5.2.4, Ultrium 3 drives are supported, and any combination of Ultrium 1, 2, and 3 drives and media can be used in one library. As discussed in scenario 2, Ultrium 3 drives can read and write Ultrium 2 media. Similarly the Ultrium 2 drives can read and write Ultrium 1 media. Although Ultrium 3 drives can read the Ultrium 1 media (but cannot write to it), care should be taken to avoid attempted writing. Set the MOUNTLIMIT option for the Ultrium 1 devclass to less than the sum of Ultrium 1 and 2 drives (see the previous tip), thereby preventing the Ultrium 1 media from being loaded in the Ultrium 3 drives. The Ultrium 1 media will still be available for normal use by the Ultrium 1 and 2 drives. Alternatively, the migration path will be to have all Ultrium 1 media set to read-only for use by all drives, and the Ultrium 1 drives and media eventually phased out of the library.
239
Scenario 4
Replace all Ultrium 2 drives with Ultrium 3 drives, using the existing Ultrium 2 media and installing additional Ultrium 3 media: 1. Delete the existing Ultrium 2 device DRIVE and PATH entries and define new DRIVE and PATH entries for the Ultrium 3 devices. 2. The replacement of the Ultrium 2 drives with Ultrium 3 drives will also affect the Tivoli Storage Manager device class parameter format, which should now be set to ultrium3c. 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 (200 GB and 400 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. The same discussion applies using the older generation Ultrium 1 and Ultrium 2 media and drives.
Scenario 5
Replace all Ultrium 2 drives with Ultrium 3 drives, and choose to migrate the existing Ultrium 2 media to Ultrium 3 media: 1. Delete the existing Ultrium 2 device DRIVE and PATH entries, and define new DRIVE and PATH entries for the Ultrium 3 devices. 2. Remove empty Ultrium 2 media and install Ultrium 3 media (label 1 in Figure 5-11). 3. Over time, update the Ultrium 2 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 5-11). 4. You can leave the existing utilized Ultrium 2 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 Ultrium 2 cartridges more quickly, you can execute a MOVE DATA volume_name LTO_storage_pool_name command, selecting each individual Ultrium 2 volume and targeting the LTO storage pool. 6. Once the old Ultrium 2 cartridges are emptied, the cartridges can be checked out of the library and new Ultrium 3 cartridges can be checked in to replace them (label 3 in Figure 5-11). 7. The replacement of the Ultrium 2 drives and media with Ultrium 3 drives and media will also affect the device class parameter format, which should be set to DRIVE, ULTRIUM3, or ULTRIUM3C. If the format parameter is left at ULTRIUM2 or ULTRIUM2C, a write will still occur to the end of Ultrium 3 media, but the pre-determined capacity of the storage pool will only show Ultrium 2 capacity on the command query stgpool.
240
1
checkout
LTO2
LTO3
checkin
LTO2
LTO3
checkin
LTO2
LTO3
LTO3
LTO2
LTO3
TSM Server LTO Library
LTO3
LTO3
R/O
LTO3
R/O
LTO3
R/O
LTO3
TSM Server LTO Library
3
checkout
LTO3
LTO3
checkin
LTO3
R/O
LTO3
LTO3
LTO3
LTO3
LTO3
TSM Server LTO Library
The same discussion applies for migrating the older generation Ultrium 1s to Ultrium 2s.
Scenario 6
Ultrium 3 drives can read the Ultrium 1 media. The same discussion as in scenario 5 applies, although in this scenario it is imperative that all Ultrium 1 media are updated to ACCESS of READONLY. All new writes are to the new Ultrium 3 media, and all data on Ultrium 1 media is moved specifically, or phased out over time.
241
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 Ultrium 2 or Ultrium 3 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.
5. You can leave the old storage pool as it is, and over time, expiration of old backups will reduce the usage of the old storage pool. However, if you want to drain the old storage pool more quickly, you can simply set HIGHMIG and LOWMIG to zero. This starts a migration process that moves data from the old storage pool to the new LTO storage pool. To speed up the migration, you can increase the MIGPROCESS limit for the old storage pool to use more drives (remember this is a drive-to-drive process). 6. Alternatively, you can execute a MOVE DATA volume_name LTO_storage_pool_name command, selecting each individual volume from the old storage pool, and targeting the new LTO storage pool. 7. Once the old storage pool is emptied, modify the BACKUP and ARCHIVE COPY GROUP of each management class to point the DESTINATION to the new LTO Storage pool (label 3 in Figure 5-12). 8. Delete the DRIVE and PATH, and also the LIBRARY and PATH entries for the old library and drives.
242
1
Old Storage
Old Mgmt Class
LTO
R/O
Old Storage
Old Mgmt Class
LTO
Old Storage
LTO
LTO Mgmt Class
243
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 5-13). 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 Define the library and tape drives on page 204. Refer to the 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 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 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 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 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 Tivoli Storage Manager instance, use the following setting:
SETOPT SANDISCOVERY ON
245
246
Chapter 6.
Note: Later versions of EMC Legato NetWorker are available, which support IBM LTO3 and IBM 3592 products. The panels and command outputs may have changed from what is shown in this chapter; however the information is included as a guide. Consult the product documentation and the compatibility Web sites listed in the following sections for the most up-to-date information.
Copyright IBM Corp. 2002, 2003, 2004, 2005. All rights reserved.
247
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.
248
In these examples, we show the installation of NetWorker in a SAN environment with Solaris, and with a SCSI point-to-point connection for AIX and HP-UX environments. In each installation example, we used an IBM 3583 with two SCSI-LVD drives, connected to an IBM 2108 SAN Data Gateway for the SAN environment. You should have already installed and configured the tape drives as described in Chapter 4, Basic IBM tape setup for UNIX systems on page 101.
We used the following environment: IBM pSeries F50 server with IBM AIX Version 4.3.3 and LVD SCSI adapter EMC Legato NetWorker 6.1 Build 186 IBM 3583 with LVD drives
249
4. Answer yes/no depending on whether you want the NetWorker manuals to be installed, then:
Install the aix43n NetWorker programs [yes]? Directory where aix43n NetWorker programs should be installed [/bin]? Directory to use for client, licensing and server information [/nsr]?
5. Press Enter to respond to each question. Then configure the tape devices, as in Example 6-1.
Example 6-1 AIX NetWorker configure devices The following is a list of the tape devices available on your system: rmt0 Available 30-58-00-0,0 IBM 3580 Ultrium Tape Drive rmt1 Available 30-58-00-1,0 IBM 3580 Ultrium Tape Drive smc0 Available 30-58-00-6,0 IBM 3583 Library Medium Changer The name needed by NetWorker is usually `/dev/' plus the name of the device as given the first column of the above table, followed by `.1'to indicate a no-rewind device name. Enter the tape or disk device(s) that are going to be used by the NetWorker server. Use the no-rewind name for each tape device (i.e., use /dev/rmt0.1 instead of /dev/rmt0). If you do not choose a device a default device will be created for you. Enter device name ([Return] if no more): /dev/rmt0.1
Answer exactly as indicated in the example (add .1 to the device name, to indicate a non rewinding device). Important: 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. You should receive this message: Device rmt0.1 is of NetWorker type: 3580 6. Repeat this operation for every LTO tape device that you want to configure to NetWorker. Press Enter when you have no more devices to add. Then the prompt asks:
Start NetWorker daemons at end of install [yes]? Install the NetWorker device drivers (required for storage nodes and servers) [yes]?
7. Press Enter to both questions, since you need to install the NetWorker device drivers to be able to use the SCSI medium changer. At the end of the installation, you should see the following message: NetWorker successfully installed on 'brazil'! 8. Check whether the daemons are running with the command: # ps -ef |grep -E "nsr|lgto" The command output should look like Example 6-2, depending on the packages installed.
250
Example 6-2 AIX NetWorker daemons process listing root root root root root root root root root 4484 10902 11152 11512 12044 12586 15524 17202 19064 11512 11512 12044 1 1 11512 18328 11512 1 0 0 0 0 0 0 0 0 0 15:38:07 15:38:13 15:37:57 15:38:01 15:37:57 15:38:09 15:42:26 15:38:11 15:37:57 pts/1 0:00 0:00 0:00 0:01 0:00 0:00 0:00 0:00 0:00 /usr/bin/nsrmmdbd /usr/bin/nsrmmd -n 2 /bin/nsrexecd /bin/nsrd /bin/nsrexecd /usr/bin/nsrindexd grep -E nsr|lgto /usr/bin/nsrmmd -n 1 /bin/lgtolmd -p /nsr/lic -n 1
If you do not see the processes, start NetWorker manually with the command: # /etc/rc.nsr start Table 6-1 identifies the daemons required for each NetWorker component.
Table 6-1 NetWorker daemons for AIX NetWorker installation packages NetWorker server NetWorker client NetWorker storage node NetWorker daemons nsrd, nsrexecd, nsrindexd, nsrmmdbd, nsrmmd nsrexecd nsrexecd, nsrmmd
Before using NetWorker with an LTO library (such as an IBM 3583 or IBM 3584) see 6.3.1, 3583 autochanger configuration on NetWorker 6.1 on page 258, and 6.3.2, IBM 3584 autochanger configuration on NetWorker 7.0 on page 262.
We used the following environment: SUN Microsystems Enterprise250 SPARC server with Solaris Version 2.7 and QLogic 2200 HBA EMC Legato NetWorker 6.1 Build 186 IBM 3583 with LVD drives
251
This operation expands this file in many other files and directories that make up the installation package. You should find the directories shown in Example 6-3.
Example 6-3 Solaris NetWorker unpacked directories # ls -l total 184478 drwxr-xr-x drwxr-xr-x drwxr-xr-x drwxr-xr-x drwxr-xr-x drwxr-xr-x drwxr-xr-x
5 4 5 4 4 4 4
22 22 22 22 22 22 22
3. Before continuing the installation, it is a safe practice to make a copy of your current configuration. Use the following commands: # cp /etc/rpc /etc/rpc/rpc.old # cp /etc/syslog.conf /etc/syslog.conf.old 4. If you were not logged in as root, log in now, then change to the directory where the NetWorker installation files are, and enter the following command: # pkgadd -d /opt/legato You are prompted with the messages shown in Example 6-4.
Example 6-4 Solaris NetWorker select installation packages The following packages are available: 1 LGTOclnt NetWorker for Solaris (Backup/Recover) Client (sparc) 6.1.Build.186 2 LGTOdrvr NetWorker for Solaris (Backup/Recover) Device Drivers (sparc) 6.1.Build.186 3 LGTOlicm NetWorker for Solaris (Backup/Recover) Licensing Manager (sparc) 6.1.Build.186 4 LGTOman NetWorker for Solaris (Backup/Recover) Man (sparc) 6.1.Build.186 5 LGTOnode NetWorker for Solaris (Backup/Recover) Storage Node (sparc) 6.1.Build.186 6 LGTOserv NetWorker for Solaris (Backup/Recover) Server (sparc) 6.1.Build.186 Select package(s) you wish to process (or 'all' to process all packages). (default: all) [?,??,q]:
5. Because you are installing the server package, we recommend that you select all the packages at the same time, which is the default (Example 6-5). Press Enter.
Example 6-5 Solaris NetWorker processing packages Processing package instance <LGTOclnt> from </opt/legato> NetWorker for Solaris (Backup/Recover) Client(sparc) 6.1.Build.186 Legato Systems, Inc. NetWorker(TM) - Release 6.1.Build.186 Copyright (c) 1990-2001, Legato Systems, Inc. All rights reserved. This product includes software developed by the University of California, Berkeley and its contributors. To set up a NetWorker storage node, licensing manager or client, you need to supply a directory for the nsrexecd state file. Below is a list of some of the filesystems, with their free space, which you might consider: /opt /usr / : 690707 : 448510 : 345166
252
/var
52042
6. Press Enter again to accept the default, or select another directory for installation, as in Example 6-6.
Example 6-6 Solaris NetWorker select directory The nsrexecd program restricts access to a select set of NetWorker servers. Please enter the names of each computer running a NetWorker server that will back up this computer, one name at a time. If a computer has more than one network interface, please enter each interface's name (one at a time). Enter the first NetWorker server's name [no more]: sol-e.almaden.ibm.com Enter the next NetWorker server's name [no more]:
7. Enter the server names that you want to use with NetWorker. Press Enter again when no more servers have to be added. The next prompt is: Start NetWorker daemons at end of install [yes]? no Answer no, because after this single package installation, the process continues with the other packages, and if you start the daemons now then you have to stop the daemons again later during the procedure. The installation begins, as shown in Example 6-7.
Example 6-7 Solaris NetWorker installation Using </usr> as the package base directory. ## Processing package information. ## Processing system information. ## Verifying disk space requirements. ## Checking for conflicts with packages already installed. ## Checking for setuid/setgid programs This package contains scripts which will be executed with super-user permission during the process of installing this package. Do you want to continue with the installation of <LGTOclnt> [y,n,?] y Installing NetWorker for Solaris (Backup/Recover) Client as <LGTOclnt> ## Installing part 1 of 1. ## Executing postinstall script. Completing Installation Starting NetWorker daemons NetWorker successfully installed on `sol-e'! Installation of <LGTOclnt> was successful.
8. After the last message, if the installation has been successful, the procedure continues with the following package, with the same questions. Check for the following messages during the installation process:
Installation Installation Installation Installation of of of of <LGTOdrvr> was successful. <LGTOlicm> was successful. <LGTOman> was successful. <LGTOnode> was successful.
9. The next (and last) package to install is the server package. You are prompted with the following question:
Enter the tape or disk device(s) that are going to be used by the NetWorker server. Use the no-rewind, BSD-semantics name for each tape device (i.e., use /dev/rmt/0mbn instead of /dev/rmt/0mb). If you do not choose a device a default device will be created for you.
253
10.Use the device special file name indicating a no rewind device, as in the example. For performance reasons, we suggest that you use a special device file name that has compression turned on. For more information on the device special file name to use, see Table 4-3 on page 151. Important: 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. 11.Choose the device type (LTO Ultrium) as shown in Example 6-8.
Example 6-8 Solaris NetWorker select device type Select the device type for "/dev/rmt/1stbn". The possible types are: 3480 - 1/2 inch cartridge tape. 3570 - IBM 3570. 3590 - IBM 3590. 4890 - StorageTek TwinPeaks cartridge tape. 4mm - 4mm DDS-1 tape. 4mm_4GB - 4mm DDS-2 tape. 4mm_8GB - 4mm DDS-2 tape with compression. 4mm_12GB - 4mm DDS-3 tape. 4mm_20GB - 4mm DDS-4 tape. 8mm - 8mm tape. 8mm_5GB - 8mm double density tape. 8mm_20GB - 8mm 20GB tape (Mammoth). 8mm_AIT - 8mm 20GB AIT tape. 8mm_AIT-2 - 8mm 50GB AIT2 tape. 8mm_Mammoth-2 - 8mm 60GB Mammoth2 tape. 8mm_Mammoth-3 - 8mm 100GB Mammoth3 tape. 9490 - StorageTek TimberLine cartridge tape. 9840 - StorageTek 9840 cartridge tape. 9940 - StorageTek 9940 cartridge tape. dlt - Digital Linear Tape. dlt1 - Benchmark DLT1. dlt7000 - 35/70GB Digital Linear Tape. dlt8000 - 40/80GB Digital Linear Tape. sdlt - 100/200GB SuperDLT. dtf - Sony Digital Tape Format. dst - AMPEX dst. file - file type device. himt - 1/2 inch magnetic tape. LTO_Ultrium - LTO Ultrium tape. optical - Optical Disk. qic - 1/4 inch data cartridge. qic_13GB - 13 GB 1/4 inch data cartridge. sd3 - StorageTek RedWood SD-3. slr - Tandberg SLR family of QIC drives. tz85 - DEC Digital Linear Tape. tz86 - DEC Digital Linear Tape. tz87 - DEC 10/20GB Digital Linear Tape. tz88 - DEC 20/40GB Digital Linear Tape. tz89 - DEC 35/70GB Digital Linear Tape. tzs20 - DEC 8mm AIT tape. tkz90 - DEC 3590 compatible tape. vhs - VHS Format Tape.
254
VXA
12.Repeat the same operation for every tape device that you want to be managed by NetWorker. When finished, press Enter. The installation process continues and when complete, you should see the following message: Installation of <LGTOserv> was successful. 13.Now you are ready to start the NetWorker daemons with the following command: # /etc/init.d/networker start Check whether the daemons are running with the command: # ps -ef |grep nsr The command output should look like Example 6-9.
Example 6-9 Solaris NetWorker daemons process listing root root root root root root root root 236 235 240 243 324 313 337 353 235 1 1 1 243 243 243 243 0 0 0 0 0 0 0 0 Aug Aug Aug Aug Aug Aug Aug Aug 22 22 22 22 22 22 22 22 ? ? ? ? ? ? ? ? 0:01 0:01 0:01 0:27 0:00 0:00 0:00 0:00 /usr/sbin/nsrexecd /usr/sbin/nsrexecd /usr/sbin/lgtolmd -p /nsr/lic -n 1 /usr/sbin/nsrd /usr/sbin/nsrindexd /usr/sbin/nsrmmdbd /usr/sbin/nsrmmd -n 1 /usr/sbin/nsrmmd -n 2
Depending on the packages installed, Table 6-2 identifies the daemons required for each NetWorker component.
Table 6-2 NetWorker daemons for Solaris NetWorker installation packages NetWorker server NetWorker client NetWorker storage node NetWorker daemons nsrd, nsrexecd, nsrindexd, nsrmmdbd, nsrmmd nsrexecd nsrexecd, nsrmmd
Before using NetWorker with an LTO library (such as an IBM 3583 or IBM 3584), see 6.3.1, 3583 autochanger configuration on NetWorker 6.1 on page 258, and 6.3.2, IBM 3584 autochanger configuration on NetWorker 7.0 on page 262.
We used NetWorker in the following environment: HP9000 L-series server with HP-UX Version 11 and LVD SCSI adapter EMC Legato NetWorker 6.1 Build 186 IBM 3583 with LVD drives
255
Figure 6-1 Specify source window of the software installation GUI interface
4. Click OK and you will see the NetWorker package displayed (Figure 6-2).
5. Double-click the line that displays NetWorker, and the window in Figure 6-3 appears.
256
6. Select the Actions menu and mark the packages that you want to install. To install the server software, you need to select at least: NWr-Client NWr-Node NWr-Server 7. Select Install (analysis) from the Actions menu, and then if there were no errors, click OK to begin the packages installation. 8. If the installation process was successful, you should see the panel in Figure 6-4.
9. To start the NetWorker daemons after the successful installation of the product, use the following command: # /sbin/init.d/networker start And, check if the daemons are running with the command: # ps -ef |grep -E "nsr|lgto" The command output should look like that shown in Example 6-10.
Example 6-10 HP-UX NetWorker daemons process listing root 2304 root 2316 root 2317 2301 2308 2308 0 10:37:51 ? 0 10:37:56 ? 0 10:37:58 ? 0:00 /opt/networker/bin/nsrexecd 0:00 /opt/networker/bin/nsrindexd 0:00 /opt/networker/bin/nsrmmd -n 1
257
1 1 1 2070 2308
0 0 0 1 0
? ? ? pts/ta ?
Depending on the packages installed, Table 6-3 identifies the daemons required for each NetWorker component.
Table 6-3 NetWorker daemons for HP-UX NetWorker installation packages NetWorker server NetWorker client NetWorker storage node NetWorker Daemons nsrd, nsrexecd, nsrindexd, nsrmmdbd, nsrmmd nsrexecd nsrexecd, nsrmmd
Before using NetWorker with an LTO library (such as an IBM 3583 or IBM 3584) see 6.3.1, 3583 autochanger configuration on NetWorker 6.1 on page 258, and 6.3.2, IBM 3584 autochanger configuration on NetWorker 7.0 on page 262.
Here you see the devices recognized as SCSI-attached to this system, and the information on their SCSI identification. For example, in scsidev@2.1.1, the last two numbers indicate the target ID and the LUN number (tgt 1, LUN 1). Note this information; it will be used later in the autochanger configuration.
258
Note: Refer to EMC Legato NetWorker autochanger maintenance commands on page 322 for a list of NetWorker autochanger commands such as inquire. You can also see the firmware microcode level (2.50 for the medium changer and 16E0 for the drives). 2. Before configuring the IBM 3583 medium changer to be managed by NetWorker as an autochanger device, if you had previously installed the IBM provided Atape device driver, you have to remove the medium changer device from the configuration. You will have to do this if the inquire command detected an Autochanger device. AIX Use the command: # rmdev -l smcn -d n is the number of the medium changer special device name. Alternatively, you can use SMIT to remove the device from the configuration, as detailed in 4.2.8, Deleting tape devices on page 124. After the command execution you should no longer see the medium changer in the list of defined tape drives (use the following command). # lsdev -Cctape rmt2 Available 1A-08-00-0,0 IBM 3580 Ultrium Tape Drive rmt3 Available 1A-08-00-1,0 IBM 3580 Ultrium Tape Drive SUN Edit the file /kernel/drv/IBMtape.conf. Comment out (or delete) the entry with the SCSI target ID and LUN number of the medium changer device (in this example, it is target=1 lun=1):
#name="IBMtape" # class="scsi" # target=1 lun=1 # block_size=0 # buffering=1 # immediate=0 # trailer=0 # sili=0;
Use the # symbol to comment out the entry. Save the changes. Then, create an entry in the Solaris standard devices configuration file st.conf, which is located in the same directory (/kernel/drv): name="st" class="scsi" target=1 lun=1; Add this entry to the bottom of the file. The target and LUN numbers are the addresses of the LTO medium changer, as reported by the inquire command. Then reboot the server: # reboot -- -r HP-UX Before configuring the medium changer to be managed by NetWorker as an autochanger device, if you had previously installed the IBM-provided ATDD device driver, you have to remove it from the HP-UX kernel configuration. To remove it, use the procedure detailed in 4.5, Testing the library with tapeutil on page 149.
Chapter 6. Implementing EMC Legato NetWorker with LTO
259
3. Now you can configure the autochanger to NetWorker, using the jbconfig command. When you run jbconfig, you are prompted for the type of autochanger to install:
# jbconfig 1) Install a SmartMedia Jukebox. 2) Install an Autodetected SCSI Jukebox. 3) Install an Autodetected NDMP SCSI Jukebox. 4) Install an SJI Jukebox. 5) Install an STL Silo. What kind of Jukebox are you installing? [1] 2
For an IBM LTO library, select option [2]. jbconfig searches for attached SCSI jukeboxes. You will be prompted:
These are the SCSI Jukeboxes currently attached to your system: 1) scsidev@2.1.1: Standard SCSI Jukebox, Vendor <IBM>, Product <ULT3583-TL> Which one do you want to install? 1
Select the entry corresponding to the Ultrium library. The next prompt is:
Installing an 'Standard SCSI Jukebox' jukebox. Name you would like to assign to the jukebox device? ibmlib A brief description of the jukebox device? [scsidev@2.1.1: Standard SCSI Jukebox] 3583 Ultrium library
Enter a user-assigned name for the autochanger and a brief description, then: Pathname of the control port for the jukebox device? [scsidev@2.1.1] Enter the pathname as reported by the previous inquire command (in the example, scsidev@2.1.1). Then: Do you want automated device cleaning support enabled? (yes/no) no Answer no, if you are configuring the autochanger for an IBM 3582, 3583, or 3584, because these libraries support automatic cleaning driven by the library. IBM recommends that you use library-controlled cleaning, rather than enabling cleaning by the application software. If you have another LTO product such as an IBM 3580 or 3581, you can choose either to enable the NetWorker automatic device cleaning (enter yes) or to perform your own manual cleaning (enter no), as these LTO models do not support automatic library cleaning. At the next prompt:
Will media drive 1 be shared by multiple device paths? (yes/no) no
Answer no, if you do not want to activate Autochanger Sharing. Refer to 6.6.2, Sharing autochangers between NetWorker hosts on page 276 if you want to use this feature. Then you have to specify the path name of the tape drives. Use the device special file name indicating a no rewind device, as you did earlier in the NetWorker installation. For performance reasons, it is suggested to use a special device file name that has compression enabled. For more information on the device special file name to use, see Table 4-3 on page 151. AIX Use the device path /dev/rmtx.1
Enter hostname that owns media drive 1: ? [brazil.almaden.ibm.com] Enter pathname of media drive 1: ? [/dev/rmt2.1] using '/dev/rmt2.1' as device name
260
Select the LTO Ultrium device type. These questions are related to the media drive 1, that is, the first tape drive connected to the library. The same questions apply to every other tape drive installed in the tape library. Then:
Your jukebox does not report that it has a bar code reader, but it does report that it can handle volume tags. Some jukeboxes that have barcode readers report this way. If your jukebox has a barcode reader, do you want bar code reader support enabled? (yes/no) yes Do you want volume labels to match bar code labels? (yes/no) yes
These two last questions apply only if you have an LTO library with a barcode reader. Answer yes, in this case. The last message received should be: Jukebox has been added successfully. 5. After the successful completion of the autochanger configuration, you should be able to operate the IBM LTO medium changer from the NetWorker administration interface.
261
1100000563
scsidev@3.4.1:IBM
03584L32
0000000T00020401
Here you see the devices recognized as SCSI attached to this system and information on their SCSI identification. For example, in scsidev@3.4.1, the last two digits indicate the target ID and the LUN number (tgt 4, LUN 1). Note this information, as it will be used later in the autochanger configuration. Note: Refer to the EMC Legato NetWorker autochanger maintenance commands on page 322 for a list of NetWorker autochanger commands, such as inquire. You can also see the firmware microcode level (301v for the medium changer and 2CKH for the drives) and the serial number of the tape drives and the tape library. As you can see from the WW Node Name (WWNN) for the tape drive, this is the fifth tape drive in the first frame of the IBM 3584 (see also Chapter 3, SAN considerations on page 75). For testing purposes, we are using a library with just one tape drive, installed in the fifth library position. Before you start configuring the library, you should know which tape special file name corresponds to which tape drive in the library. See also 3.3, Persistent binding on page 88, and Verifying proper device attachment with tapeutil on page 323. In this example, the inquire command shows the SCSI path (3.4.1) and the WWN. This tells you that this is the fifth drive in the library: AIX The command lsattr -El rmtx (Example 6-13) shows the tape drive WWN, and you can determine which tape special file belongs to the WWN displayed from the inquire output.
Example 6-13 AIX lsattr output # lsattr -El rmt0 block_size 0 compress yes autoload no logging no max_log_size 500 space_mode SCSI rew_immediate no trailer_labels no retain_reserve no devtype ULT3580scsi_id 0x213ca Block Size (0=Variable Length) Use Hardware Compression on Tape Use Autoloading Feature at End-of-Tape Activate volume information logging Maximum size of log file (in # of entries) Backward Space/Forward Space Record Mode Use Immediate Bit in Rewind Commands Trailer Label Processing Retain Reservation Device Type SCSI Target ID True True True True True True True True False False True
262
0x0
Logical Unit Number Location 0x500507630001F005 World Wide Name New Logical Name
Now, we know that the tape special file rmt0 corresponds to the fifth tape drive in the library. SUN With ls -l /dev/rmt/*stbn you see that the tape special file with the SCSI path 3.4.0 is /dev/rmt/0stbn.
# ls -l /dev/rmt/*stbn /dev/rmt/*smc lrwxrwxrwx 1 root root 47 Aug 22 18:12 /dev/rmt/0smc -> ../../devices/pci@1f,4000/scsi@3/IBMtape@4,1:st lrwxrwxrwx 1 root root 47 Aug 22 18:12 /dev/rmt/0stbn -> ../../devices/pci@1f,4000/scsi@3/IBMtape@4,0:st
HP-UX On HP-UX use tapeutil (as shown in Example 6-14) to read the serial number from a tape drive (use 10: inquiry and specify page x80). You see /dev/rmt/0m has serial number 1100000563, and in conjunction with the inquire command can determine that this is the fifth tape drive (because of the WWN) in the library.
Example 6-14 HP-UX inquire to determine drive position ENTER COMMAND ('M' for Menu) ==> 1 Enter device special file name (e.g., /dev/rmt/1mnb): /dev/rmt/0m Select open mode (1=read-write, 2=read, 3=write, 4=append): 2 Device /dev/rmt/0m opened. ENTER COMMAND ('M' for Menu) ==> 10 Enter Inquiry Page code in hex or <enter> for standard inquiry: 80 The IOC_INQUIRY_PAGE ioctl succeeded. Inquiry Data (Page 0x80): 0 1 2 3 4 5 6 7 8 9 A B C D E F ----------------------------------------------01 80 00 0A 36 38 31 31 30 30 37 30 33 30 ENTER COMMAND ('M' for Menu) ==> 2 Device /dev/rmt/0m closed. 0123456789ABCDEF ---------------....1100000563
2. The sjirjc command provides more information about the tape library. Use sjirjc and specify the library with the SCSI address given from the inquire output, as shown in Example 6-15.
Example 6-15 sjirjc command output # sjirjc 3.4.1 Device: 3.4.1
263
Number of Drives: Number Drive Pairs: Number of Import/Export Elements: Number of Import/Export Pairs: Number of Slots: Number of Slot Pairs: Number of Transport Elements: Number of Transport Pairs: Volume Tags Supported Initialize Element Status Supported
6 1 10 1 201 1 1 1
As you see, sjirjc reports that the IBM 3584 has six tape drives installed. But to the OS, there is only one tape drive visible. In the library that we are using, the LTO 2 drive is installed in the fifth position. The first four drives and the sixth drive are switched off, inaccessible by cabling or zoning, or used by other tasks, and hence not visible to the OS. Normally, in a production environment, you would partition the IBM 3584 into logical libraries to get consistency. In this example, we did not do this, in order to show the steps that are need to get this configuration using non-contiguously installed tape drives working. This is the situation we discussed in Special note: NetWorker and IBM 3584 on page 248. Another situation where this can occur is in a multi-frame IBM 3584 where a frame is not completely populated with drives (typically to increase the number of cartridge slots available). For example, if two drives are installed in the first frame, and two drives are installed in the second frame, sjirjc reports 14 drives as it sees that the last available drive is in position 14. If you do have contiguously numbered devices (such that the number of drives reported by sjirjc matches the number of drives visible to the OS in the correct positions), you can skip the following steps, and proceed to IBM 3584 autochanger configuration continued on page 265. Otherwise, perform the steps in the next section.
0stbn
0stc
0stcb
0stcbn
0stcn
0stn
264
/dev/rmt/0mb /dev/rmt/0mn
/dev/rmt/c27t0d0BEST /dev/rmt/c27t0d0BESTb
/dev/rmt/c27t0d0BESTnb
We see that /dev/rmt/0mnb is available. 2. In order to get jbconfig reporting correctly, we need to create, in our case, five dummy devices to stand in for the missing five devices. For this we have to create five blank files. You can use touch to do this. The file names can be arbitrary, but for consistency we recommend the following system. Use file name /dev/rmt/logx for each device, where x represents the device position. So, in our case, because we have a tape drive at position 5, but none at 1-4, or 6, we create the files as shown in Example 6-16. We will use these dummy device files in step 2 on page 266.
Example 6-16 Creating dummy tape devices # # # # # touch touch touch touch touch /dev/rmt/log1 /dev/rmt/log2 /dev/rmt/log3 /dev/rmt/log4 /dev/rmt/log6
Where, n is the number associated with the medium changer special device name. Alternatively, you can use SMIT to remove the device from the configuration, as in 4.2.8, Deleting tape devices on page 124. After this, you should no longer see the medium changer in the list of devices. SUN To remove the medium changer, edit /kernel/drv/IBMtape.conf. Comment out (or delete) the entry with the SCSI target ID and LUN number of the medium changer device (in this example, it is target=4 lun=1):
#name="IBMtape" # class="scsi" # target=4 lun=1 # block_size=0 # buffering=1 # immediate=0 # trailer=0 # sili=0;
Use the # symbol to comment out the entry. Save the changes. If you have multiple control paths enabled on your LTO library, and you want to use these additional control paths for redundancy reasons in NetWorker, then you also have to remove or comment all entries for the control paths. In most cases this would be all stanzas with lun=1.
Chapter 6. Implementing EMC Legato NetWorker with LTO
265
Then, create an entry for the medium changer in the Solaris standard devices configuration file /kernel/drv/st.conf:
name="st" class="scsi" target=4 lun=1;
Add this entry to the bottom of the file. The target and LUN numbers are the addresses of the LTO medium changer, as reported by the inquire command. Then reboot the server:
# reboot -- -r
HP-UX To remove the medium changer, use the procedure in 4.5, Testing the library with tapeutil on page 149. 2. After the server has successfully restarted (if necessary), you can configure the autochanger to NetWorker, using the jbconfig command. When you run jbconfig, you are prompted for the type of autochanger to install.
# jbconfig 1) 2) 3) 4) 5)
an an an an an
AlphaStor/SmartMedia Jukebox. Autodetected SCSI Jukebox. Autodetected NDMP SCSI Jukebox. SJI Jukebox. STL Silo.
For an IBM LTO library, select option [2]. Then jbconfig searches for attached SCSI jukeboxes. If jbconfig does not find the library, you have to enter the SCSI path, such as 3.4.1. If jbconfig detects the library you will see this:
Installing 'Standard SCSI Jukebox' jukebox - scsidev@3.4.1.
After that you have to assign a name to the library. For the auto-cleaning question, answer no if you are configuring the autochanger for an IBM 3582, 3583, or 3584, because these libraries support automatic cleaning driven by the library. IBM recommends that you use library-controlled cleaning, rather than enabling cleaning by the application software. If you have another LTO product such as an IBM 3580 or 3581, you can choose either to enable the NetWorker automatic device cleaning (enter yes) or to perform your own manual cleaning (enter no), since these LTO models do not support automatic library cleaning.
What name do you want to assign to this jukebox device? IBM3584fc Turn NetWorker auto-cleaning on (yes / no) [yes]? n
In our example our library is non-shared, and will not be set up for NDMP; therefore, we answered No to the next two questions.
The drives in this jukebox cannot be auto-configured with the available information. You will need to provide the path for the drives. Is (any path of) any drive intended for NDMP use? (yes / no) [no] Is any drive going to have more than one path defined? (yes / no) [no]
266
Now, you need to enter in the device names for each drive element number. If you have contiguously installed drives, enter the real device names. In our configuration, we have non-contiguous drives (only one drive installed in the 5th position). Therefore, we will use our real tape drive for the fifth position (element 261) and enter the dummy tape devices, which we created in Configuring dummy devices (non-contiguous libraries only) on page 264, for the other five positions. For actual tape drives, use the device special file name indicating a no rewind device. For performance reasons, it is suggested to use a device special file name that has compression enabled. For more information on the device special file name to use, see Table 4-3 on page 151. AIX For AIX, use the device path /dev/rmtx.1 SUN For SUN, use the device path /dev/rmt/xstcbn HP-UX For HP-UX, use the device path /dev/rmt/xmnb Example 6-17 shows our Solaris example with one real drive and five dummy drives.
Example 6-17 Entering element device names Please enter the device path information in one of the following formats: /dev/rmt/1cbn --for local path or host:device-path --for remote node or host:drive-letter:directory path --for Windows disk file Drive 1, element 257 Drive path ? /dev/rmt/log1 Drive 2, element 258 Drive path ? /dev/rmt/log2 Drive 3, element 259 Drive path ? /dev/rmt/log3 Drive 4, element 260 Drive path ? /dev/rmt/log4 Drive 5, element 261 Drive path ? /dev/rmt/0stcbn Drive 6, element 262 Drive path ? /dev/rmt/log6
3. Now we have to define the drive types. For the real tape we use the option 34 LTO Ultrium-2, and for the dummy devices the option 32 logical.
Please select the appropriate drive type number: 1) 3480 18) 9840 2) 3570 19) 9840b 3) 3590 20) 9940 4) 4890 21) adv_file 5) 4mm 22) dlt 6) 4mm 12GB 23) dlt1 7) 4mm 20GB 24) dlt7000 8) 4mm 4GB 25) dlt8000 9) 4mm 8GB 26) dst
267
8mm 8mm 20GB 8mm 5GB 8mm AIT 8mm AIT-2 8mm AIT-3 8mm Mammoth-2 9490
dst (NT) dtf dtf2 file himt logical LTO Ultrium LTO Ultrium-2
Enter the drive type of drive 1? 32 Are all the drives the same model? (yes / no) [yes] n Enter the drive type of drive 2? 32 Enter the drive type of drive 3? 32 Enter the drive type of drive 4? 32 Enter the drive type of drive 5? 34 Enter the drive type of drive 6? 32
268
4. Because of the dummy drives, we have to match the number of real drives to the maximum tape mounts allowed (max parallelism) on this autochanger. Scroll down on the screen shown in Figure 6-5 and set Max parallelism to 1 (or to the number of actual drives used). 5. Go to the Devices view (use the Media pull-down menu to select Devices; see Figure 6-6). Select one of the dummy devices, and disable the dummy device by selecting No on the Enabled field.
269
270
You can see the LTO Ultrium devices listed in the Devices window. Use the Media pull-down menu to select the Jukeboxes window, and check if the LTO library is present. The window should look as in Figure 6-8.
271
To test the LTO library and drives, use the NetWorker administration dialog to mount and dismount tape volumes in the LTO drives, and do an inventory of the library and label volumes to check the correct functionality of the medium changer. Next, we show how to label volumes and inventory the library.
272
The NetWorker server uses barcode labels only to inventory volumes. It is important to update and maintain an accurate account of the medium changer contents by using the NetWorker inventory command. Otherwise, locating a volume for backup or recovery (whether or not it uses barcode labels) is impossible, because the NetWorker server does not know which slot contains the needed volume. Sometimes, a manual inventory is required. For example, if you need to open the IBM 3583 or 3584 library door and move the cartridges, or extract them for maintenance or other reasons, remember to start an inventory of the library from the NetWorker administration interface after you put the library online. Use the option Media Inventory, then click OK in the Jukebox Inventory window, as shown in Figure 6-10.
273
The Target Sessions parameter should be set to 1 for tape devices. If a device is already receiving the number of backup sessions determined by the target sessions value, the NetWorker server uses the next least utilized device for your backups. So for example, if you have two tape drives, you can run two backup sessions in parallel only if you specify one as the Target Sessions for each tape device. For the Cleaning Required field, answer no if you are configuring the autochanger for an IBM LTO library that supports autocleaning. IBM recommends cleaning under the librarys control, rather than enabling the cleaning to be done by the application software. Therefore, select no for this option. If you have a library or drive that does not provide autocleaning, you can choose either to enable the NetWorker automatic device cleaning (enter yes), or to perform your own manual cleaning (enter no), since these LTO models do not support automatic library cleaning.
274
The Automatic Media Management feature can be activated from this panel only if you are using a manual tape drive. This feature gives the NetWorker server automatic control over media loaded in the storage device. If you have an LTO library or autoloader, this feature can be enabled only from the Jukeboxes resources dialog. Further discussion is in 6.6.3, Auto media management on page 277. Important: Do not activate the Automatic Media Management feature unless you are using your LTO tape library exclusively with NetWorker. If this is activated, NetWorker assumes that all the volumes loaded in the autochanger will be handled exclusively as NetWorker media. This can lead to unwanted data overwrites if there are other, non-NetWorker volumes in the autochanger.
275
NetWorker server
SAN
Storage Node SN2
IBM 3583
SDG Router
SCSI
shared autochanger
Figure 6-12 NetWorker Dynamic Drive Sharing (DDS) example
In this example, SN1 sends a backup to drive_1 and subsequently, SN2 starts a backup to drive_1. If the backup from SN2 can use the same tape in drive_1, it will. If not, the backup started by SN2 will be sent to the next available drive, which is drive_2.
autochanger sharing.
Autochanger sharing allows one NetWorker host to control the autochangers robotic arm, while other NetWorker hosts (as well as the host controlling the robotic arm) can each control and use specific tape devices. A specific device can be controlled only by a single NetWorker host; therefore, the drive sharing is static. Figure 6-13 shows the autochangers sharing drives between different NetWorker hosts.
276
NetWorker server
shared autochanger SCSI medium changer control SCSI tape device control Storage Node SN3
You can set the LTO medium changer as shared during the initial autochanger setup using the jbconfig command. This command must be run from the NetWorker host that controls the autochanger. When running jbconfig, you will be prompted to enter the NetWorker hostname controlling the first autochanger device. The default hostname value is the local NetWorker host on which jbconfig is running. However, you can change the default hostname value to another NetWorker host. Then you are prompted to enter the controlling host for each device in the autochanger. This corresponds to the host which is cabled to each drive.
277
278
Part 3
Part
Appendixes
Copyright IBM Corp. 2002, 2003, 2004, 2005. All rights reserved.
279
280
Appendix A.
Copyright IBM Corp. 2002, 2003, 2004, 2005. All rights reserved.
281
and four SCSI ports. The Fibre Channel ports have 2 Gigabit, SC-style short wave multimode Gigabit Interface Converter (GBIC) modules. The Fibre Channel ports can communicate reliably at distances of up to 300 meters over 50 m multimode-optical fiber cables. The four SCSI ports are Ultra2, low voltage differential (LVD), with VHDCI-style connectors (Very High Density Cable Interconnect). The IBM 3583 with Ultrium 1 drives allows a mixture of up to six direct attached SCSI LVD or HVD drives. If you are using the integrated SAN Data Gateway to enable FC connectivity, then up to 6 LVD or HVD drives can be installed. The SAN Data Gateway Integrated Module cannot support a mixture of HVD and LVD drives.
3583 Lxx
F
Server
Fibre Channel Aapter
Medium Changer
E D C
SDG Module
B A
WWN of SDG
Since it is a SAN device, each SDG has its own World-Wide Name (WWN).
282
Example: A-1 WWN of SDG Router > fcShowNames ----------------------------------------------------------------Ctlr : PCI Addr : ISP : Node : Port Id : Bs Dv Fn : Type : Name : Name ----------------------------------------------------------------1 : 00 06 00 : 2200 : 10000060.45161ff5 : 20010060.45161ff5 -----------------------------------------------------------------
You can also use the SAN Data Gateway Specialist (Figure A-2) to display this information. See Install and use the IBM SDG Specialist on page 286 for more information on the SAN Data Gateway StorWatch Specialist.
Note: VPS is only available as an option for the IBM 2108 G07, and not for the IBM 2108 R03 or the Integrated SAN Data Gateway Module for the 3583. Special software is also required. In the following section we give an overview of: Basic setup of the SDG Installation and usage of the StorWatch SDG Specialist How LUN mapping works How to use channel zoning Virtual Private SAN For more information on the SAN Data Gateway, refer to these publications: 2108 Model G07 Installation and User's Guide, SC26-7304 2108 Model R03 Installation and User's Guide, SC26-7355
If you are connected, press Enter and you will receive a response from the SDG as shown in Figure A-3.
2. We suggest the following basic commands sequence to install a new or an already used SDG: a. initializeBox This restores the factory defaults by deleting all configuration files including persistent address map and VPS databases, and then a restart is needed.
284
b. ethAddrSet Use the ethAddrSet command to set or change the IP address and network mask (if required) of the SAN Data Gateway.
Router > ethAddrSet 192.168.1.54 255.255.255.0
c. ethEnable The ethEnable command alters the start parameters of the SDG Router, enabling the Ethernet port. This command does not take effect until the SDG Router is restarted. d. userAdd "admin","password" This adds a user and password to the password file. The user name variable must be three to 80 characters. The password variable must be eight to 40 characters. Here you create your own user ID.
Router > userAdd "nancy","password"
e. disableCC or enableCC The disableCC command disables the command and control interface (LUN 0). The SDG is addressable as a SCSI target device for command and control support. On a Fibre Channel interface, this device is seen as logical unit number 0, (LUN 0). If the command and control support is enabled, you might see problems on the AIX machine when a cfgmgr is run:
cfgmgr: 0514-621 WARNING: The following device packages are required for device support but are not currently installed. devices.fcp.array
Therefore, we suggest that you disable CC if the SDG is connected to an AIX server. For other operating systems you can enable CC. f. setHost X,YYY (where port X can be 1,4,2,5,3,6 and YYY can be "solaris", "nt", "hpux", "aix", "as400", and so forth). The setHost command sets the operating system type for the specified SAN interface. This provides some customization in the way the SDG is presented to the particular operating system. If the port is 0, the change applies to all SAN connections; otherwise, the host type is applied only to the SAN connection on the specified interface. The default setting is NT. Currently, OS can be specified as NT, AIX, Netware, HP-UX, or Solaris. You have to put the host type in double quotes as shown in Example A-2.
Example: A-2 setHost for FC 4 to AIX Router > setHost 4,"aix" value = 0 = 0x0
Note: Port 1 and 4 belong to the first FC card; 2 and 5 to the second FC card; 3 and 6 to the third FC card inside the SDG.
285
3. reboot A reboot makes the changes effective. You can now connect to the SDG through a Telnet session, using the Ethernet address you defined. 4. fcShowDevs and fcShowNames The fcShowDevs command displays information about the devices that are accessible from each Fibre Channel interface. The display shows the LUN that the SDG has assigned to each device, the SCSI Channel that the device is attached to, the actual SCSI ID, LUN of the device, and the vendor, product, revision, and serial number of the device. The fcShowNames command displays the node and port names (addresses) of the Fibre Channels. If the output does not match your physical installed devices, then execute scsiRescan and reboot. Collect the output from fcShowDevs and fcShowNames for further use (fcShowNames shows you the WWN, the assigned LUN and the serial number of the tape drives; see Example A-3).
Example: A-3 Output of fcShowDevs and fcShowNames Router > fcShowDevs FC 1: LUN Chan Id Lun Vendor Product Rev SN ----------------------------------------------------0 0 0 0 PATHLGHT SAN Router 32aC 21081341573 1 2 6 0 IBM ULT3583-TL 2.50 IBM7801954 2 2 0 0 IBM ULT3580-TD1 16E0 6811020764 4 2 1 0 IBM ULT3580-TD1 16E0 6811007030 value = 6 = 0x6 Router > fcShowNames ----------------------------------------------------------------Ctlr : PCI Addr : ISP : Node : Port Id : Bs Dv Fn : Type : Name : Name ----------------------------------------------------------------1 : 00 06 00 : 2200 : 10000060.45161ff5 : 20010060.45161ff5
286
Client and server do not need to be on the same operating system. This means you can install the server, for instance, on AIX, HP-UX, or Sun Solaris, and use the client on Windows 2000 or on Windows NT. You can download the latest version of the SDG Specialist from:
ftp://ftp.software.ibm.com/storage/san/2108/
Install on AIX
Download the latest version and the readme file for AIX from the FTP site. If needed, decompress and untar the files. The install images will be called something similar to storwsdg_bff. Install the server and client code with: installp -a -d storwsdg_bff all If you want to install only the server code type: installp -a -d storwsdg_bff storwsdg.server Or, to install the client code only: installp -a -d storwsdg_bff storwsdg.client As always, check the readme file for the latest information on fixes and prerequisites.
Install on HP-UX
Download the latest version and the readme file for HP-UX from the FTP site. If needed, decompress and untar the files. The install images will be called something similar to SS272HPX.bin. You need to set execute permission for the file as follows: chmod 777 SS272HPX.bin At the prompt type: SS272HPX.bin In a few moments a window will be displayed that contains the text InstallAnywhere. As of Version 2.6, the IBM SAN Data Gateway Specialist uses this installation software program. A few moments later, the StorWatch SAN Data Gateway Specialist splash screen will be displayed. Follow the prompts during the installation. You have an option to install the server only or client only. If you accept the default settings, both the server and client components will be installed. As always, check the readme file for the latest information on fixes and prerequisites.
As always, check the readme file for the latest information on fixes and prerequisites.
Appendix A. IBM SAN Data Gateway
287
Install on Windows
Download the latest version and the readme file for Windows from the FTP site. Execute the downloaded file to start the installation. During installation, you can choose to install the server and the client (see Figure A-4).
288
Server-to-Gateway heartbeat started Server-to-Client heartbeat started Ready. Waiting for commands rmi://9.1.150.57:1099/starfish :
Now you will be asked for a user name and password (Figure A-6). The default entries are: User name: StorWatch Password: StorWatch Both values are case sensitive.
Next, enter the TCP/IP address or hostname of the SDG that you want to manage (Figure A-7).
289
If so, download the package and update the firmware on the SDG. Attention: All I/O must be halted while updating the firmware. Select first the SDG to be updated in the left-hand window. Then select from the menu Controls Update Firmware (Figure A-8). You will be asked for the file name of the new firmware. After you have selected the downloaded file, you are asked to confirm that you want to update now. Answer with OK if all I/O activity to the SDG is stopped.
Firmware level
SCSI settings
To view or change the SCSI settings, first select the desired SCSI Channel on the left side of the client display, then select Controls SCSI Channel from the menu. See Figure A-9.
290
If you update SCSI device firmware, the Specialist does not display the new firmware version until the SDG Router has issued a SCSI inquiry. The SCSI inquiry occurs when it rescans the SCSI buses. If you want to rescan the SCSI bus, click the Re-scan SCSI Bus button (Figure A-10).
FC settings
To view or change the FC options, first select the desired FC Channel on the left side of the client display. Then select Controls Fibre Channel. See Figure A-11.
291
On the Fibre Channel Parameter window, you can change settings valid for the selected FC port. You can change the host type to match it for your configuration. The connection options should be point-to-point or point-to-point preferred if the SDG is connected to a switch. If the SDG is directly connected to a server, both server HBA and SDG need to have the same connection options. See Figure A-12.
292
3584 Lxx
Server
Drive 0 SCSI ID 0 LUN 0 Drive 1 SCSI ID 1 LUN 0
A
SCSI ID 0 LUN 1
Medium Changer
SCSI Aapter
SCSI
This configuration has a device map (from the host point of view), which looks as shown in Table A-1. Some tape library devices, like the IBM 3584, support LUNs for the devices; the tape drive is addressed as LUN 0, the SCSI medium changer (smc) is available as LUN 1.
293
Target ID 0 0 1
LUN 0 1 0
If a product like an SDG is placed between the system and target devices, the addressing has another layer. This is because the targets (the tape drives) are not directly attached to the host but are connected to a SCSI adapter installed in the gateway instead. Figure A-14 shows the device mapping with the additional layer for the SDG.
SCSI
Server
Drive 0 SCSI ID 0 LUN 2 Drive 1 SCSI ID 0 LUN 4
3584 Lxx
B A
SCSI ID 0 LUN 3
Medium Changer
FC Aapter
FC
The system now only has a single target ID (target 0 in this case) directly attached to the SAN Data Gateway. The gateway forwards commands to and from its targets, the tape drives. However, there is a need to map the devices (tapes) so the host system can use them. This is achieved by using another layer of mapping LUNs. The device map might now look like Table A-2 from the host perspective.
Table A-2 Device map from host perspective with SDG Target ID 0 0 LUN 0 2 Device SAN Data Gateway Drive 0
0
0
3
4
smc
Drive 1
Note that LUN 0 points to the SAN Data Gateway. This allows you to send commands to control the gateway. This is referred to as the Command and Control Interface. Tape drives are always assigned an even LUN number. If a control path is enabled for this drive, its LUN is one higher than the drives. The odd-assigned LUN number that follows the tape-drive even number is reserved for the medium changer. This algorithm has been chosen for the best compatibility with existing applications and operating systems. The medium changer in an IBM 3583 has its own SCSI ID, but will still be assigned an odd LUN number. If the resulting map is not suitable for your environment, you can edit the mapping done by the SDG with the Specialist. First, select your desired SDG, then select Controls Device Mapping as shown in Figure A-15.
294
The current device mapping displays as in Figure A-16. Devices that have already been entered into the persistent device map, or devices which were automatically assigned by the SDG, are shown in black type on the left. The assigned LUN for each device is shown in the left column. On the right side you see devices that are currently not assigned. You can delete a drive from the right side by dragging it to the recycle bin icon.
You can easily change this configuration by drag and drop. Select the device that you want to move to a different LUN by clicking and holding it with your left mouse button and moving the device to an empty LUN. After you have made any changes, reboot the SDG for the changes to take effect.
295
When you select this menu option, a pop-up window displays the current channel zoning settings. Figure A-18 shows the settings for a gateway that has two SAN connections and four SCSI channels. Currently, only SCSI Channel 3 and SCSI Channel 4 are assigned to FC 1 and FC 2. Clear the check marks or add additional check marks by clicking in the boxes to create restricted access zones for the desired SAN connections and SCSI channels. All combinations are possible.
296
VPS is applicable mainly in disk environments, so we do not discuss it further here. It is also not available for the integrated SAN Data Gateway Module for the IBM 3583. You can find more information on VPS in Planning and Implementing an IBM SAN, SG24-6116.
297
298
Appendix B.
SNMP setup
This appendix describes setting up SNMP on the IBM TotalStorage 3582 Tape Library, IBM TotalStorage 3583 Tape Library, and IBM TotalStorage 3584 Tape Library.
Copyright IBM Corp. 2002, 2003, 2004, 2005. All rights reserved.
299
The IBM 3581, 3582, and 3583 have the SNMP monitoring function included in the RMU module. The RMU supports SNMP Version 2.0 and can act as an SNMP server, responding to SNMP requests and generating SNMP traps. An internal library serial interface enables the RMU to acquire TapeAlert 3.0 compatibility information from the drives and to send this information to an SNMP server. In the event of a power loss, the RMU will detect the loss and generate an SNMP trap for notification. The IBM 3584 has the SNMP support included in the Frame controller assembly (FCA), which is required for at least the L-Frame. The FCA must have Ethernet Support (FC #1660) for using the SNMP function. For redundancy reasons, the SNMP function uses all FCAs with Ethernet support. Up to five different SNMP managers can be configured to receive trap events. The 3584 also supports the get/get-response mechanism. For all SNMP-capable LTO tape libraries, you need an Ethernet LAN connection to the SNMP manager to trap SNMP events. We described how to configure the LAN connection for these libraries in 4.10.1, IBM 3581 2U Tape Library Specialist on page 165, IBM 3582 Tape Library Specialist on page 168, 4.10.3, IBM 3583 Tape Library Specialist on page 171, and 4.10.4, IBM 3584 Tape Library Specialist on page 175.
300
Figure B-1 IBM 3582 Tape Library Specialist: SNMP MIB download
As described in the text of the panel, the MIB file is a specific configuration file for the SNMP environment with the information for the IBM 3582. Download the file to the SNMP management server. If you are running Tivoli NetView on this server, you should store the file in the directory \usr\ov\snmp_mibs. You will then load this file to your SNMP manager, using the specific applications process. Go to the Specialist Configuration panel. In the SNMP Configuration section at the lower left side of the panel, enter the TCP/IP address and other related parameters for the SNMP server, and make sure the Alerts Enabled pull-down is set to ON as shown in Figure B-2.
301
Click the Submit button to apply the changes. A confirmation panel appears. Click Enter to confirm the updates. After you have configured the RMU 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.
302
Figure B-3 IBM 3583 Tape Library Specialist: SNMP MIB download
As described in the text of the panel, the MIB file is a specific configuration file for the SNMP environment with the information for the IBM 3583. Download the file to the SNMP management server. If you are running Tivoli NetView on this server, you should store the file in the directory \usr\ov\snmp_mibs. You will then load this file to your SNMP manager, using the specific applications process. Go to the Specialist Configuration panel. In the SNMP Configuration section at the lower left side of the panel, enter the TCP/IP address and other related parameters for the SNMP server, and make sure the Alerts Enabled pull-down is set to ON as shown in Figure B-4.
Click the Submit button to apply the changes. A confirmation panel appears. Click Enter to confirm the updates.
Appendix B. SNMP setup
303
After you have configured the RMU 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 6.0.1 panel is shown in Figure B-5. We can see our tape drive BAVARIA discovered as a node.
Tip: For more information on NetView, see the redbook Tivoli NetView 6.01 and Friends, SG24-6019.
304
The IBM 3584 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.
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. To send a different version of traps, select on the SNMP Menu V1/V 2. 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-7), 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 from the SNMP menu Destination IP Addresses. Then click Up or Down to specify the destination IP address that you want to view or change (Figure B-8), then click Enter. You can have the library send the SNMP traps to up to five different monitoring stations.
Appendix B. SNMP setup
305
The Set Destination IP Address panel displays with the current value of the destination IP address that you specified (Figure B-9). Click Up or Down to change to the value that you want, then click Enter. The panel redisplays with the new destination IP address. To accept the new setting and return to the previous panel, click Back.
To view or change the community name, click Up or Down to highlight Community Name and click Enter. The Community Name panel displays with the current password (Figure B-10). 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.
306
To use the operator panel to send a test SNMP trap and ensure proper connection of the IBM 3584, 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 on SNMP traps, see the IBM TotalStorage 3584 Tape Library Installation and Planning Guide, GA32-0469.
Next, enter the destination SNMP monitoring server. Up to five SNMP monitoring servers can be defined. Select SNMP Destinations at 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 (see Figure B-12).
307
After you have configured the IBM 3584 to send SNMP alerts to the SNMP server, configure your SNMP monitoring product (like Tivoli NetView) to monitor the events. The SNMP monitoring product needs the library Management Information Base (MIB) for interpreting the SNMP traps, otherwise, you have to interpret the SNMP traps manually. Information on how to interpret the SNMP traps manually is in the IBM TotalStorage 3584 Tape Library Operator Guide, GA32-0468. The MIB contains units of information that specifically describe an aspect of a system such as the system name, hardware number, or communications configuration. To obtain the MIB for the IBM 3584, see the Web site: ftp://ftp.software.ibm.com/storage/358x/3584/ For Windows, select 3584mib.zip, and for UNIX select 3584mib.tar. Download the MIB and load it into your management application. Follow the information provided by your SNMP monitoring product to receive SNMP traps from the IBM 3584. As an example, we show you how to configure IBM Tivoli NetView to receive SNMP traps from the IBM 3584: 1. Create a new object on your NetView console. Enter an Object Name and a Label Name (see Figure B-13).
308
2. Select the Other tab and specify the Hostname, the IP Address of the IBM 3584, and the Subnet Mask (see Figure B-14). Before you can create this new object, you have to verify the connection. Click the Verify icon for that purpose.
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-15 for an illustration of several libraries with different statuses.
Appendix B. SNMP setup
309
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-16).
310
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-17).
311
You can now use SNMP to monitor your library. Here are some examples created with Tivoli NetView: To know how many drives are present in the library, use your monitoring server to issue an SNMP get request on the object numberOfMediaAccessDevices.0. For a list showing the status of all of the drives in the library ordered by element address, issue an SNMP get request on the objects mediaAccessDevice-Availability.1 through mediaAccessDevice-Availability.n where n is the number returned by numberOfMediaAccessDevices.0 (see Figure B-19).
312
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-20). 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-21) for the status and the volser of all the cartridges.
313
314
Note: As of the writing this redbook, just a few SNMP requests had been implemented. More SNMP requests will be implemented in the near future. Check for updates of IBM 3584 library firmware and MIB files at: ftp://ftp.software.ibm.com/storage/358x/3584/
315
316
Appendix C.
Copyright IBM Corp. 2002, 2003, 2004, 2005. All rights reserved.
317
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 Application itself (for example, database)
318
Connection to the tape drives Type of HBAs: 1 GBit or 2 Gbit What are the HBAs connected to? Which Type of PCI Bus? What else is on the same PCI Bus? Size of files which you 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? Look at each link separately. The UNIX command dd can be used to get a baseline performance level. You can test the performance of your disk subsystem first by writing and reading from the disk to /dev/null or /dev/zero. Then you may want to test the performance from the server to the tape by writing and reading from tape to /dev/null or /dev/zero. And finally, you write files from the disk to the tape. 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 purposes only.
On some UNIX systems you can use /dev/null as the destination device, and on others you will use /dev/zero. 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 can use dd in conjunction with time to measure the time. We suggest writing and reading at least 1 GB, hence, use bs=262144 count=4096. We tested Ultrium 1 tape performance on two hosts: BRAZIL and SOL-E. We created a file of 256 MB called rbs01.dbf. First, we tested the file system performance with: time dd if=filename of=/dev/null bs=128k Then we tested the tape performance with: time dd if=filename of=/dev/rmt0 bs=128k Example C-1 shows the results obtained on BRAZIL. There is good file system performance (over 74 MB/s) and the tape performance is also in the expected range (nearly 11 MB/s for an Ultrium 1 drive).
Example: C-1 Performance on BRAZIL # ls -l -rw-r--r-1 root sys 268439552 Sep 05 18:21 rbs01.dbf # time dd if=/software/lto/rbs01.dbf of=/dev/zero bs=128k 2048+1 records in. 2048+1 records out. real 0m3.43s user 0m0.02s sys 0m3.42s # time dd if=/software/lto/rbs01.dbf of=/dev/rmt0 bs=128k 2048+1 records in. 2048+1 records out. real 0m23.68s Appendix C. LTO tips and troubleshooting
319
user sys
0m0.02s 0m3.95s
Example C-2 shows you the result on SOL-E. As you can see, the file system test takes longer than on BRAZIL, which can be attributed to less CPU, disk, or I/O capacity. Therefore, the tape performance is also relatively slower.
Example: C-2 Performance on sol-e # time dd if=/usr/sepp/rbs01.dbf of=/dev/null bs=256k 1024+1 records in 1024+1 records out real 0m17.43s user 0m0.02s sys 0m3.80s # time dd if=/usr/sepp/rbs01.dbf of=/dev/rmt/0st bs=256k 1024+1 records in 1024+1 records out real 1m19.85s user 0m0.02s sys 0m3.77s # time dd if=/usr/sepp/rbs01.dbf of=/dev/rmt/0stc bs=256k 1024+1 records in 1024+1 records out real user sys 0m33.39s 0m0.05s 0m3.53s
In addition, you can see in Example C-2 how the performance is different depending on whether hardware compression is used (dev/rmt/0st) or not (dev/rmt/0stc). During the tests 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 command portperfshow to show the performance of the attached devices. Example C-3 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/sec, with the values updated automatically every second.
Example: C-3 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
320
AIX commands
Here is a list of useful AIX commands.
Table C-1 AIX commands Command lscfg -v lscfg -vl rmtx lscfg -vl fcsx lsattr -E -l rmtx errpt -a lslpp -l Atape.driver lsdev -Cc tape Description General device configuration Tape drive configuration FC HBA configuration Device parameters Error log. Call hardware support if errors are found for TAPE_ERR* or SCSI* error labels. Driver version Configured tape drives
321
322
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.
2. Start tapeutil. The tapeutil menu will be displayed (as in Figure 4-9 on page 150). 3. Enter 1: Open a Device. 4. Enter /dev/rmt0 when prompted for the device name. 5. Enter 1: Read/Write. 6. Enter 3: Device Info. 7. Enter 5: Inquiry. Specify 0 when prompted for an inquiry page. This concludes a very basic test of the device, SCSI connection, and the device driver. You can stop the test here or continue to perform a more complete test. 8. Enter 14: Element 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 you are working with; refer to Table C-5. 10.Enter 16: Move Medium, then supply the address of the cartridge, followed by the address of the tape drive. Verify that the cartridge moved.
Appendix C. LTO tips and troubleshooting
323
11.Enter 6: Test Unit Ready until no error occurs. If your drive is not ready after 1 minute, then do a visual check to see if the cartridge is loaded on the right drive. If not, your library device table (Table C-5) may be wrong and you will have to figure it out by iteration. Close your device by entering 2, try to open a different device name, and try it again with Test Unit Ready. Repeat these steps until you find a device which is ready, then update your library device table. 12.Enter 30: Read and Write Tests. 13.Enter 1: Read/Write. Press Enter three times to accept the defaults and run the test. 14.Enter 31: Unload Tape. Wait until the Medium is unloaded. 15.Enter 16: Move Medium, 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. 16.Enter 2: Close a Device. 17.Enter Q: Quit Program.
324
7. Enter 16: Move Medium, then supply the address of the cartridge, followed by the address of the tape drive. Verify that the cartridge moved. 8. Enter 6: Test Unit Ready until no error occurs. If your drive is not ready after 1 minute, check to see if the cartridge actually loaded in the right drive. If not, then your library device table (Table C-5 on page 323) may be wrong, and you will have to figure it out by iteration. Close your device by entering 2; try to open a different device name, and try it again with 6: Test Unit Ready. Repeat these steps until you find a device which is ready, then update your library device table. 9. Enter 30: Read and Write Tests. 10.Enter 1: Read/Write. Press Enter three times to accept the defaults and run the test. 11.Enter 31: Unload Tape. Wait until the tape is unloaded. 12.Enter 16: Move Medium, 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. 13.Enter 2: Close a Device. 14.Enter Q: Quit Program.
Scroll down to continue the listing of the rest of the Import/Export slots. Next, the drives are listed (Example C-6).
Example: C-6 Tapeutil element inventory - drives Drive Address 256 Drive State .................... Normal ASC/ASCQ ....................... 0000
325
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 ..................... 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......................
No Yes No No Yes 0 No
You can see that slot 4096 is occupied since Media Present is set to Yes and the Volume Tag (Barcode label) contains ABA920L1, indicating this tape cartridge is located in this slot. Slot 4097 is empty, since Media Present is set to No. Therefore, when selecting option 16: Move Medium (assuming we knew the tape in slot 4096 was not already used by an application), we can specify source address of 4096 and destination address 256. This loads that tape into the tape drive. To unload the media (after selecting 31: Unload Tape) move the medium from 256 back to 4096.
Troubleshooting
In this section we present an approach to troubleshooting problems with LTO drives and libraries.
326
Save the Library logs with IBM Ultrium Tape Library Specialist
You can also use the IBM Ultrium 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 IBM Ultrium Tape Library Specialist. Compared to tapeutil, where you just download one log for the whole library, if using the IBM Ultrium Tape Library Specialist, you have to download several logs. For the 3581 2U you can save the logs from the autoloader and the drive. Go to option Logs in the IBM Ultrium Tape Library Specialist; here you upload the logs to your host. For the IBM 3582 and 3583, you have to download four logs from the Diagnostics File section (Library Command Log, Library Error Log, RMU Support Log, and RMU Error Log). See Figure C-1.
For the 3584, you have to download several logs under Service Download Logs, of which the Error Log of Accessor Controller Card is the most important. See Example C-2.
327
3. Select option Read Dump. 4. Select the tape drive and save the dump to local disk such as before_dump_rmtx_ (Example C-9).
328
Example: C-9 Saving drive du mp Prompting for Destination File for Operation on rmt2 located at 30-68-01 B00000 Please enter the following fields... Enter Filename: <ev/before_dump_rmt2] +/ F1=Help F5=Reset F2=Refresh F7=Commit F3=Cancel F10=Exit F4=List
329
Provide all the logs to the IBM Support Center. You should also provide general information about your system such as: Exact machine type (such as pSeries 7028-H80, HP N-Class Server) Exact OS version (such as AIX 5.1, HP-UX 11.00): For AIX, use oslevel For SUN, use uname -r For HP, use uname -r Installed adapter (SCSI/FC, FC6227/6228, Adaptec, Emulex, and so forth) Adapter microcode, firmware level, bios level, configuration For AIX, use lscfg vp > lscfg-vp.out For SUN, send the conf files, such as: /kernel/drv/fcaw.conf for JNI - FC adapter /kernel/drv/qlx.conf for QLogic FC adapter /kernel/drv/lpx.conf for Emulex FC adapter For HP, use fcmsutil /dev/tdx Installed device driver version and device driver configuration: For AIX, use: Device driver level: lslpp l Atape.driver Device parameters: lsattr El rmtx For SUN, use Device driver level: /usr/bin/pkginfo IBMtape Device parameters: /kernel/drv/st.conf and /kernel/drv/IBMtape.conf For HP, use: Device driver level: swverify atdd Device parameter: ioscan -fnkC tape ioscan -fnkC autoch
Hints
Finally, here are some miscellaneous operational hints.
330
Copyright IBM Corp. 2002, 2003, 2004, 2005. All rights reserved.
331
SLDC SMIT SNIA SNMP TCP/IP VHDCI VPD WWN WORM WWN
Streaming lossless data compression Systems Management Interface Tool Storage Networking Industry Association Simple Network Management Protocol Transmission Control Protocol/Internet Protocol Very High Density Cable Interconnect Vital Product Data World Wide Name Write Once Read Many World Wide Name
332
Related publications
The publications listed in this section are considered particularly suitable for a more detailed discussion of the topics covered in this redbook.
IBM Redbooks
For information on ordering these publications, see How to get IBM Redbooks on page 335. Note that some of the documents referenced here may be available in softcopy only. The IBM TotalStorage Tape Libraries Guide for Open Systems, SG24-5946 Implementing IBM tape in Linux and Windows, SG24-6268 Designing an IBM Storage Area Network, SG24-5758 IBM TotalStorage Enterprise Tape 3592: Presentation Guide, REDP-3749-00 IBM Tivoli Storage Manager Version 5.3 Technical Guide, SG24-6638 IBM Tivoli Storage Management Concepts, SG24-4877 IBM Tivoli Storage Manager: Implementation Guide, SG24-5416 Get More out of your SAN with IBM Tivoli Storage Manager, SG24-6687
Other publications
These publications are also relevant as further information sources: IBM TotalStorage Tape Device Drivers Installation and Users Guide, GC35-0154 IBM TotalStorage Tape Device Drivers Programming Reference, GC35-0346 IBM Ultrium Device Drivers Installation and Users Guide, GA32-0430 IBM TotalStorage 3580 Tape Drive Setup, Operator, and Service Guide, GC26-7708 IBM TotalStorage Ultrium Tape Autoloader 3581 Setup, Operator and Service Guide, GA32-0461 IBM TotalStorage 3581 Tape Autoloader Setup, Operator and Service Guide, GA32-0470 IBM TotalStorage 3582 Setup, Operator, and Service Guide, GA32-0458 The IBM TotalStorage 3583 Tape Library 3583 Setup and Operator Guide for Multi-Path Libraries GA32-0411 IBM TotalStorage 3584 Tape Library Installation and Planning Guide, GA32-0469 IBM TotalStorage UltraScalable Tape Library 3584 SCSI Reference, GA32-0454 IBM TotalStorage 3584 Tape Library Operator Guide, GA32-0468 IBM TotalStorage Enterprise Tape System 3592 Introduction and Planning Guide, GA32-0464 IBM Storage Area Network Data Gateway Module Setup,Operator,and Service Guide , GA32-0436 IBM Storage Area Network Data Gateway Installation and User's Guide, SC26-7304
Copyright IBM Corp. 2002, 2003, 2004, 2005. All rights reserved.
333
IBM SAN Data Gateway Router 2108 Model R03 Installation and User's Guide, SC26-7355 IBM Tivoli Storage Manager for AIX Storage Agent User's Guide, GC32-0771 IBM Tivoli Storage Manager for Sun Solaris Storage Agent User's Guide, GC32-0781 Tivoli Storage Manager for AIX Quick Start, GC32-0770 Tivoli Storage Manager for Sun Solaris Quick Start, GC32-0780 Tivoli Storage Manager for HP-UX Quick Start, GC32-0774
Online resources
These Web sites and URLs are also relevant as further information sources: This is the main Web site for information about IBM LTO products:
http://www.ibm.com/storage/lto
The Linear Tape-Open Technology Organization Web site provides information about the technology, formats and licensing:
http://www.lto-technology.com/
334
HP-UX documentation
http://docs.hp.com/
Solaris documentation
http://docs.sun.com/
QLogic homepage
http://www.qlogic.com
Emulex homepage
http://www.emulex.com
Related publications
335
336
Index
Numerics
3592 18, 20 WORM 21, 222 alternate drive pathing 111, 117 configuring 122 Arbitrated Loop 76 assign drives 66 Atape alternate pathing support 112 control paths 112 Atape alternate pathing support 112 Atape device driver 103 AIX uninstall 125 installation 104 Atdd 140 driver installation 141 installation verification 142 auto media management 277 autochanger configuration (SUN) 258, 262 autochanger maintenance commands 322 automatic control path failover 232 automatic drive path failover 117 automation 12
A
ACDD 142 ACSLS 36 adding a new LTO device 274 Advanced Library Management System. See ALMS AIX 102, 153 Atape device driver 103 device attachment test 323 drive blocksize 112 drive compression 112 drive configuration 111 EEPROM 156 error log 329 FC adapter filesets 153 FC device filesets 153 HBA configuration 156 HBA microcode 154 HBA microcode installation 155 install SDG Specialist 287 installing HBA microcode 155 library element inventory 325 LTO with TSM 203 multiple control path 112 PTF 154 remove device 124 SMIT 106 uninstall Atape device driver 125 verifying Atape 107 AIX commands 321 cfgmgr 79, 98, 118, 285 chdev 115 dd 319 errpt 329 lsattr 97, 156, 330 lscfg 86, 154, 330 lsdev 79, 203 lslpp 103, 330 oslevel 330 rmdev 259 time 319 ALMS 19, 24, 38, 5556 assign drives 66 cartridge assignment policy 64 configuration 61 migration 71 shared drive assignment 57 storage slot pooling 59 using 73 alternate control path configuration 115
B
block size 31 booting FC hosts 318 booting SAN Data Gateway 318
C
CAP 59 Capacity Expansion Feature 23 Capacity On Demand 24 cartridge 222 cartridge assignment policy 59, 64 cartridge I/O station 19 cartridge labeling 216 cartridge memory 7 cartridge policy 64 cfgmgr 79, 98, 285 channel calibration 21 channel zoning 283, 296 cleaning tape drives 219 compression 76, 103, 203, 207, 210, 254, 260, 267 configuration discovery 49 configure non-shared tape library 203 configuring SNMP 302 configuring tape and medium changer devices 107, 129 configuring tape devices 148 configuring the Library Client 224 configuring the Library Manager 223 connecting tape drives to a SDG 282 control path 111 control path failover 12, 16, 25 control paths 112
Copyright IBM Corp. 2002, 2003, 2004, 2005. All rights reserved.
337
D
daisy-chaining 3031, 282 data expansion 21 data flow 32 data path failover 12, 16, 25 data streaming 80 Data Transfer Element 57 define device class 212 define storage pool 215 deleting LTO devices 134 device attachment with tapeutil 323 device driver 31 Atape 103 verifying 107 device drivers 102 DHCP 165, 175 diagnostics 170, 174 disableCC 285 discovery 49 DLT expansion frame 3584-D42 22 dmesg 88, 91, 97 downtime 58 drive automatic failover 117 check firmware 185 compression 76, 103, 213 daisy-chaining 3031 dynamic load balancing 117, 120 element address 245 firmware 109 LUN assignment 293 maximum number 30 microcode download 183 no rewind device 103 update firmware 185 drive path failover 117 drive sharing 38 drives blocksize 148, 203, 207 configuring with AIX 111 daisy-chaining 282 device special names 102 maximum connections 76 medium changer 282 multiple paths 79 upgrade firmware 187 drvconfig 92 dual pathing 84 duplicate drive definitions 79 dynamic drive sharing (DDS) 275 dynamic load balancing 117, 120 dynamic partitioning 24 Dynamically Loadable Kernel Module 142
configuration 163 driver configuration 163 driver installation 160 enabling software zoning 86 firmware 164 firmware and bootcode 164 install driver 160 persistent binding 95 Solaris 95 ethAddrSet 285 expansion frame 21
F
failover 25 FCA 300 FC-AL 76 FCode 160 fcShowDevs 286 fcShowNames 282, 286 Fibre Channel mix disk and tape 80 Fibre Channel HBA installation 153 filesize and tape performance 76 firmware 85, 164, 184185, 290 drive 187 IBM SAN Data Gateway 289 library 186 LTO-TDX 189 RMU 187 FLOGI 100 FMR 185
G
GBIC 15, 282
H
hardware zoning 85 HBA 31 EEPROM 156 firmware 85 microcode 155 number of drives 30 using multiple 79 HD68 33 Hewlett-Packard 4 high availability via control paths 116 HP-UX ACDD 142 Atdd 140 device attachment test 324 device driver 140 error log 329 install SDG StorWatch Specialist 287 library element inventory 325 LTO with TSM 209 persistent binding 97 special file names 102
E
emacs 321 EMC Legato NetWorker see Legato NetWorker Emulex 160 Emulex HBA
338
tapeutil 140, 144, 149 verify Atdd installation 142 HP-UX commands dd 319 fcmsutil 87 ioscan 87, 97, 148, 330 swcopy 144 swinstall 144, 256 swverify 142, 330 time 319 uname 330 HVD 18, 32 HVD model 8
I
IBM 2109 StorWatch Specialist 77 IBM 3494 26 library sharing 36 IBM 3580 7 check installed firmware 184 firmware 184 HVD model 8 installed firmware 184 LVD model 8 IBM 3581 9 check firmware 184 drive firmware 188 firmware 184 installed firmware 184 set IP address 165 update drive firmware 188 IBM 3581 2U RMU 11 SNMP 11 Tape Library Specialist 11 IBM 3582 11 access mode 113 alternate control path 113 check firmware 184 configure SNMP 301 control path failover 12, 113 data path failover 12 diagnostic logs 327 drive firmware 189 firmware 184 general information 11 I/O station 12 Import/Export station 12 installed firmware 184 Library Specialist 165, 168 Library Specialist diagnostics 170 Library Specialist logs 170 Library Specialist menus 169 Library Specialist SNMP 170 Library Specialist users 169 load balancing 12 logs 170 multi-path architecture 12 operator panel 171
partitioning 12 RMU 13, 165, 168, 300 set IP address 168 SNMP 13 Tape Library Specialist 13, 165 update drive firmware 189 IBM 3583 13 alternate control path 113 check firmware 185 configure SNMP 302 control path failover 16, 113 data path failover 16 diagnostic logs 327 drive firmware 189 firmware 185 installed firmware 185 Library Specialist 43 Library Specialist diagnostics 174 Library Specialist logs 174 Library Specialist menu 167, 172 Library Specialist SNMP 173 Library Specialist users 172 load balancing 16 logs 174 multi-path support 16 operator panel 174 partitioning 42 partitioning setup 43 RMU 17, 300 SAN Data Gateway Integrated Module 15, 281 SNMP 17 Tape Library Specialist 17 Ultrium 1 15 Ultrium 2 16 Ultrium 3 16 update drive firmware 189 update firmware 186 IBM 3584 18 3592 drives 18 3592 expansion frame 20 ALMS 19, 24, 55 alternate control path 114 and Legato NetWorker 248 assign drives 66 base frame 18, 20 base library 21 Capacity Expansion Feature 23 Capacity On Demand 24 cartridge assignment policy 64 cartridge I/O station 19 check firmware 185 control path 111 control path failover 25, 114 data path failover 25 diagnostic logs 327 drive firmware 189 dynamic partitioning 24 Ethernet 300 expansion frame 19, 21 FCA 300
Index
339
firmware 185 frame for 3592 20 high availability 116 high availability frame 19 I/O station 21 IEE 60 insert notification 59 installed firmware 185 L32 21 library accessor 19 Library Specialist 47, 175 Library Specialist menus 176 Library Specialist password 182 Linux zSeries 27 load balancing 25 logical libraries 45 logical library 24 logs 327 MAC address 175 MCP 164 Model D22 20 Model D32 21 Model D52 19 Model HA1 19 Model L22 20 Model L52 18 multi-path architecture 24 partition with labels 47 partitioning 45, 47 serial number 111 service bays 19 set IP address 175 SMI-S agent 27 storage slot pooling 24 tape library specialist 18 Ultrium 1 21 update drive firmware 189 VIEE 60 virtual I/O 25, 60 zSeries attach 20 IBM 3592 221 scaling 221 segmentation 221 IBM SAN Data Gateway 7, 29, 130 data transfer rate 282 fcShowNames 282 get WWN 282 install firmware 289 install Specialist 287 install StorWatch Specialist 287 Library Specialist 285 rebooting 318 setup 284 Specialist 283, 286 IBM SAN Data Gateway commands disableCC 285 ethAddrSet 285 fcShowDevs 286 fcShowNames 286 initializeBox 284
reboot 286, 318 scsiRescan 286, 318 setHost 285 userAdd 285 IBM SAN Fibre Channel Switch 77 IBM Tape Library Specialist 18 IBM TotalStorage 3580 Tape Drivesee IBM 3580 IBM TotalStorage 3581 2U Tape Autoloader see IBM 3581 2U IBM TotalStorage 3581 Tape Autoloader see IBM 3581 IBM TotalStorage 3582 Tape Library see IBM 3582 IBM TotalStorage 3583 Tape Library see IBM 3583 IBM TotalStorage 3584 Tape Library see IBM 3584 IBM TotalStorage 3588 Tape Drive Model F3A 20 IBM TotalStorage UltraScalable Tape Library 3584 see IBM 3584 IBM TotalStorage Virtual Tape Server 26 IBM3581 firmware 184 IBMtape verification 133 IBMtape device driver Solaris installation 126 IBMtape.conf 129, 134, 265 IEE 25, 60 Import/Export station 12 initializeBox 284 inquire 262 Insert Notification 59 inserting data and cleaner cartridges 216 inserting unlabeled data cartridges 218 install StorWatch SDG Specialist 286 installation in a HP-UX environment 255 installation in a Solaris environment 251 installation in an AIX environment 249 installation using the SMIT interface 106 installation verification 270 installing library and device drivers 102 installing Tivoli Storage Manage 202 Integrated SAN Data Gateway Module 15, 281 Intermediate 58 inventory 325 inventorying volumes with barcode 272 ISV software 28
J
Java 165 JNI 164
K
Korn shell 321
L
labeling data cartridges 216 labeling volumes with barcode 272 LAN-free backup 39, 178, 201, 226 LAN-free data transfer 201, 226 LCD 171
340
Legato NetWorker 248 and IBM 3584 248 auto media management 277 autochanger sharing 276 cleaning tape drives 260, 266 client 248 compression 254, 260, 267 configure jukebox 260, 266 daemons 251, 255, 258 drive sharing 275 dummy devices 248 dynamic drive sharing 275 element addresses 248 installation 249 inventorying libraries 272 labeling cartridges 272 License Manager 248 server 248 storage node 248 Legato NetWorker commands 262, 322 inquire 248, 258, 262263 inventory 273 jb_config 248 jbconfig 260, 266, 277 nsr_ize 249 nwadmin 270 sjirdtag 248 sjirelem 248 sjirjc 263 Legato NetWorker exploitation 275 Legato NetWorker implementation 258 Legato NetWorker use 258 libraries 237 library check firmware 185 device drivers 102 firmware download 186 serial number 111 library accessor 19 library client 224 library management 36 Library Manager 224 library sharing definitions 36 Legato NetWorker 275 TSM 223 Library Specialist 165, 168, 182 3584 175 diagnostics 170, 174 IBM 3582 168 operator panel 171, 174 users 169, 172 Linear Tape Open initiative 4 Linux Red Hat 27 SUSE 27 zSeries 27 Linux commands dd 319 load balancing 12, 16, 25
logical library 16, 24, 37 logs 327 lpfc.conf 95, 163 lpfs.conf 95 lputil 164 lsattr 97 lscfg 86, 154 lsdev 79, 203 LTO 4 automation 12 block size 31 buying media 216 cartridge memory 7 compression 76 duplicate drive definitions 79 firmware 184 HP-UX device driver 140 logical library 16 logs 327 media compatibility 6 mixed media with TSM 237 multi-path architecture 41 partitioning 37 remove device 124, 134 roadmap 4 supported operating systems 27 supported servers 27 technology migration with TSM 237 troubleshooting 327 update firmware 185 Vital Product Data selection 185 WORM 6, 220 LTO 1 tape capacity 5 LTO 2 tape capacity 5 LTO drive blocksize 112 compression 112 LTO driver 102 installation for HP-UX 140 installation for Solaris 126 LTO roadmap 5 LTO Ultrium 4 LTO-DC 21 LTO-TDX 189 LUN 103 LUN mapping 293 LUN masking 296 LVD 18, 32 LVD model 8
M
MAC address 175 magazine 42 Management Information Base (MIB) 300, 308 Maximum Number of Cartridges 56 McData 156 MCP 164, 175 media compatibility 6 Index
341
media suppliers 216 medium changer 3738 device attachment test 323 LUN mapping 293 migration of LTO 237 mixed media 237 mtlib 26, 36 multi-path architecture 12, 24, 37, 41 multi-path support 16 multiple paths to tape drives 79 multiple tape paths 79
removing Atape driver 125 RMU 17, 164165, 168, 300 firmware download 188 update firmware 187 roadmap 45
S
SAN bandwidth 76 channel zoning 296 fabric 76 performance 76 performance statistics 78 Simple Name Server 85 switch 84 tapes and libraries 75 TSM device mapping 244 WWN 85 WWNN 86 WWPN 86 zoning 79, 83 SAN Data Gateway 15, 281 SAN discovery 245 SANergy 199 SCALECAPACITY 221 scratch pool 40 SCSI cable connectors 33 mix disk and tape 80 SCSI commands release 178 reserve 178 SCSI direct attach 29 SCSI element address 55 SCSI Medium Changer 282 SCSI storage element address 56 SCSI target IDs 89, 95 scsiRescan 286, 318 SDG install firmware 290 SCSI LUN mapping 293 setup 284 WWN 282 SDLC 21 Seagate 4 service bays 19 setHost 285 sharing autochangers 276 Simple Name Server 85 slot pooling 55 SMI-S 27 SMIT 106 SNIA 100 SNMP 11, 13, 17, 74, 170, 173, 299300, 307 Community Name 306 Set Destination IP Address 306 test trap 307 traps 305, 307 SNMP alerts 300 software installation
N
NAS 229 NDMP backup with Tivoli Storage Manager 230 metadata 230 network 229 Network Attached Storage see NAS no rewind on close 103
O
On-Demand Express Portfolio 8, 11
P
partitioning 12 password protection 182 performance block size 31 performance considerations 318 performance hints for TSM and LTO 219 persistent binding 75, 79, 8889 Emulex HBA 95 QLogic HBA 93 PLOGI 100 point-to-point 76 pSeries Fibre Channel HBA installation 153 HBA microcode installation 155
Q
qla2200.conf 93, 159 QLogic 157 QLogic HBA configuration 159 driver installation 157 FCode 160 install driver 157 on Solaris 93 persistent binding 93
R
reboot 286 Redbooks Web site 335 Contact us xvii redundant library control paths 232, 234 Remote Management Unit (RMU) 11, 13, 17
342
AIX 249 HP-UX 256 Solaris 251 software zoning 85 Solaris device attachment test 324 error log 329 get HBA WWN 8788 HBA 157 HBA configuration 159, 163 IBMtape.conf 259, 265 install IBMtape device driver 126 install SDG StorWatch Specialist 287 library element inventory 325 LTO with TSM 206 remove device 134 special file names 102 st.conf 266 verifying IBMtape 133 volume manager 159 Solaris commands 321 dd 319 dmesg 88, 91, 97, 132 drvconfig 92 lputil 164 pkgadd 159, 161, 252 pkginfo 160, 330 time 319 uname 330 special device file name 102 special file names 102 Srorwatch Specialist IBM SAN Data Gateway 318 st.conf 266 storage slot pooling 24 Streaming Lossless Data Compression (SLDC) 21 switch commands portperfshow 320
T
tape alert 235 tape categories 37 tape directory 21 tape drive device drivers 102 tape library partitioning 35, 200 sharing 35 tape library commands 322 Tape Library Specialist 11, 13, 17, 164, 168 IBM 3582 165 update RMU firmware 187 TapeAlert 235 tapeutil 111, 134, 140, 144, 149, 208, 263, 327 device attachment tests 323 element inventory 325 library element inventory 325 upgrade drive firmware 187 upgrade library firmware 186 Tivoli NetView 301, 303
troubleshooting 327 TSM automatic control path failover 232 client 199 client compression 214 commonly used terms 199 data migration 237 define device class 212 define storage pool 215 device classes 212 device co-existence 237 device mapping 244 device mapping - new functions 244 dsm.opt 220 dsm.sys 220 dsmserv.opt 220 element autodetection 244 element number autodetection 244245 insert cleaner cartridge 219 insert data cartridges 217 labeling cartridges 216 LAN-free backup 201, 226 library client 201, 224 Library Manager 200, 224 Library Manager Server 223 library sharing 200, 223 LTO migration 237 metadata 227 migration and co-existence 237 mixed generation device 237 mixed media libraries 237 MOUNTLIMIT 214 mountlimit 239 multiple control paths 232 performance hints 219 SAN device mapping 244 SAN discovery 244245 SCALECAPACITY 221 scratch volumes 226 serial number autodetection 244245 server 199 server-to-server communication 224 server-to-server communications 201 Storage Agent 227 storage pools 215 supported platforms 198 tape alert 235 tape cleaning 206, 209, 212 tape library 199 TXNBytelimit 220 TXNGroupmax 220 unlabeled cartridges 218 TSM commands 322 AUDIT LIBRARY 330 CHECKIN LIBVOLUME 219 DEFINE DEVCLASS 212, 214 DEFINE DRIVE 204, 206207, 209210, 212, 224, 245 DEFINE LIBRARY 204, 207, 210, 224, 245 DEFINE PATH 204, 207, 209210, 212, 229, 245
Index
343
DEFINE STGPOOL 215 LABEL LIBVOLUME 216218 QUERY ACTLOG 217 QUERY LIBVOLUME 216, 225 QUERY PATH 225 QUERY REQUEST 217 REPLY 217 SET CROSSDEFINE 224 SET SERVERHLADDRESS 224 SET SERVERLLADDRESS 224 SET SERVERNAME 224 SET SERVERPASSWORD 224 SET TAPEALERTMSG 236 TSM devclass 3592 format 213 3592c format 213 Ultrium format 213 Ultrium2 format 213 Ultrium2c format 213 Ultriumc format 213 TSM for NDMP 230 configurations 230 expiration and retention policies 231 requirements 230
X
XWindows 106
Z
zoning 75, 79, 83 and dual pathing 84 hardware 85 SNS 85 software 85 zSeries and IBM 3584 20
U
Ultrium 4 roadmap 4 Ultrium 1 5 Ultrium 2 5 Ultrium device driver 83 Ultrium Tape Library Specialist 165, 168 UNIX library element inventory 325 use StorWatch SDG Specialist 286 userAdd 285 using the StorWatch Specialist 47
V
verifying the Atape driver installation 107 verifying the atdd driver installation 142 verifying the IBMtape driver installation 133 VHDCI 15, 33, 282 VHDCI cable connectors 33 VIEE 26, 60 virtual I/O 25, 60 Virtual Private SAN 283, 296 Vital Product Data selection 185 Volser 55, 59, 74 VTS 26
W
Windows install SDG StorWatch Specialist 288 WORM 56, 21, 220, 222 WWN 8485, 88, 282 of HBA on Solaris 8788 of SDG 282
344
Back cover