Вы находитесь на странице: 1из 462

Front cover

Get More Out of Your SAN with IBM Tivoli Storage Manager
Provides detailed planning, installation, and configuration scenarios Describes new features for Tivoli Storage Manager V5.3 Includes flowcharts for troubleshooting

Charlotte Brooks Michel Baus Denver Daley Richard Lanicca

ibm.com/redbooks

International Technical Support Organization Get More Out of Your SAN with IBM Tivoli Storage Manager June 2005

SG24-6687-00

Note: Before using this information and the product it supports, read the information in Notices on page xv.

First Edition (June 2005) This edition applies to Version 5, Release 3 of IBM Tivoli Storage Manager and related products.

Copyright International Business Machines Corporation 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 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvi Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii The team that wrote this redbook. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii Become a published author . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xviii Comments welcome. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xix Chapter 1. Introduction to SANs and IBM Tivoli Storage Manager . . . . . . . . . . . . . . . . 1 1.1 Overview of Storage Area Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.2 Introduction to Tivoli Storage Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.3 Tivoli Storage Manager SAN functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.4 Tivoli Storage Manager V5.3 latest SAN functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 1.5 Tivoli Storage Manager SAN functions and products . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Chapter 2. Tape library sharing planning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.1 Library sharing overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.1.1 Library partitioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.1.2 Library sharing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 2.2 Components of library sharing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 2.2.1 Library Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 2.2.2 Library Client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 2.2.3 Library medium changer and library control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 2.2.4 Library drives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 2.2.5 Library control path failover. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 2.2.6 Data path failover . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 2.3 Benefits of tape library sharing with Tivoli Storage Manager . . . . . . . . . . . . . . . . . . . . 18 2.4 Requirements for tape library sharing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 2.5 Tasks with Tivoli Storage Manager library sharing . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 2.5.1 Library Manager as a single Tivoli Storage Manager Server without Tivoli Storage Manager client data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 2.5.2 Tivoli Storage Manager server maintenance planning . . . . . . . . . . . . . . . . . . . . . 20 2.5.3 Library drive reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 2.5.4 Drive allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 2.5.5 Deleting a library volume on the Library Manager . . . . . . . . . . . . . . . . . . . . . . . . 22 2.6 Moving to a dedicated Tivoli Storage Manager Library Manager . . . . . . . . . . . . . . . . . 24 2.6.1 Preparing the new Tivoli Storage Manager Library Manager instance . . . . . . . . . 28 2.6.2 Checking the server-to-server communication . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 2.6.3 Stop all activities on all Tivoli Storage Manager servers. . . . . . . . . . . . . . . . . . . . 29 2.6.4 Backing up the Tivoli Storage Manager database for all Tivoli Storage Manager servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 2.6.5 Listing all library volumes on the original Library Manager . . . . . . . . . . . . . . . . . . 30 2.6.6 Checking out library volumes on the original Library Manager . . . . . . . . . . . . . . . 30 2.6.7 Creating library definitions on the new Library Manager. . . . . . . . . . . . . . . . . . . . 31 2.6.8 Checking in library volumes on the new Library Manager . . . . . . . . . . . . . . . . . . 32 2.6.9 Deleting and defining the library on the old Library Manager . . . . . . . . . . . . . . . . 33 2.6.10 Deleting unneeded volume history entries on the old Library Manager . . . . . . . 34
Copyright IBM Corp. 2005. All rights reserved.

iii

2.6.11 Updating all libraries on all Library Clients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.7 Command differences in a library sharing environment . . . . . . . . . . . . . . . . . . . . . . . . 2.7.1 Auditing the library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.7.2 The QUERY MOUNT and QUERY DRIVE commands. . . . . . . . . . . . . . . . . . . . . 2.8 Interactions between Library Manager and Library Client. . . . . . . . . . . . . . . . . . . . . . . Chapter 3. SCSI tape library sharing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.1 Introduction to SCSI tape library sharing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.1.1 SCSI libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.1.2 Library medium changer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2 Library sharing with SCSI/FC tape libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2.1 SAN zoning information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2.2 Installing on IBM AIX. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2.3 Installing on Microsoft Windows 2000. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2.4 Installing on Linux . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2.5 Installing on SUN Solaris . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3 Tivoli Storage Manager configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3.1 With the Tivoli Storage Manager Administration Center . . . . . . . . . . . . . . . . . . . . 3.3.2 With the Tivoli Storage Manager command line interface. . . . . . . . . . . . . . . . . . .

36 37 37 38 40 43 44 44 44 46 46 47 54 63 68 73 73 90

Chapter 4. IBM 3494 tape library sharing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 4.1 Introduction to the IBM 3494 tape library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 4.1.1 IBM 3494 Library Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 4.1.2 Categories in an IBM 3494 library. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 4.2 Library Sharing with the IBM 3494 Tape Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 4.2.1 Installing on IBM AIX. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 4.2.2 Installing on Microsoft Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 4.2.3 Installing on Linux . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 4.2.4 Installing on SUN Solaris . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 4.3 Tivoli Storage Manager configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 4.3.1 Configuring server-to-server communication on the Library Manager . . . . . . . . 123 4.3.2 Defining the library on the Library Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 4.3.3 Defining the library path on the Library Manager . . . . . . . . . . . . . . . . . . . . . . . . 124 4.3.4 Defining the drives for this library on the Library Manager . . . . . . . . . . . . . . . . . 124 4.3.5 Defining the drive paths on the Library Manager . . . . . . . . . . . . . . . . . . . . . . . . 124 4.3.6 Defining a device class using the library on the Library Manager. . . . . . . . . . . . 124 4.3.7 Checking in library volumes on the Library Manager . . . . . . . . . . . . . . . . . . . . . 124 4.3.8 Creating the server-to-server communication on the Library Client . . . . . . . . . . 124 4.3.9 Defining the library on the Library Client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 4.3.10 Defining the drives path for the Library Client on the Library Manager. . . . . . . 125 4.3.11 Defining a device class that uses the library on the Library Client . . . . . . . . . . 125 Chapter 5. Library sharing with the ACSLS Manager . . . . . . . . . . . . . . . . . . . . . . . . . 5.1 Introduction to the ACSLS Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.1.1 Basic communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.2 Tivoli Storage Manager library sharing with the STK ACSLS Manager . . . . . . . . . . . 5.2.1 Installing on IBM AIX. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.2.2 Installing on Microsoft Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.2.3 Installing on Linux . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.2.4 Installing on SUN Solaris . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.3 Tivoli Storage Manager configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.3.1 Defining server-to-server communication on the Library Manager . . . . . . . . . . . 5.3.2 Setting the ACSLS options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.3.3 Defining the library on the Library Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv
Get More Out of Your SAN with IBM Tivoli Storage Manager

127 128 129 130 131 134 139 142 149 150 151 153

5.3.4 Defining the drives for this library on the Library Manager . . . . . . . . . . . . . . . . . 5.3.5 Defining the drives path on the Library Manager . . . . . . . . . . . . . . . . . . . . . . . . 5.3.6 Defining a device class that uses the library on the Library Manager. . . . . . . . . 5.3.7 Checking in library volumes on the Library Manager . . . . . . . . . . . . . . . . . . . . . 5.3.8 Defining server-to-server communication on the Library Client . . . . . . . . . . . . . 5.3.9 Defining the library on the Library Client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.3.10 Defining the drive path for the Library Client on the Library Manager. . . . . . . . 5.3.11 Defining a device class that uses the library on the Library Client . . . . . . . . . . 5.3.12 Checking the setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 6. Planning for LAN-free. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.1 Details about LAN-free backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.2 When to use LAN-free data movement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.3 The ideal LAN-free client machine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.4 Supported operating systems and requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.5 Configuration preparations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.5.1 Obtaining the device name(s) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.6 Compatibility concerns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 7. LAN-free backup to tape . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.1 Overview of the lab environment. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.2 Setting up a policy domain for LAN-free clients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.2.1 Setting up a policy domain from the Administration Center . . . . . . . . . . . . . . . . 7.2.2 Setting up a policy domain using the command line interface . . . . . . . . . . . . . . 7.3 Registering a new client node . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.3.1 Registering the node from the Administration Center . . . . . . . . . . . . . . . . . . . . . 7.3.2 Registering the node using the command line interface . . . . . . . . . . . . . . . . . . . 7.4 Enabling LAN-free data movement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.4.1 Setting LAN-free from the Administration Center . . . . . . . . . . . . . . . . . . . . . . . . 7.4.2 Setting up LAN-free data movement using the command line interface . . . . . . . 7.4.3 Configuring the client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.5 Configuring the Storage Agent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.5.1 Configuring the Storage Agent from the Management Console . . . . . . . . . . . . . 7.5.2 Configuring the Storage Agent using the command line interface . . . . . . . . . . . 7.6 Verifying the LAN-free path . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.7 Communicating with and monitoring the Storage Agent . . . . . . . . . . . . . . . . . . . . . . . 7.7.1 Querying from the Tivoli Storage Manager server . . . . . . . . . . . . . . . . . . . . . . . 7.7.2 Using the command line interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.8 Configuring other Tivoli products for LAN-free . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 8. LAN-free backup to disk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8.1 Introduction to LAN-free backup to disk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8.2 Preconfiguration: Setting up SANergy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8.3 Overview of the lab environment. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8.4 Summary of LAN-free disk configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8.5 Setting up the SAN-attached disk device on the Tivoli Storage Manager server . . . . 8.5.1 Setting up the SAN disk device from the Administration Center . . . . . . . . . . . . . 8.5.2 Setting up the SAN disk device using the command line interface . . . . . . . . . . . 8.6 Creating a policy domain for LAN-free clients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8.6.1 Creating a policy domain from the Administration Center. . . . . . . . . . . . . . . . . . 8.6.2 Creating a policy domain using the command line interface. . . . . . . . . . . . . . . . 8.7 Registering client node(s) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8.7.1 Registering the node from the Administration Center . . . . . . . . . . . . . . . . . . . . . 8.7.2 Registering a node using the command line interface . . . . . . . . . . . . . . . . . . . .
Contents

153 154 154 154 155 155 155 156 156 159 160 161 162 164 165 166 169 171 172 174 174 179 179 179 181 182 182 189 191 193 194 199 200 203 203 203 204 207 208 208 209 213 213 213 219 222 222 226 227 227 229 v

8.8 Setting up server-to-server communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8.8.1 Setting up server-to-server communication from the Administration Center. . . . 8.8.2 Setting up server-to-server communication using the command line interface. . 8.9 Installing and configuring the client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8.9.1 LAN-free options (used between the client and the Storage Agent) . . . . . . . . . . 8.10 Configuring the Storage Agent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8.10.1 Setting up the Storage Agent from the Administration Center . . . . . . . . . . . . . 8.10.2 Setting up the Storage Agent using the command line interface . . . . . . . . . . . 8.11 Enabling LAN-free data movement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8.11.1 Enabling LAN-free from the Administration Center . . . . . . . . . . . . . . . . . . . . . . 8.11.2 Enabling LAN-free with the command line interface . . . . . . . . . . . . . . . . . . . . . 8.12 Verifying the LAN-free path . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 9. Tivoli Storage Manager SAN Discovery . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.1 SAN device mapping. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.2 New or updated Tivoli Storage Manager commands . . . . . . . . . . . . . . . . . . . . . . . . . 9.2.1 SANDISCOVERY server option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.2.2 QUERY SAN command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.2.3 DEFINE LIBRARY command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.2.4 DEFINE DRIVE serial number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.2.5 DEFINE DRIVE element number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.2.6 SAN Discovery error messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.2.7 New Tivoli Storage Manager messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.3 Platform support and usage instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.3.1 Information for Windows systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.3.2 Information for AIX systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.3.3 Information for Linux systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.3.4 Information for Solaris systems. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.4 Example of the automatic device mapping feature . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 10. Server-free data movement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10.1 Overview of server-free data movement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10.1.1 Related options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10.1.2 Data format for server-free data movement . . . . . . . . . . . . . . . . . . . . . . . . . . . 10.2 Requirements for server-free data movement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10.2.1 Preparing for server-free data movement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10.3 Server-free data movement in our lab environment . . . . . . . . . . . . . . . . . . . . . . . . . 10.3.1 Server-free backup and restore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

230 230 234 235 235 236 237 241 243 243 249 249 253 254 255 255 255 256 257 257 258 259 259 259 260 260 261 261 267 268 270 271 272 272 277 286

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293 11.1 Introduction to Data Protection for mySAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294 11.2 Overview of the test environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295 11.2.1 Overview of the procedures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296 11.3 Requirements and prerequisites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297 11.3.1 Hardware requirements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297 11.3.2 Software requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297 11.3.3 Storage classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299 11.4 Installation for this environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300 11.4.1 mySAP and Oracle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300 11.4.2 Tivoli Storage Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 302 11.4.3 Tivoli Storage Manager for Hardware: Data Protection for IBM ESS for mySAP 319 11.4.4 Backup and restore commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329 vi
Get More Out of Your SAN with IBM Tivoli Storage Manager

11.5 Backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 330 11.5.1 FlashCopy Backup OFFLINE_MIRROR NOCOPY to Tivoli Storage Manager 331 11.5.2 FlashCopy Backup ONLINE_MIRROR Disk-only INCR . . . . . . . . . . . . . . . . . . 343 11.6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Restore356 11.6.1 FlashBack Restore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 356 11.7 Special environments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 372 11.7.1 AIX LVM mirroring. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 372 11.7.2 AIX HACMP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373 11.7.3 Multiple backup generations on disk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 374 11.8 Determining problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376 11.8.1 Diagnostic commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376 11.8.2 Summary of various logs and traces. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376 11.8.3 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 377 Chapter 12. Backing up SAN File System with Tivoli Storage Manager . . . . . . . . . . 379 12.1 SAN File System overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 380 12.1.1 SAN File System architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 381 12.2 Backing up SAN File System with Tivoli Storage Manager. . . . . . . . . . . . . . . . . . . . 382 12.2.1 Benefits of Tivoli Storage Manager with SAN File System . . . . . . . . . . . . . . . . 382 12.3 Backup and restore scenarios with Tivoli Storage Manager . . . . . . . . . . . . . . . . . . . 383 12.3.1 Backing up user data in Windows filesets using Tivoli Storage Manager client for Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384 12.3.2 Backing up user data in UNIX filesets with Tivoli Storage Manager client for AIX . 387 12.3.3 Backing up FlashCopy images with Tivoli Storage Manager the -snapshotroot option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 390 12.4 Special environments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 398 12.4.1 Large quantity of data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 398 12.4.2 Large amounts of files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 399 Chapter 13. General troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13.1 Introduction to troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13.1.1 Step 1.1: QUERY SAN command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13.1.2 Step 1.2: Is the correct device driver installed . . . . . . . . . . . . . . . . . . . . . . . . . 13.1.3 Step 1.3: Test the device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13.1.4 Step 1.4: Powercycle the device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13.1.5 Step 1.5: Confirm that the path is online . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13.1.6 Step 1.6: Update the path . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13.1.7 Step 1.7: q path f=d. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13.1.8 Step 1. 8: Confirm that the path points to the correct device . . . . . . . . . . . . . . 13.1.9 Step 1. 9: Contact the vendor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13.2 Library and SAN troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13.2.1 Step 2.1: Is the device visible in SAN Nameserver. . . . . . . . . . . . . . . . . . . . . . 13.2.2 Step 2.2: Check cables for drive etc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13.2.3 Step 2.3: Is the zoning correct . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13.2.4 Step 2.1: Is the server visible in SAN Nameserver . . . . . . . . . . . . . . . . . . . . . . 13.2.5 Step 2.2: Check cables for server etc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13.2.6 Step 2.6: Check HBA drivers and firmware. . . . . . . . . . . . . . . . . . . . . . . . . . . . 13.2.7 Step 2.7: Contact the vendor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13.3 Operating system and drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13.3.1 Step 3.1: Is this an IBM device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13.3.2 Step 3.2: Check the Tivoli Storage Manager device driver . . . . . . . . . . . . . . . . 13.3.3 Step 3.3: Check the IBM tape device driver . . . . . . . . . . . . . . . . . . . . . . . . . . . 401 402 404 404 404 406 407 407 408 408 408 409 410 410 411 411 411 411 411 412 413 413 413

Contents

vii

13.3.4 Step 3.4: Discover new devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13.3.5 Step 3.5: Is the device visible to the operating system . . . . . . . . . . . . . . . . . . . 13.3.6 Step 3.6: Contact the vendor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13.4 Troubleshooting library sharing configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13.4.1 Re-synchronizing server-to-server communication. . . . . . . . . . . . . . . . . . . . . . 13.4.2 Define library path fails for IBM 3494 Tape Library. . . . . . . . . . . . . . . . . . . . . . 13.4.3 ACSLS volume already locked . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13.4.4 ACSLS SSI Daemon requires correct name resolution . . . . . . . . . . . . . . . . . . 13.4.5 Cannot connect to a Windows Tivoli Storage Manager server instance. . . . . . Appendix A. Understanding TCP/IP ports for LAN-free in Tivoli Storage Manager . Introduction to TCP/IP ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . TCP/IP port definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Server ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Client ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Storage Agent ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Related publications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IBM Redbooks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Other publications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . How to get IBM Redbooks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Help from IBM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

413 413 418 418 418 419 419 420 420 421 422 423 423 424 424 425 425 425 426 426

Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427

viii

Get More Out of Your SAN with IBM Tivoli Storage Manager

Figures
1-1 1-2 1-3 1-4 1-5 1-6 2-1 2-2 2-3 2-4 2-5 2-6 2-7 2-8 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 3-16 3-17 3-18 3-19 3-20 3-21 3-22 3-23 3-24 3-25 3-26 3-27 3-28 3-29 3-30 3-31 3-32 3-33 3-34 Common SAN components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Traditional LAN based backup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 LAN-free tape and disk backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Server-free data movement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 FlashCopy backup via a SAN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Typical tape library sharing configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Library partitioning into multiple logical libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Library sharing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 SCSI library control path failover . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Data path failover with one SAN fabric . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Data path failover with two SAN fabrics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Library Manager instance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Before the Library Manager move . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 After the Library Manager move . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 SCSI/FC attached tape library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 SCSI/FC attached tape library with control path failover . . . . . . . . . . . . . . . . . . . . . . 45 SCSI library sharing overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 SAN zoning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 Device Manager: Without IBM tape driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 Device Manager: Tape drive properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 Device Manager: Tape drive update . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 Device Manager: Tape drive update - choose a specific driver . . . . . . . . . . . . . . . . . 56 Device Manager: Tape drive update - have a disk . . . . . . . . . . . . . . . . . . . . . . . . . . 56 Device Manager: Tape drive update - select inf file. . . . . . . . . . . . . . . . . . . . . . . . . . 57 Device Manager: Tape drive update - drive models . . . . . . . . . . . . . . . . . . . . . . . . . 57 Device Manager: Tape medium changer update. . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 Device Manager: Tape medium changer update. . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 Device Manager: Tape medium changer update - choose a specific driver . . . . . . . 59 Device Manager: Tape medium changer update - have a disk . . . . . . . . . . . . . . . . . 60 Device Manager: Tape medium changer update - choose directory . . . . . . . . . . . . . 60 Device Manager: Tape medium changer update - models . . . . . . . . . . . . . . . . . . . . 61 Device Manager: With the IBM device driver. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 MMC: Tivoli Storage Manager Device Driver menu. . . . . . . . . . . . . . . . . . . . . . . . . . 62 MMC: Tivoli Storage Manager Device Driver - Drive information . . . . . . . . . . . . . . . 62 Lab configuration overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 Library Manager: Query Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 Library Manager: enter name and type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 Library Manager: Define library changer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 Library Manager: Add drive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 Library Manager: Define path for drive one . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 Library Manager: Define path for drive two . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 Library Manager: Drives and paths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 Library Manager: Library wizard summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 Library Manager: Shared library defined . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 Library Manager: Query all device classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 Library Manager: Defined device classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 Library Manager: Wizard for the device class definition . . . . . . . . . . . . . . . . . . . . . . 79 Library Manager: Device class name and library assortment . . . . . . . . . . . . . . . . . . 80

Copyright IBM Corp. 2005. All rights reserved.

ix

3-35 3-36 3-37 3-38 3-39 3-40 3-41 3-42 3-43 3-44 3-45 3-46 3-47 3-48 3-49 3-50 4-1 4-2 4-3 4-4 4-5 4-6 4-7 4-8 4-9 4-10 4-11 5-1 5-2 5-3 5-4 5-5 5-6 5-7 5-8 5-9 5-10 5-11 5-12 6-1 6-2 7-1 7-2 7-3 7-4 7-5 7-6 7-7 7-8 7-9 7-10 7-11 7-12 x

Library Manager: All defined device classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 Library Manager: Library settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 Library Manager: Add volumes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 Library Manager: Are the volumes labeled . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 Library Manager: Where are the volumes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 Library Manager: Check in libvolumes options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 Library Manager: Check in waittime. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 Library Manager: Check in summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 Library Manager: Query libvolumes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 Library Client: Create the library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 Library Client: Create library wizard. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 Library Client: Define the primary Library Manager . . . . . . . . . . . . . . . . . . . . . . . . . . 87 Library Client: Define path for the shared drives . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 Library Client: Define path for drive one . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 Library Client: Path for both drives defined . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 Library Client: Device class definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 IBM 3494 Library sharing overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 Windows IBM Automated Tape Library Service . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 Windows: Device Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 Windows: HW update wizard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 Windows: Driver search . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 Windows: Select driver directory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 Windows: Select tape driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 Windows: Model select . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 Windows: Driver compatibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 Windows: MMC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 3494 configuration overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 ACSLS configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 Tivoli Storage Manager SSI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 Tape Library sharing with ACSLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 STK LibAttach configurator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135 STK Microsoft Windows service entry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135 Windows: Update drive driver step 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136 Windows: Update drive driver step 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137 Windows: Update drive driver step 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137 Windows: Update drive driver step 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138 Windows: Update drive driver step 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138 Windows: Management Console, device information . . . . . . . . . . . . . . . . . . . . . . . 139 Lab overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150 Steps for a LAN-free backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161 Small file effect on LAN-free backups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163 LAN-free environment in our lab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173 The Policy Domains screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174 The current policy domains show up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174 The Create Policy Domain General screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175 Create Policy Domain Storage Pools screen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175 Create Policy Domain Assign Client Node Now? screen. . . . . . . . . . . . . . . . . . . . . 176 Create Policy Domain, Summary screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176 List of policy domains. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177 Create Policy Domain Assign Client Node View Clients screen . . . . . . . . . . . . . . . 177 Create Policy Domain, Assign Client Nodes, Select a client node to assign . . . . . . 178 Create Policy Domain Summary after selecting a client to assign. . . . . . . . . . . . . . 178 Tivoli Storage Manager servers and their policy domains . . . . . . . . . . . . . . . . . . . . 180

Get More Out of Your SAN with IBM Tivoli Storage Manager

7-13 7-14 7-15 7-16 7-17 7-18 7-19 7-20 7-21 7-22 7-23 7-24 7-25 7-26 7-27 7-28 7-29 7-30 7-31 7-32 7-33 7-34 7-35 7-36 7-37 7-38 8-1 8-2 8-3 8-4 8-5 8-6 8-7 8-8 8-9 8-10 8-11 8-12 8-13 8-14 8-15 8-16 8-17 8-18 8-19 8-20 8-21 8-22 8-23 8-24 8-25 8-26 8-27

Policy domains for a Tivoli Storage Manager server . . . . . . . . . . . . . . . . . . . . . . . . Newly defined node. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Start the Server-to-Server communication settings . . . . . . . . . . . . . . . . . . . . . . . . . Server-to-Server Settings input screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Select node and Enable LAN-free Data Movement . . . . . . . . . . . . . . . . . . . . . . . . . LAN-Free client configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Verify Data Transfer Settings screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Create or Select Storage Agent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Create Storage Agent screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Select Storage Pool screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Create Drive Paths screen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Modify Drive Path screen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Create Drive Paths screen showing assigned device names . . . . . . . . . . . . . . . . . Configure Another Storage Pool? screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LAN-free setup complete . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LAN-free backup using a dedicated Storage Agent. . . . . . . . . . . . . . . . . . . . . . . . . Management console showing Tivoli Storage Manager StorageAgent1 expansion Start Storage Agent Initialization wizard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . The Welcome to the Storage Agent Initialization Wizard screen . . . . . . . . . . . . . . . The Tivoli Storage Manager Server Account Information screen filled in . . . . . . . . Tivoli Storage Manager Server Communication Information screen completed . . . Storage Agent Account Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Completing the Storage Agent Initialization Wizard. . . . . . . . . . . . . . . . . . . . . . . . . The Storage Agent has been initialized . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Storage Agent service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Example of Backup-Archive Client that shows bytes transferred using LAN-free . . The LAN-free to disk setup in our lab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SAN-attached disks to be accessed for LAN-free backup . . . . . . . . . . . . . . . . . . . . MDC shares the drives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SANergy managed buses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SANergy device assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Volumes assigned to TONGA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SANergy shared disks accessed on SENEGAL . . . . . . . . . . . . . . . . . . . . . . . . . . . Servers screen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Device Classes screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Select Device Type screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Shared file device class definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Create Device Summary screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Newly created device class SANDISK, with file library called SANDISK. . . . . . . . . New library is listed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Servers screen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Create Storage Pools screen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . General Storage Pool Settings screen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Select a Device Class screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Create Storage Pool Summary screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . New storage pool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Policy Domains screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . List of policy domains. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Policy Domain General screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Specify storage pool for the policy domain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Create Policy Domain Assign Client Nodes Now? screen. . . . . . . . . . . . . . . . . . . . Create Policy Domain Summary screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Create Policy Domain Assign Client nodes screen . . . . . . . . . . . . . . . . . . . . . . . . .
Figures

180 181 182 182 183 183 184 184 185 185 186 187 187 188 188 192 194 194 195 195 196 196 197 197 197 202 209 210 210 211 211 212 212 214 214 214 215 216 216 217 217 217 218 218 219 219 222 222 223 223 224 224 225 xi

8-28 8-29 8-30 8-31 8-32 8-33 8-34 8-35 8-36 8-37 8-38 8-39 8-40 8-41 8-42 8-43 8-44 8-45 8-46 8-47 8-48 8-49 8-50 8-51 8-52 8-53 8-54 8-55 8-56 8-57 8-58 8-59 8-60 8-61 8-62 8-63 8-64 8-65 8-66 8-67 8-68 9-1 10-1 10-2 10-3 10-4 10-5 10-6 10-7 10-8 10-9 10-10 10-11 xii

Select client nodes to assign to the policy domain . . . . . . . . . . . . . . . . . . . . . . . . . The Create Policy Domain Summary screen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . The newly created policy domain. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Policy domain properties screen, after selecting Create a Client Node. . . . . . . . . . Create Client Node General screen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Create Client Node Security screen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Create Client Summary screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . The newly created node shows up under the policy domain . . . . . . . . . . . . . . . . . . Enterprise Management screen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Server-to-Server settings for the Library Manager server . . . . . . . . . . . . . . . . . . . . Servers and Server Groups Defined screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Servers screen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Define Server Welcome screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Define Server General screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Server-to-server communication screen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Define a Server Virtual Volume screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Define Server Summary screen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Newly created Storage Agent server appears . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LAN-free to disk setup in our lab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Management console showing TSM StorageAgent1 expansion . . . . . . . . . . . . . . . Start the Storage Agent Initialization wizard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . The Welcome to the Storage Agent Initialization Wizard screen . . . . . . . . . . . . . . . The TSM Server Account Information screen filled in . . . . . . . . . . . . . . . . . . . . . . . TSM Server Communication Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Storage Agent Account Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Completing the Storage Agent Initialization Wizard. . . . . . . . . . . . . . . . . . . . . . . . . The Storage Agent has been initialized . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Storage Agent service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Policy Domains screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . List of Policy Domains . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LANFREE_DISK Properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Client node used for LAN-free to disk use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Enable LAN-free data movement Welcome screen. . . . . . . . . . . . . . . . . . . . . . . . . Verify Data Transfer Settings screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Select an existing Storage Agent. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Select a Storage Pool screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Specify the directories of the SAN-attached disks . . . . . . . . . . . . . . . . . . . . . . . . . . Select whether to configure another Storage Agent. . . . . . . . . . . . . . . . . . . . . . . . . The Enable LAN-free Data Movement Summary screen. . . . . . . . . . . . . . . . . . . . . Completing the setup on the client node overview . . . . . . . . . . . . . . . . . . . . . . . . . The Backup-Archive Detailed Status Report that shows LAN-free bytes . . . . . . . . Library Manager and client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Image backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Server-free backups. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Specialist main window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Attention! message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Upload completed message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Warning! message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Enable Data Mover window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Fibre Channel selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Fibre Channel parameters window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Visible devices for Fibre Channel - 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Lab server-free setup 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

225 226 226 227 228 228 229 229 230 231 231 231 232 232 233 233 234 234 236 237 237 238 238 239 239 240 240 240 243 243 244 244 244 245 245 246 247 247 248 248 251 262 268 269 273 273 274 274 274 275 275 276 277

Get More Out of Your SAN with IBM Tivoli Storage Manager

10-12 10-13 10-14 10-15 10-16 10-17 10-18 10-19 10-20 10-21 10-22 10-23 10-24 10-25 10-26 11-1 11-2 11-3 11-4 11-5 11-6 11-7 11-8 11-9 11-10 11-11 12-1 12-2 12-3 12-4 12-5 12-6 12-7 12-8 13-1 13-2 13-3 13-4 13-5 13-6 13-7

Lab server-free setup 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Device information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Device information window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . QUERY STATUS output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Enabling server-free backups on the client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Warning if data mover not available on server-free backup. . . . . . . . . . . . . . . . . . . Server-free image backup in progress. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Server-free backup status report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Server-free image backup using command line interface . . . . . . . . . . . . . . . . . . . . Activity log extract showing server-free backup. . . . . . . . . . . . . . . . . . . . . . . . . . . . Server-free restore selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Warning on image restore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Server-free image restore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Server-free image restore using command line interface . . . . . . . . . . . . . . . . . . . . Activity log extract showing server-free restore . . . . . . . . . . . . . . . . . . . . . . . . . . . . Test environment in the lab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Machine setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Disk setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuration files of Data Protection for mySAP . . . . . . . . . . . . . . . . . . . . . . . . . . mySAP backup environment: configuration files . . . . . . . . . . . . . . . . . . . . . . . . . . . FlashCopy backup scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . OFFLINE_MIRROR backup method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . FlashBack restore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LVM mirroring in mySAP ESS environment. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . HACMP mySAP environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Use of two target sets as backup generations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SAN File System architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Backing up SAN File System with Tivoli Storage Manager . . . . . . . . . . . . . . . . . . . User files selection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Restore selective file selection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Select destination of restore file(s). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Restore files selection for FlashCopy image backup . . . . . . . . . . . . . . . . . . . . . . . . Restore files destination path selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Large amounts of files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . General troubleshooting flow chart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Powercycle a drive in a 3584 library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Library and SAN flow-chart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SAN switch nameserver. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Operating system and drivers flow-chart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . List tape devices on Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Windows: Add new Tivoli Storage Manager Server. . . . . . . . . . . . . . . . . . . . . . . . .

278 281 282 283 285 286 286 287 288 288 289 289 290 290 291 295 296 299 318 328 330 331 357 372 373 374 381 382 384 385 386 386 387 399 403 406 409 410 412 416 420

Figures

xiii

xiv

Get More Out of Your SAN with IBM Tivoli Storage Manager

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. 2005. All rights reserved.

xv

Trademarks
The following terms are trademarks of the International Business Machines Corporation in the United States, other countries, or both:
Eserver Eserver Redbooks (logo) ibm.com iSeries pSeries z/OS zSeries AIX 5L AIX Domino DB2 Enterprise Storage Server FlashCopy HACMP IBM Lotus Magstar Redbooks RS/6000 SANergy Tivoli TotalStorage Wave WebSphere 1-2-3 3090

The following terms are trademarks of other companies: Java and all Java-based trademarks and logos are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States, other countries, or both. Microsoft, Windows, Windows NT, and the Windows logo are trademarks of Microsoft Corporation 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. SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. Other company, product, and service names may be trademarks or service marks of others.

xvi

Get More Out of Your SAN with IBM Tivoli Storage Manager

Preface
Storage Area Networks (SANs) have changed the way that data is moved, stored, and managed, allowing you to access your data faster and more efficiently. IBM Tivoli Storage Manager allows you to exploit your SAN infrastructure to potentially provide increased performance, greater flexibility in configurations, and more efficient use of your hardware resources. This IBM Redbook describes the features of Tivoli Storage Manager, which can be deployed in a SAN. These features include LAN-free backup to tape and disk, tape library sharing, and server-free backup. It also discusses how to use Tivoli Storage Manager with other applications and hardware, such as STK libraries, mySAP, and IBM TotalStorage SAN File System. The emphasis of this information is on showing what can be done, why to do it, and how to do it. This book is written for people who are working for IBM, our clients, vendors, and consulting organizations and who want to understand how Tivoli Storage Manager fits into and enhances a SAN environment, as well as for those wanting detailed assistance in implementing Tivoli Storage Manager using SAN-attached storage.

The team that wrote this redbook


This redbook was produced by a team of specialists from around the world working at the International Technical Support Organization (ITSO), San Jose Center.

Figure 1 The team: Richard, Denver, Michel, and Charlotte

Charlotte Brooks is an IBM Certified IT Specialist and Project Leader for Storage Solutions at the ITSO, San Jose Center. She has 15 years of experience with IBM in the fields of IBM TotalStorage hardware and software, IBM eserver pSeries servers, and AIX. She has written 12 Redbooks and has developed and taught IBM classes in all areas of storage and storage management. Before joining the ITSO in 2000, she was the Technical Support Manager for Tivoli Storage Manager in the Asia Pacific Region.

Copyright IBM Corp. 2005. All rights reserved.

xvii

Michel Baus is an IT Architect at System Vertrieb Alexander SVA GmbH, an IBM Premier Business Partner in Germany. He has 10 years of experience in the Tivoli Storage and Systems Management topics and is an IBM Certified Deployment Professional for various products. He holds a degree in Sensor Systems Technology from University of Applied Sciences in Karlsruhe, Germany. His areas of expertise include disk and tape subsystems, SAN, pSeries and xSeries. He has been co-author of three previous Redbooks. Denver Daley is an Advisory IT Specialist within the Data Infrastructure Practice at IBM Global Services, in Canada. He has 8 years of experience with IBM Tivoli Storage Manager and other related storage products. He has worked at IBM for 7 1/2 years. His areas of expertise include consulting, planning and implementation of IBM Tivoli Storage Manager. Richard Lanicca is a Technical Services Professional at IBM Global Services, Strategic Outsourcing in Switzerland. He has seven years of experience in IT field and has worked at IBM for three years. He holds a degree in telecommunications from University of Applied Sciences in Chur, Switzerland. His areas of expertise include planning, implementation and maintenance of Tivoli Storage products, high-end storage solutions, virtualization and SAN environments. Thanks to the following people for their contributions to this project: Emma Jacobs, Deanna Polm ITSO, San Jose Center Gerd Basel, John Marshall, Hans-Joachim Renger, Ernesto Puig Rodriguez, Andreas Uhl IBM Boeblingen Bruce Fong, Jo Lay, Tom Hepner, Claire Rankin IBM San Jose Randy Larson IBM Winston Salem Bill Baxter, Janet Bolton, Rob Elder, Harry Husfelt, David Kosick, Kathy Mitton, Diem Nguyen, Charlie Nichols, Rosa Plaza, Harley Puckett IBM Tucson Amit Sinha StorageTek Christian Graf SAP

Become a published author


Join us for a two- to six-week residency program! Help write an IBM Redbook dealing with specific products or solutions, while getting hands-on experience with leading-edge technologies. You'll team with IBM technical professionals, Business Partners or customers. Your efforts will help increase product acceptance and customer satisfaction. As a bonus, you'll develop a network of contacts in IBM development labs, and increase your productivity and marketability. Find out more about the residency program, browse the residency index, and apply online at:
ibm.com/redbooks/residencies.html

xviii

Get More Out of Your SAN with IBM Tivoli Storage Manager

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

Send your comments in an email to:


redbook@us.ibm.com

Mail your comments to: IBM Corporation, International Technical Support Organization Dept. QXXE Building 80-E2 650 Harry Road San Jose, California 95120-6099

Preface

xix

xx

Get More Out of Your SAN with IBM Tivoli Storage Manager

Chapter 1.

Introduction to SANs and IBM Tivoli Storage Manager


This chapter discusses the following topics: Overview of Storage Area Network Introduction to Tivoli Storage Manager Tivoli Storage Manager SAN functions Tivoli Storage Manager V5.3 latest SAN functions Tivoli Storage Manager SAN functions and products

Copyright IBM Corp. 2005. All rights reserved.

1.1 Overview of Storage Area Network


A Storage Area Network (SAN) is a high speed network that allows computer systems, applications, and storage devices to be directly interconnected. A SAN allows businesses to consolidate computer systems, applications, and storages to reduce cost and increase availability, accessibility, and reliability. Figure 1-1 illustrates the common components in a SAN configuration. In a SAN, Host Bus Adapters (HBAs) are installed on each system (server) and are connected to the shared storage devices via a SAN fabric of switches, directors, bridges, or hubs.

Heterogeneous Servers
zSeries

JBOD

ESS
Windows

Hub
UNIX
Tape

Switch
pSeries

Director

Bridge

Shared Storage Devices


SSA

FastT
iSeries
LINUX

Figure 1-1 Common SAN components

A SAN configuration allows for improved methods to transfer data when compared with the traditional LAN infrastructure. Improvements include: Improved performance and data transfer flexibility Transferring data over the SAN is faster because Fibre Channel (at 2 or 4 Gbps) is the typical means that is used for connection. SAN is also faster because the data transfer can bypass the bottleneck that can be experienced on traditional LANs. The SAN allows data to be transferred from computers to other computers, from computers to storage devices, or from storage devices to other storage devices. Improved availability SAN multiple data paths allow for better accessibility and reliability. Support for open system connectivity Heterogeneous operating system platforms can share the same storage devices, which allows for better use of storage and reductions in storage costs. Highly scalable SAN components, such as additional storage devices, can be added easily to meet growing needs. Fibre Channel SANs are most commonly used. However, IP SANs are becoming popular. Some drawbacks of Fibre Channel SANs include its expensive costs and its complicated implementation, especially when businesses do not possess the necessary expertise.

Get More Out of Your SAN with IBM Tivoli Storage Manager

For more detailed information about SAN, refer to Introduction to Storage Area Network, SG24-5470.

1.2 Introduction to Tivoli Storage Manager


Tivoli Storage Manager is an enterprise-wide storage management and data recovery solution. It offers automated storage management services to a variety of operating systems and applications and multiple options for protecting data. Backup types include file system type backups, archives, space managed file system, data protection for application data, and more. Tivoli Storage Manager uses and takes advantage of many disk and tape devices that are available today. It consists of the following components: The server The server is used to manage the storage services and includes the database and recovery log. It also manages and stores data that pertains to such things as, policy information, storage devices, client nodes, and scheduling. The server is managed via the command line interface or the Administration Center. The client When installed, the client software allows the server to protect and manage a machines data. The types of client software that are available include the backup and archive client, data protection for applications, application program interface (API), and use of Network Data Management Protocol (NDMP) for network attached storage (NAS) file servers Tivoli Storage Manager for Space Management Used to manage space on workstations by migrating aged data to the Tivoli Storage Manager server automatically, based on criterias that are set. Storage Agent Used in a LAN-free client configuration to allow client data to be transferred to the Tivoli Storage Manager server over a SAN path to tape storage or disk storage (using SANergy).

Chapter 1. Introduction to SANs and IBM Tivoli Storage Manager

1.3 Tivoli Storage Manager SAN functions


The rapid advancement of SAN technology in recent years has corresponded in increasing adoption of SAN implementations. In keeping pace with the requirements to support SANs, Tivoli Storage Manager has been enhanced continually to provide customers with desired functions to manage their storage. Tivoli Storage Manager clients and servers can share and exploit SAN-attached devices to allow a consolidated and improved use of storage. The currently available Tivoli Storage Manager SAN functions are: LAN-free backup to tape With a LAN-free backups to tape, a SAN-attached client machine can send data directly to a SAN-attached tape device. This is made possible by the use of the Storage Agent. The Storage Agent acts as a miniature version of the Tivoli Storage Manager server and has the capability of writing or reading a clients data to or from the SAN-attached tape device. The Storage Agent is installed on a SAN-attached Tivoli Storage Manager client machine that sends data directly or, optionally, acts as a proxy for LAN-free transfer from a LAN-attached system. With the use of the Storage Agent, data transfer workload is off-loaded from the LAN. Because the Storage Agent performs the direct writes and reads, there is also less work for the Tivoli Storage Manager server. Figure 1-2 illustrates the data flow of a traditional LAN-based backup. The Tivoli Storage Manager backup and archive client initiates the backup, and the data is sent over the LAN via the Tivoli Storage Manager server to an attached storage device, disk or tape.
Tivoli St orage Manager Server

Client

Disk STG Pool

Client Dat a

LAN

Tape Library

Figure 1-2 Traditional LAN based backup

Figure 1-3 on page 5 shows the data flow with LAN-free backup to tape. The Tivoli Storage Manager backup and archive client initiates the backup as before. The Storage Agent communicates with the Tivoli Storage Manager server to send metadata about the backup and to coordinate the use of the SAN-attached tape library. It then sends the data over the SAN directly to that tape library. You can find more details about LAN-free tape backup in Chapter 7, LAN-free backup to tape on page 171.

Get More Out of Your SAN with IBM Tivoli Storage Manager

Tivoli Storage Manager Client and Storage Agent

Tivoli Storage Manager Server

Library Control Client Metadata

LAN
Client Data Library Control

SAN

File Library

Tape Library

Figure 1-3 LAN-free tape and disk backup

LAN-free backup to disk LAN-free backup to disk works similarly to LAN-free backup to tape, except that the data is written directly to or read from a SAN-attached disk device rather than a tape library. This configuration requires the use of the Tivoli SANergy file sharing software. Figure 1-3 also shows the data flow with LAN-free backup to disk. The Tivoli Storage Manager backup and archive client initiates the backup as before. The Storage Agent communicates with the Tivoli Storage Manager server to send metadata about the backup and to coordinate the use of the SAN-attached disk device. It then sends the data over the SAN directly to the disk device. In this case, the disk emulates a sequential device and is known as a file library. You can find more details about LAN-free disk backup in Chapter 8, LAN-free backup to disk on page 207. Server-free backup With server-free backup, client data is written from a SAN-attached disk device directly to a SAN-attached tape device. This is made possible through use of data movers, such as a SAN Data Gateway (SDG), that uses SCSI-3 extended copy functions to actually copy the data. With the data movement occurring from the SAN-attached disk device directly to the SAN-attached tape device, workload is reduced on both the Tivoli Storage Manager client and server. Figure 1-4 on page 6 shows the data movement in a server-free setup. You can find more details about server-free backup in Chapter 10, Server-free data movement on page 267.

Chapter 1. Introduction to SANs and IBM Tivoli Storage Manager

Control Information Data Flow

LAN

Tivoli Storage Manager Client LVSA

Tivoli Storage Manager Server

SAN

Data Mover

Tivoli Storage Manager Server managed tape library

Figure 1-4 Server-free data movement

FlashCopy (split mirror) backups via the SAN FlashCopy backups use a disk-based instant copy function, to copy a production hosts data to a less critical host. This less critical host then performs the backup, over the SAN, to the Tivoli Storage Manager server. This removes any performance impact of the backup from the production server. This method is used by Data Protection for IBM Enterprise Storage Server (ESS). With business critical databases residing on an ESS, Data Protection for ESS uses the ESS FlashCopy function to off-load the transfer of backup data from the production database server to a backup (secondary) database server. This method eliminates nearly all backup related performance impact from the production database server. Data Proctection for ESS is available for DB2 ,Oracle, and mySAP databases. Figure 1-5 on page 7 shows the data movement in FlashCopy as used with Data Protection for ESS. The production and backup server (system) both access disk space on the ESS. FlashCopy is used to create a copy of the production server database to the backup server. The Tivoli Storage Manager Backup-Archive Client and Storage Agent can then be used to perform a LAN-free backup of the database directly to the tape library. You can find an example of FlashCopy backup in Chapter 11, Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP on page 293.

Get More Out of Your SAN with IBM Tivoli Storage Manager

IBM Enterprise Storage Server


ba c ku p

Production System

backup

Backup System

Client & Storage Agent installed


restore
res tor e

SAN
Backup Restore
Tivoli Storage Manager Server

Tape Library

Figure 1-5 FlashCopy backup via a SAN

Tape library sharing Library sharing in a SAN is very popular, primarily because it exploits the performance and reliability gains that are associated with the use of a SAN. There are three primary components in a typical tape library sharing environment: A Tivoli Storage Manager server that acts as the tape Library Manager. One or more additional Tivoli Storage Manager servers that act as tape Library Clients. The tape library to be shared. With library sharing, the Library Manager and Library Client(s) communicate with each other via server-to-server communication to coordinate the use of an automated tape library. The Library Manager controls all medium changer related functions, such as tape mounts, tape dismounts, volume ownership, and library inventory. When a Library Client needs to use the tape library for a backup or restore, it sends a request to the Library Manager, to mount a tape inside the tape library. When the tape is loaded, the Library Client accesses the media that is inside the tape drive to execute the necessary write or read. Figure 1-6 on page 8 shows a typical library sharing setup with two Tivoli Storage Manager servers. In the case of LAN-free backups, the Storage Agent performs the tasks of a Library Client. Tivoli Storage Manager provides library sharing for most SAN-attached tape libraries, as well as special configurations and features for IBM TotalStorage 3494 libraries and ACSLS-capable libraries from StorageTek. You can find details about these various library sharing environments in Chapter 3, SCSI tape library sharing on page 43, Chapter 4, IBM 3494 tape library sharing on page 93, and Chapter 5, Library sharing with the ACSLS Manager on page 127.

Chapter 1. Introduction to SANs and IBM Tivoli Storage Manager

Library Client Server

Library Control

Library Manager Server

LAN
Data Flow Library Control

Data Flow

SAN

Tape Library
Figure 1-6 Typical tape library sharing configuration

1.4 Tivoli Storage Manager V5.3 latest SAN functions


Improvements have been made to some key SAN-related components with the release of Tivoli Storage Manager V5.3. These improvements simplify the configuration of Tivoli Storage Manager in a SAN environment and maintenance of the setup. The latest Tivoli Storage Manager SAN-related functions are: SAN device discovery, QUERY SAN command (supported on AIX, Linux, and Solaris) This server command displays information about SAN-attached devices. The output from this query can then be used to assist in defining a LAN-free client. This command was previously supported on Windows and is now available for AIX, Linux, and Solaris Tivoli Storage Manager servers. For more details about the QUERY SAN command, see Chapter 9, Tivoli Storage Manager SAN Discovery on page 253. VALIDATE LANFREE command This server command replaces the previously unsupported SHOW LANFREE command that was available in Tivoli Storage Manager V5.2. After a LAN-free client has been configured, this command can be used to verify the client, Storage Agent, and server definitions. The output shows any valid LAN-free capable definitions that are associating with a specific client and Storage Agent. The output also lists any invalid LAN-free definitions. For more details about the VALIDATE LANFREE command, see Chapter 7, LAN-free backup to tape on page 171 and Chapter 8, LAN-free backup to disk on page 207. Accurate SAN device mapping In a SAN environment, it is not uncommon for device names to change after the initial configuration is completed. This change can happen for different reasons, for example, hardware changes or bus resets. Such name changes can cause failed or improperly 8
Get More Out of Your SAN with IBM Tivoli Storage Manager

defined paths, which can ultimately impact storage device operations. Tivoli Storage Manager assists in recovering from device name changes with the new server option SANDISCOVERY. For this feature to work, the devices serial number should be used when defining each device, because the server relies on the serial number to confirm the devices identity. For further details about accurate SAN device mapping, see Chapter 9, Tivoli Storage Manager SAN Discovery on page 253. ACSLS library support enhancements ACSLS libraries can be shared across Tivoli Storage Manager servers in the same way as SCSI libraries. There is also support for LAN-free data movement using libraries that are controlled by StorageTeks ACSLS. With this support, it is now optional to use third-party library manager products, such as Greshams EDT-DistribuTAPE, to work with these libraries. For further details about ACSLS library support enhancements, see Chapter 5, Library sharing with the ACSLS Manager on page 127. LANFREETCPSERVERADDRESS client option The LANFREETCPSERVERADDRESS option is used to specify the TCP/IP address of a Storage Agent machine when the client and the Storage Agent are not on the same system. In this way, a single Storage Agent can proxy LAN-free data movement for one or more LAN-attached Tivoli Storage Manager clients. For further details about the LANFREETCPSERVERADDRESS, see Chapter 7, LAN-free backup to tape on page 171. Storage Agent and library sharing failover Support for AIX HACMP failover has been enhanced to include failover in a Storage Agent and library sharing environment. Because the Tivoli Storage Manager server can determine which devices need to be reset during the start of the server or Storage Agent, a target reset is performed on only those devices to make them available. For more information about Storage Agent and library sharing failover, see IBM Tivoli Storage Manager 5.3 Reference Guide for AIX, GC32-0768 and the IBM Redbook IBM Tivoli Storage Manager in a Clustered Environment, SG24-6679. Increased block size for writing to tape Performance when writing to tape has been enhanced by increasing the maximum transfer length for all HBAs. Multi-session no-query restore from LAN-free path If during a no-query restore, a volume is mounted on a shared device that can be accessed by the Storage Agent, then the server sends the data to the Storage Agent and the Storage Agent sends the data to the client to complete the LAN-free restore. Otherwise, if the volume cannot be mounted on a shared device to which the storage agent has access, the server sends the restore data directly to the client. The client then initiates additional sessions for the Storage Agent and server. In the case of the Storage Agent, these additional sessions are used to access volumes that are LAN-free enabled. The additional sessions to the server are used to access volumes that are not LAN-free enabled.

Chapter 1. Introduction to SANs and IBM Tivoli Storage Manager

1.5 Tivoli Storage Manager SAN functions and products


There are specific software components that are necessary to enable and support each Tivoli Storage Manager SAN function. Table 1-1 shows which products are required to support and enable each specific SAN related function.
Table 1-1 Tivoli Storage Manager products and functions Tivoli Storage Manager products Tivoli Storage Manager Extended Edition SAN functions Tape library sharing between multiple Tivoli Storage Manager servers Server-free backups and restores using Data Protection for NAS appliances through NDMP LAN-free backups and restores Library sharing Server-free backups and restores LAN-free backups and restores LAN-free backups and restores FlashCopy over SAN LAN-free backups and restores LAN-free migrations and recalls

Tivoli Storage Manager for Storage Area Network

Tivoli Storage Manager for (WebSphere) Application Servers Tivoli Storage Manager for Enterprise Resource Planning (ERP) Tivoli Storage Manager for Hardware Tivoli Storage Manager for Mail Tivoli Storage Manager for Space Management

10

Get More Out of Your SAN with IBM Tivoli Storage Manager

Chapter 2.

Tape library sharing planning


This chapter describes general considerations for planning tape library sharing with Tivoli Storage Manager and discusses the following topics: Library sharing overview Components of library sharing Benefits of tape library sharing with Tivoli Storage Manager Requirements for tape library sharing Tasks with Tivoli Storage Manager library sharing Moving to a dedicated Tivoli Storage Manager Library Manager Command differences in a library sharing environment Interactions between Library Manager and Library Client

Copyright IBM Corp. 2005. All rights reserved.

11

2.1 Library sharing overview


There are two basic types of tape library sharing: library partitioning and library sharing.

2.1.1 Library partitioning


In library partitioning, the library is attached to two or more servers using different connections (Figure 2-1). Logically, the library must be split into partitions, each with their own drives and library slot ranges. Thus, each server only uses a small part of the library and is unable to access drives other than those that were defined to it. When this setup uses two host machines, it is often referred to as a twin-tail configuration. However, this method also applies to configurations with more than two hosts, as shown in Figure 2-1. When using library partitioning, the drives are not shared only the library robotics are shared. This method is used for advanced security requirements, because it completely separates the drives, the storage slots, and the tapes within the library. Not all libraries support library partitioning.

Library controller
Logical Library 1
Storage Slots 40 used 10 free Drive Drive

Host A

Logical Library 2 Storage Slots 60 used 20 free


Drive Drive

Host B

Logical Library 3
Drive

Host C

Storage Slots 100 used 30 free

Drive Drive Drive

Figure 2-1 Library partitioning into multiple logical libraries

Attention: All applications that use a partitioned library are affected if you change the partitioning at a later date.

Tip: The second generation of multipath architecture, also called Advanced Library Management System (ALMS), does not have the requirement to partition the library using static rules and contiguous resources. ALMS virtualizes the affinity to physical resources. ALMS is supported on the IBM 3584 tape library.

12

Get More Out of Your SAN with IBM Tivoli Storage Manager

2.1.2 Library sharing


As defined in the Tivoli Storage Manager library sharing implementation, library sharing means that all hosts attached to the library over a SAN fabric can share the entire library (Figure 2-2). This means that all hosts have access to all library slots and all library drives, but only one host has control of all drives and tapes. This host is known as the Tivoli Storage Manager Library Manager. All other hosts using the shared library must send a request to the Tivoli Storage Manager Library Manager for every tape operation. These hosts are referred to as the Tivoli Storage Manager Library Clients. The Library Manager and all the Library Clients all have Tivoli Storage Manager server code installed on them. So, this kind of library sharing is applicable to Tivoli Storage Manager configurations only. Each tape in the library has a status of either scratch or private. A scratch tape is not assigned to any Tivoli Storage Manager server there is no data on it. A private tape has been assigned to a Tivoli Storage Manager server (Tivoli Storage Manager Library Client or Tivoli Storage Manager Library Manager). After a tape becomes private by the assignment, only this Tivoli Storage Manager server can access the tape; however the Library Manager is able to access all the tapes in the library. Tape volumes remain private once assigned, so that each Tivoli Storage Manager server (Library Client) sees only the volumes that have been assigned to it. When a Tivoli Storage Manager server needs a new tape volume, it can obtain them from the common scratch tape pool.

Library controller

Drive Drive Drive Drive Drive Storage Slots 200 used 60 free Drive Drive Drive

Tivoli Storage Manager LibraryClients

SAN

Tivoli Storage Manager LibraryManager

Figure 2-2 Library sharing

Chapter 2. Tape library sharing planning

13

2.2 Components of library sharing


This section discusses the basic terms used for Tivoli Storage Manager library sharing configuration.

2.2.1 Library Manager


One Tivoli Storage Manager server performs the function of Library Manager, whose task is to control the library physically. The Library Manager: Performs all communication with the library and serializes the access to the tape drives, so that only one Tivoli Storage Manager server is using a tape drive at a time. Checks volumes in and out of the library, and maintains the library inventory table for that library. This table keeps track of which tape belongs to which Library Client. Only the Library Manager knows all the volumes in the library (library volumes). Controls the pool of scratch tapes and allocates them to Library Clients as needed. Initializes the tape library during the Tivoli Storage Manager start process. The Tivoli Storage Manager Library Manager can also use the library for normal Tivoli Storage Manager operations, without actually being a Tivoli Storage Manager Library Client. That is, the Tivoli Storage Manager Library Manager does not have to be configured as a Tivoli Storage Manager Library Client in order to use the library for Tivoli Storage Manager.

2.2.2 Library Client


The Tivoli Storage Manager Library Client communicates with the Tivoli Storage Manager Library Manager for tape library operations on the physical hardware using Tivoli Storage Manager server-to-server communication. The Tivoli Storage Manager Library Client sends any tape device-related requests (for example, mount a particular volume or acquire a scratch volume) to the Tivoli Storage Manager Library Manager and then reads or writes data on the tape volume in the tape drive to which it was given access. After using the volume, the Tivoli Storage Manager Library Client tells the Library Manager that the read or write process is complete and that the drive is available for use by the Library Manager or other Library Clients. The Tivoli Storage Manager Library Client knows about only volumes it has been assigned, not all library volumes.

2.2.3 Library medium changer and library control


The library medium changer (also known as the library controller) gives the Tivoli Storage Manager Library Manager access to the functions that are required for basic tape operations such as backup and restore and medium changer operations such as mount and demount tape cartridges, as well as the advanced functions that are needed by full tape management systems. Depending on the library type, additional software might be required to use the library with the Tivoli Storage Manager server (for example, for the IBM 3494 tape library). Additional software requirements are discussed in Chapter 3, SCSI tape library sharing on page 43, Chapter 4, IBM 3494 tape library sharing on page 93, and Chapter 5, Library sharing with the ACSLS Manager on page 127.

14

Get More Out of Your SAN with IBM Tivoli Storage Manager

Table 2-1 shows the library controller device special file for SCSI attached libraries. This special file is used when defining a library on the Library Manager.
Table 2-1 .Device special files for the library controller for SCSI tape libraries OS IBM AIX Linux SUN Solaris Microsoft Windows IBM tape device driver (IBM drives) /dev/smcX /dev/IBMchangerX /dev/rmt/Xsmc \\.\ChangerX Tivoli Storage Manager device driver (drives other than IBM drives) /dev/lbX /dev/lbX /dev/rmt/Xlb lbX.X.X.X

The examples in this redbook use the IBM tape device driver for all IBM drives and the device driver that is supplied with Tivoli Storage Manager for all drives other than IBM drives. The library controller needs to be configured only on the Library Manager, not on the Library Clients.

2.2.4 Library drives


To use a library drive with the Tivoli Storage Manager server, you must use the correct driver for the drive. The examples in this redbook use the IBM tape device driver for all IBM drives and the device driver that is supplied with Tivoli Storage Manager for all drives other than IBM drives. You can download the latest version of the IBM tape device driver from:
ftp://ftp.software.ibm.com/storage/devdrvr/

Table 2-2 shows the drive device special files to use in the Tivoli Storage Manager drive path definition.
Table 2-2 Drive device file for SCSI tape libraries OS IBM AIX Linux SUN Solaris Microsoft Windows IBM tape device driver (IBM drives) /dev/rmtX /dev/IBMtapeX /dev/rmt/Xst \\.\TapeX Tivoli Storage Manager device driver (drives other than IBM drives) /dev/mtX /dev/mtX /dev/rmt/Xmt mtX.X.X.X

2.2.5 Library control path failover


The control path is the path to the library controller or medium changer. The library controller is required for using a tape library. Without the library controller, you cannot operate the library. Therefore, the library controller can be a single point of failure if there is only one path from the application to the library controller. To mitigate this failure, some libraries provide a library control path failover function. Figure 2-3 on page 16 shows an example with two physical paths to the library controller. If the primary path is not available, you can switch to the alternate path. Depending on the device driver, the switch can be manual or automatic. Manual means there are two or more devices in the operating system for the same library controller. If one is not available, the

Chapter 2. Tape library sharing planning

15

application switches to use the other device. Automatic means that the device driver switches automatically to the alternate path and that the application can use still the same device.

HOST
Application

Device driver

HBA 1

HBA 2

Primary path

SAN Fabric 1

SAN Fabric 2

Alternate path

Drive 1 Library controller Tape Library


Figure 2-3 SCSI library control path failover

Drive 2

2.2.6 Data path failover


The data path is the path to the actual library drive. It is common to use multipath connections for the data path. A multipath connection consists of two HBAs that are both zoned to a single port on an FC tape drive. Both HBAs are connected to the same SAN fabric (Figure 2-4 on page 17). This connection provides alternate paths to the same tape drive for redundancy if one path from an HBA to the drive fails. When the operating system starts, each HBA detects a drive, and two logical devices are configured (for example, in IBM AIX, devices rmt0 and rmt1 are configured). Each logical device is a physical path to the same tape drive. A backup and restore application can open and use only one logical device at a time (either rmt0 or rmt1), because they represent the same physical device. Without the IBM tape device driver alternate pathing support, if an application opens rmt0 and a permanent path error occurs (for example, because of an HBA or cable failure), then the application fails. You can initiate manual failover by updating the application to use the alternate logical device (rmt1).

16

Get More Out of Your SAN with IBM Tivoli Storage Manager

HOST
Application

Device driver

HBA 1

HBA 2

Primary path

SAN

Alternate path

Drive Library controller

Tape Library
Figure 2-4 Data path failover with one SAN fabric

To enhance availability, some drives provide two FC ports (for example, the IBM TotalStorage Enterprise Tape System 3590 or 3592). In this case, two HBAs are used on the host. The first HBA is connected to port 0 of the drive, and the second HBA is connected to port 1 of the drive (Figure 2-5 on page 18). This connection provides two physical paths to the same tape drive for redundancy in the event of failure. Separate fabrics and two physical paths provide a higher degree of redundancy than the configuration that is shown in Figure 2-4. When the operating system starts, each HBA detects a drive, and two logical devices are configured (for example, in IBM AIX, devices rmt0 and rmt1 are configured). Each logical device is a physical path to the same tape drive. A backup and restore application can open and use only one logical device at a time (either rmt0 or rmt1), because they represent the same physical device. Without the IBM tape device driver 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 updating the application on the alternate logical device (rmt1).

Chapter 2. Tape library sharing planning

17

HOST
Application

Device driver

HBA 1

HBA 2

Primary path

SAN Fabric 1

SAN Fabric 2

Alternate path

Drive Library controller

Tape Library
Figure 2-5 Data path failover with two SAN fabrics

2.3 Benefits of tape library sharing with Tivoli Storage Manager


By sharing libraries among several Tivoli Storage Manager servers, higher overall tape drive usage should be achieved than in cases where every server has its own library. Tape library sharing can help reduce costs by reducing the total overall number of tape drives that are required. Before looking at how to improve the drive usage, you must decide which type of library sharing you will use. Tivoli Storage Manager servers using non-shared (dedicated) tape libraries typically have a lower use rate for the tape devices. This lower use rate is because the required number of tape devices is usually driven by peak requirements rather than the required average need. A typical situation is where a restore must take place without disrupting server maintenance processes. This situation automatically requires three tape devices (two for server processes for example, storage pool backups and one for the restore session). If multiple concurrent restore sessions are required, this number increases even more. Another situation is where multiple concurrent backup sessions require a direct tape drive connection. You would need at least one drive for each of these sessions. However, if the library is shared between different servers, you can reduce the total number of tape devices. This reduction is because usage becomes more distributed over time and peak requirements approach the average usage. For example, if you have two servers, each with the requirement that server maintenance operations and restore sessions must run concurrently, in a non-shared environment you would need at least three drives per library. In a shared environment, however, you could reduce this number first by reserving only one drive for restore. Therefore, you would need only five total drives. You could further reduce the number of drives that are required by staging the server maintenance processes so that they do not run at the same time. As a result, the two drives that are required for these 18
Get More Out of Your SAN with IBM Tivoli Storage Manager

operations could be shared among the servers. The resulting number of tape devices for the library would then be down to three drives instead of the original six. This example is just for illustration purposes. In real life, things might not be so cut and dried; however, the same principles apply. Thus, library sharing gives you the flexibility to grow with the environment. So, if the requirement on one Tivoli Storage Manager server increases more than planned, all the connected servers share the library dynamically and can take advantage of the new capacity.

2.4 Requirements for tape library sharing


The requirements for tape library sharing are: Tivoli Storage Manager server-to-server communication must be configured between the Tivoli Storage Manager Library Manager and Tivoli Storage Manager Library Client. The library must be connected to the SAN to share the drives. Tivoli Storage Manager must support the tape library. You can find the list of supported libraries and drives at: For IBM AIX, Microsoft Windows, HP UNIX, and SUN Solaris:
http://www-306.ibm.com/software/sysmgmt/products/support/IBM_TSM_Supported_Devices_for_ AIXHPSUNWIN.html

For Linux:
http://www-306.ibm.com/software/sysmgmt/products/support/IBM_TSM_Supported_Devices_for_ Linux.html

The Tivoli Storage Manager Library Manager level has equal or higher Tivoli Storage Manager server when compared to the Library Clients. The Tivoli Storage Manager Extended Edition must be licensed. Mixed Tivoli Storage Manager server levels are supported in the library sharing environment, as long as the Library Manager is at the same or a higher level than all the Library Clients. Note: We recommend that you maintain consistent Tivoli Storage Manager server levels on the Tivoli Storage Manager Library Manager and all Tivoli Storage Manager Library Clients to simplify support issues. For detailed setup instructions for various library sharing environments see Chapter 3, SCSI tape library sharing on page 43, Chapter 4, IBM 3494 tape library sharing on page 93, and Chapter 5, Library sharing with the ACSLS Manager on page 127. The remainder of this chapter assumes that you have configured your library sharing environment and are familiar with its basic function.

Chapter 2. Tape library sharing planning

19

2.5 Tasks with Tivoli Storage Manager library sharing


This section describes some tasks that are associated with Tivoli Storage Manager library sharing.

2.5.1 Library Manager as a single Tivoli Storage Manager Server without Tivoli Storage Manager client data
In case of a disaster, you need to be able to restore the Library Manager function quickly and simply, because you cannot start the Library Client restores until the Library Manager is working. To achieve this restore, we recommend using a dedicated Tivoli Storage Manager server instance used only for the Tivoli Storage Manager Library Manager. You can then install a separate Tivoli Storage Manager server instance to be a Library Client on this host if required (as shown in Figure 2-6). Then, if there is a multisystem failure, you can first restore the Library Manager, which would be relatively fast because there is no client data to restore. The Library Manager would then be available to provide shared library function to the Library Clients, which you can restore in order of priority.

HostA

HostB

TSM_1 Library Manager

Host A

TSM_3 Library Client 2

Host B

TSM_2 Library Client 1

Figure 2-6 Library Manager instance

2.5.2 Tivoli Storage Manager server maintenance planning


In a large Tivoli Storage Manager environment, you can use scheduling to spread the Tivoli Storage Manager housekeeping actions (such as Tivoli Storage Manager database backup, migration, and reclamation) equally over time. For example, if there are four drives that are shared by six Tivoli Storage Manager Library Clients, you can schedule the first three Tivoli Storage Manager database backups followed by the remaining three Tivoli Storage Manager database backups to always leave one drive free for Tivoli Storage Manager client data restores.

20

Get More Out of Your SAN with IBM Tivoli Storage Manager

2.5.3 Library drive reset


Whenever the Tivoli Storage Manager server uses a tape drive or medium changer device, it issues a SCSI RESERVE command to the device. Every time a volume is mounted in a tape drive and when it is in the IDLE status, the SCSI reservation is still present. After the Tivoli Storage Manager Server finishes using a tape drive or medium changer device, it releases the SCSI reservation. In the library definition, you can specify the RESETDRIVES option with the DEFINE LIBRARY command. This option specifies whether the server performs a target reset when the server is restarted or when a Library Client or storage agent reconnection is established. This parameter only applies to SCSI, 3494, Manual, and ACSLS type libraries. For this parameter, you can set the following: RESETDrives=Yes Specifies to perform the target reset. This is the default for SCSI, 3494, Manual, and ACSLS libraries defined with SHARED=YES. RESETDrives=No Specifies to not perform the target reset. This is the default for SCSI, 3494, Manual, and ACSLS libraries defined with SHARED=NO. Note: If you are using HACMP and migrating to Tivoli Storage Manager V5.3 (from any previous version), you need to convert to the new startserver script. Device resets are done by the server during initialization of the library. If the RESETDRIVES option is set to YES for a library, then the reset is performed by the Library Manager for the library and all drives that are defined to it. If a library is defined as SHARED, the RESETDRIVES option defaults to YES for the library automatically. Otherwise, you can run the UPDATE LIBRARY command with RESETDRIVES set to YES. Table 2-3 shows the Tivoli Storage Manager server actions during initialization of the library.
Table 2-3 Tivoli Storage Manager Library actions during start Previous Drive allocation Library Manager or not allocated Library Client or Storage Agent Tivoli Storage Manager Library Manager action Check for outstanding reserve and issue SCSI target reset if one exists Wait for session initialization If reconnection, do nothing If first connection, check for outstanding reserve and issue SCSI target reset if one exists

Important: Device resets are done by the Tivoli Storage Manager server during initialization of the library.

Chapter 2. Tape library sharing planning

21

2.5.4 Drive allocation


We recommend that you define paths to all the drives in a shared library on all Tivoli Storage Manager Library Clients. If you want to restrict usage by some Library Clients, you can use the MOUNTLIMIT parameter in the device class definition. Using the MOUNTLIMIT parameter increases the chances that a request for a drive from that Library Client can be fulfilled, because the Library Manager can allocate any of the drives to the Library Client. If you restrict the drives, you are more likely to be in a situation where a drive request has to wait for a free drive, because you limited the set of drives that are available for selection. Example 2-1 shows the use of the MOUNTLIMIT parameter in the DEFINE DEVCLASS command.
Example 2-1 Define device class with the MOUNTLIMIT is set tsm: AZOV_1>DEFINE DEVCLASS LTO LIBRARY=3582 DEVTYPE=LTO MOUNTLIMIT=1 ANR2203I Device class LTO defined.

Tip: You can set MOUNTLIMIT to 0 to prevent the access to the storagepool or library. You might set this to disable temporarily access to a library that needs to be offline for maintenance.

2.5.5 Deleting a library volume on the Library Manager


In some cases, it is possible that the Library Manager shows that a volume is used by a Library Client, when in reality, it is not. For example, if you remove an unused Tivoli Storage Manager Library Client without deleting its associated database backup volumes, to clean up the volume table on the Library Manager, you do the following: 1. Find all library volumes that are assigned to the Tivoli Storage Manager Library Client. 2. Delete all volume history entries for this library volume. 3. Update the status of this library volume.

Finding all library volumes that are assigned to the Tivoli Storage Manager Library Client
You use the QUERY LIBVOLUMES command on the Library Manager to display the library volumes, as shown in Example 2-2. You can check the Owner column to see which library volumes are associated with the particular Library Client.
Example 2-2 Query library volumes on the Library Manager tsm: POCO_1>q libv Library Name -----------3494 3494 3494 3494 ACSLS Volume Name ----------J11771 J11772 J11773 J11774 CB5382 Status ---------Scratch Private Scratch Scratch Scratch Owner ---------SCAMP_1 Last Use --------DbBackup Home Element ------Device Type ------

22

Get More Out of Your SAN with IBM Tivoli Storage Manager

Alternatively, you can use the Tivoli Storage Manager SQL syntax to find library volumes, as shown in Example 2-3.
Example 2-3 Tivoli Storage Manager SQL command on the Library Manager tsm: POCO_1>SELECT Library_Name, Volume_Name, Status, Owner from libvolumes where owner='SCAMP_1' LIBRARY_NAME -----------------3494 VOLUME_NAME -----------------J11772 STATUS ---------Private OWNER -----------------SCAMP_1

Deleting the volume history entry for the library volume


All volumes that are used on the Library Client have an entry in the volume history on the Library Manager. The type is REMOTE in the volume history. First, you have to show all information about this volume. Then, you can delete them. To delete the volume history, use these commands:
QUERY VOLHISTORY TYPE=Remote DELETE VOLHISTORY TYPE=Remote VOLUME=VolumeName TODATE=mm/dd/yyyy FORCE=YES

Example 2-4 and Example 2-5 show examples of the output from these commands.
Example 2-4 Query the volume history tsm: POCO_1>QUERY VOLHISTORY TYPE=Remote Date/Time: Volume Type: Backup Series: Backup Operation: Volume Seq: Device Class: Volume Name: Volume Location: Command: 24.03.2005 12:20:08 REMOTE

3494_3592C J11772 SCAMP_1

Example 2-5 Delete a volume in the volume history tsm: POCO_1>DELETE VOLHISTORY t=remote vol=J11772 todate=03/24/2005 force=yes Do you wish to proceed? (Yes (Y)/No (N)) y ANR2467I DELETE VOLHISTORY: 1 sequential volume history entries were successfully deleted.

Attention: Confirm that you have the right volume name before deleting it!

Chapter 2. Tape library sharing planning

23

Updating the status of this library volume


After using the DELETE VOLHISTORY command, the Tivoli Storage Manager library volume table is the same as before (as shown in Example 2-6).
Example 2-6 Query library volumes tsm: POCO_1>query libvolumes Library Name -----------3494 3494 3494 3494 ACSLS Volume Name ----------J11771 J11772 J11773 J11774 CB5382 Status ---------Scratch Private Scratch Scratch Scratch Owner ---------SCAMP_1 Last Use --------DbBackup Home Element ------Device Type ------

To update the library volume table on the Tivoli Storage Manager Library Manager, you use the UPDATE LIBVOLUME command, as shown in Example 2-7.
Example 2-7 Update a library volume tsm: POCO_1>UPDATE LIBVOLUME 3494 J11772 STATUS=Scratch OWNER='' ANR8445I Volume J11772 in library 3494 updated. tsm: POCO_1>Q LIBV Library Name -----------3494 3494 3494 3494 ACSLS Volume Name ----------J11771 J11772 J11773 J11774 CB5382 Status ---------Scratch Scratch Scratch Scratch Scratch Owner ---------Last Use --------Home Element ------Device Type ------

The library volume is now scratch and can be reused for other purposes.

2.6 Moving to a dedicated Tivoli Storage Manager Library Manager


This example illustrates how to move the Tivoli Storage Manager Library Manager to a new Tivoli Storage Manager server instance where it functions only as the Library Manager (that is, this Tivoli Storage Manager server instance will not have any Tivoli Storage Manager clients). This action is recommended in large environments. This section assumes that you are familiar with library sharing configuration as described in Chapter 3, SCSI tape library sharing on page 43, Chapter 4, IBM 3494 tape library sharing on page 93, and Chapter 5, Library sharing with the ACSLS Manager on page 127. Figure 2-7 shows the original implementation with two Tivoli Storage Manager servers.

24

Get More Out of Your SAN with IBM Tivoli Storage Manager

Host Poco

Host Scamp

Tivoli Storage Manager POCO_1 Library Manager

Tivoli Storage Manager SCAMP_1 Library Client 1

Figure 2-7 Before the Library Manager move

Example 2-8 shows configuration information about the original Tivoli Storage Manager Library Manager. The QUERY LIBRARY command shows the definition of the tape library, the QUERY LIBVOLUMES command shows all library volumes, and the QUERY VOLHISTORY command collects more information about the used volumes.
Example 2-8 Library Manager configuration information tsm: POCO_1>query library f=d Library Name: Library Type: ACS Id: Private Category: Scratch Category: WORM Scratch Category: External Manager: Shared: LanFree: ObeyMountRetention: Primary Library Manager: WWN: Serial Number: AutoLabel: Reset Drives: Last Update by (administrator): Last Update Date/Time: tsm: POCO_1>query libvolumes Library Name -----------3494 3494 3494 3494 Volume Name ----------J11771 J11772 J11773 J11774 Status ---------Private Scratch Private Scratch Owner ---------POCO_1 SCAMP_1 Last Use --------DbBackup Data 3494 349X 701 700

Yes

Yes ADMIN 22.03.2005 13:18:36

tsm: POCO_1>query volhistory Chapter 2. Tape library sharing planning

25

Date/Time: Volume Type: Backup Series: Backup Operation: Volume Seq: Device Class: Volume Name: Volume Location: Command:

28.03.2005 17:54:54 BACKUPFULL 4 0 1 3494_3592C J11771

Date/Time: 29.03.2005 17:47:24 Volume Type: REMOTE Backup Series: Backup Operation: Volume Seq: Device Class: 3494_3592C Volume Name: J11773 Volume Location: SCAMP_1 Command:

Example 2-9 shows the same commands on the Tivoli Storage Manager Library Client.
Example 2-9 Library Client tsm: SCAMP_1>query library f=d Library Name: Library Type: ACS Id: Private Category: Scratch Category: WORM Scratch Category: External Manager: RSM Media Type: Shared: LanFree: ObeyMountRetention: Primary Library Manager: WWN: Serial Number: AutoLabel: Reset Drives: Last Update by (administrator): Last Update Date/Time: tsm: SCAMP_1>query volumes Volume Name ----------------J11773 Storage Pool Name ----------TAPE_3494 Device Class Name ---------3494_3592C Estimated Capacity --------900'000,0 Pct Util ----0,4 Volume Status ------Filling 3494 SHARED

No

POCO_1

No ADMIN 24.03.2005 12:05:57

tsm: SCAMP_1>query volhistory Date/Time: 29.03.2005 17:50:24 Volume Type: STGNEW Backup Series: Backup Operation: Volume Seq:

26

Get More Out of Your SAN with IBM Tivoli Storage Manager

Device Class: 3494_3592C Volume Name: J11773 Volume Location: Command:

Figure 2-8 on page 27 shows the target implementation. The host Scamp now has the Tivoli Storage Manager Library Manager and a Tivoli Storage Manager Library Client on separate server instances. The Tivoli Storage Manager instance on host Poco now acts only as a Tivoli Storage Manager Library Client.
Poco Scamp

Tivoli Storage Manager LM Library Manager Tivoli Storage Manager POCO_1 Library Client 2 Tivoli Storage Manager SCAMP_1 Library Client 1

Figure 2-8 After the Library Manager move

The remainder of this section describes in detail how to move the Library Manager to another Tivoli Storage Manager server instance. Briefly, the steps are: 1. Preparing the new Tivoli Storage Manager Library Manager instance. 2. Checking the server-to-server communication. 3. Stop all activities on all Tivoli Storage Manager servers. 4. Backing up the Tivoli Storage Manager database for all Tivoli Storage Manager servers. 5. Listing all library volumes on the original Library Manager. 6. Checking out library volumes on the original Library Manager. 7. Creating library definitions on the new Library Manager. 8. Checking in library volumes on the new Library Manager. 9. Deleting and defining the library on the old Library Manager. 10.Deleting unneeded volume history entries on the old Library Manager. 11.Updating all libraries on all Library Clients.

Chapter 2. Tape library sharing planning

27

2.6.1 Preparing the new Tivoli Storage Manager Library Manager instance
On the host Scamp, we created a new Tivoli Storage Manager instance called LM. This instance will become the new Library Manager. (For information about how to install a new Tivoli Storage Manager instance on the same host, See the Tivoli Storage Manager documentation.) We then defined the server-to-server communication to the other Tivoli Storage Manager server instances (POCO_1 and SCAMP_1), as shown in Example 2-10.
Example 2-10 Setting up server-to-server communication tsm: LM>SET SERVERPASSWORD secret ANR2131I Server password set. tsm: LM>SET SERVERNAME LM ANR2094I Server name set to LM. tsm: LM>SET SERVERHLADDRESS 9.11.213.9 ANR2132I Server hladdress set to 9.11.213.9. tsm: LM>SET SERVERLLADDRESS 1501 ANR2133I Server lladdress set to 1501. tsm: LM>DEFINE SERVER LM serverpassword=secret HLADDRESS=9.11.213.9 lladdress=1501 ANR1660I Server LM defined successfully. tsm: LM>DEFINE SERVER POCO_1 serverpassword=secret HLADDRESS=9.11.213.110 lladdress=1500 ANR1660I Server POCO_1 defined successfully. tsm: LM>DEFINE SERVER SCAMP_1 serverpassword=secret HLADDRESS=9.11.213.9 lladdress=1500 ANR1660I Server SCAMP_1 defined successfully.

2.6.2 Checking the server-to-server communication


To check the server-to-server communication, use the PING SERVER command. Example 2-11 shows the commands on all three Tivoli Storage Manager servers. We can communicate to the two Library Clients from the new Library Manager (LM) and from both Library Clients (POCO_1 and SCAMP_1) to the Library Manager.
Example 2-11 Ping server on all Tivoli Storage Manager servers tsm: LM>PING SERVER LM ANR1706I Ping for server 'LM' was able to establish a connection. tsm: LM>PING SERVER POCO_1 ANR1706I Ping for server 'POCO_1' was able to establish a connection. tsm: LM>PING SERVER SCAMP_1 ANR1706I Ping for server 'SCAMP_1' was able to establish a connection.

tsm: POCO_1>PING SERVER LM ANR1706I Ping for server 'LM' was able to establish a connection.

tsm: SCAMP_1>PING SERVER LM ANR1706I Ping for server 'LM' was able to establish a connection.

28

Get More Out of Your SAN with IBM Tivoli Storage Manager

2.6.3 Stop all activities on all Tivoli Storage Manager servers


Next, you disable sessions on all Tivoli Storage Manager servers and wait until all sessions are closed. You also need to stop all administrative schedules and wait until all volumes are unmounted. Example 2-12 shows the DISABLE SESSION command on POCO_1. You need to repeat this command for the other Tivoli Storage Manager servers (SCAMP_1 and LM).
Example 2-12 Disable session tsm: POCO_1>DISABLE SESSION ANR2553I Server now disabled for Client access.

Tip: The ENABLE SESSION and DISABLE SESSION commands have been enhanced to allow greater flexibility in which session types are affected.
ENable SESSions CLIent/ALL/SERVer/ADMin DISAble SESSions CLIent/ALL/SERVer/ADMin

CLIent, backup-archive client sessions (default). ALL, all session types. SERVer, server-to-server sessions. ADMin, administrative sessions.

Attention: With the new commands, it is possible to lock out the administrative session itself. If this happens, you must kill the Tivoli Storage Manager server process and restart it in console mode.

2.6.4 Backing up the Tivoli Storage Manager database for all Tivoli Storage Manager servers
You next need to backup the server database, volume history, and device configuration on all the Tivoli Storage Manager servers. Do not continue until all processes have completed successfully. Example 2-13 shows the commands on POCO_1. You need to repeat the commands for the other Tivoli Storage Manager servers (SCAMP_1 and LM).
Example 2-13 Backing up the configuration tsm: POCO_1>BACKUP DB devclass=3494_3592c type=full ANR2280I Full database backup started as process 5. ANS8003I Process number 5 started. tsm: POCO_1>BACKUP VOLHISTORY filename=volhist Do you wish to proceed? (Yes (Y)/No (N)) y ANR2462I BACKUP VOLHISTORY: Server sequential volume history information was written to volhist. tsm: POCO_1>BACKUP DEVCONFIG filename=device Do you wish to proceed? (Yes (Y)/No (N)) y ANR2393I BACKUP DEVCONFIG: Server device configuration information was written to device.

Chapter 2. Tape library sharing planning

29

2.6.5 Listing all library volumes on the original Library Manager


You use a Tivoli Storage Manager SQL command to create a list of all library volumes that are currently defined on the original Library Manager POCO_1. Example 2-14 shows the SQL command and how to redirect the output to a file.
Example 2-14 Tivoli Storage Manager SQL command tsm: POCO_1>select LIBRARY_NAME,VOLUME_NAME,STATUS,OWNER,LAST_USE from libvolumes LIBRARY_NAME ------------3494 3494 3494 3494 VOLUME_NAME -------------J11771 J11772 J11773 J11774 STATUS ---------Private Scratch Private Private OWNER -----------POCO_1 SCAMP_1 POCO_1 LAST_USE ---------DbBackup Data DbBackup

tsm: POCO_1>select LIBRARY_NAME,VOLUME_NAME,STATUS,OWNER,LAST_USE from libvolumes > c:\poco_1_libvolumes.txt Output of command redirected to file 'C:\POCO_1_LIBVOLUMES.TXT'

2.6.6 Checking out library volumes on the original Library Manager


You use the output file that was created in Example 2-14 to create a macro for the CHECKOUT LIBVOLUMES command. The best way for this conversion is to use a spreadsheet program such as Lotus 1-2-3.
Example 2-15 Tivoli Storage Manager macro for the CHECKOUT LIBVOLUMES command checkout checkout checkout checkout libv libv libv libv 3494 3494 3494 3494 J11771 J11772 J11773 J11774 remove=no remove=no remove=no remove=no checkl=no checkl=no checkl=no checkl=no

Then, you start the macro on the old Library Manager, as shown in Example 2-16.
Example 2-16 Start the macro for the CHECKOUT LIBVOLUMES command tsm: POCO_1>macro c:\Poco_1_checkout.mac > poco_1_checkout_output.txt Output of command redirected to file 'POCO_1_CHECKOUT_OUTPUT.TXT'

You next check the Tivoli Storage Manager activity log to confirm that all the volumes were checked out successfully. Example 2-17 shows the Tivoli Storage Manager activity log for the CHECKOUT LIBVOLUMES command.
Example 2-17 Activity log for the CHECKOUT LIBVOLUMES command ANR2017I ANR0984I ANR8434I ANR2017I ANR0984I ANR8434I ANR2017I ANR0984I ANR8434I ANR2017I ANR0984I ANR8434I Administrator ADMIN issued command: CHECKOUT libv 3494 J11771 Process 6 for CHECKOUT LIBVOLUME started in the BACKGROUND at CHECKOUT LIBVOLUME: Operation for volume J11771 in library 3494 Administrator ADMIN issued command: CHECKOUT libv 3494 J11772 Process 7 for CHECKOUT LIBVOLUME started in the BACKGROUND at CHECKOUT LIBVOLUME: Operation for volume J11772 in library 3494 Administrator ADMIN issued command: CHECKOUT libv 3494 J11773 Process 8 for CHECKOUT LIBVOLUME started in the BACKGROUND at CHECKOUT LIBVOLUME: Operation for volume J11773 in library 3494 Administrator ADMIN issued command: CHECKOUT libv 3494 J11774 Process 9 for CHECKOUT LIBVOLUME started in the BACKGROUND at CHECKOUT LIBVOLUME: Operation for volume J11774 in library 3494 remove=no checkl=no 15:10:25. started as process 6. remove=no checkl=no 15:10:25. started as process 7. remove=no checkl=no 15:10:25. started as process 8. remove=no checkl=no 15:10:25. started as process 9.

30

Get More Out of Your SAN with IBM Tivoli Storage Manager

ANR2017I Administrator ADMIN issued command: COMMIT ANR2017I Administrator ADMIN issued command: COMMIT ANR8438I CHECKOUT LIBVOLUME for volume J11771 in library ANR0985I Process 6 for CHECKOUT LIBVOLUME running in the completion state SUCCESS at 15:10:26. ANR8438I CHECKOUT LIBVOLUME for volume J11772 in library ANR0985I Process 7 for CHECKOUT LIBVOLUME running in the completion state SUCCESS at 15:10:27. ANR8438I CHECKOUT LIBVOLUME for volume J11773 in library ANR0985I Process 8 for CHECKOUT LIBVOLUME running in the completion state SUCCESS at 15:10:28. ANR8438I CHECKOUT LIBVOLUME for volume J11774 in library ANR0985I Process 9 for CHECKOUT LIBVOLUME running in the completion state SUCCESS at 15:10:29.

3494 completed successfully. BACKGROUND completed with 3494 completed successfully. BACKGROUND completed with 3494 completed successfully. BACKGROUND completed with 3494 completed successfully. BACKGROUND completed with

All library volumes are now checked out. You can confirm this with the QUERY LIBVOLUMES command. There should be no library volumes, as shown in Example 2-18.
Example 2-18 The QUERY LIBVOLUMES command tsm: POCO_1>q libv ANR2034E QUERY LIBVOLUME: No match found using this criteria. ANS8001I Return code 11.

2.6.7 Creating library definitions on the new Library Manager


You are now ready to define the libraries, the drives, and all paths on the new Tivoli Storage Manager Library Manager, LM. Example 2-19 shows the steps in our environment. You use the same name for the library as before. In our case, this name is 3494.
Example 2-19 Define library, drive, and paths for all Tivoli Storage Manager servers tsm: LM>DEFINE LIBRARY 3494 LIBTYPE=349X SHARED=YES SCRATCHCATegory=700 PRIVATECATegory=701 ANR8400I Library 3494 defined. tsm: LM>DEFINE PATH LM 3494 SRCTYPE=SERVER AUTODETECT=YES DESTTYPE=LIBRARY DEVICE=3494c ANR1720I A path from LM to 3494 has been defined. tsm: LM>DEFINE DRIVE 3494 3494_01 ANR8404I Drive 3494_01 defined in library 3494. tsm: LM>DEFINE DRIVE 3494 3494_02 ANR8404I Drive 3494_02 defined in library 3494. tsm: LM>DEFINE PATH LM 3494_01 srct=server autodetect=yes destt=drive libr=3494 device=\\.\Tape2 ANR1720I A path from LM to 3494 3494_01 has been defined. tsm: LM>DEFINE PATH LM 3494_02 srct=server autodetect=yes destt=drive libr=3494 device=\\.\Tape3 ANR1720I A path from LM to 3494 3494_02 has been defined. tsm: LM>DEFINE PATH POCO_1 3494_01 srct=server autodetect=yes destt=drive libr=3494 device=/dev/rmt2 ANR1720I A path from POCO_1 to 3494 3494_01 has been defined. tsm: LM>DEFINE PATH POCO_1 3494_02 srct=server autodetect=yes destt=drive libr=3494 device=/dev/rmt3 ANR1720I A path from POCO_1 to 3494 3494_02 has been defined.

Chapter 2. Tape library sharing planning

31

tsm: LM>DEFINE PATH SCAMP_1 3494_01 srct=server autodetect=yes destt=drive libr=3494 device=\\.\Tape2 ANR1720I A path from SCAMP_1 to 3494 3494_01 has been defined. tsm: LM>DEFINE PATH SCAMP_1 3494_02 srct=server autodetect=yes destt=drive libr=3494 device=\\.\Tape3 ANR1720I A path from SCAMP_1 to 3494 3494_02 has been defined. tsm: LM>DEFINE DEVCLASS 3494_3592C LIBRARY=3494 DEVTYPE=3592 ANR2203I Device class 3494_3592C defined.

2.6.8 Checking in library volumes on the new Library Manager


The tape library is now defined, and you can check in the library volumes. To check in library volumes, you use the output file that is shown in Example 2-14 on page 30 to create a Tivoli Storage Manager macro. The best way for this conversion is to use a spreadsheet program such as Lotus 1-2-3. The command format that you use depends on the library type. (For more information, see the Tivoli Storage Manager manual for the CHECKIN LIBVOLUMES command.) Example 2-20 shows our macro. Running it ensures that the volumes remain assigned to the same Tivoli Storage Manager server.
Example 2-20 Tivoli Storage Manager macro for the CHECKIN LIBVOLUMES command checkin checkin checkin checkin libv libv libv libv 3494 3494 3494 3494 J11771 J11772 J11773 J11774 status=Private status=Scratch status=Private status=Private owner=POCO_1 checkl=no owner="" checkl=no owner=SCAMP_1 checkl=no owner=SCAMP_1 checkl=no

Next, you run the macro to check in the library volumes on the new Library Manager, as shown in Example 2-21.
Example 2-21 Start the macro for the CHECKIN LIBVOLUMES command tsm: LM>macro c:\LM_checkin.mac > c:\LM_checkin_output.txt Output of command redirected to file 'C:\LM_CHECKIN_OUTPUT.TXT'

Check the Tivoli Storage Manager activity log after the command to confirm that all processes completed successfully. Example 2-22 shows the activity log for the CHECKIN LIBVOLUMES command.
Example 2-22 Activity log for the CHECKIN LIBVOLUMES command ANR2017I Administrator ADMIN issued command: CHECKIN libv 3494 J11771 status=Private owner=POCO_1 checkl=no ANR0984I Process 3 for CHECKIN LIBVOLUME started in the BACKGROUND at 16:10:49. ANR8422I CHECKIN LIBVOLUME: Operation for library 3494 started as process 3. ANR2017I Administrator ADMIN issued command: CHECKIN libv 3494 J11772 status=Scratch owner= checkl=no ANR0984I Process 4 for CHECKIN LIBVOLUME started in the BACKGROUND at 16:10:50. ANR8422I CHECKIN LIBVOLUME: Operation for library 3494 started as process 4. ANR2017I Administrator ADMIN issued command: CHECKIN libv 3494 J11773 status=Private owner=SCAMP_1 checkl=no ANR0984I Process 5 for CHECKIN LIBVOLUME started in the BACKGROUND at 16:10:50. ANR8422I CHECKIN LIBVOLUME: Operation for library 3494 started as process 5. ANR2017I Administrator ADMIN issued command: CHECKIN libv 3494 J11774 status=Private owner=SCAMP_1 checkl=no ANR0984I Process 6 for CHECKIN LIBVOLUME started in the BACKGROUND at 16:10:50. ANR8422I CHECKIN LIBVOLUME: Operation for library 3494 started as process 6.

32

Get More Out of Your SAN with IBM Tivoli Storage Manager

ANR2017I Administrator ADMIN issued command: COMMIT ANR2017I Administrator ADMIN issued command: COMMIT ANR8427I CHECKIN LIBVOLUME for volume J11771 in library ANR0985I Process 3 for CHECKIN LIBVOLUME running in the completion state SUCCESS at 16:11:08. ANR8427I CHECKIN LIBVOLUME for volume J11772 in library ANR0985I Process 4 for CHECKIN LIBVOLUME running in the completion state SUCCESS at 16:11:11. ANR8427I CHECKIN LIBVOLUME for volume J11773 in library ANR0985I Process 5 for CHECKIN LIBVOLUME running in the completion state SUCCESS at 16:11:15. ANR8427I CHECKIN LIBVOLUME for volume J11774 in library ANR0985I Process 6 for CHECKIN LIBVOLUME running in the completion state SUCCESS at 16:11:18.

3494 completed successfully. BACKGROUND completed with 3494 completed successfully. BACKGROUND completed with 3494 completed successfully. BACKGROUND completed with 3494 completed successfully. BACKGROUND completed with

All library volumes should be available now on the new Library Manager. You can confirm their availability with the QUERY LIBVOLUMES command on the Tivoli Storage Manager server. Compare the results (Example 2-23) with the output on the previous Library Manager (Example 2-14 on page 30). The results should be the same, except for the column Last Use, which is filled when each volume is accessed again.
Example 2-23 QUERY LIBVOLUMES after CHECKIN LIBVOLUMES tsm: LM>q libv Library Name Volume Name -----------3494 3494 3494 3494 ----------J11771 J11772 J11773 J11774 Status ---------Private Scratch Private Private Owner ---------POCO_1 SCAMP_1 SCAMP_1 Last Use --------Home Element ------Device Type ------

2.6.9 Deleting and defining the library on the old Library Manager
To this point, the libraries, drives, and paths are defined on the old Library Manager. You can now delete these definitions, because you have a new Library Manager. Example 2-24 shows the deletion.
Example 2-24 Deleting all paths, drives, and libraries on the old Library Manager tsm: POCO_1>DELETE PATH SCAMP_1 3494_01 srct=server destt=drive libr=3494 ANR1721I A path from SCAMP_1 to 3494 3494_01 has been deleted. tsm: POCO_1>DELETE PATH SCAMP_1 3494_02 srct=server destt=drive libr=3494 ANR1721I A path from SCAMP_1 to 3494 3494_02 has been deleted. tsm: POCO_1>DELETE PATH POCO_1 3494_01 srct=server destt=drive libr=3494 ANR1721I A path from POCO_1 to 3494 3494_01 has been deleted. tsm: POCO_1>DELETE PATH POCO_1 3494_02 srct=server destt=drive libr=3494 ANR1721I A path from POCO_1 to 3494 3494_02 has been deleted. tsm: POCO_1>DELETE PATH POCO_1 3494 srct=server destt=library ANR1721I A path from POCO_1 to 3494 has been deleted. tsm: POCO_1>DELETE DRIVE 3494 3494_01 ANR8412I Drive 3494_01 deleted from library 3494. tsm: POCO_1>DELETE DRIVE 3494 3494_02 ANR8412I Drive 3494_02 deleted from library 3494. tsm: POCO_1>DELETE LIBRARY 3494 ANR8410I Library 3494 deleted.

Chapter 2. Tape library sharing planning

33

Next, because the former Library Manager is now a Library Client, you need to redefine the shared library so that it points to the new Library Manager, as shown in Example 2-25.
Example 2-25 Defining the shared Library on the former Library Manager tsm: POCO_1>DEFINE LIBRARY 3494 libtype=shared primarylibmanager=LM ANR8400I Library 3494 defined. tsm: POCO_1>q libr f=d Library Name: Library Type: ACS Id: Private Category: Scratch Category: WORM Scratch Category: External Manager: Shared: LanFree: ObeyMountRetention: Primary Library Manager: WWN: Serial Number: AutoLabel: Reset Drives: Last Update by (administrator): Last Update Date/Time: 3494 SHARED

No

LM

No ADMIN 30.03.2005 16:25:57

2.6.10 Deleting unneeded volume history entries on the old Library Manager
Next, you need to delete all volume history entries with the type remote on the previous Library Manager. To find these entries, query the volume history table on the old Library Manager, as shown in Example 2-26. Important: If you do not delete these entries, if the previous Library Manager requests a scratch volume from the new Library Manager, and if the volume granted is still in its volume history, the volume will be rejected (for example, ANR8448E Scratch volume J11772 from library 3494 rejected because the volume name is already in use).
Example 2-26 Query volume history with type=remote tsm: POCO_1>QUERY Date/Time: Volume Type: Backup Series: Backup Operation: Volume Seq: Device Class: Volume Name: Volume Location: Command: Date/Time: Volume Type: Backup Series: Backup Operation: Volume Seq: Device Class: Volume Name: Volume Location: Command: VOLHISTORY type=remote 28.03.2005 18:00:31 REMOTE

3494_3592C J11774 SCAMP_1 29.03.2005 17:47:24 REMOTE

3494_3592C J11773 SCAMP_1

34

Get More Out of Your SAN with IBM Tivoli Storage Manager

To delete these entries, you make a Tivoli Storage Manager macro, use a Tivoli Storage Manager SQL command to query the volume history, and then use a spreadsheet program to create the macro, as shown in Example 2-27.
Example 2-27 Tivoli Storage Manager SQL command tsm: POCO_1>select VOLUME_NAME,DATE_TIME from volhistory where type='REMOTE' VOLUME_NAME: J11774 DATE_TIME: 2005-03-28 18:00:31.000000 VOLUME_NAME: J11772 DATE_TIME: 2005-03-29 17:20:12.000000 VOLUME_NAME: J11773 DATE_TIME: 2005-03-29 17:47:24.000000 tsm: POCO_1>select VOLUME_NAME,DATE_TIME from volhistory where type='REMOTE' > c:\poco_1_volh_remote.txt Output of command redirected to file 'C:\POCO_1_VOLH_REMOTE.TXT'

Example 2-28 shows the macro.


Example 2-28 Macro to delete the entry in the volume history on the old Library Manager DELETE VOLHISTORY t=remote vol=J11774 todate=03/28/2005 force=yes DELETE VOLHISTORY t=remote vol=J11772 todate=03/29/2005 force=yes DELETE VOLHISTORY t=remote vol=J11773 todate=03/29/2005 force=yes

You can now run the macro and check the Tivoli Storage Manager activity log for errors (Example 2-29).
Example 2-29 Activity log of DELETE VOLHISTORY on old Library Manager ANR2017I Administrator ADMIN issued command: DELETE VOLHISTORY t=remote vol=J11774 todate=03/28/2005 force=yes ANR2467I DELETE VOLHISTORY: 1 sequential volume history entries were successfully deleted. ANR2017I Administrator ADMIN issued command: DELETE VOLHISTORY t=remote vol=J11772 todate=03/29/2005 force=yes ANR2467I DELETE VOLHISTORY: 1 sequential volume history entries were successfully deleted. ANR2017I Administrator ADMIN issued command: DELETE VOLHISTORY t=remote vol=J11773 todate=03/29/2005 force=yes ANR2467I DELETE VOLHISTORY: 1 sequential volume history entries were successfully deleted. ANR2017I Administrator ADMIN issued command: COMMIT ANR2017I Administrator ADMIN issued command: COMMIT

Chapter 2. Tape library sharing planning

35

2.6.11 Updating all libraries on all Library Clients


The last step is to update the libraries on all Library Clients to use the new Library Manager. In our environment, we updated the Library Client SCAMP_1 (Example 2-30).
Example 2-30 Update shared library on Library Client tsm: SCAMP_1>QUERY LIBRARY 3494 f=d Library Name: Library Type: ACS Id: Private Category: Scratch Category: WORM Scratch Category: External Manager: RSM Media Type: Shared: LanFree: ObeyMountRetention: Primary Library Manager: WWN: Serial Number: AutoLabel: Reset Drives: Last Update by (administrator): Last Update Date/Time: 3494 SHARED

No

POCO_1

No ADMIN 24.03.2005 12:05:57

tsm: SCAMP_1>UPDATE LIBRARY 3494 primarylibmanager=LM ANR8465I Library 3494 updated. tsm: SCAMP_1>QUERY LIBRARY 3494 f=d Library Name: Library Type: ACS Id: Private Category: Scratch Category: WORM Scratch Category: External Manager: RSM Media Type: Shared: LanFree: ObeyMountRetention: Primary Library Manager: WWN: Serial Number: AutoLabel: Reset Drives: Last Update by (administrator): Last Update Date/Time: 3494 SHARED

No

LM

No ADMIN 30.03.2005 16:33:06

You are now ready to use the new Library Manager. You can enable all sessions on all Tivoli Storage Manager servers.

36

Get More Out of Your SAN with IBM Tivoli Storage Manager

2.7 Command differences in a library sharing environment


There are some commands which execute differently when issued in a library sharing environment (that is, the results are different depending on whether they are run at the Library Manager or a Library Client). This section describes those command differences.

2.7.1 Auditing the library


The AUDIT LIBRARY command works differently in a Tivoli Storage Manager library sharing environment compared to a non-shared environment.

On the Library Manager


When the AUDIT LIBRARY command is issued on a Library Manager for a shared library, the Library Manager updates ownership of its volumes if it detects inconsistencies and synchronizes its inventory with the inventory of the library device. If the Library Manager detects inconsistencies, it deletes missing volumes from its inventory. In addition, the Library Manager: In SCSI libraries, updates the locations of volumes in its inventory that have been moved since the last audit. In 349X libraries, ensures that scratch volumes are in the scratch category and that private volumes are in the private category. Note: Issuing the AUDIT LIBRARY command does not add new volumes to a library automatically. To add new volumes, you must use the CHECKIN LIBVOLUME command. Example 2-31 shows the use of the AUDIT LIBRARY command on a Library Manager.
Example 2-31 AUDIT LIBRARY on the Library Manager with a 3494 library ANR2017I Administrator ADMIN issued command: AUDIT LIBR 3494 ANR0984I Process 2 for AUDIT LIBRARY started in the BACKGROUND at 15:10:20. ANR8457I AUDIT LIBRARY: Operation for library 3494 started as process 2. ANR8461I AUDIT LIBRARY process for library 3494 completed successfully. ANR0985I Process 2 for AUDIT LIBRARY running in the BACKGROUND completed with completion state SUCCESS at 15:10:21.

For a SCSI library, the AUDIT LIBRARY command mounts and reads the label on each tape to verify its identity. Depending on the library capacity, this process can take a long time. Use the CHECKLABEL=BARCODE parameter (as shown in Example 2-32) so that Tivoli Storage Manager uses the barcode reader to read the storage label. This parameter decreases the audit processing time, compared with loading and reading each label from the tape. Note: If the scanner cannot read the barcode label or the barcode label is missing, Tivoli Storage Manager loads that tape in a drive to read the label.

Example 2-32 AUDIT LIBRARY with CHECKLABEL=BARCODE ANR2017I Administrator ADMIN issued command: AUDIT LIBR 3582 checkl=barcode ANR0984I Process 3 for AUDIT LIBRARY started in the BACKGROUND at 15:35:46. ANR8457I AUDIT LIBRARY: Operation for library 3582 started as process 3. ANR8461I AUDIT LIBRARY process for library 3582 completed successfully. ANR0985I Process 3 for AUDIT LIBRARY running in the BACKGROUND completed with completion state SUCCESS at 15:35:53.

Chapter 2. Tape library sharing planning

37

Attention: Running the AUDIT LIBRARY command prevents any other library activity from starting until the audit completes. For example, Tivoli Storage Manager does not process restore or retrieve requests that involve the library while the AUDIT LIBRARY command is running.

Attention: If other activity is occurring in the library, do not issue the AUDIT LIBRARY command. In this case, issuing the AUDIT LIBRARY command can produce unpredictable results (for example, a hang condition) if a process that is accessing the library attempts to acquire a new tape mount.

On the Library Client


When the AUDIT LIBRARY command is issued on a Library Client, the client synchronizes its inventory with the inventory on the Library Manager. If the Library Client detects inconsistencies, it corrects them by changing the ownership of the volume on the Library Manager. Example 2-33 contains sample output and shows that a server-to-server session is started with the Library Manager.
Example 2-33 AUDIT LIBRARY on the Library Client ANR2017I Administrator ADMIN issued command: AUDIT LIBR 3494 ANR0984I Process 21 for AUDIT LIBRARY started in the BACKGROUND at 15:26:30. ANR8457I AUDIT LIBRARY: Operation for library 3494 started as process 21. ANR0408I Session 70 started for server POCO_1 (AIX-RS/6000) (Tcp/Ip) for library sharing. ANR0409I Session 70 ended for server POCO_1 (AIX-RS/6000). ANR8461I AUDIT LIBRARY process for library 3494 completed successfully. ANR0985I Process 21 for AUDIT LIBRARY running in the BACKGROUND completed with completion state SUCCESS at 15:26:30.

2.7.2 The QUERY MOUNT and QUERY DRIVE commands


These two commands are used to display the tapes that are mounted currently and the drives that are defined on a Tivoli Storage Manager server.

On the Library Manager


With the QUERY MOUNT command, you see the status of all sequential access volumes that are mounted. On the Library Manager, this command shows information for mounts by both the Library Manager and all Library Clients. Example 2-34 shows some examples.
Example 2-34 QUERY MOUNT on the Tivoli Storage Manager Library Manager tsm: LM>q mo ANR8379I Mount point in device class 3494_3592C is waiting for the volume mount to complete, status: WAITING FOR VOLUME. ANR8334I 1 matches found. tsm: LM>q mo ANR8330I 3592 volume J11772 is mounted R/W in drive 3494_01 (\\.\Tape2), status: IN USE. ANR8334I 1 matches found. tsm: LM>q mo ANR8331I 3592 volume J11772 is mounted R/W in drive 3494_01 (\\.\Tape2), status: DISMOUNTING. ANR8334I 1 matches found. tsm: LM>q mo ANR2034E QUERY MOUNT: No match found using this criteria.

38

Get More Out of Your SAN with IBM Tivoli Storage Manager

The QUERY DRIVE command shows all information about a drive, including the drive state, name of volume (if loaded), and which Tivoli Storage Manager server is using this drive (Example 2-35).
Example 2-35 QUERY DRIVE on the Tivoli Storage Manager Library Manager tsm: LM>query drive 3494 3494_01 f=d Library Name: Drive Name: Device Type: On-Line: Read Formats: Write Formats: Element: Drive State: Volume Name: Allocated to: WWN: Serial Number: Last Update by (administrator): Last Update Date/Time: Cleaning Frequency (Gigabytes/ASNEEDED/NONE): 3494 3494_02 3592 Yes 3592C,3592 3592C,3592 LOADED J11772 POCO_1 5005076300000000 000001300114 ADMIN 30.03.2005 15:31:02

On the Library Client


With the QUERY MOUNT command, you see the status of all sequential access volumes that are mounted for this Tivoli Storage Manager Library Client only. Example 2-36 shows some examples.
Example 2-36 QUERY MOUNT on the Tivoli Storage Manager Library Client tsm: POCO_1>q mo ANR8379I Mount point in device class 3494_3592C is waiting for the volume mount to complete, status: WAITING FOR VOLUME. ANR8334I 1 matches found. tsm: POCO_1>q mo ANR8330I 3592 volume J11772 is mounted R/W in drive 3494_01 (/dev/rmt2), status: IN USE. ANR8334I 1 matches found. tsm: POCO_1>q mo ANR8331I 3592 volume J11772 is mounted R/W in drive 3494_01 (/dev/rmt2), status: DISMOUNTING. ANR8334I 1 matches found. tsm: POCO_1>q mo ANR2034E QUERY MOUNT: No match found using this criteria.

The QUERY DRIVE command cannot be used on the Tivoli Storage Manager Library Client (Example 2-37), because there are no drives defined.
Example 2-37 QUERY DRIVE on the Tivoli Storage Manager Library Manager tsm: POCO_1>query drive 3494 3494_01 f=d ANR2034E QUERY DRIVE: No match found using this criteria. ANS8001I Return code 11.

Chapter 2. Tape library sharing planning

39

2.8 Interactions between Library Manager and Library Client


A Library Client contacts the Library Manager, when: The Library Manager starts. A shared storage device initializes. After a Library Manager is defined to a Library Client. The Tivoli Storage Manager Library Client confirms that the contacted server is the Tivoli Storage Manager Library Manager for the named library device. The Library Client also compares drive definitions with the Library Manager for consistency. The Library Client contacts the Library Manager for each of the following operations: Volume Mount A Library Client sends a request to the Library Manager for access to a particular volume in the shared library device. For a scratch volume, the Library Client does not specify a volume name. If the Library Manager cannot access the requested volume or if a scratch volume is not available, the Library Manager denies the mount request. If the mount is successful, the Library Manager returns the name of the drive where the volume is mounted. Volume Release (free to scratch) When a Library Client no longer needs a volume (for example, after reclamation), it notifies the Library Manager that the volume should be returned to scratch. The Library Managers database is updated with the volumes new location. The volume is deleted from the volume inventory of the Library Client.

40

Get More Out of Your SAN with IBM Tivoli Storage Manager

Table 2-4 shows some Tivoli Storage Manager commands and associated actions that are performed on the Tivoli Storage Manager Library Manager or Tivoli Storage Manager Library Client.
Table 2-4 Interactions between Library Manager and Library Client Operation (command) Query library volumes (QUERY LIBVOLUME) Check in and check out library volumes (CHECKIN LIBVOLUME, CHECKOUT LIBVOLUME) Move media and move DRM media (MOVE MEDIA, MOVE DRMEDIA) Audit library inventory (AUDIT LIBRARY) Label a library volume (LABEL LIBVOLUME) Dismount a volume (DISMOUNT VOLUME) Query a volume (QUERY VOLUME) Tivoli Storage Manager Library Manager Displays the volumes that are checked into the library. For private volumes, the owner server is also displayed Performs the commands to the library device. Tivoli Storage Manager Library Client Not applicable.

Not applicable. When a check-in operation must be performed because of a client restore, a request is sent to the Library Manager server. Requests that the Library Manager perform the operations. Generates a checkout process on the Library Manager. Performs inventory synchronization with the Library Manager. Not applicable. Requests that the Library Manager perform the operation. Requests that the Library Manager perform the operation

Only valid for volumes that are used by the Library Manager.

Performs inventory synchronization with the library device. Performs the labeling and check in of media. Sends the request to the library device. Checks whether the volume is owned by the requesting Library Client and checks whether the volume is in the library device.

Chapter 2. Tape library sharing planning

41

42

Get More Out of Your SAN with IBM Tivoli Storage Manager

Chapter 3.

SCSI tape library sharing


This chapter describes Tivoli Storage Manager library sharing with direct or Fibre Channel attached SCSI libraries and how to implement library sharing in a typical environment. This chapter contains the following topics: Introduction to SCSI tape library sharing Library sharing with SCSI/FC tape libraries SAN zoning information Installing on IBM AIX Installing on Microsoft Windows 2000 Installing on Linux Installing on SUN Solaris

Tivoli Storage Manager configuration

Copyright IBM Corp. 2005. All rights reserved.

43

3.1 Introduction to SCSI tape library sharing


This section introduces some important concepts related to SCSI tape library sharing.

3.1.1 SCSI libraries


A SCSI library is controlled through a SCSI interface that is attached either directly to the server's host using SCSI cabling or by a SAN. A robot or other mechanism handles volume mounts and dismounts automatically. The drives in a SCSI library might be of different types. This chapter considers only SAN-attached SCSI libraries. IBM Linear Tape Open (LTO) libraries (for example, 3582, 3583, and 3584) are SCSI libraries.

3.1.2 Library medium changer


The library medium changer gives the Library Manager access to the functions that are required for basic tape operations such as backup and restore and medium changer operations such as mount and demount the cartridges, as well as the advanced functions that are needed by full tape management systems. Tivoli Storage Manager supports the use of the Tivoli Storage Manager device driver, which is supplied with Tivoli Storage Manager for non-IBM devices. Tivoli Storage Manager supports the IBM device driver for IBM devices. On the Tivoli Storage Manager Library Client, you do not use or configure the library medium changer device. You use and configure the library medium only on the Library Manager. For SCSI/FC attached drives, we do not need a special connection to the tape library controller, because the tape library controller can be accessed through one of the SCSI/FC attached drives. Figure 3-1 shows a library with eight drives. It is configured to access the controller through the first drive.

Device special file


Library controller

Function
Library Medium Changer Drive

Number
1 8

Drive Drive Drive Drive Drive Drive Drive Drive

Figure 3-1 SCSI/FC attached tape library

44

Get More Out of Your SAN with IBM Tivoli Storage Manager

SAN

Tivoli Storage Manager server

For this configuration on the Library Manager, we have one operating system device special file for the library medium changer (for example, for IBM AIX /dev/smc0) and eight device special files for the drives that are available (for example, /dev/rmt0). If the drive that is used for the control path is not available, you lose access to the tape library medium changer. To circumvent this loss of access, some tape libraries offer library control path failover.

Control path and data path failover


If your library offers this feature, you can enable more than one drive to connect to the library controller (as shown in Figure 3-2). In this configuration, you setup paths to the controller on the first two drives. The operating system now sees two device special files for the same physical tape library controller. If one drive is not available, you can access the library via the path on the second drive.

Device special file


Library controller

Function
Library Medium Changer Drive

Number
2 8

Drive Drive Drive Drive Drive Drive Drive Drive

Tivoli Storage Manager server

Figure 3-2 SCSI/FC attached tape library with control path failover

Important: It is highly recommended to use dedicated HBAs for attachment to the tape drives and libraries that is, do not also access non-tape devices on the same Host Bus Adapter (HBA). In the case of IBM devices, sharing tape and non-tape devices on the same HBA is not a supported configuration.

SAN

Chapter 3. SCSI tape library sharing

45

3.2 Library sharing with SCSI/FC tape libraries


This section describes how to install the IBM device driver for IBM AIX, Microsoft Windows, Linux, and SUN Solaris. Figure 3-3 shows the interrelationship between the Tivoli Storage Manager Library Manager, Tivoli Storage Manager Library Client, and the tape library.

Tivoli Storage Manager Library Client

Tivoli Storage Manager Library Manager

Server-to-Server communication
LAN

Data Flow

Data Flow Library Control SCSI

SAN

Tape Library

Figure 3-3 SCSI library sharing overview

3.2.1 SAN zoning information


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. All Tivoli Storage Manager Library Clients and the Tivoli Storage Manager Library Manager must have access to all shared drives to use the Tivoli Storage Manager Library Sharing function. It is recommended that you allow all Tivoli Storage Manager Library Clients to use all tape drives. For more information, see 2.5.4, Drive allocation on page 22. Table 3-1 on page 47 shows an example of SAN zoning that you can use. In this configuration, there is a Library Manager (LM) and two Library Clients (LC1 and LC2). Each host has two HBAs (fcs1 and fcs2). The library is an IBM 3584 with two fibre drives.

46

Get More Out of Your SAN with IBM Tivoli Storage Manager

Table 3-1 SAN zoning Name of Zone z_LM_fa1 Zone Members a_LM_fcs1 a_3584_dr1 a_3584_dr2 a_LM_fcs2 a_3584_dr3 a_3584_dr4 a_LC1_fcs1 a_3584_dr1 a_3584_dr2 a_LC1_fcs2 a_3584_dr3 a_3584_dr4 a_LC2_fcs1 a_3584_dr1 a_3584_dr2 a_LC2_fcs2 a_3584_dr3 a_3584_dr4 Purpose Tivoli Storage Manager Library Manager zone for SAN Fabric 1 with the first HBA. Tivoli Storage Manager Library Manager zone for SAN Fabric 2 with the second HBA. Tivoli Storage Manager Library Client 1 zone for SAN Fabric 1 with the first HBA. Tivoli Storage Manager Library Client 1 zone for SAN Fabric 2 with the second HBA. Tivoli Storage Manager Library Client 2 zone for SAN Fabric 1 with the first HBA. Tivoli Storage Manager Library Client 2 zone for SAN Fabric 2 with the second HBA.

z_LM_fa2

z_LC1_fa1

z_LC1_fa2

z_LC2_fa1

z_LC2_fa2

For further information about SAN zoning, see the IBM Redbook IBM TotalStorage: Implementing an Open IBM SAN, SG24-6116.

3.2.2 Installing on IBM AIX


This section shows the steps that are required to create the tape library medium changer and the drive special files on IBM AIX. It uses the host AZOV with two HBAs as the Library Manager. The library is an IBM 3582 with two FC Ultrium drives. This example creates zones so that each HBA on AZOV can see both the drives. After configuring this zoning on the IBM AIX server, you see the connected drives as shown in Example 3-1. Because there are two HBAs, you see two device files for each drive.
Example 3-1 AIX: lsdev -Cctape before IBM tape driver installation azov.almaden.ibm.com:/# rmt0 Available 1Z-08-02 rmt1 Available 1Z-08-02 rmt2 Available 1D-08-02 rmt3 Available 1D-08-02 lsdev Other Other Other Other -Cctape FC SCSI FC SCSI FC SCSI FC SCSI Tape Tape Tape Tape Drive Drive Drive Drive

The drives show as generic Other FC SCSI Tape Drive because the correct device driver has not yet been installed. Because this example uses an IBM tape library and drives, you install the IBM device driver (Atape). This driver is designed specifically to take advantage of the features that are provided by the IBM Ultrium tape drives and medium changer devices. For more information, see Part 2 in IBM Ultrium Device Drivers Installation and Users Guide, GA32-0430. You can download the Atape driver package from:
ftp://ftp.software.ibm.com/storage/devdrvr/AIX/

For non-IBM drives, you would use the Tivoli Storage Manager device driver instead.

Chapter 3. SCSI tape library sharing

47

Use the SMIT command to install the packages, as shown in Example 3-2. After the driver installation, you should reboot the server as soon as possible, because the installation updates the system boot image.
Example 3-2 AIX: Atape installation with SMIT COMMAND STATUS Command: OK stdout: yes stderr: no

Before command completion, additional instructions may appear below. [TOP] geninstall -I "a -cgNQqwX -J"

-Z

-d . -f File 2>&1

File: I:Atape.driver 9.3.3.0 +-----------------------------------------------------------------------------+ 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.3.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.3.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.

# IBM AIX Enhanced Tape and Me...

48

Get More Out of Your SAN with IBM Tivoli Storage Manager

. . . . . << 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. Adding utility programs... Finished processing all filesets. (Total time:

10 secs).

0503-409 installp: bosboot verification starting... installp: bosboot verification completed. 0503-408 installp: bosboot process starting... bosboot: Boot image is 19708 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.3.0 USR APPLY SUCCESS [BOTTOM] F1=Help F6=Command F8=Image n=Find Next F2=Refresh F9=Shell F3=Cancel F10=Exit /=Find

Chapter 3. SCSI tape library sharing

49

After rebooting, check the drives again with the lsdev command, as shown in Example 3-3. Now, the correct device type is shown because the drives are configured with the IBM tape device driver.
Example 3-3 AIX: lsdev -Cctape after IBM tape driver installation azov.almaden.ibm.com:/# rmt0 Available 1Z-08-02 rmt1 Available 1Z-08-02 rmt2 Available 1D-08-02 rmt3 Available 1D-08-02 smc0 Available 1Z-08-02 smc1 Available 1Z-08-02 smc2 Available 1D-08-02 smc3 Available 1D-08-02 lsdev -Cctape IBM 3580 Ultrium IBM 3580 Ultrium IBM 3580 Ultrium IBM 3580 Ultrium IBM 3582 Library IBM 3582 Library IBM 3582 Library IBM 3582 Library Tape Drive (FCP) Tape Drive (FCP) Tape Drive (FCP) Tape Drive (FCP) Medium Changer (FCP) Medium Changer (FCP) Medium Changer (FCP) Medium Changer (FCP)

Tip: If the drives do not appear, run configuration manager (cfgmgr) to rescan for devices on the FC HBAs, as shown in Example 3-4.
Example 3-4 AIX: cfgmgr azov.almaden.ibm.com:/# lsdev -Ccadapter ent0 Available 1L-08 10/100 Mbps Ethernet PCI Adapter II (1410ff01) ent1 Available 1n-08 IBM 10/100/1000 Base-T Ethernet PCI Adapter (14100401) ent2 Available 14-08 10/100 Mbps Ethernet PCI Adapter II (1410ff01) fcs0 Available 1Z-08 FC Adapter fcs1 Available 1D-08 FC Adapter fda0 Available 01-D1 Standard I/O Diskette Adapter ide0 Available 1G-19 ATA/IDE Controller Device lai0 Available 12-00 GXT135P Graphics Adapter ppa0 Available 01-R1 CHRP IEEE1284 (ECP) Parallel Port Adapter sa0 Available 01-S1 Standard I/O Serial Port sa1 Available 01-S2 Standard I/O Serial Port sa2 Available 01-S3 Standard I/O Serial Port scsi0 Available 1S-08 Wide/Ultra-3 SCSI I/O Controller scsi1 Available 1S-09 Wide/Ultra-3 SCSI I/O Controller scsi2 Available 1c-08 Wide/Fast-20 SCSI I/O Controller sioka0 Available 01-K1-00 Keyboard Adapter siokma0 Available 01-K1 Keyboard/Mouse Adapter sioma0 Available 01-K1-01 Mouse Adapter azov.almaden.ibm.com:/# cfgmgr -l fcs0 azov.almaden.ibm.com:/# cfgmgr -l fcs1 azov.almaden.ibm.com:/#

Example 3-3 shows four rmt devices have been made available. However, there are only two tape drives in the tape library. The extra rmt devices appear because AZOV has two HBAs installed, and both are zoned for both tape drives using just one SAN fabric, as shown in Figure 3-4 on page 51. Therefore, there are two paths that are available to each drive and, consequently, two devices configured for each physical device. Example 3-3 also shows four library medium changers for only one physical library. The extra medium changers appear because of the two SAN paths to each drive and the library control path failover feature on the IBM 3582 tape library is used. This means each drive is enabled for the control path, and there are two paths to each drive, making four medium changer devices in all. With this feature, if one library control path failed, the library can be accessed via the other control path.

50

Get More Out of Your SAN with IBM Tivoli Storage Manager

Host AZOV HBA fcs0 HBA fcs1

SAN Zoning
Name of Zone z_azov_fcs0 Zone Members a_azov_fcs0 a_3582_dr1 a_3582_dr2 a_azov_fcs1 a_3582_dr1 a_3582_dr2

SAN Fabric

z_azov_fcs1

Drive 1 Tape Library 3582

Drive 2

Figure 3-4 SAN zoning

In Example 3-3 on page 50, the devices /dev/rmt0 and /dev/rmt2 point to the same target drive. You can check this with the lsattr command on AIX (Example 3-5). Note that the node names and World Wide Node Name are the same for both devices. In the Tivoli Storage Manager drive path definition, this example uses either /dev/rmt0 or /dev/rmt2 for this drive but not both at the same time. If you lose one path to the drive, you can either update the Tivoli Storage Manager drive path manually or use the new Tivoli Storage Manager V5.3 SANDISCOVERY feature. (For more information about SANDISCOVERY, see Chapter 9, Tivoli Storage Manager SAN Discovery on page 253.) Similarly, /dev/rmt1 and /dev/rmt3 point to the same target drive.
Example 3-5 AIX: lsattr azov.almaden.ibm.com:/# lsattr -El rmt0 alt_pathing no Enable Alternate Pathing Support autoload no Use Autoloading Feature at End-of-Tape block_size 0 Block Size (0=Variable Length) compress yes Use Hardware Compression on Tape debug_trace no Debug Trace Logging Enabled dev_status N/A devtype ULT3580Device Type location Location logging no Activate volume information logging lun_id 0x0 Logical Unit Number max_log_size 500 Maximum size of log file (in # of entries) new_name New Logical Name node_name 0x500308c140067006 World Wide Node Name primary_device rmt0 Primary Logical Device retain_reserve no Retain Reservation rew_immediate no Use Immediate Bit in Rewind Commands scsi_id 0x502cb SCSI Target ID space_mode SCSI Backward Space/Forward Space Record Mode trace_logging no Trace Logging Enabled trailer_labels no Trailer Label Processing ww_name 0x500308c140467006 World Wide Port Name True True True True True False False True True True True True False False False True True True True True False

Chapter 3. SCSI tape library sharing

51

azov.almaden.ibm.com:/# lsattr -El rmt2 alt_pathing no Enable Alternate Pathing Support autoload no Use Autoloading Feature at End-of-Tape block_size 0 Block Size (0=Variable Length) compress yes Use Hardware Compression on Tape debug_trace no Debug Trace Logging Enabled dev_status N/A devtype ULT3580Device Type location Location logging no Activate volume information logging lun_id 0x0 Logical Unit Number max_log_size 500 Maximum size of log file (in # of entries) new_name New Logical Name node_name 0x500308c140067006 World Wide Node Name primary_device rmt2 Primary Logical Device retain_reserve no Retain Reservation rew_immediate no Use Immediate Bit in Rewind Commands scsi_id 0x502cb SCSI Target ID space_mode SCSI Backward Space/Forward Space Record Mode trace_logging no Trace Logging Enabled trailer_labels no Trailer Label Processing ww_name 0x500308c140467006 World Wide Port Name

True True True True True False False True True True True True False False False True True True True True False

Another elegant method is to use the Atape device driver alternate pathing support for AIX. The alternate pathing support configures multiple physical paths to the same device within the device driver and provides two basic functions: Automatic failover to an alternate physical path when a permanent error occurs on one path. Dynamic load balancing for devices using multiple HBAs. The automatic failover support provides error recovery on an alternate path when a permanent error occurs on one path. This recovery is transparent to the running application. Alternate pathing support can be enabled on all configured devices at once (as shown in Example 3-6), or it can be enabled or disabled individually by logical device (as shown in Example 3-7 on page 53). It might be desirable to configure some, but not all, logical paths to a device with the support enabled.
Example 3-6 AIX: enable alternate pathing support - all azov.almaden.ibm.com:/tmp# lsdev rmt0 Available 1Z-08-02 IBM 3580 rmt1 Available 1Z-08-02 IBM 3580 rmt2 Available 1D-08-02 IBM 3580 rmt3 Available 1D-08-02 IBM 3580 smc0 Available 1Z-08-02 IBM 3582 smc1 Available 1Z-08-02 IBM 3582 smc2 Available 1D-08-02 IBM 3582 smc3 Available 1D-08-02 IBM 3582 -Cctape Ultrium Ultrium Ultrium Ultrium Library Library Library Library Tape Drive (FCP) Tape Drive (FCP) Tape Drive (FCP) Tape Drive (FCP) Medium Changer (FCP) Medium Changer (FCP) Medium Changer (FCP) Medium Changer (FCP)

azov.almaden.ibm.com:/tmp# /usr/lpp/Atape/instAtape -a Setting alternate pathing support on rmt0... rmt0 changed Setting alternate pathing support on smc0... smc0 changed Setting alternate pathing support on rmt1... rmt1 changed Setting alternate pathing support on smc1...

52

Get More Out of Your SAN with IBM Tivoli Storage Manager

smc1 changed Setting alternate pathing support on rmt2... rmt2 changed Setting alternate pathing support on smc2... smc2 changed Setting alternate pathing support on rmt3... rmt3 changed Setting alternate pathing support on smc3... smc3 changed azov.almaden.ibm.com:/tmp# lsdev -Cctape rmt0 Available 1Z-08-02-PRI IBM 3580 Ultrium rmt1 Available 1Z-08-02-PRI IBM 3580 Ultrium rmt2 Available 1D-08-02-ALT IBM 3580 Ultrium rmt3 Available 1D-08-02-ALT IBM 3580 Ultrium smc0 Available 1Z-08-02-PRI IBM 3582 Library smc1 Available 1Z-08-02-ALT IBM 3582 Library smc2 Available 1D-08-02-ALT IBM 3582 Library smc3 Available 1D-08-02-ALT IBM 3582 Library azov.almaden.ibm.com:/tmp#

Tape Drive (FCP) Tape Drive (FCP) Tape Drive (FCP) Tape Drive (FCP) Medium Changer (FCP) Medium Changer (FCP) Medium Changer (FCP) Medium Changer (FCP)

The /usr/lpp/Atape/instAtape -a command unconfigures all devices that have alternate pathing set to No and reconfigures all devices, setting alternate pathing to Yes. After running the command, you see that rmt0 and rmt1 are set to the primary path (PRI) to the drives, and rmt2 and rmt3 are alternate (ALT) paths. Similarly, for the medium changer, smc0 is the primary path and the others are alternate.
Example 3-7 AIX: enable alternate pathing support azov.almaden.ibm.com:/tmp# lsdev -Cctape rmt0 Available 1Z-08-02 IBM 3580 Ultrium Tape Drive (FCP) rmt1 Available 1Z-08-02 IBM 3580 Ultrium Tape Drive (FCP) rmt2 Available 1D-08-02 IBM 3580 Ultrium Tape Drive (FCP) rmt3 Available 1D-08-02 IBM 3580 Ultrium Tape Drive (FCP) smc0 Available 1Z-08-02 IBM 3582 Library Medium Changer (FCP) smc1 Available 1Z-08-02 IBM 3582 Library Medium Changer (FCP) smc2 Available 1D-08-02 IBM 3582 Library Medium Changer (FCP) smc3 Available 1D-08-02 IBM 3582 Library Medium Changer (FCP) azov.almaden.ibm.com:/tmp# chdev -l rmt0 -aalt_pathing=yes rmt0 changed azov.almaden.ibm.com:/tmp# lsdev -Cctape rmt0 Available 1Z-08-02-PRI IBM 3580 Ultrium Tape Drive (FCP) rmt1 Available 1Z-08-02 IBM 3580 Ultrium Tape Drive (FCP) rmt2 Available 1D-08-02 IBM 3580 Ultrium Tape Drive (FCP) rmt3 Available 1D-08-02 IBM 3580 Ultrium Tape Drive (FCP) smc0 Available 1Z-08-02 IBM 3582 Library Medium Changer (FCP) smc1 Available 1Z-08-02 IBM 3582 Library Medium Changer (FCP) smc2 Available 1D-08-02 IBM 3582 Library Medium Changer (FCP) smc3 Available 1D-08-02 IBM 3582 Library Medium Changer (FCP) azov.almaden.ibm.com:/tmp# chdev -l rmt2 -aalt_pathing=yes rmt2 changed azov.almaden.ibm.com:/tmp# lsdev -Cctape rmt0 Available 1Z-08-02-PRI IBM 3580 Ultrium Tape Drive (FCP) rmt1 Available 1Z-08-02 IBM 3580 Ultrium Tape Drive (FCP) rmt2 Available 1D-08-02-ALT IBM 3580 Ultrium Tape Drive (FCP) rmt3 Available 1D-08-02 IBM 3580 Ultrium Tape Drive (FCP) smc0 Available 1Z-08-02 IBM 3582 Library Medium Changer (FCP) smc1 Available 1Z-08-02 IBM 3582 Library Medium Changer (FCP) smc2 Available 1D-08-02 IBM 3582 Library Medium Changer (FCP) smc3 Available 1D-08-02 IBM 3582 Library Medium Changer (FCP) azov.almaden.ibm.com:/tmp#

Chapter 3. SCSI tape library sharing

53

Example 3-8 shows the devices files for all drives and all library medium changers. In the Tivoli Storage Manager path definitions, you can use all the primary devices files /dev/smc0 for the library medium changer and /dev/rmt0 and /dev/rmt1 for the drives.
Example 3-8 AIX: lsdev rmt0 rmt1 rmt2 rmt3 smc0 smc1 smc2 smc3 Available Available Available Available Available Available Available Available 1Z-08-02-PRI 1Z-08-02-PRI 1D-08-02-ALT 1D-08-02-ALT 1Z-08-02-PRI 1Z-08-02-ALT 1D-08-02-ALT 1D-08-02-ALT IBM IBM IBM IBM IBM IBM IBM IBM 3580 3580 3580 3580 3582 3582 3582 3582 Ultrium Ultrium Ultrium Ultrium Library Library Library Library Tape Drive (FCP) Tape Drive (FCP) Tape Drive (FCP) Tape Drive (FCP) Medium Changer (FCP) Medium Changer (FCP) Medium Changer (FCP) Medium Changer (FCP)

3.2.3 Installing on Microsoft Windows 2000


This section describes the steps that are required to install the IBM tape library medium changer and the driver on Microsoft Windows. For more information, see Part 7 in IBM Ultrium Device Drivers Installation and Users Guide, GA32-0430. To install the IBM tape library medium changer and driver on Microsoft Windows: 1. You can download the IBM tape device driver from:
ftp://ftp.software.ibm.com/storage/devdrvr/Windows/

Note: Beginning with V6.0.4.4, the IBM tape device drivers for Windows 2000 and Windows 2003 have been converged into a single install package with common inf files. Use this single package to install a driver on either operating system. The system detects which version of the driver binary files it needs to install. For Windows 2000 users, the Magstar and Ultrium drivers have also been converged. 2. After downloading the package, unzip all files into a directory. After SAN zoning is configured so that the host has access to the drives, on the Windows 2000 server, you see the connected drives (IBMULT3580) and the library medium changer (IBM ULT3582) as shown in Figure 3-5.

Figure 3-5 Device Manager: Without IBM tape driver

54

Get More Out of Your SAN with IBM Tivoli Storage Manager

3. To use the IBM tape device driver, you need to update the driver for each drive. Right click the drive and select Properties, as shown in Figure 3-6.

Figure 3-6 Device Manager: Tape drive properties

4. Select the Driver tab and click Update Driver (as shown in Figure 3-7).

Figure 3-7 Device Manager: Tape drive update

5. Choose the option Display a list of known drivers for the device so that I can choose a specific driver (Figure 3-8 on page 56).

Chapter 3. SCSI tape library sharing

55

Figure 3-8 Device Manager: Tape drive update - choose a specific driver

6. On the next screen, as shown in Figure 3-9, select the option Have Disk.

Figure 3-9 Device Manager: Tape drive update - have a disk

7. Choose the exctape.inf in the directory that contains the unzipped files of the IBM tape device driver (Figure 3-10 on page 57) and click Open.

56

Get More Out of Your SAN with IBM Tivoli Storage Manager

Figure 3-10 Device Manager: Tape drive update - select inf file

8. The output lists all available tape drive models. Select the required model. In this example, you would select the IBM 3580 Ultrium II drive with the extension for Tivoli Storage Manager, as shown in Figure 3-11. 9. Click Next.

Figure 3-11 Device Manager: Tape drive update - drive models

Chapter 3. SCSI tape library sharing

57

Important: With the introduction of V6.0.2.4 and later, two versions of the device driver are made available: one that prohibits multiple opens on a single tape drive and one that will allow multiple opens on a single tape drive. Drivers that prohibit multiple opens on a single tape drive are indicated (when presented by the Windows Plug and Play Device Manager during device configuration) with the text string '(for Tivoli Storage Manager)' in them. These drivers will use the file exctape.inf from the install package during installation. Drivers that allow multiple opens on a tape drive do not have the text string '(for Tivoli Storage Manager)' in them. These drivers will use the file magtape.inf from the install package during the installation. IBM strongly recommends that you use the "for Tivoli Storage Manager" drivers whether or not you are a Tivoli customer to prevent a tape drive from being accessed by more than one process and potentially causing data to be corrupted or lost. However, if you are a customer that uses RSM, you will need to use the other driver and take steps to ensure that multiple uncoordinated opens to a tape drive do not occur. 10.After the device driver update completes, repeat these steps, beginning with step 3 on page 55 to update all remaining tape drives. After you have updated all the tape drive, you need to update the library medium changer. This example has two library medium changers devices, because we enabled the control path on both library drives. To update the library medium changer: 1. Right click the medium changer and select Properties, as shown in Figure 3-12.

Figure 3-12 Device Manager: Tape medium changer update

2. Choose the Driver tab and select Update Driver (Figure 3-13 on page 59).

58

Get More Out of Your SAN with IBM Tivoli Storage Manager

Figure 3-13 Device Manager: Tape medium changer update

3. Choose the option Display a list of known drivers for the device so that I can choose a specific driver (Figure 3-14).

Figure 3-14 Device Manager: Tape medium changer update - choose a specific driver

4. On the screen that is shown in Figure 3-15 on page 60, select the option Have Disk.

Chapter 3. SCSI tape library sharing

59

Figure 3-15 Device Manager: Tape medium changer update - have a disk

5. Choose the exctape.inf in the directory that contains the unzipped files of the IBM tape device driver and click Open, as shown in Figure 3-16.

Figure 3-16 Device Manager: Tape medium changer update - choose directory

6. The output lists all the available tape library models. Select the required model. In this example, you would select IBM 3582 LTO Library, as shown in Figure 3-17 on page 61.

60

Get More Out of Your SAN with IBM Tivoli Storage Manager

Figure 3-17 Device Manager: Tape medium changer update - models

7. After the device driver update completes, repeat this process to update all the remaining library medium changers. 8. When you have updated all library medium changers, reboot the server to activate the new device driver. After the reboot, check the Device Manager to verify that all devices are correctly configured, as shown in Figure 3-18.

Figure 3-18 Device Manager: With the IBM device driver

If the Tivoli Storage Manager device driver is also installed, you can open the Tivoli Storage Manager Management Console to display more information about the tape drives, as shown in Figure 3-19 on page 62.

Chapter 3. SCSI tape library sharing

61

Figure 3-19 MMC: Tivoli Storage Manager Device Driver menu

Figure 3-20 shows information about the two drives and two library medium changers. The tape \\.\Tape0 and the medium changer Changer0 have the same World Wide Name and the same SCSI ID (0). Only the LUN is different. This nomenclature is because the library medium changer is accessed through the tape drive

Figure 3-20 MMC: Tivoli Storage Manager Device Driver - Drive information

You use the device names (\\.\Tape0, \\.\Tape1) in the Tivoli Storage Manager drive path definition and \\.\Changer0 or \\.\Changer1 for the library definition. You also use the Tivoli Storage Manager QUERY SAN command to check the library drives and medium changers (supported only with Tivoli Storage Manager V5.3). For more information, see Chapter 9, Tivoli Storage Manager SAN Discovery on page 253.
Example 3-9 Query SAN tsm: TONGA_1>q san Device Type -------DRIVE LIBRARY DRIVE LIBRARY Vendor -------IBM IBM IBM IBM Product ---------------ULT3580-TD2 ULT3582-TL ULT3580-TD2 ULT3582-TL Serial Number ---------------1110177214 0000013108231000 1110176223 0000013108231000 Device -----------------Tape0 Changer0 Tape1 Changer1

62

Get More Out of Your SAN with IBM Tivoli Storage Manager

3.2.4 Installing on Linux


This section describes the steps that are required to create the tape library medium changer and the drive special files on Linux. For more information, see Part 5 in IBM Ultrium Device Drivers Installation and Users Guide, GA32-0430. If the drives are non-IBM drives, you need to use the Tivoli Storage Manager device driver. If they are IBM drives, use the IBMtape driver. In our IBM 3582 tape library are IBM drives, so we have to install the IBMtape driver. The IBMtape device driver for Linux is an installable kernel module that is supplied in an rpm package. The utility tools for IBMtape are supplied in a tar file. The IBMtapeutil package consists of IBMtapeutil, IBMtapeconfig, and the source files for IBMtapeutil. You can download the software from:
ftp://ftp.software.ibm.com/storage/devdrvr/Linux/

For Linux, download the IBMtape and the IBMtapeutil packages, and then follow these steps: 1. Install the packages as shown in Example 3-10 and Example 3-11.
Example 3-10 Linux: IBMtapeutil install cadi:/tmp # tar -xvf ./IBMtapeutil.1.3.1.i386.tar.bin IBMtapeutil.1.3.1/ IBMtapeutil.1.3.1/IBMtapeconfig IBMtapeutil.1.3.1/IBMtapeutil.c IBMtapeutil.1.3.1/IBMtapeutil.h IBMtapeutil.1.3.1/makefile IBMtapeutil.1.3.1/IBMtapeutil.ReadMe IBMtapeutil.1.3.1/IBMtapeutil cadi:/tmp # cd IBMtapeutil.1.3.1/ cadi:/tmp/IBMtapeutil.1.3.1 # make install cp -f IBMtapeutil /usr/bin/. cp -f IBMtapeconfig /usr/bin/. Example 3-11 Linux: IBM tape driver install cadi:/tmp # rpm -i ./IBMtape-2.0.5-2.6.5-7.147.i386.rpm.bin Installing IBMtape IBMtape loaded

2. After the installation, check whether the devices are detected (Example 3-12).
Example 3-12 Linux: ls -l /dev/IBMtape* cadi:~ # ls crw-rw-rwcrw-rw-rwcrw-rw-rwcrw-rw-rwcadi:~ # -l /dev/IBMtap* 1 root root 253, 0 Apr 1 root root 253, 256 Apr 1 root root 253, 1 Apr 1 root root 253, 257 Apr 8 8 8 8 05:04 05:04 05:04 05:04 /dev/IBMtape0 /dev/IBMtape0n /dev/IBMtape1 /dev/IBMtape1n

3. Check the library medium changer, as shown in Example 3-13.


Example 3-13 Linux: ls -l /dev/IBMchanger* cadi:~ # ls -l /dev/IBMchanger* [root@diomede root]# ls -l /dev/IBMchanger* crw-rw-rw1 root root 252, 128 Mar cadi:~ #

8 16:15 /dev/IBMchanger0

Chapter 3. SCSI tape library sharing

63

4. To enable the alternate pathing support on Linux, stop the IBMtape daemon (IBMtaped stop) and remove the IBMtape modules from the kernel with the rmmod IBMtape command. Add the following lines: options IBMtape alternate_pathing=1 to enable the alternate pathing support for the library controller options IBMtape alternate_pathing=1 dpf_keys="abcdefghijklmnop" to enable the alternate pathing support for the drives into the /etc/modules.conf file. Figure 3-14 shows these steps.
Example 3-14 Linux: /etc/modules.conf cadi:~ # IBMtaped stop cadi:~ # rmmod IBMtape cadi:~ # vi /etc/modules.conf alias eth0 e1000 alias eth1 tulip alias scsi_hostadapter0 qla2300_conf alias scsi_hostadapter1 qla2300 alias sound-slot-0 i810_audio post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || : pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || : alias usb-controller usb-uhci alias usb-controller1 ehci-hcd post-remove qla2200 rmmod qla2200_conf post-remove qla2300 rmmod qla2300_conf options scsi_mod max_scsi_luns=128 options IBMtape alternate_pathing=1 options IBMtape alternate_pathing=1 dpf_keys="abcdefghijklmnop"

5. Load the updated IBMtape module into the running kernel (Figure 3-15).
Example 3-15 Linux: IBMtape daemon start cadi:~ # depmod depmod: *** Unresolved symbols in /lib/modules/2.4.21-15.ELsmp/kernel/drivers/scsi/IBMtape.o cadi:~ # modprobe IBMtape Warning: loading /lib/modules/2.4.21-15.ELsmp/kernel/drivers/scsi/IBMtape.o will taint the kernel: non-GPL license - USER LICENSE AGREEMENT FOR IBM DEVICE DRIVERS See http://www.tux.org/lkml/#export-tainted for information about tainted modules Module IBMtape loaded, with warnings cadi:~ # IBMtaped cadi:~ #

You can ignore the following message after the depmod command.
Unresolved symbols in /lib/modules/2.4.21-15.ELsmp/kernel/drivers/scsi/IBMtape.o

64

Get More Out of Your SAN with IBM Tivoli Storage Manager

6. To check if the IBMtape driver has recognized multiple control paths for the library, view the /proc/scsi/IBMchanger file (Figure 3-16). If Primary and Alternate are listed in the FO Path column, you have successfully enabled control path failover feature for your library. If the column shows NA, then control path failover is not enabled.
Example 3-16 Linux: /proc/scsi/IBMchanger cadi:~ # cat /proc/scsi/IBMchanger IBMtape version: 1.5.3 IBMtape major number: 252 Attached Changer Devices: Number Model SN 0 ULT3582-TL 0000013108231000 1 ULT3582-TL 0000013108231000 cadi:~ #

HBA QLogic Fibre Channel 2300 QLogic Fibre Channel 2300

FO Path Primary Alternate

Example 3-17 shows two library medium changers. However, this example has only one physical library controller because the control path was enabled on both tape drives as shown in Figure 3-2 on page 45. The Linux IBMtape device driver alternate pathing support configures multiple physical control paths to the same logical library within the device driver and provides automatic failover to an alternate control path when a permanent error occurs on one path.
Example 3-17 Linux: ls -l /dev/IBMchanger* cadi:~ # ls -l /dev/IBMchanger* [root@diomede root]# ls -l /dev/IBMchanger* crw-rw-rw1 root root 252, 128 Mar crw-rw-rw1 root root 252, 128 Mar cadi:~ #

8 16:15 /dev/IBMchanger0 8 16:15 /dev/IBMchanger1

Important: The library control path failover feature code must be installed on the library before enabling the alternate pathing support in the Linux IBMtape device driver. If there are no /dev/IBMtape* devices or /dev/IBMchanger*, reboot the server. After the reboot, check the files /proc/scsi/IBMtape (Example 3-18) and /proc/scsi/IBMchanger to see if the drives/medium changer are correctly detected. Otherwise, check the SAN connections and the SAN zoning.
Example 3-18 Linux: /proc/scsi/IBMtape cadi:~ # more /proc/scsi/IBMtape IBMtape version: 2.0.5 IBMtape major number: 253 Attached Tape Devices: Number Model SN 0 03592J1A 000001300117 1 03592J1A 000001300114

HBA qla2xxx qla2xxx

FO Path NA NA

Chapter 3. SCSI tape library sharing

65

7. You can reconfigure the IBM tape devices with the IBMtapeconfig script. This removes all the existing /dev/IBMtape and /dev/IBMchanger special files, and creates new ones based on the information in /proc/scsi/IBMtape and /proc/scsi/IBMchanger. Example 3-19 shows the command output.
Example 3-19 Linux: IBMtapeconfig cadi:~ # IBMtapeconfig Creating IBMtape special files major number: 253 Attached devices: 0 1 mknod -m 0666 /dev/IBMtape0 c 253 0 mknod -m 0666 /dev/IBMtape0n c 253 256 mknod -m 0666 /dev/IBMtape1 c 253 1 mknod -m 0666 /dev/IBMtape1n c 253 257 Creating IBMchanger special files major number: 253 No attached devices.

Important: If a new device is attached to a running system, reboot before running the IBMtapeconfig script. Each tape device has a set of special files that provides access to the same physical drive but provides different attributes. Table 3-2 shows the attributes of the special files.
Table 3-2 Linux: Special files for IBM tape devices Special file name /dev/IBMtape* /dev/IBMtape*n Rewind on close Yes No

You use these /dev/IBMtape* special devices files in the Tivoli Storage Manager server drive path definition, as discussed in 3.3, Tivoli Storage Manager configuration on page 73. Tip: You can test your drives with the IBMtapeutil program, as shown in Example 3-20.
Example 3-20 Linux: IBMtapeutil cadi: # IBMtapeutil IBMtapeutil for Linux, Version 1.3.1, Sept. 14, 2004 ========================================= 1. Tape 2. Changer 3. Quit ========================================= Enter your choice: 1 -------------------------- General Commands: ----------------------------1. Open a Device 9. Mode Sense Pag 2. Close a Device 10. Switch Tape/Changer Devic 3. Inquiry 11. Create Special Files 4. Test Unit Ready 12. Query Driver Version 5. Reserve Device 13. Query Device Path 6. Release Device 14. Display All Paths

66

Get More Out of Your SAN with IBM Tivoli Storage Manager

7. Request Sense 15. Enable A Path 8. Log Sense Page 16. Disable A Path Q. Quit IBMtapeutil --------------------------- Tape Commands: -------------------------------20. Rewind 33. Set Block Size 21. Forward Space Filemarks 34. Retension Tape 22. Backward Space Filemarks 35. Query/Set Tape Position 23. Forward Space Records 36. Query Tape Status 24. Backward Space Records 37. Load Tape 25. FSFM 38. Unload Tape 26. BSFM 39. Lock Tape Drive Door 27. Space to End of Data 40. Unlock Tape Drive Door 28. Read and Write Tests 41. Take Tape Offline 29. Write Filemarks 42. Enable/Disable Compression 30. Read or Write Files 43. Flush Drive's Buffer 31. Erase 44. Self Test 32. Reset Drive 45. Display Message --------------------------- IBMtape Commands: ------------------------------46. Query Sense 52. Locate Tape Position 47. Query Inquiry 53. Read Tape Position 48. Query/Set Tape Parameters 54. Query Mtdevice Number 49. Query/Set Tape Position 55. Synchronize Buffers 50. Query/Set MT/ST Mode 56. List Tape Filemarks 51. Report Density Support --------------------------- Service Aid Commands: ------------------------70. Dump Device 74. Read Persistent Reservation Keys 71. Force Dump 75. Read Persistent Reservations 72. Load Ucode 76. Register Persistent Reservation Key 73. Reset Drive 77. Remove Persistent Reservation 78. Clear All Persistent Registrations --------------------------------------------------------------------------99. Back To Main Menu Enter Selection: 1 Enter device name (<enter> for /dev/IBMtape0): Select mode (<enter> or 1=Read/Write, 2=Read Only, 3=Write Only, 4=Append): Opening device... ...

Note: Beginning with IBMtape V1.2.5, the IBMtape device driver provides an error diagnostic daemon (IBMtaped) that provides error logging and tracing of the IBMtape device driver. When drive dumps, log sense data, or SIM/MIMM error information are created by the tape drive, the daemon retrieves that data automatically and saves it to disk on the Linux system. We recommend that you leave this daemon enabled at all times.

Chapter 3. SCSI tape library sharing

67

3.2.5 Installing on SUN Solaris


This section describes the steps that are required to create the tape library medium changer and the drive special files on SUN Solaris. For more information, see Part 6 of IBM Ultrium Device Drivers Installation and Users Guide, GA32-0430. If you have non-IBM drives, you would use the Tivoli Storage Manager device driver. If you have IBM drives, use the IBMtape driver. We have IBM drives in our IBM 3494 library, so we have to install the IBM tape driver. You can download the package from:
ftp://ftp.software.ibm.com/storage/devdrvr/Solaris/

Attention: Before installing, make a backup of the system, list all current device special files, and find the SCSI addressees with which they are associated. 1. Install the IBMtape package as shown in Example 3-22 and record this information. You will need this information later in the installation.
Example 3-21 Solaris: ls -l /dev/rmt/*st before IBMtape installation bash-2.03# ls -l /dev/rmt/*st lrwxrwxrwx 1 root other 57 Apr 8 13:49 /dev/rmt/0st -> ../../devices/pci@1f,4000/fibre-channel@2/st@36,0:st lrwxrwxrwx 1 root other 57 Apr 8 13:49 /dev/rmt/1st -> ../../devices/pci@1f,4000/fibre-channel@2/st@37,0:st

2. Install the IBMtape package as shown in Example 3-22.


Example 3-22 Solaris: IBM tape driver install process bash-2.03# pkgadd -d ./IBMtape.4.1.1.4.bin The following packages are available: 1 IBMtape IBM Tape & Medium Changer Device Driver 4.1.1.4 (sparc) 4.1.1.4 Select package(s) you wish to process (or 'all' to process all packages). (default: all) [?,??,q]: 1 Processing package instance <IBMtape> from </tmp/IBMtape.4.1.1.4.bin> 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

68

Get More Out of Your SAN with IBM Tivoli Storage Manager

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... ## Installing the /etc/tmd.conf file. ## Creating the directory of /var/opt/IBMtape. ## 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.

3. Edit the file the /usr/kernel/drv/IBMtape.conf to include the drive information (Example 3-23). You can use the information from Example 3-21 on page 68.
Example 3-23 Solaris: /usr/kernel/drv/IBMtape.conf bash-2.03# cat /usr/kernel/drv/IBMtape.conf ############################################################################### ############################################################################### Chapter 3. SCSI tape library sharing

69

## ## ## IBM SCSI Tape & Medium Changer Device Driver for Solaris 7, 8, 9 and 10 ## ## (C) COPYRIGHT IBM Corporation, 1994 ## ## ## ## IBMtape.conf - Configuration File ## ## Licensed Materials - Property of IBM ## ## All Rights Reserved ## ## ## ## US Government Users Restricted Rights - Use, duplication, or ## ## disclosure restricted by GSA ADP Schedule Contract with IBM Corp. ## ## ## ############################################################################### ############################################################################### #name="IBMtape" # class="scsi" # target=0 lun=0 # block_size=0 # buffering=1 # immediate=0 # trailer=0 # sili=0; ... #name="IBMtape" # class="scsi" # target=15 lun=0 # block_size=0 # buffering=1 # immediate=0 # trailer=0 # sili=0; #name="IBMtape" # class="scsi" # target=15 lun=1 # block_size=0 # buffering=1 # immediate=0 # trailer=0 # sili=0; name="IBMtape" parent="pseudo" instance=16383; # An example entry for high numbers of target and lun # name="IBMtape" class="scsi" target=200 lun=3; # # # # An example entry for QLogic HBA name="IBMtape" parent="qla2100" name="IBMtape" parent="qla2200" name="IBMtape" parent="qla2300" running qla HBA driver target=0; for qla2100 only target=0; for qla2200 only target=0; for qla2300 only

# An example entry for AMCC JNI HBA # name="IBMtape" parent="jnic146x" target=0; # An example entry for Emulex HBA # name="IBMtape" parent="lpfc" target=0; # An example entry for Sun Branded FC HBA

70

Get More Out of Your SAN with IBM Tivoli Storage Manager

# name="IBMtape" parent="fp" lun=0 fc-port-wwn="xxxxxxxxxxxxxxxx"; # name="IBMtape" parent="fp" lun=1 fc-port-wwn="xxxxxxxxxxxxxxxx"; name="IBMtape" parent="qla2300" target=36; name="IBMtape" parent="qla2300" target=37;

Note: IBM requires that the Solaris native SCSI tape device driver st be configured (/kernel/drv/st.conf) so that it does not attempt to allocate SCSI targets that are controlled by IBMtape (/usr/kernel/drv/IBMtape.conf). See Preventing Conflicts with Other Device Drivers in IBM TotalStorage Tape Device Drivers Installation and Users Guide, GC35-0154. 4. If you do not know the SCSI information, create an IBMtape.conf as shown in Example 3-24 with all SCSI target and LUN combinations (0-255).
Example 3-24 Solaris: IBMtape.conf with all targets/luns .... name="IBMtape" sili=0; name="IBMtape" sili=0; name="IBMtape" sili=0; .... name="IBMtape" sili=0; name="IBMtape" sili=0; name="IBMtape" sili=0; ... class="scsi" target=8 lun=19 block_size=0 buffering=1 immediate=0 trailer=0 class="scsi" target=8 lun=20 block_size=0 buffering=1 immediate=0 trailer=0 class="scsi" target=8 lun=21 block_size=0 buffering=1 immediate=0 trailer=0

class="scsi" target=8 lun=255 block_size=0 buffering=1 immediate=0 trailer=0 class="scsi" target=9 lun=0 block_size=0 buffering=1 immediate=0 trailer=0 class="scsi" target=9 lun=1 block_size=0 buffering=1 immediate=0 trailer=0

5. Configuration settings are applied only at boot time or when IBMtape is unloaded manually and then reloaded into memory. After changing the configuration settings in IBMtape.conf, reboot the system to activate the changes. Alternatively, make sure that no IBMtape-owned devices are in use and run the commands that are shown in Example 3-25.
Example 3-25 Solaris: Reload IBMtape /opt/IBMtape/tmd -s /usr/sbin/rem_drv IBMtape /usr/sbin/add_drv -m * 0666 bin bin IBMtape /opt/IBMtape/tmd

6. The drives are now configured. You can view the device special files with the ls command (Example 3-26).
Example 3-26 Solaris: ls -l /dev/rmt/*st after IBMtape installation bash-2.03# ls -l /dev/rmt/*st lrwxrwxrwx 1 root other 57 Apr 8 13:49 /dev/rmt/0st -> ../../devices/pci@1f,4000/fibre-channel@2/IBMtape@36,0:st lrwxrwxrwx 1 root other 57 Apr 8 13:49 /dev/rmt/1st -> ../../devices/pci@1f,4000/fibre-channel@2/IBMtape@37,0:st bash-2.03#

Chapter 3. SCSI tape library sharing

71

This command indicates that the IBMtape device driver is now in use for these devices, compared with Example 3-21 on page 68. To view the special file for the library medium changer, you can also use the ls command (Example 3-27).
Example 3-27 Solaris: ls -l /dev/rmt/*smc after IBMtape installation bash-2.03# ls -l /dev/rmt/*smc lrwxrwxrwx 1 root other 57 Apr 8 13:49 /dev/rmt/0smc -> ../../devices/pci@1f,4000/fibre-channel@2/IBMtape@36,1:st bash-2.03#

7. You can now define the drive paths using these device special files (/dev/rmt/0st, /dev/rmt/1st) and the device special file for the library medium changer (/dev/rmt/0smc) on the Tivoli Storage Manager Server. Note: By default, alternate pathing support is enabled automatically on installation of the IBMtape Solaris device driver. The Solaris IBMtape device driver also provides a driver configuration parameter to enable or disable the library control path failover (CPF) support. For more information, see Part 6 in IBM Ultrium Device Drivers Installation and Users Guide, GA32-0430. 8. To display more information about the drives, use the tapelist command (Example 3-28).
Example 3-28 Solaris: tapelist bash-2.03# /usr/bin/tapelist IBM Tape Device Information : Instance : 6248 Special File : /dev/rmt/0st Device : 03592J1A Serial Number : 000001300117 TGT/LUN : 54/0 Ucode : 04E6 World Wide NN : 50050763020000C5 World Wide PN : 50050763024000C5 Dev Phy Path : /devices/pci@1f,4000/fibre-channel@2/IBMtape@36,0 Path Type : N/A --- more --Instance Special File Device Serial Number TGT/LUN Ucode World Wide NN World Wide PN Dev Phy Path Path Type : : : : : : : : : : 6254 /dev/rmt/1st 03592J1A 000001300114 55/0 04E6 50050763020000C7 50050763028000C7 /devices/pci@1f,4000/fibre-channel@2/IBMtape@37,0 N/A

72

Get More Out of Your SAN with IBM Tivoli Storage Manager

3.3 Tivoli Storage Manager configuration


This section shows how to set up library sharing with an IBM 3582 Tape Library. In our test environment, the Tivoli Storage Manager Library Manager is installed on the AIX server AZOV and the Library Client on the Windows server TONGA (as shown in Figure 3-21). We assume the Tivoli Storage Manager server is installed and operational on both the Library Client and Library Manager. For more information about this topic, see: IBM Tivoli Storage Manager for AIX Installation Guide V5.3, GC32-1597 IBM Tivoli Storage Manager Implementation Guide, SG24-5416

LAN

AIX AZOV
Tivoli Storage Manager Library Manager

Server-to-server communication

IBM 3582 2 * LTO2 FC drives

SCSI Tape Library

Windows TONGA

Tivoli Storage Manager Library Client

Library Control
Data Flow Data Flow

SAN

Figure 3-21 Lab configuration overview

3.3.1 With the Tivoli Storage Manager Administration Center


Because we are using Tivoli Storage Manager V5.3, we can use the Tivoli Storage Manager Administration Center for the configuration.

Configuring the Tivoli Storage Manager Library Manager


Server-to-server communication is required between the Library Manager and Library Client. If you have not already previously configured these settings, use the commands discussed in Configuring server-to-server communication on the Library Manager on page 91.

Chapter 3. SCSI tape library sharing

73

From the Administration Center: 1. Choose Storage Devices from the work items menu. You see all installed Tivoli Storage Manager servers and libraries (Figure 3-22, Library Manager: Query Library on page 74). Our installed Tivoli Storage Manager servers, AZOV_1 and TONGA_1, are the Library Manager and Library Client, respectively. Select the Tivoli Storage Manager server that will act as the Library Manager. In this example, choose AZOV.

Figure 3-22 Library Manager: Query Library

2. A wizard is provided to define the library, library paths, tape drives, and the tape drive paths. To start the wizard, choose Create a Library and click Go. We recommend using a Tivoli Storage Manager Administrative Interface session (dsmadmc) in console mode to monitor Tivoli Storage Manager activities as they occur, as shown in Example 3-29.
Example 3-29 Tivoli Storage Manager console window azov.almaden.ibm.com:/usr/tivoli/tsm/client/ba/bin# dsmadmc -consolemode IBM Tivoli Storage Manager Command Line Administrative Interface - Version 5, Release 3, Level 0.0 (c) Copyright by IBM Corporation and other(s) 1990, 2004. All Rights Reserved. Enter your user id: admin Enter your password: Session established with server AZOV_1: AIX-RS/6000 Server Version 5, Release 3, Level 0.0 Server date/time: 03/17/05 15:24:15 Last access: 03/17/05 15:14:43 ANR2017I Administrator ADMIN issued command: QUERY SESSION

Tip: When using the Administration Center, click Next to progress through the steps after you have completed the options for each screen. In general, our instructions omit this step. 3. On the first screen, choose a name for the library. (We use 3582 in this example.) Specify the library type, which in this case is SCSI, as shown in Figure 3-23 on page 75. 74
Get More Out of Your SAN with IBM Tivoli Storage Manager

Figure 3-23 Library Manager: enter name and type

4. Enter the device special file name for the library medium changer (Figure 3-24).

Figure 3-24 Library Manager: Define library changer

5. To find this device file name, you can use the QUERY SAN command, as shown in Example 3-30, or use an operating system command to find the name of this device file. Note that two library medium changer devices are displayed, because the alternate control path feature is enabled on each drive, which sets up an alternate path to the library.
Example 3-30 QUERY SAN on the Library Manager tsm: AZOV_1>query san Device Type -------DRIVE LIBRARY DRIVE LIBRARY Vendor -------IBM IBM IBM IBM Product ---------------ULT3580-TD2 ULT3582-TL ULT3580-TD2 ULT3582-TL Serial Number ---------------1110176223 0000013108231000 1110177214 0000013108231000 Device -----------------/dev/rmt0 /dev/smc0 /dev/rmt1 /dev/smc1

Chapter 3. SCSI tape library sharing

75

Restriction: The QUERY SAN command requires Tivoli Storage Manager V5.3 and the Tivoli Storage Manager server option SANDISCOVERY. For more details, see Chapter 9, Tivoli Storage Manager SAN Discovery on page 253.

Attention: Be sure to enable the option Allow other servers and storage agents to use this library. 6. Add the drives, as shown in Figure 3-25.

Figure 3-25 Library Manager: Add drive

7. Enter the drive name and the device special file name for each drive (Figure 3-26). Either use the Tivoli Storage Manager QUERY SAN command (Example 3-30 on page 75) or use an operating system command to find the name of this device file.

Figure 3-26 Library Manager: Define path for drive one

In most cases, the element address is detected automatically, so you need not specify it for all supported SAN-attached libraries (Figure 3-27 on page 77).

76

Get More Out of Your SAN with IBM Tivoli Storage Manager

Figure 3-27 Library Manager: Define path for drive two

Now, both drives are now defined and displayed (Figure 3-28). If the device name (special device file name) is incorrect, you can change it now.

Figure 3-28 Library Manager: Drives and paths

8. The wizard shows information about the defined library and drives (Figure 3-29 on page 78). If the configuration is correct, return to the main screen, which now displays the newly added library, as shown in Figure 3-30 on page 78.

Chapter 3. SCSI tape library sharing

77

Figure 3-29 Library Manager: Library wizard summary

Figure 3-30 Library Manager: Shared library defined

9. To use this library, you have to define a new device class. To display the existing device classes, select View Device Classes and click Go as shown in Figure 3-31 on page 79.

78

Get More Out of Your SAN with IBM Tivoli Storage Manager

Figure 3-31 Library Manager: Query all device classes

10.The available device classes for the Tivoli Storage Manager server AZOV_1 are displayed. You have to create a new one for the library. Select Create a Device Class, as shown in Figure 3-32.

Figure 3-32 Library Manager: Defined device classes

11.This action starts another wizard. Select the device type. We are using an LTO library with Ultrium cartridges, so select this entry from the list (Figure 3-33).

Figure 3-33 Library Manager: Wizard for the device class definition

12.Enter a name for this device class (LTO2C in this example) and select the library for the device class. In this example, it is 3582, as shown in Figure 3-34 on page 80.

Chapter 3. SCSI tape library sharing

79

Figure 3-34 Library Manager: Device class name and library assortment

The device class is now defined and ready for use, as shown in Figure 3-35.

Figure 3-35 Library Manager: All defined device classes

80

Get More Out of Your SAN with IBM Tivoli Storage Manager

You can now check in the library volumes. 1. Select the library and choose Modify Library (Figure 3-36).

Figure 3-36 Library Manager: Library settings

2. Click Volumes on the left-hand side, and select Add Volumes, as shown in Figure 3-37.

Figure 3-37 Library Manager: Add volumes

3. You might have to scroll down on the browser window to see the next panel. Choose whether the volumes are labeled. If you do not know whether the volumes have labels, you can specify this, and Tivoli Storage Manager will read each volume to see if it has a label (Figure 3-38 on page 82).

Chapter 3. SCSI tape library sharing

81

Figure 3-38 Library Manager: Are the volumes labeled

4. Specify location of the volumes (Figure 3-39). In this configuration, all volumes are already loaded in the librarys slots. So, you can choose the second option. If the volumes are in the librarys I/O port or if you want to add only one volume, select the corresponding option.

Figure 3-39 Library Manager: Where are the volumes

82

Get More Out of Your SAN with IBM Tivoli Storage Manager

5. In Figure 3-40 you define the label source to write the label on the tape. Typically, you can use the barcode reader to detect the volume labels as shown. If the volumes have previously been used or mislabeled, you should specify to Overwrite existing volume labels. If you do not use this option and the volumes are already labeled, the Tivoli Storage Manager ANR8807W message occurs, as shown in Example 3-31, and the volume is not checked in.
Example 3-31 Library volumes are already labeled LABEL libvol 3582 search=yes labelsource=barcode overwrite=NO checkin=SCRATCH WAITTIME=0 Process 7 for LABEL LIBVOLUME started in the BACKGROUND at 09:57:52. ANR8807W Could not write label 020AKK on the volume in drive DRIVE1 (/dev/rmt0) of library 3582 because volume is already labelled 020AKK.

6. Figure 3-40 shows the output after labelling the volume. Typically a new or empty volume can be checked in as a scratch volume. Private specifies that the volume is a private volume that is mounted only when it is requested by name. Scratch specifies that the volume is a new scratch volume. This volume can be mounted to satisfy scratch mount requests during either data storage or export operations. Attention: If a volume already has an entry in the volume history, you cannot check it in as a scratch volume.

Figure 3-40 Library Manager: Check in libvolumes options

Chapter 3. SCSI tape library sharing

83

Attention: Each volume that is used by a Tivoli Storage Manager server for any purpose must have a unique name. This requirement applies to all volumes, whether the volumes are used for storage pools or used for operations such as database backup or export. In a library sharing environment, this applies to all connected libraries and Tivoli Storage Manager servers. 7. Figure 3-41 shows the wait time option, which specifies the number of minutes that the server waits for a response to a library request. Specify a value in the range of 0 to 9999. If you want to be prompted by the server, specify a wait time greater than zero. The default value is 60 minutes. For example, suppose the server prompts you to insert a tape into the entry or exit port of a library. If you specified a wait time of 60 minutes, the server issues a request and waits 60 minutes for you to reply. Suppose, on the other hand, you specify a wait time of zero. If you have already inserted a tape, a wait time of zero causes the operation to continue without prompting. If you have not inserted a tape, a wait time of zero causes the operation to fail.

Figure 3-41 Library Manager: Check in waittime

Tip: A REPLY command is no longer required (Tivoli Storage Manager V5.3) if you specify a wait time of zero using the optional WAITTIME parameter on the CHECKIN LIBVOLUME or LABEL LIBVOLUME command. The default wait time is 60 minutes. After all the options are completed, the check in process starts automatically, as shown in Figure 3-42.

Figure 3-42 Library Manager: Check in summary

84

Get More Out of Your SAN with IBM Tivoli Storage Manager

8. Monitor the progress of the process on the administrative console window, as shown in Example 3-32.
Example 3-32 Output of the label libvolume command ANR2017I Administrator ADMIN issued command: LABEL libvol 3582 search=yes labelsource=barcode overwrite=YES checkin=SCRATCH WAITTIME=0 (SESSION: 381) ANR0984I Process 7 for LABEL LIBVOLUME started in the BACKGROUND at 10:45:02. (SESSION: 381, PROCESS: 7) ANR8799I LABEL LIBVOLUME: Operation for library 3582 started as process 11. (SESSION: 381, PROCESS: 7) ANR8810I Volume 020AKK has been labeled in library 3582. (SESSION: 381, PROCESS: 7) ANR8810I Volume 021AKK has been labeled in library 3582. (SESSION: 381, PROCESS: 7) ANR8810I Volume 023AKK has been labeled in library 3582. (SESSION: 381, PROCESS: 7) ANR8810I Volume 026AKK has been labeled in library 3582. (SESSION: 381, PROCESS: 7) ANR8810I Volume 028AKK has been labeled in library 3582. (SESSION: 381, PROCESS: 7) ANR8810I Volume 029AKK has been labeled in library 3582. (SESSION: 381, PROCESS: 7) ANR8810I Volume 030AKK has been labeled in library 3582. (SESSION: 381, PROCESS: 7) ANR8810I Volume 031AKK has been labeled in library 3582. (SESSION: 381, PROCESS: 7) ANR8810I Volume 034AKK has been labeled in library 3582. (SESSION: 381, PROCESS: 7) ANR8801I LABEL LIBVOLUME process 11 for library 3582 completed; 9 volume(s) labelled, 9 volume(s) checked-in. (SESSION: 381, PROCESS: 7) ANR0985I Process 11 for LABEL LIBVOLUME running in the BACKGROUND completed with completion state SUCCESS at 10:54:07. (SESSION: 381, PROCESS:7)

Figure 3-43 shows the newly checked in volumes.

Figure 3-43 Library Manager: Query libvolumes

Configuring the Tivoli Storage Manager Library Client


The library is now defined for the Library Manager and can be used for normal operations on that Tivoli Storage Manager server. You now have to define the same library to the Library Client, so that it can be shared. Server-to-server communication is required between the Library Manager and Library Client. If you have not already previously configured these settings, use the commands that are described in Configuring server-to-server communication on the Library Client on page 92.

Chapter 3. SCSI tape library sharing

85

To begin the library configuration: 1. Select the Library Client, TONGA_1, and choose Create a Library, as shown in Figure 3-44.

Figure 3-44 Library Client: Create the library

2. Use the same library name as defined on the Library Manager (3582 in this case, as in Figure 3-23 on page 75), and select Shared Library type, as shown in Figure 3-45.

Figure 3-45 Library Client: Create library wizard

86

Get More Out of Your SAN with IBM Tivoli Storage Manager

3. Select the name of the Library Manager, AZOV_1, as shown in Figure 3-46.

Figure 3-46 Library Client: Define the primary Library Manager

4. Add the drives using the device names as they appear to the Library Client. Figure 3-47 shows all the available drives for this library. For every drive, you have to enter the Device Name (device special file name) for the Library Client. To find this name, we can use the QUERY SAN command (as shown in Example 3-33). This example uses a Windows Tivoli Storage Manager Library Client. Thus, the device name is in a different format from AIX. You use the same drive names, matching up the serial numbers, as discussed in the section on AIX (Example 3-30 on page 75).
Example 3-33 QUERY SAN on the Library Client tsm: TONGA_1>query san Device Type -------DRIVE LIBRARY DRIVE LIBRARY Vendor -------IBM IBM IBM IBM Product ---------------ULT3580-TD2 ULT3582-TL ULT3580-TD2 ULT3582-TL Serial Number ---------------1110176223 0000013108231000 1110177214 0000013108231000 Device -----------------Tape0 Changer0 Tape1 Changer1

Figure 3-47 Library Client: Define path for the shared drives Chapter 3. SCSI tape library sharing

87

Figure 3-48 shows the wizard to update the device name for one drive.

Figure 3-48 Library Client: Define path for drive one

Tip: If SAN Discovery is enabled (see Chapter 9, Tivoli Storage Manager SAN Discovery on page 253), you can enter any name for the device name. On the first use of this drive, Tivoli Storage Manager tries to find the correct drive for you and changes the device name to the correct one. Figure 3-49 shows the drives with the device names entered.

Figure 3-49 Library Client: Path for both drives defined

5. Before you can use the drives in this shared library, you have to define a device class to point to this library. The Library Clients device class definition has to be compatible with the device class definition on the Library Manager. The device type and recording format need to be the same on both Tivoli Storage Manager servers. Figure 3-50 on page 89 shows the device class that we defined for the Tivoli Storage Manager Library Client TONGA_1. It matches the device class that was defined for our Library Manager in Figure 3-35 on page 80.

88

Get More Out of Your SAN with IBM Tivoli Storage Manager

Figure 3-50 Library Client: Device class definitions

Important: The device type and recording format of the device class needs to be the same on Library Manager and Library Client. 6. You can now check the library on the Library Client. For this test, backup the Library Clients Tivoli Storage Manager database on this shared library using the BACKUP DB command. Example 3-34 shows the activity log on the Library Client and Example 3-35 on page 90 shows the activity log on the Library Manager. You can see the processes initiated on both servers, using server-to-server communication.
Example 3-34 Library Client: activity log during a backup database on the Library Client ANR2017I Administrator ADMIN issued command: BACKUP DB dev=LTO2C t=f (SESSION: 390) ANR0984I Process 14 for DATABASE BACKUP started in the BACKGROUND at 11:21:51. (SESSION: 390, PROCESS: 14) ANR2280I Full database backup started as process 14. (SESSION: 390, PROCESS: 14) ANR0408I Session 391 started for server AZOV_1 (AIX-RS/6000) (Tcp/Ip) for library sharing. (SESSION: 390) ANR0409I Session 391 ended for server AZOV_1 (AIX-RS/6000). (SESSION: 390) ANR0408I Session 392 started for server AZOV_1 (AIX-RS/6000) (Tcp/Ip) for library sharing. (SESSION: 390) ANR0409I Session 392 ended for server AZOV_1 (AIX-RS/6000). (SESSION: 390) ANR8337I LTO volume 021AKK mounted in drive DRIVE1 (\\.\Tape0). (SESSION: 390) ANR0511I Session 390 opened output volume 021AKK. (SESSION: 390) ANR1360I Output volume 021AKK opened (sequence number 1). (SESSION: 390) ANR1361I Output volume 021AKK closed. (SESSION: 390) ANR0514I Session 390 closed volume 021AKK. (SESSION: 390) ANR0408I Session 393 started for server AZOV_1 (AIX-RS/6000) (Tcp/Ip) for library sharing. (SESSION: 390) ANR0409I Session 393 ended for server AZOV_1 (AIX-RS/6000). (SESSION: 390) Chapter 3. SCSI tape library sharing

89

ANR0408I Session 395 started for server AZOV_1 (AIX-RS/6000) (Tcp/Ip) for library sharing. (SESSION: 395) ANR0408I Session 394 started for server AZOV_1 (AIX-RS/6000) (Tcp/Ip) for library sharing. (SESSION: 390) ANR0409I Session 394 ended for server AZOV_1 (AIX-RS/6000). (SESSION: 390) ANR4550I Full database backup (process 14) complete, 396 pages copied. (SESSION: 390, PROCESS: 14) ANR0985I Process 14 for DATABASE BACKUP running in the BACKGROUND completed with completion state SUCCESS at 11:22:29. (SESSION: 390, PROCESS: 14) ANR8336I Verifying label of LTO volume 021AKK in drive DRIVE1 (\\.\Tape0). (SESSION: 390) ANR8468I LTO volume 021AKK dismounted from drive DRIVE1 (\\.\Tape0) in library 3582. (SESSION: 390) ANR0409I Session 395 ended for server AZOV_1 (AIX-RS/6000). (SESSION: 395) Example 3-35 Library Manager: activity log during a backup database on the Library Client ANR0408I Session 390 started for server TONGA_1 (Windows) (Tcp/Ip) for library sharing. (SESSION: 390) ANR0409I Session 390 ended for server TONGA_1 (Windows). (SESSION: 390) ANR0408I Session 391 started for server TONGA_1 (Windows) (Tcp/Ip) for library sharing. (SESSION: 391) ANR8337I LTO volume 021AKK mounted in drive DRIVE1 (/dev/rmt0). (SESSION: 391) ANR9791I Volume 021AKK in library 3582 ownership is changing from AZOV_1 to TONGA_1. (SESSION: 391) ANR0409I Session 391 ended for server TONGA_1 (Windows). (SESSION: 391) ANR0408I Session 392 started for server TONGA_1 (Windows) (Tcp/Ip) for library sharing. (SESSION: 392) ANR0408I Session 393 started for server TONGA_1 (Windows) (Tcp/Ip) for library sharing. (SESSION: 393) ANR0409I Session 392 ended for server TONGA_1 (Windows). (SESSION: 392) ANR0408I Session 394 started for server TONGA_1 (Windows) (Tcp/Ip) for library sharing. (SESSION: 392) ANR0409I Session 393 ended for server TONGA_1 (Windows). (SESSION: 393) ANR0409I Session 394 ended for server TONGA_1 (Windows). (SESSION: 392) ANR8336I Verifying label of LTO volume 021AKK in drive DRIVE1 (/dev/rmt0). (SESSION: 391) ANR8468I LTO volume 021AKK dismounted from drive DRIVE1 (/dev/rmt0) in library 3582. (SESSION: 391)

3.3.2 With the Tivoli Storage Manager command line interface


This section summarizes the commands that are required to achieve the configuration using the command line interface. The steps to set up library sharing are: 1. Configuring server-to-server communication on the Library Manager. 2. Defining the library on the Library Manager. 3. Defining the library path on the Library Manager. 4. Defining the drives for this library on the Library Manager. 5. Defining the drive paths on the Library Manager. 6. Defining a device class that uses the library on the Library Manager. 7. Checking in library volumes on the Library Manager. 8. Configuring server-to-server communication on the Library Client. 9. Defining the library on the Library Client. 10.Defining the drives path for the Library Client on the Library Manager. 11.Defining a device class that uses the library on the Library Client.

90

Get More Out of Your SAN with IBM Tivoli Storage Manager

Configuring server-to-server communication on the Library Manager


To configure server-to-server communication, run these commands:
SET SERVERHLADDRESS 9.1.39.89 SET SERVERLLADDRESS 1500 SET SERVERNAME AZOV_1 SET SERVERPASSWORD secret SET CROSSDEFINE ON DEFINE SERVER AZOV_1 serverpassword=secret HLADDRESS=9.1.38.89 lladdress=1500 DEFINE SERVER TONGA_1 serverpassword=secret HLADDRESS=9.1.38.168 lladdress=1500

Defining the library on the Library Manager


To define the library, run this command:
DEFINE LIBRARY 3582 libtype=SCSI shared=YES

Defining the library path on the Library Manager


To define the library path on the Library Manager, run this command:
DEFINE PATH AZOV_1 3582 srctype=server desttype=library device=/dev/smc0

Defining the drives for this library on the Library Manager


To define the for this library, run these commands:
DEFINE DRIVE 3582 3582_1 DEFINE DRIVE 3582 3582_2

Defining the drive paths on the Library Manager


To define the drive paths, run these commands:
DEFINE PATH AZOV_1 3582_1 SRCTYPE=SERVER AUTODETECT=YES DESTTYPE=DRIVE LIBRARY=3582 DEVICE=/dev/rmt0 DEFINE PATH AZOV_1 3582_2 SRCTYPE=SERVER AUTODETECT=YES DESTTYPE=DRIVE LIBRARY=3582 DEVICE=/dev/rmt1

Defining a device class that uses the library on the Library Manager
To define a device class that uses the library, run this command:
DEFINE DEVCLASS 3582_ULT3C LIBRARY=3582 DEVTYPE=LTO FORMAT=ULTRIUM2C MOUNTRETENTION=5 MOUNTWAIT=60 MOUNTLIMIT=DRIVES

Tip: You should use a low value for the MOUNTRETENTION option. The bigger the environment (number of Tivoli Storage Manager nodes, library size, and number of Tivoli Storage Manager servers) the lower the MOUNTRETENTION value.

Checking in library volumes on the Library Manager


To check in library volumes, use this command:
CHECKIN LIBVOLUMES 3582 SEARCH=YES STAT=SCRATCH CHECKLABEL=YES

Tip: You can decrease the check in time by using the CHECKLABEL=BARCODE parameter. This parameter applies only to SCSI libraries.

Tip: If you use the SEARCH=BULK option and do not want to be prompted by the server, add the WAITTIME=0 option to the command

Chapter 3. SCSI tape library sharing

91

Configuring server-to-server communication on the Library Client


To configure server-to-server communication, run these commands:
SET SERVERHLADDRESS 9.1.39.168 SET SERVERLLADDRESS 1500 SET SERVERNAME TONGA_1 SET SERVERPASSWORD secret SET CROSSDEFINE ON DEFINE SERVER AZOV_1 serverpassword=secret HLADDRESS=9.1.38.89 lladdress=1500 DEFINE SERVER TONGA_1 serverpassword=secret HLADDRESS=9.1.38.168 lladdress=1500

Defining the library on the Library Client


To define the library on the Library Client, run this command:
DEFINE LIBRARY 3582 LIBTYPE=SHARED PRIMARYLIBMANAGER=AZOV_1

Defining the drives path for the Library Client on the Library Manager
To define the drives path for the Library Client, run these commands:
DEFINE PATH TONGA_1 3582_1 SRCTYPE=SERVER AUTODETECT=YES DESTTYPE=DRIVE LIBRARY=3582 DEVICE=\\.\TAPE0 DEFINE PATH TONGA_1 3582_2 SRCTYPE=SERVER AUTODETECT=YES DESTTYPE=DRIVE LIBRARY=3582 DEVICE=\\.\TAPE1

Defining a device class that uses the library on the Library Client
To define a device class that uses the library, run this command:
DEFINE DEVCLASS 3582_ULT3C LIBRARY=3582 DEVTYPE=LTO FORMAT=ULTRIUM2C MOUNTRETENTION=5 MOUNTWAIT=60 MOUNTLIMIT=DRIVES

92

Get More Out of Your SAN with IBM Tivoli Storage Manager

Chapter 4.

IBM 3494 tape library sharing


This chapter discusses the following topics: Introduction to the IBM 3494 tape library Library Sharing with the IBM 3494 Tape Library Installing on IBM AIX Installing on Microsoft Windows Installing on Linux Installing on SUN Solaris

Tivoli Storage Manager configuration For more information about the IBM TotalStorage Enterprise Automated Tape Library (3494), see: IBM TotalStorage Tape Device Drivers Installation and Users Guide, GC35-0154 IBM TotalStorage Enterprise Automated Tape Library (3494) Introduction and Planning Guide, GA32-0448

Copyright IBM Corp. 2005. All rights reserved.

93

4.1 Introduction to the IBM 3494 tape library


The IBM TotalStorage Enterprise Automated Tape Library (3494) provides a modular tape automation solution for multiple computing environments. It provides cost-effective, reliable, and space-efficient tape automation. The 3494: Provides a data storage capacity of up to 1 872 terabytes (TB) of uncompacted data and up to 5616 TB of compacted data. Supports the following subsystems: Tape drives: 3490E Models C1A, C2A, and F1A 3590 Models B1A, E1A, and H1A 3592 Model J1A Tape drive controllers: 3590 Models A00, A50, and A60 3592 Model J70 Media cartridges: Cartridge System Tape (3490E) Enhanced Capacity Cartridge System Tape (3490E) High Performance Cartridge Tape (3590) Extended High Performance Cartridge Tape (3590) Enterprise Tape Cartridge (3592) Enterprise Economy Tape Cartridge (3592) Enterprise WORM Tape Cartridge (3592) Enterprise Economy WORM Tape Cartridge (3592) The 3494 provides a High Availability model that contains dual Library Managers and dual accessors for reduced service interventions and greater availability. Also, an optional feature enables two active accessors for increased performance.

4.1.1 IBM 3494 Library Manager


The IBM 3494 Library Manager, or the remote console, controls all of the operations in the 3494 tape library, including the interaction between the library and its operators. The Library Manager hardware consists of a controller, display unit, keyboard and pointing device, and the hardware to support communication with the other units in the library. During normal operations, the controls on the operator panel are sufficient to operate the library. The Library Manager is used for error recovery, for service, and for displaying operational status. The 3494 Model HA1 provides a second set of hardware (controller, display unit, and keyboard with its pointing device) to improve Library Manager availability. The second Library Manager takes control of the library automatically if the first Library Manager fails. The Tivoli Storage Manager Library Manager requires a connection to the 3494 Library Manager for the library control.

94

Get More Out of Your SAN with IBM Tivoli Storage Manager

4.1.2 Categories in an IBM 3494 library


The Library Manager that is built into the IBM 3494 library tracks the category number of each volume in the library. A single category number identifies all volumes that are used for the same purpose or application. These category numbers are useful when multiple systems share the resources of a single library. Typically, a software application that uses a 3494 library uses volumes in one or more categories that are reserved for that application. To avoid loss of data, each application sharing the library must have unique categories. When you define a 3494 library to a Tivoli Storage Manager server, you can use the PRIVATECATEGORY and SCRATCHCATEGORY parameters for the DEFINE LIBRARY command to specify the category numbers for private and scratch Tivoli Storage Manager volumes in that library. If the volumes are IBM 3592 WORM (write once, read many) volumes, you can use the WORMSCRATCHCATEGORY parameter to specify category numbers for scratch WORM volumes in the library. When a volume is first inserted into the library, either manually or automatically at the convenience I/O station, the volume is assigned to the insert category (X'FF00'). A software application such as Tivoli Storage Manager can contact the Library Manager to change a volumes category number. For Tivoli Storage Manager, you use the CHECKIN LIBVOLUME command. Note: A 349X library object defend to Tivoli Storage Manager only contains one device type (3490, 3590, or 3592) of drives. Thus, if you have 3590s and 3592s in your 349X library, you need to define two library objects to Tivoli Storage Manager: one for your 3590 drives and one for your 3592 drives. Each of these library objects has the same device parameter when defining their paths. A Tivoli Storage Manager server reserves at least two category numbers in each 3494 library that it accesses: one for private volumes and one for scratch volumes. For example, suppose that you want to define a library object for your 3592 drives:
define library my3494 libtype=349x privatecategory=400 scratchcategory=401 wormscratchcategory=402

This command reserves the following categories for the new library, called my3494: 400 (X'190') Private volumes 401 (X'191') Scratch volumes 402 (X'192') WORM scratch volumes Note: The default values for the categories might be acceptable in most cases. However, if you connect other systems or Tivoli Storage Manager servers to a single 3494 library, ensure that each uses unique category numbers. Otherwise, two or more systems might try to use the same volume, and cause a corruption or loss of data.

4.2 Library Sharing with the IBM 3494 Tape Library


To use the IBM 3494 Tape Library, the Tivoli Storage Manager Library Manager needs either a LAN or serial connection to the tape library. A LAN connection is most common. The Tivoli Storage Manager Library Manager host also requires an interface between the Tivoli Storage Manager Server and the IBM 3494 Tape Library Manager. This section describes this interface for Microsoft Windows, IBM AIX, Linux, and SUN Solaris. The Tivoli Storage Manager Library Manager and Library Clients communicate, as usual, via server-to-server

Chapter 4. IBM 3494 tape library sharing

95

communication. Figure 4-1 summarizes the connections that are required for sharing a 3494 library.
Tivoli Storage Manager Library Manager

Tivoli Storage Manager Library Client

Server-to-Server communication
LAN

Data Flow

Data Flow

SAN

Library Control
LAN

3494 Tape Library

Figure 4-1 IBM 3494 Library sharing overview

4.2.1 Installing on IBM AIX


This section discusses the steps required for sharing with AIX.

Installing library control


This library control (medium changer) needs to be installed only on the Tivoli Storage Manager Library Manager. The IBM 3494 Library device driver is an AIX device driver for the 3494 and VTS to an RS/6000, RS/6000 SP, or pSeries host. The Library device driver, together with the IBM AIX Enhanced Tape Device Driver (Atape), provides support for the tape subsystem in the IBM TotalStorage 3494 Enterprise Tape Library. The library control software consists of an Automated Tape Library Device Driver (atldd), an application daemon (lmcpd) that communicates with the 3494 Library Manager (LM), and a utility program (mtlib), which provides a command line interface to the library. An Ethernet, token-ring, or RS-232 serial connection can be used for the physical connection between the host and the 3494 Library Manager. The daemon, known to AIX specifically as the IBM Library Manager Control Point Daemon (lmcpd), communicates with the tape libraries that are defined in a configuration file, /etc/ibmatl.conf, which is created when the software package is installed. The LMCP is used to perform library functions such as mounting and unmounting volumes. To send commands to the 3494, at least one LMCP device must be defined for use on the library. Multiple LMCP devices can be defined for use on the same 3494. On AIX, you need the IBM TotalStorage Enterprise Tape Library Driver, also called IBM Automated Tape Library Device Driver (atldd). Use SMIT used to install the latest version of the driver. For more information about the driver and installation process, see IBM TotalStorage Tape Device Drivers Installation and User's Guide, GC35-0154 and the atldd.Readme file. You can download the latest version of the atldd install package from:
ftp://ftp.software.ibm.com/storage/devdrvr/AIX/

96

Get More Out of Your SAN with IBM Tivoli Storage Manager

After installing, you need to update the /etc/ibmatl.conf file with the library name, TCP/IP address, and host name, as shown in Example 4-1. Our Library Manager is called poco, and we have assigned it a symbolic name of 3494.
Example 4-1 AIX ibmatl.conf # # (C) COPYRIGHT International Business Machines Corp. 1993, 1998 # 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. # # # This is the file which defines the 3494 libraries and how they are attached. # The format of this file is: # # Library name address identifier <address2> # # Where library name is a symbolic name of the library, the address # is a value which represents either a direct rs232 connection or an # internet address of the Library Manager for a TCP/IP connection, and # the identifier to be used in conjuction with the Library Manager. It # is common practice to use the hostname of the machine for the identfier. # The address2 field after the identifier is the second internet address # for a 3494 HA (High Availability) library. # # Notes: There is a 32 character limit for symbolic names. # There is an 8 character limit for the identifier. # Any line beginning with # is treated as a comment. # # Example for rs232 connected library: # # 3494a /dev/tty0 myhost # # Example for TCP/IP connected library: # # 3494b 9.115.32.21 myhost # # Example for TCP/IP connected 3494 HA library: # # 3494c 9.115.64.15 myhost 9.115.64.16 # 3494 9.11.213.8 poco

To activate the new configuration file ibmatl.conf, restart the Library Manager Control Point Daemon (lmcpd), as shown in Example 4-2.
Example 4-2 /etc/lmcpd restart (root@poco) /> ps -ef | grep lmcpd root 122974 1 0 17:23:44 root 397560 352292 0 12:54:35 (root@poco) /> kill -9 122974 (root@poco) /> /etc/lmcpd (root@poco) /> ps -ef | grep lmcpd root 122978 352292 0 12:57:58 root 372786 1 0 12:57:53 - 0:00 /etc/lmcpd pts/4 0:00 grep -i lmcpd

pts/4 0:00 grep -i lmcpd - 0:00 /etc/lmcpd

Chapter 4. IBM 3494 tape library sharing

97

Next, you configure the LMCP instances. Use the defatl command to define and configure the LMCP. This command creates the new LAN/TTY Library Management Control Point
/etc/methods/defatl -ctape -slibrary -tatl -a library_name='3494'

Important: The library_name parameter must be set to the same name as is defined in the ibmatl.conf file, which is 3494 in our example. The device /dev/lmcp0 is now defined. To make it available, use the mkdev command.
mkdev -l 'lmcp0'

Now, you can define the library and the path to this library in the Tivoli Storage Manager LIbrary Manager, as shown in Example 4-3. Specify LIBTYPE=349x, and specify the correct /dev/lcmpx device.
Example 4-3 Define library and path on the Library Manager on AIX tsm: POCO_1>DEFINE LIBRARY 3494 LIBTYPE=349X SHARED=YES ANR8400I Library 3494 defined. tsm: POCO_1>DEFINE PATH poco_1 3494 SRCTYPE=SERVER DESTTYPE=LIBRARY DEVICE=/dev/lmcp0 ANR1720I A path from POCO_1 to 3494 has been defined.

Installing the drive


The device driver for the tape drives has to be installed on both the Tivoli Storage Manager Library Manager and the Tivoli Storage Manager Library Client(s). If they are non-IBM drives, use the Tivoli Storage Manager device driver. If they are IBM drives, you can use the IBM tape driver. We have IBM drives in our IBM 3494 library, so we have to install the IBM tape driver. For AIX this is the Atape package. You can download this package at:
ftp://ftp.software.ibm.com/storage/devdrvr/AIX/

Install the package using SMIT and then reboot the server, because the installation updates the system boot image. Example 4-4 shows the installation process output.
Example 4-4 AIX: Atape installation with SMIT COMMAND STATUS Command: OK stdout: yes stderr: no

Before command completion, additional instructions may appear below. [TOP] geninstall -I "a -cgNqwX -J"

-Z

-d . -f File 2>&1

File: Atape.driver 9.3.3.0 +-----------------------------------------------------------------------------+ Pre-installation Verification... +-----------------------------------------------------------------------------+ Verifying selections...done Verifying requisites...done Results... SUCCESSES --------Filesets listed in this section passed pre-installation verification and will be installed.

98

Get More Out of Your SAN with IBM Tivoli Storage Manager

Selected Filesets ----------------Atape.driver 9.3.3.0 << End of Success Section >>

# IBM AIX Enhanced Tape and Me...

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.3.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... There are 2 Atape devices configured: rmt2 Available rmt3 Available Unconfiguring Atape devices... Unconfiguring rmt2... rmt2 Defined Unconfiguring rmt3... rmt3 Defined 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. Adding utility programs... Reconfiguring Atape devices... Configuring rmt2... rmt2 Available Configuring rmt3... rmt3 Available

Chapter 4. IBM 3494 tape library sharing

99

Finished processing all filesets. (Total time:

13 secs).

0503-409 installp: bosboot verification starting... installp: bosboot verification completed. 0503-408 installp: bosboot process starting... bosboot: Boot image is 22643 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.3.0 USR APPLY SUCCESS [BOTTOM] F1=Help F6=Command F8=Image n=Find Next F2=Refresh F9=Shell F3=Cancel F10=Exit /=Find

The devices should be now configured. You can check the configuration with the lsdev command (Example 4-5).
Example 4-5 AIX: lsdev (root@poco) /tmp/tsm>lsdev -Cctape lmcp0 Available LAN/TTY Library Management Control Point rmt0 Available 1V-08-01 Other FC SCSI Tape Drive rmt1 Available 1V-08-01 Other FC SCSI Tape Drive rmt2 Available 1V-08-01 IBM 3592 Tape Drive (FCP) rmt3 Available 1V-08-01 IBM 3592 Tape Drive (FCP)

In our setup, there are two other non-IBM drives that are attached to the server (rmt0 and rmt1) and our two IBM 3592 drives (rmt2 and rmt3). We use these device special files (/dev/rmt2 and /dev/rmt3) for our Tivoli Storage Manager drive path definition.

100

Get More Out of Your SAN with IBM Tivoli Storage Manager

Tip: If the drives do not appear, run configuration manager (cfgmgr), as shown in Example 4-6, to rescan your devices.
Example 4-6 AIX: cfgmgr (root@poco) /usr/tivoli/tsm/server/bin>lsdev -Ccadapter ent0 Available 1L-08 10/100 Mbps Ethernet PCI Adapter II (1410ff01) ent1 Available 14-08 10/100 Mbps Ethernet PCI Adapter II (1410ff01) fcs0 Available 1V-08 FC Adapter fda0 Available 01-D1 Standard I/O Diskette Adapter ide0 Available 1G-19 ATA/IDE Controller Device lai0 Available 1p-00 GXT135P Graphics Adapter ppa0 Available 01-R1 CHRP IEEE1284 (ECP) Parallel Port Adapter sa0 Available 01-S1 Standard I/O Serial Port sa1 Available 01-S2 Standard I/O Serial Port sa2 Available 01-S3 Standard I/O Serial Port scsi0 Available 1S-08 Wide/Ultra-3 SCSI I/O Controller scsi1 Available 1S-09 Wide/Ultra-3 SCSI I/O Controller scsi2 Available 1c-08 Wide/Fast-20 SCSI I/O Controller sioka0 Available 01-K1-00 Keyboard Adapter siokma0 Available 01-K1 Keyboard/Mouse Adapter sioma0 Available 01-K1-01 Mouse Adapter (root@poco) /usr/tivoli/tsm/server/bin>cfgmgr -l fcs0 -v ---------------attempting to configure device 'fcs0' Time: 0 LEDS: 0x2600 invoking /usr/lib/methods/cfgefc -l fcs0 Number of running methods: 1 ---------------Completed method for: fcs0, Elapsed time = 0 return code = 0 ****************** stdout *********** fscsi0 ****************** no stderr *********** ---------------Time: 0 LEDS: 0x539 Number of running methods: 0 ---------------attempting to configure device 'fscsi0' Time: 0 LEDS: 0x569 invoking /usr/lib/methods/cfgefscsi -l fscsi0 Number of running methods: 1 ---------------Completed method for: fscsi0, Elapsed time = 0 return code = 0 ****************** stdout *********** rmt0 rmt1 rmt2 rmt3 ****************** no stderr *********** ---------------Time: 0 LEDS: 0x539 Number of running methods: 0 ---------------attempting to configure device 'rmt0' Time: 0 LEDS: 0x973 invoking /etc/methods/cfgscsitape -l rmt0 Number of running methods: 1 ----------------

Chapter 4. IBM 3494 tape library sharing

101

Completed method for: rmt0, Elapsed time = return code = 0 ****************** no stdout *********** ****************** no stderr *********** ---------------Time: 0 LEDS: 0x539 Number of running methods: 0 ---------------attempting to configure device 'rmt1' Time: 0 LEDS: 0x973 invoking /etc/methods/cfgscsitape -l rmt1 Number of running methods: 1 ---------------Completed method for: rmt1, Elapsed time = return code = 0 ****************** no stdout *********** ****************** no stderr *********** ---------------Time: 0 LEDS: 0x539 Number of running methods: 0 ---------------attempting to configure device 'rmt2' Time: 0 LEDS: 0x899 invoking /etc/methods/cfgAtape -l rmt2 Number of running methods: 1 ---------------Completed method for: rmt2, Elapsed time = return code = 0 ****************** no stdout *********** ****************** no stderr *********** ---------------Time: 0 LEDS: 0x539 Number of running methods: 0 ---------------attempting to configure device 'rmt3' Time: 0 LEDS: 0x899 invoking /etc/methods/cfgAtape -l rmt3 Number of running methods: 1 ---------------Completed method for: rmt3, Elapsed time = return code = 0 ****************** no stdout *********** ****************** no stderr *********** ---------------Time: 0 LEDS: 0x539 Number of running methods: 0 ---------------calling savebase return code = 0 ****************** no stdout *********** ****************** no stderr *********** Configuration time: 0 seconds (root@poco) /usr/tivoli/tsm/server/bin>

102

Get More Out of Your SAN with IBM Tivoli Storage Manager

4.2.2 Installing on Microsoft Windows


This section discusses the steps that are required for sharing on Windows.

Installing library control


This library control (medium changer) needs to be installed only on the Tivoli Storage Manager Library Manager. This software provides attachment for the 3494 to a server running Microsoft Windows NT 4.0, Windows 2000 or 2003. This product supports the tape subsystems in the 3494 Tape Library with either the IBM Windows Tape Device Driver (magstar.sys) or the Tivoli Storage Manager for Microsoft Windows NT Server Device Driver (adsmscsi.sys). The software consists of a tape library service that communicates directly with the Library Manager of the 3494 via the LAN, a utility program that provides a command line interface to the service as well as a static library and a DLL that can be used to provide a communication interface with the service. The IBM Automated Tape Library service is provided in the installation package. The service is set to automatic start, so that it initiates automatically when the Windows system is booted. When configuring the Tivoli Storage Manager Library Manager on a Windows server, you need to install the IBM Automated Tape Library driver. The IBM Tape Library service for Microsoft Windows is installed by executing the install binary, which has the format ibmatl.x.x.x.x.exe or ibmatl64.x.x.x.x.exe, where x is the current level of the package and 64 is for 64-bit Windows 2003. You can download the Automated Tape Library driver from:
ftp://ftp.software.ibm.com/storage/devdrvr/Windows/ibmatl/

After installing, update the file C:\WINNT\ibmatl.conf. Example 4-7 shows our file for the 3494 Tape Library with the TCP/IP address 9.11.213.8. Note: After installing the ibmatl on Windows 2003, the InstallShield can create a hidden directory (InstallShield Installation Information) in the Program Files folder, where it saves its own log file. This log file is a record of script functions that have changed the state of the machine during the installation. Do not delete this folder or run the setup.exe in the folder, or you will not be able to uninstall ibmatl.
Example 4-7 Windows ibmatl.conf # # # # # # # # # # # # # # # # # # # (C) COPYRIGHT International Business Machines Corp. 1993, 1998 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.

This is the file which defines the 3494 libraries and how they are attached. The format of this file is: Library name address identifier <address2>

Where library name is a symbolic name of the library, address is the internet address of the Library Manager for a TCP/IP connection, and the identifier to be used in conjuction with the Library Manager. It is common practice to use the hostname of the machine for the identfier. The address2 field after the identifier is the second internet address Chapter 4. IBM 3494 tape library sharing

103

# for a 3494 HA (High Availability) library. # # Notes: There is a 32 character limit for symbolic names. # There is an 8 character limit for the identifier. # Any line beginning with # is treated as a comment. # # # Example for TCP/IP connected library: # # 3494a 9.115.32.21 myhost # # Example for TCP/IP connected 3494 HA library: # # 3494b 9.115.64.15 myhost 9.115.64.16 # 3494c 9.11.213.8 scamp

Next, start the IBM Automated Tape Library Service (Figure 4-2).

Figure 4-2 Windows IBM Automated Tape Library Service

You can now define the library and the path to this library in Tivoli Storage Manager, as shown in Example 4-8.
Example 4-8 Define library and path on the Library Manager on Microsoft Windows tsm: SCAMP_1>DEFINE LIBRARY 3494c LIBTYPE=349X SHARED=YES ANR8400I Library 3494C defined. tsm: SCAMP_1>DEFINE PATH scamp_1 3494c SRCTYPE=SERVER DESTTYPE=LIBRARY DEVICE=3494c ANR1720I A path from SCAMP_1 to 3494C has been defined.

Important: For the DEFINE PATH command, the DEVICE parameter must match exactly the name used in the ibmatl.conf file (Example 4-7), which is 3494c in this example.

Installing the drive


The device driver has to be installed on both the Tivoli Storage Manager Library Manager and the Tivoli Storage Manager Library Client(s). If they are non-IBM drives, use the Tivoli Storage Manager device driver. If they are IBM drives, use the IBM tape device driver. We have IBM drives in our IBM 3494 library, so we install the IBM tape device driver. You can download the software from:
ftp://ftp.software.ibm.com/storage/devdrvr/Windows/

104

Get More Out of Your SAN with IBM Tivoli Storage Manager

Note: Beginning with V6.0.4.4, the IBM Tape device drivers for Windows 2000 and Windows 2003 are converged into a single install package with common inf files. Use this single package to install a driver on either operating system. The system detects which version of the driver binary files to install. For Windows 2000 users, the Magstar and Ultrium drivers have also been converged. After downloading the package: 1. Unzip the file and update the driver for all the drives. Figure 4-3 shows the Microsoft Windows device manager and how to start the driver update.

Figure 4-3 Windows: Device Manager

2. On the next screen, Figure 4-4 on page 106, select the option Install from a list or specific location (Advanced). Click Next.

Chapter 4. IBM 3494 tape library sharing

105

Figure 4-4 Windows: HW update wizard

3. Select Dont search. I will choose the driver to install, as shown in Figure 4-5.

Figure 4-5 Windows: Driver search

4. Click Have Disk and browse to the directory where you extracted the contents of the IBM tape device driver zipped file (Figure 4-6 on page 107).

106

Get More Out of Your SAN with IBM Tivoli Storage Manager

Figure 4-6 Windows: Select driver directory

5. Choose the magtape.inf file and click Open (Figure 4-7).

Figure 4-7 Windows: Select tape driver

6. You have now two models to select, Figure 4-8 on page 108. Choose the model with the extension for Tivoli Storage Manager.

Chapter 4. IBM 3494 tape library sharing

107

Figure 4-8 Windows: Model select

Important: Beginning with V6.0.2.4, two versions of the device driver are made available: one that prohibits multiple opens on a single tape drive and one that will allow multiple opens on a single tape drive. Drivers that prohibit multiple opens on a single tape drive are indicated (when presented by the Windows Plug and Play Device Manager during device configuration) with the text string (for Tivoli Storage Manager) in them. These drivers use the file exctape.inf from the install package during installation. Drivers that allow multiple opens on a tape drive do not have this text string in them. These drivers use the file magtape.inf from the install package during the installation. IBM strongly recommends that you use the for Tivoli Storage Manager drivers whether or not you are a Tivoli customer to prevent a tape drive from being accessed by more than one process and potentially causing data to be corrupted or lost. However, if you are a customer that uses RSM, you need to use the other driver and take steps to ensure that multiple uncoordinated opens to a tape drive do not occur. 7. Ignore the warning that the driver is not tested by Microsoft. Click Continue Anyway (Figure 4-9 on page 109).

108

Get More Out of Your SAN with IBM Tivoli Storage Manager

Figure 4-9 Windows: Driver compatibility

8. Repeat these steps for all IBM drives. Reboot the server to activate the new driver. After rebooting, in the Microsoft Windows Management Console, you can see all drives (Figure 4-10). You will use these device names (for example, \\.\Tape0) for the Tivoli Storage Manager server drive path definition as discussed in 4.3, Tivoli Storage Manager configuration on page 122.

Figure 4-10 Windows: MMC

Important: For Windows 2003, the previous Tivoli Storage Manager device was replaced with a standard Windows device driver. The new device driver does not run as a service.

4.2.3 Installing on Linux


This section discusses the steps for setup with Linux.

Installing library control


This library control (medium changer) needs to be installed only on the Tivoli Storage Manager Library Manager. The Linux Tape Library Driver (ibmatl) is software for attaching a 3494 to a Linux server. Use the Tape Library Driver in conjunction with the IBM SCSI Tape and Medium Changer Device Driver for Linux to provide support for 3590 and 3592 tape systems with the Fibre Channel Attachment in the 3494.

Chapter 4. IBM 3494 tape library sharing

109

The software consists of a daemon that communicates directly with the Library Manager of the 3494 through Ethernet or Token Ring LAN, a utility program that provides a command-line interface to the daemon, and a C object module that can be linked with user applications to provide a communication interface with the daemon. This software is termed as a driver throughout this document, because it provides the software and interface necessary to drive the 3494 Tape Library. However, the product does not include a device driver in the true sense of the term. That is, it is not an extension of the operating system kernel, such as a tape device driver. The Library Manager control point daemon (lmcpd) is provided in the package. It provides direct communication with the Library Manager. An application links with the supplied C object module using the interface described in the IBM TotalStorage Tape Device Drivers: Programming Reference. The subroutines in this module communicate with the lmcpd to perform the various library operations using standard UNIX name space sockets. The lmcpd communicates with the Library Manager through TCP/IP. The /etc/ibmatl.conf configuration file is used to define the attachment for each library. The installation medhot for lmcpd depends on the Linux distribution. We used the YAST tool in SUSE LINUX Enterprise Server 9 for this installation. After the installation, you need to update the /etc/ibmatl.conf file with the library name, TCP/IP address, and host name, as shown in Example 4-9.
Example 4-9 Linux ibmatl.conf # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # (C) COPYRIGHT International Business Machines Corp. 1993, 1998 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.

This is the file which defines the 3494 libraries and how they are attached. The format of this file is: Library name address identifier <address2>

Where library name is a symbolic name of the library, the address is a value which represents either a direct rs232 connection or an internet address of the Library Manager for a TCP/IP connection, and the identifier to be used in conjuction with the Library Manager. It is common practice to use the hostname of the machine for the identfier. The address2 field after the identifier is the second internet address for a 3494 HA (High Availability) library. Notes: There is a 32 character limit for symbolic names. There is an 8 character limit for the identifier. Any line beginning with # is treated as a comment. Example for rs232 connected library: 3494a /dev/tty0 myhost

Example for TCP/IP connected library: 3494b 9.115.32.21 myhost

110

Get More Out of Your SAN with IBM Tivoli Storage Manager

# # # #

Example for TCP/IP connected 3494 HA library: 3494c 3494b 9.115.64.15 myhost 9.11.213.8 cadi 9.115.64.16

Whenever the /etc/ibmatl.conf file is changed, you have to restart the lmcpd, as shown in Example 4-10.
Example 4-10 Linux /etc/lmcpd restart cadi:/tmp root root cadi:/tmp cadi:/tmp root cadi:/tmp cadi:/tmp root root # ps -ef | grep lmcpd 9798 1 0 05:58 ? 9805 9003 0 05:59 pts/4 # kill -9 9798 # ps -ef | grep lmcpd 9807 9003 0 05:59 pts/4 # /etc/lmcpd # ps -ef | grep lmcpd 9810 1 0 06:00 ? 9814 9003 0 06:00 pts/4 00:00:00 /etc/lmcpd 00:00:00 grep lmcpd

00:00:00 grep lmcpd

00:00:00 /etc/lmcpd 00:00:00 grep lmcpd

We can now define the library and the path to this library in Tivoli Storage Manager, as shown in Example 4-11.
Example 4-11 Define library and path on the Library Manager on Linux tsm: CADI_1>DEFINE LIBRARY 3494lib LIBTYPE=349X SHARED=YES ANR8400I Library 3494LIB defined. tsm: CADI_1>DEFINE PATH cadi_1 3494lib SRCTYPE=SERVER DESTTYPE=LIBRARY DEVICE=3494b ANR1720I A path from CADI_1 to 3494LIB has been defined.

Specify LIBTYPE=349x on the DEFINE LIBRARY command. The DEVICE parameter in the DEFINE PATH command must match the entry made in /etc/ibmatl.conf.

Installing the drive


The device driver has to be installed on both the Tivoli Storage Manager Library Manager and the Tivoli Storage Manager Library Client. If they are non-IBM drives, use the Tivoli Storage Manager device driver. If they are IBM drives, you can use the IBM tape driver. We have IBM drives in our IBM 3494 library, so we have to install the IBM tape driver. You can download the software from
ftp://ftp.software.ibm.com/storage/devdrvr/Linux/

Chapter 4. IBM 3494 tape library sharing

111

For Linux, you download the IBMtape and the IBMtapeutil packages. Example 4-12 shows the install process for IBMtapeutil, and Example 4-13 shows the process for IBMtape.
Example 4-12 Linux: IBMtapeutil install cadi:/tmp # tar -xvf ./IBMtapeutil.1.3.1.i386.tar.bin IBMtapeutil.1.3.1/ IBMtapeutil.1.3.1/IBMtapeconfig IBMtapeutil.1.3.1/IBMtapeutil.c IBMtapeutil.1.3.1/IBMtapeutil.h IBMtapeutil.1.3.1/makefile IBMtapeutil.1.3.1/IBMtapeutil.ReadMe IBMtapeutil.1.3.1/IBMtapeutil cadi:/tmp # cd IBMtapeutil.1.3.1/ cadi:/tmp/IBMtapeutil.1.3.1 # make install cp -f IBMtapeutil /usr/bin/. cp -f IBMtapeconfig /usr/bin/. Example 4-13 Linux: IBM tape driver install cadi:/tmp # rpm -i ./IBMtape-2.0.5-2.6.5-7.147.i386.rpm.bin Installing IBMtape IBMtape loaded

After the installation, you can check whether the devices were detected (Example 4-14).
Example 4-14 Linux: ls -l /dev/IBMtape* cadi:~ # ls crw-rw-rwcrw-rw-rwcrw-rw-rwcrw-rw-rwcadi:~ # -l /dev/IBMtap* 1 root root 253, 0 Apr 1 root root 253, 256 Apr 1 root root 253, 1 Apr 1 root root 253, 257 Apr 8 8 8 8 05:04 05:04 05:04 05:04 /dev/IBMtape0 /dev/IBMtape0n /dev/IBMtape1 /dev/IBMtape1n

If there are no /dev/IBMtapeX devices, reboot the server. After the reboot, check the file /proc/scsi/IBMtape (Example 4-15) to see whether the drives were correctly detected. Otherwise, check the SAN connections and the SAN zoning.
Example 4-15 Linux: /proc/scsi/IBMtape cadi:~ # more /proc/scsi/IBMtape IBMtape version: 2.0.5 IBMtape major number: 253 Attached Tape Devices: Number Model SN 0 03592J1A 000001300117 1 03592J1A 000001300114

HBA qla2xxx qla2xxx

FO Path NA NA

You can reconfigure the IBM tape devices with the IBMtapeconfig script. IBMtapeconfig removes all the existing /dev/IBMtape and /dev/IBMchanger special files and creates new ones based on the information in /proc/scsi/IBMtape and /proc/scsi/IBMchanger. Example 4-16 shows the output from this command.
Example 4-16 Linux: IBMtapeconfig cadi:~ # IBMtapeconfig Creating IBMtape special files major number: 253

112

Get More Out of Your SAN with IBM Tivoli Storage Manager

Attached mknod -m mknod -m mknod -m mknod -m

devices: 0 1 0666 /dev/IBMtape0 c 253 0 0666 /dev/IBMtape0n c 253 256 0666 /dev/IBMtape1 c 253 1 0666 /dev/IBMtape1n c 253 257

Creating IBMchanger special files major number: 253 No attached devices.

Each tape device has a set of special files that provides access to the same physical drive but provides different attributes. Table 4-1 shows the attributes of the special files.
Table 4-1 Linux: Special files for IBM tape devices Special file name /dev/IBMtape* /dev/IBMtape*n Rewind on close Yes No

You will use these /dev/IBMtape* special devices files in the Tivoli Storage Manager server drive path definition as discussed in 4.3, Tivoli Storage Manager configuration on page 122. Tip: You can test your drives with the program IBMtapeutil, as shown in Example 4-17.
Example 4-17 Linux: IBMtapeutil cadi: # IBMtapeutil IBMtapeutil for Linux, Version 1.3.1, Sept. 14, 2004 ========================================= 1. Tape 2. Changer 3. Quit ========================================= Enter your choice: 1 -------------------------- General Commands: ----------------------------1. Open a Device 9. Mode Sense Pag 2. Close a Device 10. Switch Tape/Changer Devic 3. Inquiry 11. Create Special Files 4. Test Unit Ready 12. Query Driver Version 5. Reserve Device 13. Query Device Path 6. Release Device 14. Display All Paths 7. Request Sense 15. Enable A Path 8. Log Sense Page 16. Disable A Path Q. Quit IBMtapeutil --------------------------- Tape Commands: -------------------------------20. Rewind 33. Set Block Size 21. Forward Space Filemarks 34. Retension Tape 22. Backward Space Filemarks 35. Query/Set Tape Position 23. Forward Space Records 36. Query Tape Status 24. Backward Space Records 37. Load Tape 25. FSFM 38. Unload Tape 26. BSFM 39. Lock Tape Drive Door 27. Space to End of Data 40. Unlock Tape Drive Door 28. Read and Write Tests 41. Take Tape Offline 29. Write Filemarks 42. Enable/Disable Compression Chapter 4. IBM 3494 tape library sharing

113

30. Read or Write Files 43. Flush Drive's Buffer 31. Erase 44. Self Test 32. Reset Drive 45. Display Message --------------------------- IBMtape Commands: ------------------------------46. Query Sense 52. Locate Tape Position 47. Query Inquiry 53. Read Tape Position 48. Query/Set Tape Parameters 54. Query Mtdevice Number 49. Query/Set Tape Position 55. Synchronize Buffers 50. Query/Set MT/ST Mode 56. List Tape Filemarks 51. Report Density Support --------------------------- Service Aid Commands: ------------------------70. Dump Device 74. Read Persistent Reservation Keys 71. Force Dump 75. Read Persistent Reservations 72. Load Ucode 76. Register Persistent Reservation Key 73. Reset Drive 77. Remove Persistent Reservation 78. Clear All Persistent Registrations --------------------------------------------------------------------------99. Back To Main Menu Enter Selection: 1 Enter device name (<enter> for /dev/IBMtape0): Select mode (<enter> or 1=Read/Write, 2=Read Only, 3=Write Only, 4=Append): Opening device... ...

Note: Beginning with IBMtape V1.2.5, the IBMtape device driver provides an error diagnostic daemon (IBMtape) that provides error logging and tracing of the IBMtape device driver. When drive dumps, log sense data, or SIM/MIMM error information are created by the tape drive, the daemon retrieves that data automatically and saves it to disk on the Linux system. We recommend that you leave this daemon enabled at all times.

4.2.4 Installing on SUN Solaris


This section describes the steps for setup on SUN Solaris.

Installing library control


This library control (medium changer) needs to be installed only on the Tivoli Storage Manager Library Manager. The Sun Solaris Tape Library Driver is software for attaching the 3494 to a Sun server. Use the Tape Library Driver together with the IBM SCSI Tape and Medium Changer Device Driver for Solaris to provide support for the SCSI tape subsystems in the 3494. The software consists of a daemon that communicates directly with the Library Manager of the 3494 Tape Library through RS-232 or LAN, a utility program that provides a command-line interface to the daemon, and a C object module that can be linked with user applications to provide a communication interface with the daemon. This software is known as a driver because it provides the software and interface necessary to drive the Tape Library. However, the product does not consist of a device driver in the true sense of the term. That is, it is not an extension of the operating system kernel, such as a SCSI tape device driver.

114

Get More Out of Your SAN with IBM Tivoli Storage Manager

The Library Manager control point daemon (lmcpd) is provided in the package. The lmcpd is a process that is always running on the system which provides direct communication with the 3494 Library Manager. An application (such as Tivoli Storage Manager) links with the supplied C object module using the interface described in the IBM TotalStorage Tape Device Drivers: Programming Reference. The subroutines in this module communicate with the lmcpd to perform the various library operations using standard UNIX namespace sockets. The lmcpd communicates with the Library Manager either through a standard 25-pin null modem D-shell RS-232 cable or through TCP/IP. The /etc/ibmatl.conf configuration file is used to define the type of attachment for each library. The IBM Tape Library driver (the lmcpd package) for Solaris is installed using the standard Sun package facility. The IBM Tape Library Driver for Solaris is the package. Example 4-18 shows the installation process. You can download the Tape Library driver from:
ftp://ftp.software.ibm.com/storage/devdrvr/Solaris/ Example 4-18 Solaris lmcpd install bash-2.03# pkgadd -d ./lmcpd.6.0.6.0.bin The following packages are available: 1 lmcpd IBM Automated Tape Library Daemon (sparc) 6.0.6.0 Select package(s) you wish to process (or 'all' to process all packages). (default: all) [?,??,q]: 1 Processing package instance <lmcpd> from </tmp/lmcpd.6.0.6.0.bin> IBM Automated Tape Library Daemon (sparc) 6.0.6.0 IBM (R) Solaris (R) IBM Automated Tape Library Daemon Version 6.0.6.0 Contains Licensed Internal Code Licensed Materials - Property of IBM (C) COPYRIGHT 1995. 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. ## 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.

Chapter 4. IBM 3494 tape library sharing

115

Do you want to continue with the installation of <lmcpd> [y,n,?] y Installing IBM Automated Tape Library Daemon as <lmcpd> ## Installing part 1 of 1. /etc/lmcpd /opt/lmcpd/ibmatl.conf /usr/bin/mtevent /usr/bin/mtlib /usr/bin/mtlib64 /usr/bin/trcatl /usr/include/sys/mtlibio.h /usr/lib/libibm.o /usr/lib/libibm64.o /usr/lib/libibm64k.o /usr/lib/libibmk.o [ verifying class <none> ] ## Executing postinstall script. The ibmatl.conf file already exists in the /etc directory... Using existing ibmatl.conf as current configuration file. Adding lmcpd 3494 port to /etc/services file... Adding new lmcpd entry to /etc/inittab file... Installation of <lmcpd> was successful.

After installing, update the /etc/ibmatl.conf file with the library name, TCP/IP address, and host name, as shown in Example 4-19.
Example 4-19 Solaris ibmatl.conf # # # # # # # # # # # # # # # # # # # # # # # # # # # #

(C) COPYRIGHT International Business Machines Corp. 1993, 1998 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. This is the file which defines the 3494 libraries and how they are attached. The format of this file is: Library name address identifier <address2>

Where library name is a symbolic name of the library, the address is a value which represents either a direct rs232 connection or an internet address of the Library Manager for a TCP/IP connection, and the identifier to be used in conjuction with the Library Manager. It is common practice to use the hostname of the machine for the identfier. The address2 field after the identifier is the second internet address for a 3494 HA (High Availability) library. Notes: There is a 32 character limit for symbolic names. There is an 8 character limit for the identifier. Any line beginning with # is treated as a comment. Example for rs232 connected library: 3494a dst3494b /dev/tty0 9.11.213.8 myhost sunset

116

Get More Out of Your SAN with IBM Tivoli Storage Manager

To activate the new configuration file ibmatl.conf, restart the Library Manager Control Point daemon (lmcpd), as shown in Example 4-20.
Example 4-20 Solaris /etc/lmcpd restart bash-2.03# ps -ef | grep lmcpd root 521 1 0 Jan 06 root 3600 3090 0 10:33:33 bash-2.03# kill -9 521 bash-2.03# ps -ef | grep lmcpd root 3602 3090 0 10:33:41 bash-2.03# /etc/lmcpd bash-2.03# ps -ef | grep lmcpd root 3616 3090 0 10:33:51 root 3605 1 0 10:33:44 ? pts/2 0:09 /etc/lmcpd 0:00 grep lmcpd

pts/2

0:00 grep lmcpd

pts/2 ?

0:00 grep lmcpd 0:00 /etc/lmcpd

You can now define the library and the path to this library in Tivoli Storage Manager, as shown in Example 4-21.
Example 4-21 Define library and path on the Library Manager on Solaris tsm: SUNSET_1>DEFINE LIBRARY 3494lib LIBTYPE=349X SHARED=YES ANR8400I Library 3494LIB defined. tsm: SUNSET_1>DEFINE PATH sunset_1 3494lib SRCTYPE=SERVER DESTTYPE=LIBRARY DEVICE=dst3494b ANR1720I A path from SUNSET_1 to 3494LIB has been defined.

Use LIBTYPE of 349x in the DEFINE LIBRARY command. The DEVICE parameter in the DEFINE PATH command must match the name defined in ibmatl.conf, dst3494b in our example.

Installing the drive


The device driver has to be installed on both the Tivoli Storage Manager Library Manager and the Tivoli Storage Manager Library Client. If they are non-IBM drives, use the Tivoli Storage Manager device driver. If they are IBM drives, you can use the IBM tape driver. We have IBM drives in our IBM 3494 library, so we have to install the IBM tape driver. You can download the package from:
ftp://ftp.software.ibm.com/storage/devdrvr/Solaris/

Attention: Before installing, make a backup of the system, list all current device special files, and find the SCSI addressees with which they are associated. Before installing the IBMtape driver, you should display the device special files (as shown in Example 4-22) and record this information. You will need this information later in the installation.
Example 4-22 Solaris: ls -l /dev/rmt/*st before IBMtape installation bash-2.03# ls -l /dev/rmt/*st lrwxrwxrwx 1 root other 57 Apr 8 13:49 /dev/rmt/0st -> ../../devices/pci@1f,4000/fibre-channel@2/st@36,0:st lrwxrwxrwx 1 root other 57 Apr 8 13:49 /dev/rmt/1st -> ../../devices/pci@1f,4000/fibre-channel@2/st@37,0:st

Chapter 4. IBM 3494 tape library sharing

117

Example 4-23 shows the IBMtape installation process.


Example 4-23 Solaris: IBM tape driver installation process bash-2.03# pkgadd -d ./IBMtape.4.1.1.4.bin The following packages are available: 1 IBMtape IBM Tape & Medium Changer Device Driver 4.1.1.4 (sparc) 4.1.1.4 Select package(s) you wish to process (or 'all' to process all packages). (default: all) [?,??,q]: 1 Processing package instance <IBMtape> from </tmp/IBMtape.4.1.1.4.bin> 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

118

Get More Out of Your SAN with IBM Tivoli Storage Manager

/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... ## Installing the /etc/tmd.conf file. ## Creating the directory of /var/opt/IBMtape. ## 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.

Next, edit the file the /usr/kernel/drv/IBMtape.conf to include drive information. You can use the information from Example 4-22 on page 117. Example 4-24 shows our entries.
Example 4-24 Solaris: /usr/kernel/drv/IBMtape.conf bash-2.03# cat /usr/kernel/drv/IBMtape.conf ############################################################################### ############################################################################### ## ## ## IBM SCSI Tape & Medium Changer Device Driver for Solaris 7, 8, 9 and 10 ## ## (C) COPYRIGHT IBM Corporation, 1994 ## ## ## ## IBMtape.conf - Configuration File ## ## Licensed Materials - Property of IBM ## ## All Rights Reserved ## ## ## ## US Government Users Restricted Rights - Use, duplication, or ## ## disclosure restricted by GSA ADP Schedule Contract with IBM Corp. ## ## ## ############################################################################### ############################################################################### #name="IBMtape" # class="scsi" # target=0 lun=0 # block_size=0 # buffering=1 # immediate=0 # trailer=0 # sili=0; ... #name="IBMtape"

Chapter 4. IBM 3494 tape library sharing

119

# # # # # # #

class="scsi" target=15 lun=0 block_size=0 buffering=1 immediate=0 trailer=0 sili=0;

#name="IBMtape" # class="scsi" # target=15 lun=1 # block_size=0 # buffering=1 # immediate=0 # trailer=0 # sili=0; name="IBMtape" parent="pseudo" instance=16383; # An example entry for high numbers of target and lun # name="IBMtape" class="scsi" target=200 lun=3; # # # # An example entry for QLogic HBA name="IBMtape" parent="qla2100" name="IBMtape" parent="qla2200" name="IBMtape" parent="qla2300" running qla HBA driver target=0; for qla2100 only target=0; for qla2200 only target=0; for qla2300 only

# An example entry for AMCC JNI HBA # name="IBMtape" parent="jnic146x" target=0; # An example entry for Emulex HBA # name="IBMtape" parent="lpfc" target=0; # An example entry for Sun Branded FC HBA # name="IBMtape" parent="fp" lun=0 fc-port-wwn="xxxxxxxxxxxxxxxx"; # name="IBMtape" parent="fp" lun=1 fc-port-wwn="xxxxxxxxxxxxxxxx"; name="IBMtape" parent="qla2300" target=36; name="IBMtape" parent="qla2300" target=37;

Note: IBM requires that the Solaris native SCSI tape device driver st be configured (/kernel/drv/st.conf) so that it does not attempt to support SCSI targets that are controlled by IBMtape (/usr/kernel/drv/IBMtape.conf). For more information, see Preventing Conflicts with Other Device Drivers in IBM TotalStorage Tape Device Drivers Installation and Users Guide, GC35-0154

120

Get More Out of Your SAN with IBM Tivoli Storage Manager

If you do not know the SCSI information, you can create an IBMtape.conf that is similar to Example 4-25 with all SCSI target and LUN combinations (0 to 255).
Example 4-25 Solaris: IBMtape.conf with all targets/luns .... name="IBMtape" sili=0; name="IBMtape" sili=0; name="IBMtape" sili=0; .... name="IBMtape" sili=0; name="IBMtape" sili=0; name="IBMtape" sili=0; ... class="scsi" target=8 lun=19 block_size=0 buffering=1 immediate=0 trailer=0 class="scsi" target=8 lun=20 block_size=0 buffering=1 immediate=0 trailer=0 class="scsi" target=8 lun=21 block_size=0 buffering=1 immediate=0 trailer=0

class="scsi" target=8 lun=255 block_size=0 buffering=1 immediate=0 trailer=0 class="scsi" target=9 lun=0 block_size=0 buffering=1 immediate=0 trailer=0 class="scsi" target=9 lun=1 block_size=0 buffering=1 immediate=0 trailer=0

Changes to configuration settings require either a system reboot or manual unload and reload of the IBMtape driver. Because you changed IBMtape.conf, you can either reboot or run the commands that are shown in Example 4-26. Make sure that no devices that are owned by IBMtape are in use before rebooting or using these commands.
Example 4-26 Solaris: Reload IBMtape /opt/IBMtape/tmd -s /usr/sbin/rem_drv IBMtape /usr/sbin/add_drv -m * 0666 bin bin IBMtape /opt/IBMtape/tmd

The drives are now configured, and you can view the device special files with the ls command, as shown in Example 4-27.
Example 4-27 Solaris: ls -l /dev/rmt/*st after IBMtape installation bash-2.03# ls -l /dev/rmt/*st lrwxrwxrwx 1 root other 57 Apr 8 13:49 /dev/rmt/0st -> ../../devices/pci@1f,4000/fibre-channel@2/IBMtape@36,0:st lrwxrwxrwx 1 root other 57 Apr 8 13:49 /dev/rmt/1st -> ../../devices/pci@1f,4000/fibre-channel@2/IBMtape@37,0:st bash-2.03#

The IBMtape device driver is in use for these devices, compared with previously in Example 4-22 on page 117. You can now define the drive paths using these device special files on the Tivoli Storage Manager Server (Example 4-28).
Example 4-28 Solaris: Tivoli Storage Manager drive path definition tsm: SUNSET_1>def path SUNSET_1 3494_01 srct=server destt=drive libr=3494LIB device=/dev/rmt/0st ANR1720I A path from SUNSET_1 to 3494LIB 3494_01 has been defined. tsm: SUNSET_1>def path SUNSET_1 3494_02 srct=server destt=drive libr=3494LIB device=/dev/rmt/1st ANR1720I A path from SUNSET_1 to 3494LIB 3494_02 has been defined.

Chapter 4. IBM 3494 tape library sharing

121

You can display more information about the drives with the tapelist command (Example 4-29).
Example 4-29 Solaris: tapelist bash-2.03# /usr/bin/tapelist IBM Tape Device Information : Instance : 6248 Special File : /dev/rmt/0st Device : 03592J1A Serial Number : 000001300117 TGT/LUN : 54/0 Ucode : 04E6 World Wide NN : 50050763020000C5 World Wide PN : 50050763024000C5 Dev Phy Path : /devices/pci@1f,4000/fibre-channel@2/IBMtape@36,0 Path Type : N/A --- more --Instance Special File Device Serial Number TGT/LUN Ucode World Wide NN World Wide PN Dev Phy Path Path Type : : : : : : : : : : 6254 /dev/rmt/1st 03592J1A 000001300114 55/0 04E6 50050763020000C7 50050763028000C7 /devices/pci@1f,4000/fibre-channel@2/IBMtape@37,0 N/A

4.3 Tivoli Storage Manager configuration


This section summarizes the Tivoli Storage Manager commands that are required to create library sharing with the IBM 3494 Tape Library. In our test environment, the Tivoli Storage Manager Library Manager was installed on the AIX server POCO and the Library Client on the Windows server SCAMP (as illustrated in Figure 4-11 on page 123). For more information about basic installation and setup of a Tivoli Storage Manager Server, see the following: IBM Tivoli Storage Manager for AIX Installation Guide V5.3, GC32-1597 IBM Tivoli Storage Manager Implementation Guide, SG24-5416

122

Get More Out of Your SAN with IBM Tivoli Storage Manager

LAN

Server-to-Server communication

POCO

Library Control
Tivoli Storage Manager Library Manager

IBM 3494 Tape Library Data path Data path

Tivoli Storage Manager Library Client

SCAMP

SAN
Figure 4-11 3494 configuration overview

The steps to configure Tivoli Storage Manager are: 1. Configuring server-to-server communication on the Library Manager 2. Defining the library on the Library Manager 3. Defining the library path on the Library Manager 4. Defining the drives for this library on the Library Manager 5. Defining the drive paths on the Library Manager 6. Defining a device class using the library on the Library Manager 7. Checking in library volumes on the Library Manager 8. Creating the server-to-server communication on the Library Client 9. Defining the library on the Library Client 10.Defining the drives path for the Library Client on the Library Manager 11.Defining a device class that uses the library on the Library Client

4.3.1 Configuring server-to-server communication on the Library Manager


To use library sharing, you have to set up server-to-server communication between the Library Manager POCO and the Library Client SCAMP, as shown in Example 4-30.
Example 4-30 Server-to-server communication SET SERVERPASSWORD secret SET SERVERNAME POCO_1 SET SERVERHLADDRESS 9.11.213.9 SET SERVERLLADDRESS 1500 DEFINE SERVER POCO_1 serverpassword=secret HLADDRESS=9.11.213.110 lladdress=1500 DEFINE SERVER SCAMP_1 serverpassword=secret HLADDRESS=9.11.213.9 lladdress=1500

Chapter 4. IBM 3494 tape library sharing

123

4.3.2 Defining the library on the Library Manager


To define the library, use this command and set the LIBTYPE parameter to 349x:
DEFINE LIBRARY 3494 LIBTYPE=349X SHARED=YES SCRATCHCATegory=700 PRIVATECATegory=701

Attention: Be sure to use appropriate categories for scratch and private volumes. For more information see IBM TotalStorage Enterprise Automated Tape Library (3494) Introduction and Planning Guide, GA32-0448.

4.3.3 Defining the library path on the Library Manager


To define the library path on the LIbrary Manager, use this command:
DEFINE PATH POCO_1 3494 SRCTYPE=SERVER AUTODETECT=YES DESTTYPE=LIBRARY DEVICE=/dev/lmcp0

4.3.4 Defining the drives for this library on the Library Manager
To define the drives for this library on the Library Manager, use these commands:
DEFINE DRIVE 3494 3494_01 DEFINE DRIVE 3494 3494_02

4.3.5 Defining the drive paths on the Library Manager


To define the drive paths on the Library Manager, use these commands:
DEFINE PATH POCO_1 3494_01 srct=server autodetect=yes destt=drive libr=3494 device=/dev/rmt2 DEFINE PATH POCO_1 3494_02 srct=server autodetect=yes destt=drive libr=3494 device=/dev/rmt3

4.3.6 Defining a device class using the library on the Library Manager
To define a device class using the library, use this command:
DEFINE DEVCLASS 3494_3592C LIBRARY=3494 DEVTYPE=3592 FORMAT=DRIVE MOUNTRETENTION=5 MOUNTWAIT=60 MOUNTLIMIT=DRIVES

4.3.7 Checking in library volumes on the Library Manager


To check in library volumes:
CHECKIN LIBVOLUMES 3494 SEARCH=yes VOLRANGE=J11771,J11774 STATUS=scr DEVTYPE=3592

If the volumes are unlabled, use the LABEL LIBVOLUME command as follows:
LABEL LIBVOLUME 3494 SEARCH=YES CHECKIN=SCRATCH

4.3.8 Creating the server-to-server communication on the Library Client


To create the server-to-server communication, run these commands:
SET SERVERPASSWORD secret SET SERVERNAME scamp_1 SET SERVERHLADDRESS 9.11.213.9 SET SERVERLLADDRESS 1500 DEFINE SERVER POCO_1 serverpassword=secret HLADDRESS=9.11.213.110 lladdress=1500 DEFINE SERVER SCAMP_1 serverpassword=secret HLADDRESS=9.11.213.9 lladdress=1500

124

Get More Out of Your SAN with IBM Tivoli Storage Manager

4.3.9 Defining the library on the Library Client


To define the library on the Library Client, run this command:
DEFINE LIBRARY 3494 LIBTYPE=shared PRIMARYLIBMANAGER=poco_1

4.3.10 Defining the drives path for the Library Client on the Library Manager
To define the drives path for the Library Client, run these commands:
DEFINE PATH scamp_1 3494_01 srct=server destt=drive libr=3494 device=whatever1 DEFINE PATH scamp_1 3494_02 srct=server destt=drive libr=3494 device=whatever2

Here, you avoid having to identify the Library Clients device special file for the drives and instead use a dummy device parameter. Because of the SAN Discovery feature of Tivoli Storage Manager, it uses serial number that match when the client first tries to open the device in order to detect the device special file. For more information about SAN Discovery, see Chapter 9, Tivoli Storage Manager SAN Discovery on page 253.

4.3.11 Defining a device class that uses the library on the Library Client
To define a device class that uses the library, run this command:
DEFINE DEVCLASS 3494_3592C LIBRARY=3494 DEVTYPE=3592

The library sharing for the 3494 library is now ready and you can test it (for example, by making a Tivoli Storage Manager server database backup). Example 4-31 shows the activity log on the Library Client, and Example 4-32 on page 126 shows the activity log on the Library Manager.
Example 4-31 Tivoli Storage Manager activity log on the Library Client ANR2017I Administrator ADMIN issued command: BACKUP DB devcl=3494_3592C t=f ANR0984I Process 6 for DATABASE BACKUP started in the BACKGROUND at 15:00:22. ANR2280I Full database backup started as process 6. ANR0408I Session 13 started for server POCO_1 (AIX-RS/6000) (Tcp/Ip) for library sharing. ANR0409I Session 13 ended for server POCO_1 (AIX-RS/6000). ANR0408I Session 14 started for server POCO_1 (AIX-RS/6000) (Tcp/Ip) for library sharing. ANR0408I Session 15 started for server POCO_1 (AIX-RS/6000) (Tcp/Ip) for library sharing. ANR0409I Session 15 ended for server POCO_1 (AIX-RS/6000). ANR0408I Session 16 started for server POCO_1 (AIX-RS/6000) (Tcp/Ip) for library sharing. ANR0409I Session 16 ended for server POCO_1 (AIX-RS/6000). ANR8974I Found new path for SCAMP_1 and target name 3494_01 old path whatever1 new path \\.\Tape2. Path information will be updated remotely. ANR0409I Session 14 ended for server POCO_1 (AIX-RS/6000). ANR8337I 3592 volume J11774 mounted in drive 3494_01 (\\.\Tape2). ANR0511I Session 7 opened output volume J11774. ANR1360I Output volume J11774 opened (sequence number 1). ANR1361I Output volume J11774 closed. ANR0514I Session 7 closed volume J11774. ANR0408I Session 17 started for server POCO_1 (AIX-RS/6000) (Tcp/Ip) for library sharing. ANR0409I Session 17 ended for server POCO_1 (AIX-RS/6000). ANR0408I Session 18 started for server POCO_1 (AIX-RS/6000) (Tcp/Ip) for library sharing. ANR0408I Session 19 started for server POCO_1 (AIX-RS/6000) (Tcp/Ip) for library sharing. ANR0409I Session 19 ended for server POCO_1 (AIX-RS/6000). ANR4550I Full database backup (process 6) complete, 156 pages copied. ANR0985I Process 6 for DATABASE BACKUP running in the BACKGROUND completed with completion state SUCCESS at 15:01:06. ANR8336I Verifying label of 3592 volume J11774 in drive 3494_01 (\\.\Tape2). ANR8468I 3592 volume J11774 dismounted from drive 3494_01 (\\.\Tape2) in library 3494. ANR0409I Session 18 ended for server POCO_1 (AIX-RS/6000).

Chapter 4. IBM 3494 tape library sharing

125

Note: In the middle of the Example 4-31, in message ANR8974I, the device special file is updated with the correct value (SAN Discovery).
Example 4-32 Tivoli Storage Manager activity log on the Library Manager ANR0408I ANR0409I ANR0408I ANR0408I ANR0409I ANR8337I ANR9791I ANR0408I ANR0409I ANR0409I ANR0408I ANR0409I ANR0408I ANR0409I ANR0408I ANR0409I ANR8336I ANR8468I Session 7 started for server SCAMP_1 (Windows) (Tcp/Ip) for library sharing. Session 7 ended for server SCAMP_1 (Windows). Session 8 started for server SCAMP_1 (Windows) (Tcp/Ip) for library sharing. Session 9 started for server SCAMP_1 (Windows) (Tcp/Ip) for library sharing. Session 9 ended for server SCAMP_1 (Windows). 3592 volume J11774 mounted in drive 3494_01 (/dev/rmt2). Volume J11774 in library 3494 ownership is changing from POCO_1 to SCAMP_1. Session 10 started for server SCAMP_1 (Windows) (Tcp/Ip) for library sharing. Session 10 ended for server SCAMP_1 (Windows). Session 8 ended for server SCAMP_1 (Windows). Session 11 started for server SCAMP_1 (Windows) (Tcp/Ip) for library sharing. Session 11 ended for server SCAMP_1 (Windows). Session 13 started for server SCAMP_1 (Windows) (Tcp/Ip) for library sharing. Session 13 ended for server SCAMP_1 (Windows). Session 12 started for server SCAMP_1 (Windows) (Tcp/Ip) for library sharing. Session 12 ended for server SCAMP_1 (Windows). Verifying label of 3592 volume J11774 in drive 3494_01 (/dev/rmt2). 3592 volume J11774 dismounted from drive 3494_01 (/dev/rmt2) in library 3494.

You can check the library volumes on the Library Manager. The output (as shown in Example 4-33) shows that the database backup volume is now owned by the Library Client SCAMP_1.
Example 4-33 Tivoli Storage Manager library volumes after the database backup tsm: POCO_1>q libv Library Name -----------3494 3494 3494 3494 Volume Name ----------J11771 J11772 J11773 J11774 Status ---------Private Scratch Scratch Private Owner ---------POCO_1 SCAMP_1 Last Use --------DbBackup DbBackup Home Element ------Device Type ------

126

Get More Out of Your SAN with IBM Tivoli Storage Manager

Chapter 5.

Library sharing with the ACSLS Manager


This chapter discusses the following topics: Introduction to the ACSLS Manager Tivoli Storage Manager library sharing with the STK ACSLS Manager Installing on IBM AIX Installing on Microsoft Windows Installing on Linux Preparation for SUN Solaris

Tivoli Storage Manager configuration

Copyright IBM Corp. 2005. All rights reserved.

127

5.1 Introduction to the ACSLS Manager


Management of distributed tape libraries is both time-consuming and costly. Multiple libraries, multiple backup applications, multiple administrators, and poor resource use can add up to a high cost of ownership. The Automated Cartridge System Library Software (ACSLS Manager) offering from StorageTek centralizes the management of your tape libraries for easier administration, increased use, and a lower cost of ownership. In short, ACSLS Manager software helps you unleash trapped profits. ACSLS Manager allows you to implement a strategic, centralized library management solution. It functions as a central service provider for StorageTek library operations in heterogeneous environments. It allows you to collapse disparate, application dedicated libraries to one centralized library or string of libraries that are accessed via a single point of control. Features of ACSLS Manager include: Tape library management ACSLS Manager can act as the central library service provider for one or several libraries, allowing you to manage library resources from a single location. Centralize storage ACSLS Manager enables a centralized storage operations model that allows you to manage more with less. Reduce costs Library resource sharing reduces capital equipment, maintenance, and operating costs while simplifying library management. Increase availability ACSLS Manager helps you keep your business up and running. The ACSLS High Availability solution goes even further, providing dual-server, fault-tolerant protection. Prevent downtime The ACSLS High Availability solution provides serviceability and redundancy features to minimize scheduled and unscheduled downtime. Protect your investments A highly flexible client/server architecture supports your mature systems to protect capital investments in libraries, drives, and software applications. Rich management capabilities Fully optimize your libraries with advanced features such as auditing, reporting, event-log recording, querying, issuing service requests, and automated drive cleaning. Robust cartridge and volume support Cartridges that cannot be found in the library due to ejection or absence are marked absent rather than being deleted. These cartridges are easily reactivated. Cartridge exchange support ACSLS Manager software uses the pass-through port feature of StorageTek tape libraries. This feature enables the libraries to exchange cartridges between Library Storage Modules.

128

Get More Out of Your SAN with IBM Tivoli Storage Manager

Access control Administrators can limit client access to ACSLS Manager software commands selectively through passwords and permissions. The ACSLS server itself can be protected behind a firewall. Dynamic resource management The media pool feature allows you to assign each application or user its own pool of tapes to manage. Important: Tivoli Storage Manager V5.3 Extended Edition provides the basic support to share ACSLS libraries across Tivoli Storage Manager servers in the same way that SCSI libraries are shared. Support for LAN-free data movement using libraries that are controlled by StorageTeks ACSLS interface has also been provided. As a result, the use of a third party product is now optional.

5.1.1 Basic communication


This section describes how the Tivoli Storage Manager server communicates with the ACSLS server.

ACSLS server
The ACSLS server manages the library control for multiple Library Clients. All Library Clients need to be connected to the ACSLS server. The library drives are attached over a SAN to all Library Clients and the library control path is attached to the ACSLS server (Figure 5-1). This is a similar setup to the IBM 3494 Library Manager.
LAN

Application A

Application B

Application C

ACSLS Server

SAN
Data path

Control path

STK Library

Figure 5-1 ACSLS configuration

Chapter 5. Library sharing with the ACSLS Manager

129

Tivoli Storage Manager server subsystem interface


To control an ACSLS tape library, the Tivoli Storage Manager server communicates via a server subsystem interface (SSI), which is a daemon running on the same host as the Tivoli Storage Manager server itself. This SSI daemon then communicates to a client subsystem interface (CSI) daemon running on the ACSLS server host (as shown in Figure 5-2). The SSI can communicate with only one ACSLS server. If you have multiple ACSLS servers, you can use third-party products which can access several ACSLS servers, or you can have a dedicated Tivoli Storage Manager Library Manager for each ACSLS server. Tivoli Storage Manager V5.3 Extended Edition is required for this support.

Host A

Host B

ACSLS Server

TSM Library Manager

LAN
CSI SSI

Figure 5-2 Tivoli Storage Manager SSI

5.2 Tivoli Storage Manager library sharing with the STK ACSLS Manager
The SSI daemon is used by the Tivoli Storage Manager Library Manager over the LAN to communicate with the STK ACSLS managed tape library. The SSI is not used by Tivoli Storage Manager Library Clients. They simply use the device driver (Figure 5-3 on page 131). This section describes how to install the SSI software and Tivoli Storage Manager device driver installation on Microsoft Windows, IBM AIX, Linux, and SUN Solaris. Important: With Tivoli Storage Manager V5.3, use of a third-party product is now optional. Prior to Tivoli Storage Manager V5.3, each Tivoli Storage Manager Library Manager, Tivoli Storage Manager Library Client, and Tivoli Storage Manager Storage Agent needed a product (such as Gresham Enterprise DistribuTape).

130

Get More Out of Your SAN with IBM Tivoli Storage Manager

LAN
Library Control

Server-to-server communication

Tivoli Storage Manager Library Client

Tivoli Storage Manager Library Manager Data Flow Data Flow STK Library

ACSLS Server

SAN
Figure 5-3 Tape Library sharing with ACSLS

The library is attached to the ACSLS server, and the drives are attached to the Tivoli Storage Manager server. The ACSLS server and the Tivoli Storage Manager server must be on different systems. Refer to the ACSLS installation documentation for details about how to set up the library. The ACSLS library server manages the physical aspects of tape cartridge storage and retrieval. The ACSLS client application communicates with the ACSLS library server to access tape cartridges in an automated library. Tivoli Storage Manager, as an application, gains access to tape cartridges by interacting with ACSLS through its client, which is known as the control path. The Tivoli Storage Manager server reads and writes data on tape cartridges by interacting directly with tape drives through the data path. The control path and the data path are two different paths.

5.2.1 Installing on IBM AIX


This section describes the steps for setting up ACSLS communication with Tivoli Storage Manager on AIX.

Installing library control


If the Tivoli Storage Manager Library Manager is on an IBM AIX server, you have to install the Tivoli Storage Manager SSI. On AIX, the SSI is the Tivoli Storage Manager package tivoli.tsm.devices.acsls. You install the package using SMIT, and the installation process creates an /etc/inittab entry (as shown in Example 5-1) to start the daemon at boot time.
Example 5-1 AIX: /etc/inittab entry autoacs:2:once:/usr/tivoli/tsm/devices/bin/rc.acs_ssi quiet >/dev/console 2>&1 #Start the ssi agent

Chapter 5. Library sharing with the ACSLS Manager

131

The installation process also puts files in the /usr/tivoli/tsm/devices/bin directory. The rc.acs_ssi script is in this directory. This script starts the STK ACSLS client SSI daemon. There are two start options: rc.acs_ssi rc.acs_ssi quiet If you use the rc.acs_ssi option, you are prompted to enter the ACSLS server host name (Example 5-2). You must be able to resolve this host name to its TCP/IP address. In our case, the ACSLS manager is called ICARUS.
Example 5-2 AIX: rc.acs_ssi (root@poco) /usr/tivoli/tsm/devices/bin>./rc.acs_ssi ****** rc.acs_ssi ******* This routine initiates Event Logger (mini_el) and Server Subsystem Interface (ssi) daemons to establish ACSLS client/server interaction. It will first check if these daemons are already running and option to kill if they are. The following environmental variables will be set to: CSI_TCP_RPCSERVICE=TRUE CSI_UDP_RPCSERVICE=TRUE CSI_CONNECT_AGETIME=172800 CSI_RETRY_TIMEOUT=4 CSI_RETRY_TRIES=5 ACSAPI_PACKET_VERSION=4 The short description of these variables can be found in rc.acs_ssi. Press any key to continue or Ctrl-c to terminate. Enter the host name of the ACSLS server: icarus event.log and trace.log in the current directory contain the previous status and errors of the csi and ssi components. Do you want to NULL these files first? (y/n) y Starting Event Logger daemon ... /usr/tivoli/tsm/devices/bin/mini_el Starting SSI daemon ... /usr/tivoli/tsm/devices/bin/ssi SIGHUP received Parent Process ID is: 340082 SIGHUP received Parent Process #340082 EXITING NORMALLY Initialization Done. Do you want to see the processes get started? (y/n) y root 368702 360452 root 282824 360452 50004 23 # 0 14:51:55 0 14:52:02 pts/2 0:00 /usr/tivoli/tsm/devices/bin/mini_el pts/2 0:00 /usr/tivoli/tsm/devices/bin/ssi 340082

If you use the rc.acs_ssi quiet option, you need to specify the ACSLS server host name in advance. You can edit the script and replace the $ACSLS_SERVER_HOSTNAME entry with the host name of the ACSLS server. Alternatively, you can define the environment variable

132

Get More Out of Your SAN with IBM Tivoli Storage Manager

ACSLS_SERVER_HOSTNAME in the /etc/environment or /etc/profile files, as shown in Example 5-3. If the variable is defined in /etc/profile, you must export the variable. Attention: Do not define the SSI_HOSTNAME environment variable. In our test environment, we were not able to use the STK ACSLS managed library with this variable.
Example 5-3 AIX: /etc/environment variable for the rc.acs_ssi ACSLS_SERVER_HOSTNAME=icarus

After starting the SSI daemon, either manually or automatically from /etc/inittab, you can check the processes as shown in Example 5-4.
Example 5-4 AIX: SSI and event logger daemon (root@poco) /usr/tivoli/tsm/devices/bin>ps -ef | grep ssi root 331972 1 0 Mar 22 pts/0 4:08 /usr/tivoli/tsm/devices/bin/ssi 147606 50004 23 (root@poco) /usr/tivoli/tsm/devices/bin>ps -ef | grep mini_el root 164078 1 0 Mar 22 pts/0 0:00 /usr/tivoli/tsm/devices/bin/mini_el

The mini_el program is the Event Logger daemon. This daemon writes all events that are received to the event.log and trace.log files in the same directory. You can now define this library on the Tivoli Storage Manager server. For more information, see 5.3, Tivoli Storage Manager configuration on page 149.

Installing the device driver


You must install the device driver on both the Tivoli Storage Manager Library Manager and the Tivoli Storage Manager Library Client. If they are non-IBM drives, use the Tivoli Storage Manager device driver package. If they are IBM drives, you can use the IBM tape driver (Atape). Check the following Web site for the supported hardware:
http://www-306.ibm.com/software/sysmgmt/products/support/IBM_TSM_Supported_Devices_for_ AIXHPSUNWIN.html

We have non-IBM drives in our STK library, so we have to install the Tivoli Storage Manager device driver. The AIX package is tivoli.tsm.devices.aix5.rte. After you install the device driver with SMIT, you must configure the drives. Using SMIT, choose Devices Tivoli Storage Manager Devices. Our drives are connected over the SAN, so we select Fibre Channel SAN Attached Devices Discover Devices Supported by TSM. This action starts the discovery process and creates new devices for the drives, as shown in Example 5-5.
Example 5-5 AIX: smitty TSM device, discover Fibre Channel SAN Attached Devices Move cursor to desired item and press Enter. List Attributes of a Discovered Device Discover Devices Supported by TSM Remove All Defined Devices Remove a Device F1=Help F9=Shell F2=Refresh F10=Exit F3=Cancel Enter=Do F8=Image

Chapter 5. Library sharing with the ACSLS Manager

133

We also have two IBM drives that are attached as well as the STK drives. The discover process creates two new devices for these drives. However, their status shows as Defined. Because we are not using the Tivoli Storage Manager device driver for the IBM drives, we delete them using the SMIT entry, as shown in Example 5-5 on page 133. Check the devices with the lsdev command (Example 5-6). With the lsdev -Cc adsmtape command, you can view just the Tivoli Storage Manager devices.
Example 5-6 AIX: list devices (root@poco) /tmp/tsm/5310>lsdev -Cctape lmcp0 Available LAN/TTY Library Management Control Point rmt0 Available 1V-08-01 Other FC SCSI Tape Drive rmt1 Available 1V-08-01 Other FC SCSI Tape Drive rmt2 Available 1V-08-01 IBM 3592 Tape Drive (FCP) rmt3 Available 1V-08-01 IBM 3592 Tape Drive (FCP) (root@poco) /tmp/tsm/5310>lsdev -Ccadsmtape mt0 Available 1V-08-01 Tape Drive mt1 Available 1V-08-01 Tape Drive

You can now use these two special device files (/dev/mt0 and /dev/mt1) in the Tivoli Storage Manager server drive path definitions. (For more information, see 5.3, Tivoli Storage Manager configuration on page 149.) Do not use the special device file /dev/rmtX for the non-IBM drives. For more information, see Chapter 5, Determining Device Special File Names in IBM Tivoli Storage Manager AIX Administrators Guide, GC32-0768.

5.2.2 Installing on Microsoft Windows


This section describes the steps for setting up ACSLS communication with Tivoli Storage Manager on Microsoft Windows 2003.

Installing library control


If the Tivoli Storage Manager Library Manager is on a Windows server, install an external program to communicate with the STK ACSLS server. This program is called StorageTek Library Attach (LibAttach) and is provided by StorageTek. After installing LibAttach, you can configure and start the program. To configure, run Configurator.exe in the LibAttach directory (Figure 5-4 on page 135).

134

Get More Out of Your SAN with IBM Tivoli Storage Manager

Figure 5-4 STK LibAttach configurator

Enter the STK ACSLS server host name, icarus, in the Library server host name field. After the update, restart the service to activate the new configuration. Figure 5-5 shows the service entry.

Figure 5-5 STK Microsoft Windows service entry

You can now define this library on the Tivoli Storage Manager server. (For more information see 5.3, Tivoli Storage Manager configuration on page 149.)

Installing the device driver


You must install the device driver on both the Tivoli Storage Manager Library Manager and the Tivoli Storage Manager Library Client. If they are non-IBM drives, use the Tivoli Storage Manager device driver package. If they are IBM drives, you can use the Atape driver. Check the following Web site for Tivoli Storage Manager supported hardware:
http://www-306.ibm.com/software/sysmgmt/products/support/IBM_TSM_Supported_Devices_for_ AIXHPSUNWIN.html Chapter 5. Library sharing with the ACSLS Manager

135

We have non-IBM drives in our STK library, so we install the Tivoli Storage Manager device driver. The default Microsoft Windows driver does not support all the functions that are needed to use it with Tivoli Storage Manager. The Tivoli Storage Manager device driver is provided with the Tivoli Storage Manager server code. After the install process, change the driver for the non-IBM drives so that they use the Tivoli Storage Manager device driver. To update the tape device driver: 1. Right click the STK drive and select Update driver (Figure 5-6).

Figure 5-6 Windows: Update drive driver step 1

2. On the next screen (Figure 5-7 on page 137), select Install from a list or specific location (Advanced). Click Next.

136

Get More Out of Your SAN with IBM Tivoli Storage Manager

Figure 5-7 Windows: Update drive driver step 2

3. Select Dont search. I will choose the driver to install (Figure 5-8).

Figure 5-8 Windows: Update drive driver step 3

4. Make sure the Tivoli Storage Manager device driver is selected (Figure 5-9 on page 138).

Chapter 5. Library sharing with the ACSLS Manager

137

Figure 5-9 Windows: Update drive driver step 4

5. Ignore the warning that the driver is not tested by Microsoft. Click Continue Anyway (Figure 5-10).

Figure 5-10 Windows: Update drive driver step 5

6. Repeat these steps for all non-IBM drives. 7. Reboot the server to activate the new driver. After the reboot, in the Microsoft Windows Management Console, you we can see all the drives and the new Tivoli Storage Manager device names, such as mt0.0.0.2 or mt1.0.0.2 (Figure 5-11 on page 139). You will use these device names for the Tivoli Storage Manager server drive path definition (see 5.3, Tivoli Storage Manager configuration on page 149).

138

Get More Out of Your SAN with IBM Tivoli Storage Manager

Figure 5-11 Windows: Management Console, device information

Important: For Windows 2003, the previous Tivoli Storage Manager device was replaced with a standard Windows device driver. The new device driver does not run as a service.

5.2.3 Installing on Linux


This section describes the steps for setting up ACSLS communication with Tivoli Storage Manager on Linux.

Installing library control


A Tivoli Storage Manager on Linux cannot use the STK ACSLS, because it is not supported at the time of writing. However, we can use the STK ACSLS managed library as a LInux Tivoli Storage Manager Library Client when the Tivoli Storage Manager Library Manager is on AIX, SUN Solaris, or on Microsoft Windows.

Installing the drive


You must install the device driver on the Tivoli Storage Manager Library Client. If they are non-IBM drives, use the Tivoli Storage Manager device driver package. If they are IBM drives, you can use the Atape driver. Check the following for Tivoli Storage Manager supported hardware:
http://www-306.ibm.com/software/sysmgmt/products/support/IBM_TSM_Supported_Devices_for_ Linux.html

We have non-IBM drives in our STK library, so we have to install the Tivoli Storage Manager device driver, which is in the rpm package, TIVsm-tsmscsi. Example 5-7 shows the installation process.
Example 5-7 Linux: Install the Tivoli Storage Manager device driver cadi:/tmp/5302/i686 # rpm -Uvh TIVsm-tsmscsi-5.3.0-2.i386.rpm Preparing... ########################################### [100%] 1:TIVsm-tsmscsi ########################################### [100%] cadi:/tmp/5302/i686 #

Chapter 5. Library sharing with the ACSLS Manager

139

After the installation, configure the drives. First, check in the file /proc/scsi/scsi to verify that the devices were correctly detected by the system, as shown in Example 5-7 on page 139. You can see the two STK 9480 drives are present, as well as the other IBM 3592 drives.
Example 5-8 Linux: /proc/scsi/scsi cadi:/opt/tivoli/tsm/devices/bin # more /proc/scsi/scsi Attached devices: Host: scsi2 Channel: 00 Id: 00 Lun: 00 Vendor: STK Model: 9840 Rev: 1.34 Type: Sequential-Access ANSI SCSI revision: Host: scsi2 Channel: 00 Id: 01 Lun: 00 Vendor: STK Model: 9840 Rev: 1.34 Type: Sequential-Access ANSI SCSI revision: Host: scsi2 Channel: 00 Id: 02 Lun: 00 Vendor: IBM Model: 03592J1A Rev: 04E6 Type: Sequential-Access ANSI SCSI revision: Host: scsi2 Channel: 00 Id: 03 Lun: 00 Vendor: IBM Model: 03592J1A Rev: 04E6 Type: Sequential-Access ANSI SCSI revision: cadi:/opt/tivoli/tsm/devices/bin #

03

03

03

03

If this /proc/scsi/scsi file is empty or not present, check that the HBA module is loaded. You can use the lsmod command to show the loaded modules (Example 5-9). To load the module, you can use the modprobe command. In this example, the QLogic HBA modules were correctly loaded.
Example 5-9 Linux: lsmod cadi:/opt/tivoli/tsm # lsmod Module Size sg 41760 IBMtape 252988 snd_pcm_oss 65704 snd_pcm 112900 snd_page_alloc 16264 snd_timer 32260 snd_mixer_oss 24448 snd 71012 soundcore 13536 edd 13720 joydev 14528 st 45212 sr_mod 21028 ide_cd 42628 cdrom 43036 nvram 13448 thermal 16648 processor 21568 fan 8196 button 10384 battery 12804 ac 8964 usbserial 36080 parport_pc 41280 lp 15492 parport 44232 ipv6 275580 sworks_agp 13472 agpgart 36140 Used by 0 2 0 1 snd_pcm_oss 1 snd_pcm 1 snd_pcm 1 snd_pcm_oss 4 snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss 1 snd 0 0 0 0 0 2 sr_mod,ide_cd 0 0 1 thermal 0 0 0 0 0 0 0 2 parport_pc,lp 43 0 1 sworks_agp

140

Get More Out of Your SAN with IBM Tivoli Storage Manager

ohci_hcd evdev usbcore tg3 subfs dm_mod reiserfs qla2300 qla2xxx scsi_transport_fc sd_mod scsi_mod

24452 13952 116700 80516 12160 59904 264016 126592 224580 11008 25088 120132

0 0 4 0 2 0 1 0 1 1 0 7

usbserial,ohci_hcd

qla2300 qla2xxx sg,IBMtape,st,sr_mod,qla2xxx,scsi_transport_fc,sd_mod

Next, you create the /opt/tivoli/tsm/devices/bin/mt.conf file and update this file with the information from the /proc/scsi/scsi file (Example 5-10). A sample mt.conf.smp file is provided in the bin directory that you can copy and modify. Add stanzas for the two drives and provide the matching host, channel, ID, and LUN fields from the /proc/scsi/scsi file.
Example 5-10 Linux: mt.conf cadi:/opt/tivoli/tsm/devices/bin # cp ./mt.conf.smp ./mt.conf cadi:/opt/tivoli/tsm/devices/bin # vi ./mt.conf # # For each stanza, a device special file will be created with # the name /dev/tsmscsi/mtn, where n corresponds to the index # specified in the stanza. For example, /dev/tsmscsi/mt0 will # correspond to a tape with SCSI ID 3, LUN 0, as specified in # the stanza below. # # HOST[0]=0 # CHANNEL[0]=0 # ID[0]=3 # LUN[0]=0 # HOST[0]=scsi2 CHANNEL[0]=0 ID[0]=0 LUN[0]=0 HOST[1]=scsi2 CHANNEL[1]=0 ID[1]=1 LUN[1]=0

Chapter 5. Library sharing with the ACSLS Manager

141

You can now start the /opt/tivoli/tsm/devices/bin/autoconf program to configure the two STK drives (Example 5-11). Note: Tivoli Storage Manager Version 5.3 supports the Passthru driver, which replaces the Tivoli Storage Manager Linux SCSI device driver. The Tivoli Storage Manager Passthru drivers require the Linux SCSI generic (sg) driver along with the Linux operating system to install the kernels. The IBM Tivoli Storage Manager Linux Administrators Guide, GC23-4690, Chapter 5, Configuring Tivoli Storage Manager Passthru Drivers for Tape Drives and Libraries describes this process.
Example 5-11 Linux: autoconf cadi:/opt/tivoli/tsm/devices/bin # ./autoconf The total numbers of devices on the system are 4. /bin/mknod: `/dev/sg0': File exists /bin/mknod: `/dev/sg1': File exists /bin/mknod: `/dev/sg2': File exists /bin/mknod: `/dev/sg3': File exists Tivoli Tape Drives: =================== Index Minor Host CHN ID LUN Type Vendor_ID S/N Product_ID 000 000 002 000 000 000 001 STK 331002037903 9840 001 001 002 000 001 000 001 STK 331000048026 9840 cadi:/opt/tivoli/tsm/devices/bin lrwxrwxrwx 1 root root 8 Apr lrwxrwxrwx 1 root root 8 Apr -rw-r--r-- 1 root root 238 Apr cadi:/opt/tivoli/tsm/devices/bin # 5 5 5 # ls -l 03:16 03:16 03:16 /dev/tsmscsi/mt* /dev/tsmscsi/mt0 -> /dev/sg0 /dev/tsmscsi/mt1 -> /dev/sg1 /dev/tsmscsi/mtinfo

Rev. 1.34 1.34

The two new special device files, /dev/tsmscsi/mt0 and /dev/tsmscsi/mt1, are now created. You will use these special device files in the Tivoli Storage Manager server drive path definition (see 5.3, Tivoli Storage Manager configuration on page 149). Tip: You can test your drives with the /opt/tivoli/tsm/devices/bin/mttest program.

5.2.4 Installing on SUN Solaris


This section describes the steps for setting up ACSLS communication with Tivoli Storage Manager on SUN Solaris.

Installing library control


If the Tivoli Storage Manager Library Manager is on a SUN Solaris server, install the Tivoli Storage Manager SSI. This interface is shipped in the Tivoli Storage Manager software package, TIVsmSdev. Use the pkgadd command to install the software, as shown in Example 5-12 on page 143.

142

Get More Out of Your SAN with IBM Tivoli Storage Manager

Example 5-12 Solaris: TIVsmSdev install bash-2.03# pkgadd -d . The following packages are available: 1 TIVsmS Tivoli Storage Manager/Sun Server (sparc) Version 5 Release 3 Level 0.2 2 TIVsmSdev Tivoli Storage Manager/Sun Solaris Device Drivers (sparc) Version 5 Release 3 Level 0.2 Select package(s) you wish to process (or 'all' to process all packages). (default: all) [?,??,q]: 2 Processing package instance <TIVsmSdev> from </tmp/5302> Tivoli Storage Manager/Sun Solaris Device Drivers (sparc) Version 5 Release 3 Level 0.2 Licensed Materials - Property of IBM 5608-ISM 5608-ISX (C) Copyright International Business Machines Corp. 1990, 2004. All rights reserved. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. ## Executing checkinstall script. Using </opt> as the package base directory. ## Processing package information. ## Processing system information. 4 package pathnames are already properly installed. ## Verifying package dependencies. ## 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 <TIVsmSdev> [y,n,?] y Installing Tivoli Storage Manager/Sun Solaris Device Drivers as <TIVsmSdev> ## Installing part 1 of 1. /opt/tivoli/tsm/devices/README.DEVICES /opt/tivoli/tsm/devices/bin/autoconf /opt/tivoli/tsm/devices/bin/ddtrace /opt/tivoli/tsm/devices/bin/kill.acs_ssi /opt/tivoli/tsm/devices/bin/lb /opt/tivoli/tsm/devices/bin/lb.conf /opt/tivoli/tsm/devices/bin/lbtest /opt/tivoli/tsm/devices/bin/mini_el /opt/tivoli/tsm/devices/bin/mt /opt/tivoli/tsm/devices/bin/mt.conf /opt/tivoli/tsm/devices/bin/mttest /opt/tivoli/tsm/devices/bin/op /opt/tivoli/tsm/devices/bin/op.conf /opt/tivoli/tsm/devices/bin/optest /opt/tivoli/tsm/devices/bin/rc.acs_ssi /opt/tivoli/tsm/devices/bin/ssi Chapter 5. Library sharing with the ACSLS Manager

143

/opt/tivoli/tsm/devices/bin/t_parent /opt/tivoli/tsm/devices/bin/tsmdlist /opt/tivoli/tsm/devices/bin/tsmtrc [ verifying class <none> ] ## Executing postinstall script. Installation of <TIVsmSdev> was successful. The following packages are available: 1 TIVsmS Tivoli Storage Manager/Sun Server (sparc) Version 5 Release 3 Level 0.2 2 TIVsmSdev Tivoli Storage Manager/Sun Solaris Device Drivers (sparc) Version 5 Release 3 Level 0.2 Select package(s) you wish to process (or 'all' to process all packages). (default: all) [?,??,q]: q bash-2.03#

After installation, the script rc.acs_ssi is available in the /opt/tivoli/tsm/devices/bin directory. This script starts the STK ACSLS client SSI daemon. There are two start options: rc.acs_ssi rc.acs_ssi quiet If you use the rc.acs_ssi option, you are prompted to enter the ACSLS server host name (Example 5-13). You must be able to resolve the host name to its TCP/IP address. In our case, the ACSLS server is on the host icarus.
Example 5-13 Solaris: rc.acs_ssi bash-2.03# ./rc.acs_ssi ****** rc.acs_ssi ******* This routine initiates Event Logger (mini_el) and Server Subsystem Interface (ssi) daemons to establish ACSLS client/server interaction. It will first check if these daemons are already running and option to kill if they are. The following environmental variables will be set to: CSI_TCP_RPCSERVICE=TRUE CSI_UDP_RPCSERVICE=TRUE CSI_CONNECT_AGETIME=172800 CSI_RETRY_TIMEOUT=4 CSI_RETRY_TRIES=5 ACSAPI_PACKET_VERSION=4 The short description of these variables can be found in rc.acs_ssi. Press any key to continue or Ctrl-c to terminate. Event Logger already running, mini_el pid=534 Do you want to kill this process to continue? (y/n) y killing 534 SSI already running, ssi pid=606 Do you want to kill this process to continue? (y/n) y killing 606 SSI already running, ssi pid=624 Do you want to kill this process to continue? (y/n) y

144

Get More Out of Your SAN with IBM Tivoli Storage Manager

killing 624 Enter the host name of the ACSLS server: icarus event.log and trace.log in the current directory contain the previous status and errors of the csi and ssi components. Do you want to NULL these files first? (y/n) y Starting Event Logger daemon ... /opt/tivoli/tsm/devices/bin/mini_el Starting SSI daemon ... /opt/tivoli/tsm/devices/bin/ssi SIGHUP received Parent Process ID is: 7736 SIGHUP received Parent Process #7736 EXITING NORMALLY Initialization Do you want to y root 7734 root 7738 23 bash-2.03# Done. see the processes get started? (y/n) 7684 7684 0 15:16:14 pts/3 0 15:16:21 pts/3 0:00 /opt/tivoli/tsm/devices/bin/mini_el 0:00 /opt/tivoli/tsm/devices/bin/ssi 7736 50004

If you use the rc.acs_ssi quiet option, you must replace $ACSLS_SERVER_HOSTNAME with the name of the ACSLS server in this file. Alternatively, you can define the environment variable ACSLS_SERVER_HOSTNAME in the /etc/environment or /etc/profile files (Example 5-3 on page 133). If the variable is defined in /etc/profile, you must export the variable, as shown in Example 5-14.
Example 5-14 Solaris: /etc/environment variable for the rc.acs_ssi ACSLS_SERVER_HOSTNAME=icarus

Attention: Do not define the SSI_HOSTNAME environment variable. In our test environment, we were not able to use the STK ACSLS managed library with this variable. You can now define this library on the Tivoli Storage Manager server (see 5.3, Tivoli Storage Manager configuration on page 149).

Installing the drive


You must install the device driver on both the Tivoli Storage Manager Library Manager and the Tivoli Storage Manager Library Client. If they are non-IBM drives, use the Tivoli Storage Manager device driver package. If they are IBM drives, you can use the Atape driver. See the following for Tivoli Storage Manager supported hardware:
http://www-306.ibm.com/software/sysmgmt/products/support/IBM_TSM_Supported_Devices_for_ AIXHPSUNWIN.html

Chapter 5. Library sharing with the ACSLS Manager

145

We have non-IBM drives in our STK library, so we need to use the Tivoli Storage Manager device driver. This driver is in the same package that is installed for the Tivoli Storage Manager SSI (TIVsmSdev). The device driver configuration file is /opt/tivoli/tsm/devices/bin/mt.conf. Edit this file with the values for the drives (Example 5-15).
Example 5-15 Solaris: mt.conf # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # --------------------------------------------------------Tivoli Storage Manager Server for Sun Solaris Licensed Materials - Property of IBM 5765-303 (C) Copyright IBM Corporation 1999. All rights reserved. Refer to Copyright Instructions Form Number G120-2083 ----------------------------------------------------------------------------------------------------------------TSM SCSI tape device driver configuration file --------------------------------------------------------This file should contain one stanza of the following form for each SCSI tape drive that the IBM Tivoli Storage Manager server is to use: name="mt" class="scsi" target=$X$ lun=$Y$; --------------------------------------------------------TSM Fibre tape device driver configuration file --------------------------------------------------------This file should contain one stanza of the following form for each Fibre tape drive that the IBM Tivoli Storage Manager server is to use: name="mt" class="scsi" target=$X$ lun=$Y$ hba="Z" wwpn="W"; The $X$ string should be replaced with the SCSI ID of the tape drive. This will be a number in the range 0-6 (7 is reserved for the SCSI adapter and cannot be used for devices), and possibly 8-15, depending on the type of the SCSI adapter. In a configuration where devices attached to multiple initiators with the same SCSI id, only one target/lun id has to be specified. The "add_drv" command will probe all devices as specified in the mt.conf file and create separate device special file for each entity. The $Y$ string should be replaced with the SCSI logical unit number (LUN) of the device. This is usually zero. All other fields should be left as they appear in the above example. The "Z" string should be replaced with the HBA pci bus number. It can be determined on the boot up screen. The "W" string should be replaced with the HBA world wide port number. It can be determined on the boot up screen.

146

Get More Out of Your SAN with IBM Tivoli Storage Manager

# # # # # # # # # # # # # # # # # # # # # #

Note: Both "Z" and "W" strings are optional. IBM Tivoli Storage Manager does not support and implement them. Those strings are going to help Solaris machine to have better ability to determine and add the fibre device. --------------------------------------------------------Special case for Fibre devices on SUN HBA --------------------------------------------------------IBM Tivoli Storage Manager only supports the SUN Storage certified devices on "Sun StorEdge 2G Fibre Channel PCI Single Channel Network Adapter". name="mt" parent="fp" target=0 lun=0 fc-port-wwn="U"; The "U" string should be replaced by fc-port-wwn. For example, "500104f00048b9c9". The following line is required for IBM Tivoli Storage Manager version 5.3.0 or later. name="mt" parent="pseudo" instance=16383; name="mt" class="scsi" target=8 lun=0; name="mt" class="scsi" target=9 lun=0;

To find the target and LUN ID, view the file /var/adm/messages (as shown in Example 5-16) or use the dmesg command.
Example 5-16 Solaris: /var/adm/messages ... Apr 4 15:14:50 sunset mt: [ID 436682 kern.notice] adsm scsi_probe: Target 8 Lun 9840 Apr 4 15:14:50 sunset scsi: [ID 193665 kern.info] mt3203 at qla23000: target 8 Apr 4 15:14:50 sunset genunix: [ID 936769 kern.info] mt3203 is /pci@1f,4000/fibre-channel@2/mt@8,0 ... Apr 4 15:14:50 sunset mt: [ID 436682 kern.notice] adsm scsi_probe: Target 9 Lun 9840 Apr 4 15:14:50 sunset scsi: [ID 193665 kern.info] mt3204 at qla23000: target 9 Apr 4 15:14:50 sunset genunix: [ID 936769 kern.info] mt3204 is /pci@1f,4000/fibre-channel@2/mt@9,0 ... 0, STK lun 0

0, STK lun 0

To create the special device file for the drives, you can use the autoconf script in the same directory, as shown in Example 5-17 on page 148. This script deletes all previously defined Tivoli Storage Manager devices for tape drives (/dev/rmt/*mt*), optical drives (/dev/rmt/*op*), and libraries (/dev/rmt/*lb*). In then configures all tape drives, optical drives, and libraries. Finally, the script creates three special files for tracing the Tivoli Storage Manager device driver which are used by Tivoli Storage Manager support if required.

Chapter 5. Library sharing with the ACSLS Manager

147

Example 5-17 Solaris: autoconf bash-2.03# /opt/tivoli/tsm/devices/bin/autoconf Setting up aliases All alias set----exit status = 0 devfsadm[7850]: verbose: mknod /devices/pci@1f,4000/fibre-channel@2/mt@8,0:mt 2l/2l/20666 devfsadm[7850]: verbose: symlink /dev/rmt/1mt -> ../../devices/pci@1f,4000/fibre-channel@2/mt@8,0:mt devfsadm[7850]: verbose: mknod /devices/pci@1f,4000/fibre-channel@2/mt@8,0:mtn 2l/2l/20666 devfsadm[7850]: verbose: symlink /dev/rmt/1mtn -> ../../devices/pci@1f,4000/fibre-channel@2/mt@8,0:mtn devfsadm[7850]: verbose: mknod /devices/pci@1f,4000/fibre-channel@2/mt@8,0:mtt 2l/2l/20666 devfsadm[7850]: verbose: symlink /dev/rmt/1mtt -> ../../devices/pci@1f,4000/fibre-channel@2/mt@8,0:mtt devfsadm[7850]: verbose: mknod /devices/pci@1f,4000/fibre-channel@2/mt@9,0:mt 2l/2l/20666 devfsadm[7850]: verbose: symlink /dev/rmt/2mt -> ../../devices/pci@1f,4000/fibre-channel@2/mt@9,0:mt devfsadm[7850]: verbose: mknod /devices/pci@1f,4000/fibre-channel@2/mt@9,0:mtn 2l/2l/20666 devfsadm[7850]: verbose: symlink /dev/rmt/2mtn -> ../../devices/pci@1f,4000/fibre-channel@2/mt@9,0:mtn devfsadm[7850]: verbose: mknod /devices/pci@1f,4000/fibre-channel@2/mt@9,0:mtt 2l/2l/20666 devfsadm[7850]: verbose: symlink /dev/rmt/2mtt -> ../../devices/pci@1f,4000/fibre-channel@2/mt@9,0:mtt Driver (mt) installed. exit status = 0 devfsadm: driver failed to attach: op exit status = 11 Warning: Driver (op) successfully added to system but failed to attach Driver (op) installed. exit status = 0 devfsadm: driver failed to attach: lb exit status = 11 Warning: Driver (lb) successfully added to system but failed to attach Driver (lb) installed. IBM TIVOLI STORAGE MANAGER by IBM Device List Utility Program for Sun Solaris Licensed Materials - Property of IBM 5698-ISE (C) Copyright IBM Corporation 2004. All rights reserved. U.S. Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corporation. Inst ---3204 3203 Special File -----------/dev/rmt/2mt /dev/rmt/1mt Vendor -----STK STK Product ------9840 9840 Serial Target LUN World Wide Name Firmware ------------ ------ --- ---------------- -------331000048026 9 0 500104f00043eaa7 1.34 331002037903 8 0 500104f00045cb26 1.34

o Tape drive configuration information has been saved in mtinfo bash-2.03#

148

Get More Out of Your SAN with IBM Tivoli Storage Manager

To show drive information, view the mtinfo file (Example 5-18) or start the tsmdlist program (Example 5-19), which are both in the /opt/tivoli/tsm/devices/bin directory.
Example 5-18 Solaris: /opt/tivoli/tsm/devices/bin/mtinfo bash-2.03# cat /opt/tivoli/tsm/devices/bin/mtinfo Inst Special File Vendor Product Serial ---- ------------ ------ ------- -----------3203 /dev/rmt/1mt STK 9840 331002037903 3204 /dev/rmt/2mt STK 9840 331000048026 Target -----8 9 LUN --0 0 World Wide Name ---------------500104f00045cb26 500104f00043eaa7 Firmware -------1.34 1.34

Example 5-19 Solaris: /opt/tivoli/tsm/devices/bin/tsmdlist bash-2.03# /opt/tivoli/tsm/devices/bin/tsmdlist IBM TIVOLI STORAGE MANAGER by IBM Device List Utility Program for Sun Solaris Licensed Materials - Property of IBM 5698-ISE (C) Copyright IBM Corporation 2004. All rights reserved. U.S. Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corporation. Inst ---3203 3204 Special File -----------/dev/rmt/1mt /dev/rmt/2mt Vendor -----STK STK Product ------9840 9840 Serial -----------331002037903 331000048026 Target -----8 9 LUN --0 0 World Wide Name ---------------500104f00045cb26 500104f00043eaa7 Firmware -------1.34 1.34

o Tape drive configuration information has been saved in mtinfo

The drives are ready to be defined in the Tivoli Storage Manager Server.

5.3 Tivoli Storage Manager configuration


This section summarizes the Tivoli Storage Manager commands that are required to set up library sharing with an STK ACSLS managed tape library. In our test environment, the Tivoli Storage Manager Library Manager (LM) was e installed on the AIX server poco and the Library Client (LC) was installed on the Sun Solaris server sunset. The ACSLS server is named icarus. We are using an STK L180 library with two STK 9840 drives. For detailed information about installing the Tivoli Storage Manager server, see: IBM Tivoli Storage Manager for AIX Installation Guide V5.3, GC32-1597 IBM Tivoli Storage Manager Implementation Guide, SG24-5416 Figure 5-12 on page 150 shows our test environment.

Chapter 5. Library sharing with the ACSLS Manager

149

LAN
Library Control

Server-to-server communication

SUNSET

Tivoli Storage Manager Library Client

POCO

Tivoli Storage Manager Library Manager Data Flow

ICARUS

ACSLS Server

STK Library

Data Flow

SAN
Figure 5-12 Lab overview

The setup steps are: 1. Defining server-to-server communication on the Library Manager. 2. Setting the ACSLS options. 3. Defining the library on the Library Manager. 4. Defining the drives for this library on the Library Manager. 5. Defining the drives path on the Library Manager. 6. Defining a device class that uses the library on the Library Manager. 7. Checking in library volumes on the Library Manager. 8. Defining server-to-server communication on the Library Client. 9. Defining the library on the Library Client. 10.Defining the drive path for the Library Client on the Library Manager. 11.Defining a device class that uses the library on the Library Client. 12.Checking the setup.

5.3.1 Defining server-to-server communication on the Library Manager


To use the library sharing, we have to set up server-to-server communication between the Library Manager, poco, and the Library Client, sunset. Example 5-20 shows the required commands.
Example 5-20 Server-to-Server communication SET SERVERPASSWORD secret SET SERVERNAME POCO_1 SET SERVERHLADDRESS 9.11.213.9 SET SERVERLLADDRESS 1500 DEFINE SERVER POCO_1 serverpassword=secret HLADDRESS=9.11.213.110 lladdress=1500 DEFINE SERVER SUNSET_1 serverpassword=secret HLADDRESS=9.11.213.107 lladdress=1500

150

Get More Out of Your SAN with IBM Tivoli Storage Manager

5.3.2 Setting the ACSLS options


There are four Tivoli Storage Manager server options for the ACSLS libraries which are defined in dsmserv.opt on the Tivoli Storage Manager Library Manager: AcsAccessId Specifies the ID for the Automatic Cartridge System (ACS) access control. The default ID is your local host name. AcsTimeoutX Specifies the multiple for the built-in timeout value for ACSLS APIs. The built-in timeout value for the ENTER, EJECT, and AUDIT ACS API is 1800 seconds; for all other ACSLS APIs it is 600 seconds. For example, if the multiple value specified is five (5), the timeout value for audit API becomes 9000 seconds, and all other APIs become 3000 seconds. The default is one (1). AcsLockDrive Specifies if the drives within the ACSLS libraries are locked. Drive locking ensures the exclusive use of the drive in the ACSLS library in a shared environment. However, there is some performance gain if libraries are not locked. If other applications are not sharing the Tivoli Storage Manager drives, drive locking is not required. The default is NO. AcsQuickInit Specifies whether, at server start, the initialization of the ACSLS library is a quick or full initialization. When a full initialization of the library occurs, the initialization matches the ACSLS inventory with the Tivoli Storage Manager inventory and validates the locking of each server-owned volume. It also validates that drives within the ACSLS libraries are locked. The full initialization takes about one to two seconds per volume. If your library inventory is large, it could take a long time to fully initialize the library during server start. The default is NO. Note: Ask your STK ACSLS administrator for further informations. For this example, we leave all these Tivoli Storage Manager server options at their default values (Example 5-21).
Example 5-21 dsmserv.opt: acs options ... *====================================================================== * * ACSTIMEOUTX (not available on z/OS, HP & Linux) * * Specifies the multiple for the build-in timeout value for ACSLS API. * The build-in timeout value for ACS audit API is 1800 seconds, for * all other APIs are 600 seconds. If the multiple value specified is 5, * the timeout value for audit API becomes 9000 seconds and all other * APIs becomes 3000 seconds. * * Syntax * +------------------+----------------------------------------------+ * | ACSTIMEOUTX | value | * +------------------+----------------------------------------------+ * * Parameters * value Specifies the multiple for the build-in timeout * value for ACSLS API. The minimum value is 1, the * maximum value is 100 and the default is 1. Chapter 5. Library sharing with the ACSLS Manager

151

* * Examples * ACSTIMEOUTX 5 * *======================================================================== * * ACSACCESSID (not available on z/OS, HP & Linux) * * Specifies the id for the ACS access control. * * Syntax * +------------------+----------------------------------------------+ * | ACSACCESSID | name | * +------------------+----------------------------------------------+ * * Parameters * name Specifies the id for the ACS access control. * * The default id is hostname. When specified the * name must be between 1 to 64 in length. * * Examples * ACSACCESSID startrek *======================================================================= ** * ACSLOCKDRIVE (not available on z/OS, HP & Linux) * * Specifies if the drives within the ACSLS libraries to be locked. * Drive locking ensures the exclusive use of the drive within the * ACSLS library in a shared environment. However, there are some * performance improvements if locking is not performed. If the TSM * drives are not shared with other applications in the configuration * then drive locking are not required. * * The default is NO * * +------------------+----------------------------------------------+ * | ACSLOCKDRIVE | [YES | NO] | * +------------------+----------------------------------------------+ * *======================================================================= ** * ACSQUICKINIT (not available on z/OS, HP & Linux) * * Specifies if the initialization of the ACSLS library should be quick * or full initialization during the server startup. * * The full initialization matches the ACSLS inventory with the server * inventory and validate the locking for each TSM owned volume. It * also validates the drive locking and dismount all volumes currently * in the ADSM drive. The full initialization takes about 1-2 seconds * per volume and can take a long time during the server startup if * the library inventory is large. * * ACSQUICKINIT bypasses all the inventory matching, lock validation and * volume dismounting from the drive. The user must ensure the integrity * of the TSM inventory and drive availability, all TSM volumes * or drives are assumed locked by the same lock_id and available. * This option is useful for server restart, and should only be used * if all TSM inventory and resources remain the same while the server

152

Get More Out of Your SAN with IBM Tivoli Storage Manager

* is down. * * The default is NO * * +------------------+----------------------------------------------+ * | ACSQUICKINIT | [YES | NO] | * +------------------+----------------------------------------------+ * *========================================================================= ...

5.3.3 Defining the library on the Library Manager


To define the library, run this command:
DEFINE LIBRARY ACSLS LIBTYPE=acsls SHARED=yes ACSID=0

Important: Be sure to use the right ACSID. Example 5-22 shows the query on the ACSLS server icarus to find the ACSID or you can ask the ACSLS administrator. This example, and remaining examples on the ACSLS server, use the ACSSA prompt, which you start with the /STKhome/ACSSS/bin/cmd_proc command.
Example 5-22 ACSLS: query acs (root@icarus) /> /STKhome/ACSSS/bin/cmd_proc This material is confidential and proprietary to StorageTek and may be licensed only under a valid StorageTek license. Do not copy or distribute unless authorized in writing by StorageTek. If this software is used by the Government, use, duplication, or disclosure by the Government is subject to restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in Technical Data and Computer Software clause at DFARS 252.7-7013. ---------------------------------ACSLS 6.1.1-------------------------------------------ACSSA> query acs all 2005-03-14 14:48:56 ACS Status Identifier State Free Cell Audit Mount Dismount Enter Eject Count C/P C/P C/P C/P C/P 0 online 79 0/0 0/0 0/0 0/0 0/0 ACSSA>

Attention: You do not need to define a path for the STK ACSLS managed library, because the control path is via SSI to the ACSLS server.

5.3.4 Defining the drives for this library on the Library Manager
To define the drives for this library, run these commands:
DEFINE DRIVE ACSLS ACSLS_01 ACSDRVID=0,0,0,1 DEFINE DRIVE ACSLS ACSLS_02 ACSDRVID=0,0,0,6

Chapter 5. Library sharing with the ACSLS Manager

153

To find the ACSDRVID, you can use the ACSLS query drive command, as shown in Example 5-23.
Example 5-23 ACSLS: query drive ---------------------------------ACSLS 6.1.1-------------------------------------------ACSSA> query drive all 2005-03-14 14:47:46 Drive Status Identifier State Status Volume Type 0, 0, 0, 0 online available HP-LTO-2 0, 0, 0, 1 online available 9840 0, 0, 0, 2 online available SDLT-320 0, 0, 0, 3 online available SDLT-320 0, 0, 0, 4 online available HP-LTO-2 0, 0, 0, 5 online available HP-LTO-2 0, 0, 0, 6 online available 9840 ACSSA>

This command reports several drives. However, for our testing, we used just the two 9840 drives.

5.3.5 Defining the drives path on the Library Manager


To define the drives path, run these commands:
DEFINE PATH POCO_1 ACSLS_01 SRCTYPE=server DESTTYPE=drive LIBRARY=ACSLS DEVICE=/dev/mt0 DEFINE PATH POCO_1 ACSLS_02 SRCTYPE=server DESTTYPE=drive LIBRARY=ACSLS DEVICE=/dev/mt1

5.3.6 Defining a device class that uses the library on the Library Manager
To define a device class that uses the library, run this command:
DEFINE DEVCLASS 9840 LIBRARY=ACSLS DEVTYPE=ecartridge FORMAT=drive

Attention: Avoid specifying FORMAT=DRIVE when a mixture of drives is used within the same library. For example, do not use this option for a library that contains some drives that support higher recording formats than other drives.

5.3.7 Checking in library volumes on the Library Manager


To check in library volumes, run these commands:
CHECKIN LIBV ACSLS SEARCH=yes VOLRANGE=CB5381,CB5382 STATUS=scratch CHECKIN LIBV ACSLS CB5384 STAT=scratch

Use the LABEL LIBVOLUME command, if the library volumes are unlabeled.
LABEL LIBVOLUME acsls CB5384 CHECKIN=SCRATCH

154

Get More Out of Your SAN with IBM Tivoli Storage Manager

To determine the library volumes to check in, you can use the query scratch command on the ACSLS server, as shown in Example 5-24.
Example 5-24 ACSLS: query scratch ---------------------------------ACSLS 6.1.1-------------------------------------------ACSSA> q scratch all 2005-03-14 15:14:05 Scratch Status Scratch Pool Identifier Home Location Status Type 9840 CB5381 0, 0, 1, 1, 0 home STK1R 9840 CB5384 0, 0, 1, 2, 0 home STK1R 9840 CB5382 0, 0, 1, 3, 0 home STK1R ACSSA>

After the library volumes are checked in, you can query whether the library volumes are visible on the Tivoli Storage Manager server using the QUERY LIBVOLUME command, as shown in Example 5-25.
Example 5-25 LM: query library volumes tsm: POCO_1>q libv Library Name -----------ACSLS ACSLS ACSLS Volume Name ----------CB5381 CB5382 CB5384 Status ---------Scratch Scratch Scratch Owner ---------Last Use --------Home Element ------Device Type ------

5.3.8 Defining server-to-server communication on the Library Client


Example 5-26 shows the required commands to define server-to-server communication.
Example 5-26 Server-to-Server definition on the Library Client SET SERVERPASSWORD secret SET SERVERNAME SUNSET_1 SET SERVERHLADDRESS 9.11.213.107 SET SERVERLLADDRESS 1500 DEFINE SERVER POCO_1 serverpassword=secret HLADDRESS=9.11.213.110 lladdress=1500 DEFINE SERVER SUNSET_1 serverpassword=secret HLADDRESS=9.11.213.107 lladdress=1500

5.3.9 Defining the library on the Library Client


To define the library, run this command:
DEFINE LIBRARY ACSLS LIBTYPE=shared PRIMARYLIBMANAGER=poco_1

This command refers back to the Library Manager, poco.

5.3.10 Defining the drive path for the Library Client on the Library Manager
These use the Solaris device names as shown in Example 5-17 on page 148.
DEF PATH sunset_1 ACSLS_01 SRCT=server DESTT=drive LIBR=acsls DEVICE=/dev/rmt/1mt DEF PATH sunset_1 ACSLS_02 SRCT=server DESTT=drive LIBR=acsls DEVICE=/dev/rmt/2mt

Chapter 5. Library sharing with the ACSLS Manager

155

Tip: With the SAN Discovery feature, the Tivoli Storage Manager server identifies the correct device special file for the Library Client using the serial number of the tape drive. For more information, see Chapter 9, Tivoli Storage Manager SAN Discovery on page 253.

5.3.11 Defining a device class that uses the library on the Library Client
To define a device class that uses the library, run this command:
DEFINE DEVCLASS 9840 LIBRARY=ACSLS DEVTYPE=ecartridge FORMAT=drive

5.3.12 Checking the setup


Library sharing for the STK library is now ready and we can take a Tivoli Storage Manager database backup on the Library Client. Example 5-27 shows the activity log on the Library Client, and Example 5-28 on page 157 shows the activity log on the Library Manager.
Example 5-27 Tivoli Storage Manager activity log on the Library Client ANR2017I Administrator ADMIN issued command: BACKUP DB devcl=9840 t=f ANR0984I Process 2 for DATABASE BACKUP started in the BACKGROUND at 03:45:29 PM. ANR2280I Full database backup started as process 2. ANR0408I Session 4 started for server POCO_1 (AIX-RS/6000) (Tcp/Ip) for library sharing. ANR0409I Session 4 ended for server POCO_1 (AIX-RS/6000). ANR0408I Session 5 started for server POCO_1 (AIX-RS/6000) (Tcp/Ip) for library sharing. ANR0409I Session 5 ended for server POCO_1 (AIX-RS/6000). ANR8337I ECARTRIDGE volume CB5381 mounted in drive ACSLS_02 (/dev/rmt/2mt). ANR0511I Session 1 opened output volume CB5381. ANR1360I Output volume CB5381 opened (sequence number 1). ANR1361I Output volume CB5381 closed. ANR0514I Session 1 closed volume CB5381. ANR0408I Session 6 started for server POCO_1 (AIX-RS/6000) (Tcp/Ip) for library sharing. ANR0408I Session 7 started for server POCO_1 (AIX-RS/6000) (Tcp/Ip) for library sharing. ANR0409I Session 6 ended for server POCO_1 (AIX-RS/6000). ANR0408I Session 8 started for server POCO_1 (AIX-RS/6000) (Tcp/Ip) for library sharing. ANR0409I Session 8 ended for server POCO_1 (AIX-RS/6000). ANR4502W No files have been defined for automatically storing sequential volume history information. ANR4550I Full database backup (process 2) complete, 174 pages copied. ANR0985I Process 2 for DATABASE BACKUP running in the BACKGROUND completed with completion state SUCCESS at 03:47:19 PM. ANR8336I Verifying label of ECARTRIDGE volume CB5381 in drive ACSLS_02 (/dev/rmt/2mt). ANR8468I ECARTRIDGE volume CB5381 dismounted from drive ACSLS_02 (/dev/rmt/2mt) in library ACSLS.

156

Get More Out of Your SAN with IBM Tivoli Storage Manager

Example 5-28 Tivoli Storage Manager activity log on the Library Manager ANR0408I ANR0409I ANR0408I ANR2017I ANR2017I ANR0405I ANR0407I ANR8337I ANR9791I ANR0409I ANR0408I ANR0409I ANR0408I ANR0409I ANR0408I ANR0409I ANR8336I ANR8468I ACSLS. Session 52 started for server SUNSET_1 (Solaris 8/9) (Tcp/Ip) for library sharing. Session 52 ended for server SUNSET_1 (Solaris 8/9). Session 53 started for server SUNSET_1 (Solaris 8/9) (Tcp/Ip) for library sharing. Administrator ADMIN issued command: QUERY LIBR Administrator ADMIN issued command: QUERY PATH Session 51 ended for administrator ADMIN (WinNT). Session 54 started for administrator ADMIN (WinNT) (Tcp/Ip 9.1.38.61(3844)). ECARTRIDGE volume CB5381 mounted in drive ACSLS_02 (/dev/mt1). Volume CB5381 in library ACSLS ownership is changing from POCO_1 to SUNSET_1. Session 53 ended for server SUNSET_1 (Solaris 8/9). Session 55 started for server SUNSET_1 (Solaris 8/9) (Tcp/Ip) for library sharing. Session 55 ended for server SUNSET_1 (Solaris 8/9). Session 57 started for server SUNSET_1 (Solaris 8/9) (Tcp/Ip) for library sharing. Session 57 ended for server SUNSET_1 (Solaris 8/9). Session 56 started for server SUNSET_1 (Solaris 8/9) (Tcp/Ip) for library sharing. Session 56 ended for server SUNSET_1 (Solaris 8/9). Verifying label of ECARTRIDGE volume CB5381 in drive ACSLS_02 (/dev/mt1). ECARTRIDGE volume CB5381 dismounted from drive ACSLS_02 (/dev/mt1) in library

You can check the library volumes on the Library Manager to confirm that the database backup volume is now used on the Library Client SUNSET_1. Example 5-29 shows that the owner of the CB5381 volume is now the Library Client SUNSET_1 and that it has been used for a database backup.
Example 5-29 Tivoli Storage Manager library volumes after the database backup tsm: POCO_1>q libv Library Name -----------ACSLS ACSLS ACSLS Volume Name ----------CB5381 CB5382 CB5384 Status ---------Private Scratch Scratch Owner ---------SUNSET_1 Last Use --------DbBackup Home Element ------Device Type ------

Chapter 5. Library sharing with the ACSLS Manager

157

158

Get More Out of Your SAN with IBM Tivoli Storage Manager

Chapter 6.

Planning for LAN-free


This chapter covers the preliminary stages that are involved in preparing a LAN-free backup environment. There are a number of different elements involved in performing backups in a SAN environment, and configuration of all of them can become confusing. Therefore, we recommend that you take the time for careful planning to allow for a smooth setup experience. This chapter discusses the following topics: Details about LAN-free backup When to use LAN-free data movement The ideal LAN-free client machine Supported operating systems and requirements Configuration preparations Compatibility concerns

Copyright IBM Corp. 2005. All rights reserved.

159

6.1 Details about LAN-free backup


We discussed the basics of LAN-free backup in 1.3, Tivoli Storage Manager SAN functions on page 4. This section now provides the detail that can help you plan an effective configuration. First, well discuss the flow of control during a LAN-free backup. The steps involved in performing a Tivoli Storage Manager LAN-free backup are: 1. The Backup-Archive Client begins a backup operation. The Tivoli Storage Manager server reports policy information to the client, including whether a destination is LAN-free. As the client assigns policy settings for files during backup processing, it uses the Storage Agent to send the data via LAN-free when the destination for that policy is LAN-free enabled. Note: A storage pool is a LAN-free destination when the storage pool is associated with a device that is shared on the SAN. That device must also have a defined path between the device and the Storage Agent machine, using the DEFINE PATH command. 2. The Storage Agent receives data for those files backed up by the client and assigned to policy settings that use a LAN-free enabled storage pool. The Storage Agent sends a request for a volume mount to the Library Manager server. 3. A request is sent from the Library Manager to the storage device to mount the appropriate media. 4. The Library Manager notifies the Storage Agent of the location where the mounted media resides. 5. The client, by means of the Storage Agent, writes the backup data directly to the device over the SAN. 6. The Storage Agent sends metadata information to the Tivoli Storage Manager server over the LAN, and the server stores the information in its database. Figure 6-1 on page 161 gives a further breakdown of a typical client backup process. The tasks that are performed on the LAN-free (that is, the SAN path) are indicated by the thick red arrow, while the other tasks (with black arrows) use the LAN path. As you can see, of the whole backup processes, only one actually uses the LAN-free path for actual transfer of backup data. All the other tasks, which are metadata related, use the LAN path. Therefore, depending on the profile of the backup to be performed, the proportion of time spent transferring over the LAN versus the SAN will be different.

160

Get More Out of Your SAN with IBM Tivoli Storage Manager

Figure 6-1 Steps for a LAN-free backup

6.2 When to use LAN-free data movement


Determining when to use LAN-free data movement as opposed to traditional LAN backup can be confusing. To achieve the best overall performance, you should consider the type of data on the client. As discussed in 6.1, Details about LAN-free backup on page 160, LAN-free backup makes substantial use of the LAN for control and other information exchange. Different backup types will generate a different profile of LAN versus SAN usage and might be better suited to one type of backup rather than the other. When trying to decide what is appropriate for your environment, consider the following common factors that could predicate use of a LAN-free backup: A congested network This factor includes overall network congestion as well as any network limitations between the client and the server machines. Constrained server The Tivoli Storage Manager server systems resources are a factor. Perhaps there are already a large number of clients backing up to a single server. Available SAN storage resources Streaming data to tape over the SAN can be faster than using the network, providing that client systems have access to the SAN storage resources. Type of data to be backed up Because the LAN-free path is used for sending the actual data, and not the metadata, a client workload, which has proportionately more metadata than data to send, will in general see less benefit from using the LAN-free path. Conversely, a client workload which spends most of its time sending data will see a greater benefit from using LAN-free backup. From this, you can extrapolate that large file sizes are better suited for LAN-free backup. (Further discussion on this topic is in 6.3, The ideal LAN-free client machine on page 162.)

Chapter 6. Planning for LAN-free

161

When not to use LAN-free Generally, when doing traditional Tivoli Storage Manager progressive incremental backups, consider multithreading many clients with many small files to a shared random disk storage pool using the LAN. In this type of backup, each client typically spends more time selecting the actual files to be backed up and other processing rather than in actual data transmission. Therefore, you will see little or no benefit from using the LAN-free path. In some cases, LAN-free to disk is appropriate.

6.3 The ideal LAN-free client machine


LAN-free performance continues to improve through subsequent releases of Tivoli Storage Manager, due in part to improved default options and other algorithmic factors. However, one of the most common misconceptions when backing up over the SAN is the expected performance. SAN-based (or LAN-free) backup performance will decrease when many smaller objects are transferred, because more time is spent in non-SAN communications. In some cases, a LAN-based backup might even be faster than a SAN-based one for the same workload. Most typically, using LAN-free for backing up larger objects, such as database files or full volume image backups, yields the best performance. Traditional Tivoli Storage Manager progressive incremental backups usually perform better over the LAN than LAN-free, because this type of backup typically does not exploit fully the speed of the SAN or allow a tape drive to operate at streaming speeds. LAN-free to disk backup might also be appropriate for these type of environments. To illustrate this point, we performed some simple backup tests in our lab to show the effects of transferring larger and fewer objects when compared to transferring smaller and many objects. The results of the test are shown in Figure 6-2 on page 163 and Table 6-1 on page 163. The test results show the effects of backing up many smaller files using LAN-free when compared to backing up larger and fewer files. Information about the infrastructure used during the testing is intentionally omitted in order to focus entirely on the relative effect of file size on performance, rather than the performance numbers themselves. The test environment used a Tivoli Storage Manager V5.3 server, Storage Agent, and Backup-Archive Client. All backups (LAN and LAN-free) were sent to tape. All client and server options were left at the default. No modifications were made to any performance related options. Other than the bare minimum for establishing communication with the server and configuring LAN-free, no other options were modified. We performed multiple LAN-free backup tests of data that equaled 2 GB total. We started with backing up a single 2 GB file and recorded the aggregate transfer rate. We then increased the number of files to 10, with each file being 200 MB in size, to give us a total of 2 GB. We continued increasing the number of files and running backups until the test consisted of one million files, each 2 KB in size. We ran four backup tests for each data set, and we averaged the results. We then repeated the scenario using a LAN path to the tape device. We removed the LAN-free configuration and reran the same set of backup tests to tape, this time over the LAN. Table 6-1 on page 163 includes the metrics that we gathered from the tests.

162

Get More Out of Your SAN with IBM Tivoli Storage Manager

45

Aggregate Transfer Rate (MB/s)

40 35 30 25 20 15 10 5 0
2GB 1 200MB 10 100MB 20 50MB 40 40MB 50 20MB 100 2 MB 1,000 200KB 10,000 20KB 100,000 2KB 1,000,000

LAN-free

LAN

Average File Size Number of Files

Figure 6-2 Small file effect on LAN-free backups Table 6-1 LAN-free versus LAN 2 GB backup comparison results Data path LAN-free LAN LAN-free LAN LAN-free LAN LAN-free LAN LAN-free LAN LAN-free LAN LAN-free LAN LAN-free LAN LAN-free LAN LAN-free LAN Number of files 1 1 10 10 20 20 40 40 50 50 100 100 1,000 1,000 10,000 10,000 100,000 100,000 1,000,000 1,000,000 Average file size 2 GB 2 GB 200 MB 200 MB 100 MB 100 MB 50 MB 50 MB 40 MB 40 MB 20 MB 20 MB 2 MB 2 MB 200 KB 200 KB 20 KB 20 KB 2 KB 2 KB Aggregate transfer rate 40.36 MB/s 11.27 MB/s 33.83 MB/s 10.34 MB/s 24.28 MB/s 9.73 MB/s 18.19 MB/s 8.80 MB/s 14.89 MB/s 8.27 MB/s 7.58 MB/s 6.36 MB/s 9.17 MB/s 6.74 MB/s 8.11 MB/s 6.10 MB/s 1.05 MB/s 1.61 MB/s 0.17 KB/s 0.13 KB/s

Chapter 6. Planning for LAN-free

163

The results show that as the number of files increases and, at the same time, the average file size decreases, the LAN-free and LAN backup performance converges. The line graph and table illustrate that the best LAN-free backup performance is achieved when backing up larger and fewer objects. In this set of tests, the best LAN-free throughput (40 MB per second) was achieved when the average file size was 2 GB. As the average file size decreased to 200 MB, the throughput dropped to 33.83 MB per second. The LAN-free throughput drops more rapidly when the average file size is reduced to 20 MB in size and the number of files is reduced to 100 files. From this data, we can determine that in this particular test environment an average file size of about 100 MB can yield fairly decent LAN-free performance, before performance begins to decline. With that said, such backups results can be useful in helping you to decide whether a client machine is ideal for LAN-free data movements. Important: This example is intended merely to show general trends of LAN-free versus LAN performance when considering file size. It is not a formal benchmark and is not intended to be used to extrapolate actual performance figures for any particular environment. For this reason, we have not given specifics of the particular SAN and network topologies, the storage devices, or servers which were a part of this test. The average file size information might be gathered from all your client machines and then you can use that information to determine which client machines are ideal for LAN-free movement. Various tools are available that you can use to gather such information, for example, TotalStorage Productivity Center for Data (TPC for Data).You could also calculate the average file size for a client machine manually by determining the total amount of data (in GB) on that machine, then by dividing that total by the total number of files. Often, client machines have a mix of both large and small files. Where these files can be identified (for example, by the directory in which they reside or the file extension), you can use Tivoli Storage Manager client options to send the larger objects over the SAN path while sending the smaller objects over the LAN path. To use different paths for larger and smaller files, first configure storage pools that reside on both LAN and SAN-accessible devices. Then, configure management classes to use those storage pools. Use INCLUDE statements in the client options file to bind the smaller objects to a management class for a LAN-accessible storage pool and to bind larger objects to a management class for a LAN-free pool. For further information about using the INCLUDE client statement to bind objects to a management class, see the Backup-Archive Clients Installation and Users Guide for your client platform.

6.4 Supported operating systems and requirements


This section covers the LAN-free system components and their requirements. In general, we recommend using the latest versions of each component. Before you set up LAN-free data movement, ensure the following: SAN hardware components are in place Ensure that all the required SAN hardware components are in place and functioning properly. All hardware components such as SAN switches and HBAs should have the most current firmware levels applied, unless otherwise noted by the manufacturer. For more details about where to acquire the latest device driver and firmware level for each hardware component, consult with the hardwares accompanied documentation. If no documentation were provided, consult with the hardwares manufacturers support center or Web page.

164

Get More Out of Your SAN with IBM Tivoli Storage Manager

Tivoli Storage Manager for SAN (Storage Agent) License is current The Tivoli Storage Manager for SAN license and software is required. Review the Storage Agent, client, and server readme files for the necessary platform for possible updated information about HBA and device driver support. The Tivoli Storage Manager software components typically involved in LAN-free data movement are the server, the backup-archive client, and the storage agent. The server and backup-archive client are supported on the common platforms. For specific details about which platform the server and clients support, see:
http://www.ibm.com/software/sysmgmt/products/support/IBMTivoliStorageManager.html

The Storage Agent plays an essential role in a LAN-free setup. The Storage Agent is a miniature version of the Tivoli Storage Manager server and takes on the functions of a Library Client in order to control the writing and reading of tapes in a LAN-free setup. The Storage Agent is supported on the following operating systems at the time of writing: AIX 5.1, 5.2 and 5.3 (both 32 and 64 bit) HP-UX 11iv1, 11iv2 (both 32 and 64 bit) Solaris 8, 9 (64 bit) Windows 2000, Server 2003 Linux IA32: Red Hat Enterprise Linux 3, update 2 or later, SLES 8 sp3 or later, SLES 9 Linux on pSeries: SuSE Enterprise Server 8 sp3 or later, SLES 9, Red Hat Enterprise Linux 3 update 2 or later Linux Power5 iSeries and pSeries: Red Hat Enterprise Linux 3 update 2 or later, SLES 9 Linux on zSeries: SuSE Linux Enterprise Server 8 sp3 or later, SLES 9, Red hat Enterprise Linux 3 update 2 or later Linux 390 (31 bit) Read Hat 3 update 2 or later, SLES 8, sp3 or later, SLES 9

6.5 Configuration preparations


There are some essential pieces of information and components of which you should have a good understanding before setting up a LAN-free configuration. This section discusses these pieces. It also gives more details on how the LAN-free backup works to provide a better understanding of the process. To assist you in setting up LAN-free data movement , you should identify or be aware of the following: The client machine on which the LAN-free is to be set up We have already discussed the importance of deciding when LAN-free backup is appropriate. Having decided to use LAN-free backup, you must then consider where to install the Storage Agent. The Storage Agent is installed most usually on the actual client machine, although it is also possible to have the Storage Agent running on a separate system. For details on having the Storage Agent run on a separate machine, see 7.4.3, Configuring the client on page 191 . The Tivoli Storage Manager server to be used The Tivoli Storage Manager server in a LAN-free environment can play different roles. It can act as the Library Manager or as a Library Client or even both in more complex environments. (For a discussion of these terms, see Chapter 2, Tape library sharing

Chapter 6. Planning for LAN-free

165

planning on page 11.) In many small and mid-size businesses, it is most typical to have a single Tivoli Storage Manager server. In that case, the server acts as the Library Manager. However, in more complex environments consisting of multiple Tivoli Storage Manager servers, the Library Manager and Library Client architecture must be determined. The type of library sharing method to be used The SAN-attached storage devices that you have (or plan to have) in your environment most likely determines the type of library sharing method you will use. IBM tape devices or non-IBM storage devices that are supported by the Tivoli Storage Manager device driver can be used for sharing. These device types include SCSI, file (for disk), ACSLS, external, and 349x tape libraries. For more details on the different library sharing methods, see Chapter 3, SCSI tape library sharing on page 43, Chapter 4, IBM 3494 tape library sharing on page 93, and Chapter 5, Library sharing with the ACSLS Manager on page 127. The device names The device names for the SAN-attached storage devices are required when defining the path on the server. SAN-attached devices might appear with different device names on each host which is attached to the same SAN. For instance a SAN-attached 3580 LTO drive might show up as device name /dev/rmt0 on one AIX system, while on another AIX machine it will show up as /dev/rmt1. Different operating systems also use different device naming conventions. It is important to know the naming convention when defining the device path. The correct device driver must be installed in order for the devices to show up and be available for further configuration. For information about finding device names, see 6.5.1, Obtaining the device name(s) on page 166. A proper management class destination In order for a client node to use the Storage Agent to perform LAN-free data movements, the client node must be bound to a management class that uses the SAN-attached storage device. This management class can be set as the default to allow any client node that is created within the policy domain to use it automatically for all backup operations. Alternatively you can explicitly specify to use the management class using INCLUDE statements within the client options file or client option set that point to the LAN-free management class.

6.5.1 Obtaining the device name(s)


You must obtain the device names for each SAN-attached device, because that information is required when defining the path(s) for that device on the Tivoli Storage Manager server. To obtain the device names for each device, you need to execute the following tasks on the system(s) that will be running the Storage Agent.

Installing the Storage Agent and device driver


On the Storage Agent machine, you must install the Storage Agent software and the appropriate device driver(s). In most cases, for IBM tape drives, you use an IBM tape device driver. For other non-IBM tape drives, use the Tivoli Storage Manager device driver (ADSMSCSI/ TSMSCSI). We recommend using the latest device drivers in any case. For complete details on selecting and installing device drivers, refer to the Attaching Devices section of the IBM Tivoli Storage Manager Administrator V5.3 Administrators Guide for your Tivoli Storage Manager server platform. You can download the latest version of the IBM tape device driver from :
ftp://ftp.software.ibm.com/storage/devdrvr/

166

Get More Out of Your SAN with IBM Tivoli Storage Manager

The Tivoli Storage Manager device driver is shipped with the Storage Agent software in the Tivoli Storage Manager for Storage Area Networks package. You can download the latest version of the Tivoli Storage Manager Storage Agent and device driver from:
ftp://ftp.software.ibm.com/storage/tivoli-storage-management/

Note: In Tivoli Storage Manager V5.3 the new SAN Discovery feature allows Tivoli Storage Manager to assist with recovering from device name changes. If you plan on taking advantage of this feature, ensure that you use the latest device driver for your HBAs. More information is available in Chapter 9, Tivoli Storage Manager SAN Discovery on page 253. Install the Storage Agent software from the Tivoli Storage Manager for Storage Area Networks package or from the latest downloaded patch. Follow the instructions on the screen to complete the software install. Review the readme files for important information about installation, as well as known issues and limitations. Note: On Windows systems, both the Storage Agent and Tivoli Storage Manager device driver installs require a system reboot. To avoid rebooting twice, when prompted to reboot after the Storage Agent install, select no and then install the Tivoli Storage Manager device driver and reboot afterwards. After the Storage Agent and device drivers are installed successfully, you can then determine the device names using the tsmdlst utility. Note: On Windows, when using the Tivoli Storage Manager device driver or the IBM tape device driver to control all devices, ensure that the Removable Storage Manager (RSM) service is disabled, to avoid conflicts with the intended device drivers. In our lab, we installed the Storage Agent on the Windows platform. To install the Storage Agent on the Windows platform, you need to start the Tivoli Storage Manager device driver. Note: If you are using IBM tape drives or libraries, the Tivoli Storage Manager device driver is not required and does not need to be started. Skip this step and proceed to Query the device name(s) on page 168. On Windows 2000 at a command prompt, enable the Tivoli Storage Manager device driver (TSMSCSI). Change to the C:\Program Files\Tivoli\TSM\console directory and run the following command:
tsmscsi /enable

You should received a message similar to Example 6-1, which indicates that the device support is enabled on the system.
Example 6-1 Starting the Tivoli Storage Manager device driver C:\Program Files\Tivoli\Tsm\console>tsmscsi /enable TSM Windows 2000 / Optical support is enabled on SENEGAL. C:\Program Files\Tivoli\Tsm\console>

Chapter 6. Planning for LAN-free

167

Note: The message indicates that Optical support is enabled. However, Tivoli Storage Manager does not currently support the use of optical devices in a LAN-free environment. Reboot the Storage Agent system. The device driver is now set to start at system start up. It controls the devices if the devices are available and if they are not controlled by any other device drivers. On Windows Server 2003, devices are controlled by the Windows device driver by default, even after installing the Tivoli Storage Manager device driver (TSMSCSI). You must update each device manually so that each is controlled by the TSMSCSI device driver. To update each device manually, start the Windows Device Manager and then: a. Right click the device and select Properties. Select the Driver tab and Driver File Details to see the driver that is currently controlling your device. b. You must configure the device to be used by tsmscsi.sys by right clicking the device and selecting Update Driver or by selecting Action and then Update Driver. The Hardware Update Wizard appears. c. Select Install from a list or specific location (Advanced) and click Next. d. Click Next. e. Select Don't search. I will choose to install and click Next. f. From the Hardware Installation panel, click Continue Anyway. g. Verify that the device has been configured correctly for tsmscsi: i. Right click the device and select Properties. ii. Select the driver tab and driver details. For completed details about controlling devices in a Windows 20003 system, refer to IBM Tivoli Storage Manager for Windows Administrators Guide, GC35-4010.

Query the device name(s)


At a command prompt, change to the C:\Program Files\Tivoli\TSM\console directory and enter the command:
tsmdlst

The output should show the all the devices that are attached to the system, including the SAN-attached devices, as shown in Example 6-2. The example shows that there are two disk devices, one tape library, and two tape drives visible from this clients Storage Agent.
Example 6-2 Example of tsmdlst output. Computer Name: TSM Device Driver: SENEGAL Not Running (TSM information may not be accurate)

TSM Name ID LUN Bus Port SSN WWN TSM Type Device Identifier ----------------------------------------------------------------------------------------------------------n/a 0 12 0 2 1T44668011 200400A0B8174432 DISK IBM 1742-900 0520 n/a 0 13 0 2 1T44668011 200400A0B8174432 DISK IBM 1742-900 0520 mt2.0.0.2 2 0 0 2 1110176223 500308C140467003 LTO IBM ULT3580-TD2 4772 lb2.1.0.2 2 1 0 2 0000013108231000 500308C140467003 LIBRARY IBM ULT3582-TL 237B mt3.0.0.2 3 0 0 2 1110177214 500308C140467006 LTO IBM ULT3580-TD2 477

168

Get More Out of Your SAN with IBM Tivoli Storage Manager

Make a note of the special device names for the SAN-attached devices that you plan on using in the LAN-free configuration. For example, the tape related devices are lb2.1.0.2 (library medium changer), mt2.0.0.2 (first tape drive), and mt3.0.0.2 (second tape drive). You will need these device names when defining the path to these devices. In Example 6-2 on page 168, note the following message:
TSM Device Driver: Not Running (TSM information may not be accurate)

This message is expected when using the IBM device driver. In most cases, if the devices show up in the output, they are accurate. However, if you are unable to define the Storage Agent paths using the device names as they appear (that is, you receive errno 2 - file not found), then you can install the Tivoli Storage Manager device driver for the purpose of temporarily getting the device information. For further details on installing the Tivoli Storage Manager device driver to obtain the device name, see IBM Tivoli Storage Manager Administrators Guide for your operating system platform.

6.6 Compatibility concerns


You should consider the following compatibility concerns when preparing for LAN-free data movement: Storage Agent V5.2 does not operate with a previous version of the Tivoli Storage Manager Server. Tivoli Storage Manager Server V5.2 does not operate with a previous version of the Storage Agent. Tivoli Storage Manager Server V5.3 supports only Storage Agent V5.2.3, V5.2.4, and V5.3. At the time of writing, Storage Agents V5.2 or later cannot access shared file volumes using SANergy on V5.3 or later of the Tivoli Storage Manager server using LAN-free. Any such LAN-free requests are redirected to the server over the LAN.

Chapter 6. Planning for LAN-free

169

170

Get More Out of Your SAN with IBM Tivoli Storage Manager

Chapter 7.

LAN-free backup to tape


This chapter describes the process that is involved in configuring and verifying configuration of LAN-free tape backups. It discusses the following topics: Overview of the lab environment Setting up a policy domain for LAN-free clients Registering a new client node Enabling LAN-free data movement Configuring the Storage Agent Verifying the LAN-free path Communicating with and monitoring the Storage Agent Configuring other Tivoli products for LAN-free

Copyright IBM Corp. 2005. All rights reserved.

171

7.1 Overview of the lab environment


In a LAN-free to tape environment, a Storage Agent is used to transfer data over the SAN on behalf of a client. The Storage Agent might reside on the same machine as the client node or on a separate machine. This section includes steps for both types of environments. Figure 7-1 on page 173 shows the Storage Agent and the client node residing on the same machine, as well as a single dedicated Storage Agent that is used by multiple clients to transfer data over the SAN. The examples used in this chapter are based on the LAN-free configuration that we performed in our lab, which is shown in Figure 7-1 on page 173. Our lab environment consisted of the following hosts: AZOV: AIX V5.2, Tivoli Storage Manager server V5.3.1.0. SENEGAL: Windows 2000, running Tivoli Storage Manager Backup-Archive Client V5.3.0 and Storage Agent V5.3.1.0. The client node name is SENEGAL and the Storage Agent name is SENEGAL_STA. KANAGA: AIX V5.3, running Tivoli Storage Manager Backup-Archive Client V5.3.0. The client node name is KANAGA. The SENEGAL host is attached to the SAN, which allows the Tivoli Storage Manager client SENEGAL to perform LAN-free data transfer to and from the SAN-attached tape drives. The second client KANAGA has a LAN connection but no SAN connection. Therefore, it cannot access the SAN-attached tape drives directly. Using the LANFREETCPSERVERADDRESS option, we configured KANAGA to use the Storage Agent, SENEGAL_STA to transfer data over the SAN as well as to and from the SAN-attached tape drives. Figure 7-1 on page 173 also summarizes most of the important configuration options are described in this chapter.

172

Get More Out of Your SAN with IBM Tivoli Storage Manager

LAN
Server-to-Server Communication

dsmsta.opt
COMMmethod COMMmethod TCPport SHMPort SANDISCOVERY TCPIP SHAREDMEM 1502 1 ON

SERVER
AZOV

STORAGE AGENT
SENEGAL_STA
define server senegal_sta define library path for azov define drive paths for azov

CLIENT
SENEGAL

define drive paths for senegal_sta

CLIENT
KANAGA

dsm.opt
ENABLELanfree LANFREEShmport TCPServeraddress TCPport yes 1 azov 1500

LANFREECommmethod sharedmem

SAN

dsm.sys
ENABLElanfree LANFREETCPServer LANFREETCPport TCPServeraddress TCPport yes senegal 1502 azov 1500 File Library on Shared Disk

LANFRECommmethod tcpip

LEGEND Client data transfer Library control/ Client meta data

3582 Tape Library


LTODrive 1 LTO Drive 2

Figure 7-1 LAN-free environment in our lab

Setting up LAN-free data movement requires steps on the Tivoli Storage Manager server and the Storage Agent and client systems. IMPORTANT: Before you can proceed in this chapter, you must have defined your tape devices on the Tivoli Storage Manager server for use by the server. This definition includes configuring the library, drives, device class, and a storage pool for all tape devices. This chapter covers configuring those devices for use by the Storage Agent. If your storage devices have not been defined for use by the server, refer to the following: Chapter 2, Tape library sharing planning on page 11 Chapter 3, SCSI tape library sharing on page 43 Chapter 4, IBM 3494 tape library sharing on page 93 Chapter 5, Library sharing with the ACSLS Manager on page 127 IBM Tivoli Storage Manager Administration Guide for your platform

Chapter 7. LAN-free backup to tape

173

7.2 Setting up a policy domain for LAN-free clients


You create a new policy domain with a default management class that points to the SAN-attached storage device to be used for this LAN-free configuration. You set this management class as the default to allow clients that are registered to it to use it automatically. This section describes the setup on the Tivoli Storage Manager server from the Administration Center and using the command line interface.

7.2.1 Setting up a policy domain from the Administration Center


From the Administration Center: 1. From the Work Items list to the left, select Policy Domains and Client Nodes. The Policy Domains screen appears, as shown in Figure 7-2.

Figure 7-2 The Policy Domains screen

2. Select the server name under which you want to create the new policy domain. We are using server AZOV. The server1_Policy Domains screen appears, as shown in Figure 7-3, where server1 is the name of your server. Click Select Action, select Create a Policy Domain, and click Go.

Figure 7-3 The current policy domains show up

3. The General input screen appears, as shown in Figure 7-4 on page 175. Enter a meaningful name for this LAN-free policy domain and the appropriate retention information. Click Next.

174

Get More Out of Your SAN with IBM Tivoli Storage Manager

Figure 7-4 The Create Policy Domain General screen

4. The Storage Pools input screen appears, as shown in Figure 7-5. Select an appropriate storage pool that is associated with your SAN-attached device(s). If you have not configured storage pools on the Tivoli Storage Manager server for tape device, refer to the library sharing chapters (Chapter 3, SCSI tape library sharing on page 43, Chapter 4, IBM 3494 tape library sharing on page 93, and Chapter 5, Library sharing with the ACSLS Manager on page 127) for details on how to do it. Click Next.

Figure 7-5 Create Policy Domain Storage Pools screen

Chapter 7. LAN-free backup to tape

175

5. The Assign Client Nodes Now? screen appears, as shown in Figure 7-6. Click No, if you have not yet registered the client node for LAN-free backup, Otherwise, click Yes. Click Next. If you select yes, skip to step 8 on page 177, otherwise continue with the next step.

Figure 7-6 Create Policy Domain Assign Client Node Now? screen

6. The Summary screen appears, as shown in Figure 7-7. Verify the information and click Finish.

Figure 7-7 Create Policy Domain, Summary screen

176

Get More Out of Your SAN with IBM Tivoli Storage Manager

7. Your new policy domain should now be defined and appears in the list of domains, as shown in Figure 7-8.

Figure 7-8 List of policy domains

8. If you choose to assign a client to the policy domain in Figure 7-6 on page 176, the Assign Client Nodes screen appears. Select the option to view all client nodes and click Next.

Figure 7-9 Create Policy Domain Assign Client Node View Clients screen

Chapter 7. LAN-free backup to tape

177

9. All the client nodes are displayed, as shown in Figure 7-10. Check the client node(s) to be assigned and click Next.

Figure 7-10 Create Policy Domain, Assign Client Nodes, Select a client node to assign

10.The Summary screen appears, as shown in Figure 7-11. Verify that the information is correct and click Finish.

Figure 7-11 Create Policy Domain Summary after selecting a client to assign

178

Get More Out of Your SAN with IBM Tivoli Storage Manager

7.2.2 Setting up a policy domain using the command line interface


This section contains the commands that we used in our environment to set up the policy domain. After each command, you should check that the command completed successfully. If a command fails, check the activity log to determine the cause. To set up a policy domain using the command line interface:
DEFINE DOMAIN lan-free-policy DESCRIPTION=Policy Domain for LAN-free data transfer to tape BACKRETENTION=30 ARCHRETENTION=365 DEFINE POLICYSET lan-free-policy standard desc=Standard policy set DEFINE MGMTCLASS lan-free-policy standard standard desc=Standard management class DEFINE COPYGROUP lan-free-policy standard standard destination=3582_TAPE DEFINE COPYGROUP lan-free-policy standard standard type=archive destination=3582_TAPE ASSIGN DEFMGMTCLASS lan-free-policy standard standard VALIDATE POLICYSET lan-free-policy standard ACTIVATE POLICYSET lan-free-policy standard

Example 7-1 shows the settings for our activated LAN-free policy setup.
Example 7-1 Policy Domain created for LAN-free clients Policy Domain Name : LAN-FREE-POLICY Policy Set Name : ACTIVE Mgmt Class Name : STANDARD Copy Group Name : STANDARD Copy Group Type : Backup Versions Data Exists : 2 Versions Data Deleted : 1 Retain Extra Versions : 30 Retain Only Version : 60 Copy Mode : Modified Copy Serialization : Shared Static Copy Frequency : 0 Copy Destination : 3582_TAPE Table of Contents (TOC) Destination : Last Update by (administrator) : ADMIN Last Update Date/Time : 3/29/05 4:57:33 PM PST Managing profile :

7.3 Registering a new client node


If the client node that will use LAN-free transport is not registered to the Tivoli Storage Manager server, you need to register it. If the node is already registered, then ensure that it is updated to use the policy domain that is intended for LAN-free use, and you can skip this section. This section covers the steps from the Administration Center and using the command line interface.

7.3.1 Registering the node from the Administration Center


From the Administration Center: 1. Select Policy Domains and Client Nodes from the Work Items list on the left. The Policy Domains screen appears, listing all the Tivoli Storage Manager servers and their defined policy domains, as shown in Figure 7-12 on page 180.

Chapter 7. LAN-free backup to tape

179

Figure 7-12 Tivoli Storage Manager servers and their policy domains

2. Click the server name under which you want to create the new policy domain. We are using AZOV. The server1_Policy Domains screen appears, where server1 is the name of your server, as shown in Figure 7-13.

Figure 7-13 Policy domains for a Tivoli Storage Manager server

3. Select the policy domain to be used for LAN-free movement. This is the domain defined in 7.2, Setting up a policy domain for LAN-free clients on page 174. The Policy_name Properties screen appears, where Policy_name is the name of the policy domain that is intended for LAN-free use. In our case, this name would be LAN-FREE-POLICY. 4. Click Client Nodes. The Select Action menu appears. 5. Click Select Action, select Create a Client Node, and click Go. The Create Client Node General screen appears. 6. Enter the new client node name. We recommend using the client host name for the client node name. The remaining options on this screen are not required at this time and can be updated later. Click Next. The Security screen appears. 7. Enter a password and verify it. The remaining options on this screen are optional. Click Next. The Summary screen appears and states that the node has been defined. In our case, we have registered the node SENEGAL in the LAN-FREE-POLICY, as shown in Figure 7-14 on page 181.

180

Get More Out of Your SAN with IBM Tivoli Storage Manager

Figure 7-14 Newly defined node.

7.3.2 Registering the node using the command line interface


To register the client node using the command line interface, use these commands:
REGISTER NODE senegal mypassword CONTACT=Joe Smith DOMAIN=LAN-FREE-POLICY FORCEPWRESET=NO

In this command, mypassword represents an actual password that is used. If the node is already registered, then ensure that it is updated to use the policy domain that is intended for LAN-free use. For example:
UPDATE NODE senegalDOMAIN=LAN-FREE-POLICY

Check the results by querying the new node:


Q NODE SENEGAL

Your output should be similar to Figure 7-2, which shows that the LAN-FREE-POLICY is selected.
Example 7-2 Query node output Node Name : SENEGAL Platform : WinNT Policy Domain Name : LAN-FREE-POLICY Days Since Last Access : 3 Days Since Password Set : 16 Locked? : No

Chapter 7. LAN-free backup to tape

181

7.4 Enabling LAN-free data movement


This section describes the necessary steps on the server to enable LAN-free data movement. It includes instructions to enable LAN-free data movement from the Administration Center as well as from the command line interface

7.4.1 Setting LAN-free from the Administration Center


Using the Administration Center, you can set up the server communication options and enable LAN-free data movement.

Setting up server communication options from the Administration Center


To prepare the Tivoli Storage Manager server to communicate with Storage Agents and other servers, first set the necessary Tivoli Storage Manager server settings on the destination Tivoli Storage Manager server. These settings include a server name and password that will be used by Storage Agents and other servers. From the Administration Center: 1. Select Enterprise Management on the Work Items list on the left. Select the Tivoli Storage Manager server that will act as the destination for the Storage Agent or other servers. From the Select Action menu, choose Server-to-Server Communication Settings, as shown in Figure 7-15.

Figure 7-15 Start the Server-to-Server communication settings

2. The Server-to-Server Settings input screen appears, as shown in Figure 7-16. Enter a name for the Tivoli Storage Manager server (if not already set), password, and TCP/IP information. Click OK to finish.

Figure 7-16 Server-to-Server Settings input screen

182

Get More Out of Your SAN with IBM Tivoli Storage Manager

Enabling LAN-free data movement from the Administration Center


When you enable LAN-free data movement, you: Restrict or allow LAN-free data transfer for a client node. Select or create a Storage Agent for LAN-free use. Select or create a storage pool for LAN-free use. Defines paths to SAN-attached devices for LAN-free use. To enable LAN-free data movement: 1. From the Client Nodes screen on the Tivoli Storage Manager server, select the client that you want to configure for LAN-free (SENEGAL, in our case). Select Enable LAN-free Data Movement from the task menu, as shown in Figure 7-17.

Figure 7-17 Select node and Enable LAN-free Data Movement

2. The Welcome screen, as shown in Figure 7-18, gives an overview of the process. Click Next.

Figure 7-18 LAN-Free client configuration

Chapter 7. LAN-free backup to tape

183

3. The Verify Data Transfer Settings screen appears, as shown in Figure 7-19. Select whether you want the client to read and write over the SAN or over the SAN and LAN. For this example, we select SAN and LAN for both read and write. Click Next.

Figure 7-19 Verify Data Transfer Settings screen

4. The Create or Select a Storage Agent screen appears, as shown in Figure 7-20. Select Create a Storage Agent. If you had previously defined a Storage Agent for this node to use, then you should select Use an existing Storage Agent and select the appropriate Storage Agent from the Select a Storage Agent list. Click Next.

Figure 7-20 Create or Select Storage Agent

5. The Create a Storage Agent screen appears, as shown in Figure 7-21 on page 185. Enter a name for your Storage Agent (we call it SENEGAL_STA), specify a password, enter the TCP/IP address of the Storage Agent system (which is 9.1.39.166), and the port which will be used for Server communication. Note the default on this screen is to use port 1500, which is the same as for regular Backup-Archive Client operations. We will use a different port number, 1502. These parameters will be used later when configuring the Storage Agent on the actual client machine, as described in 7.5, Configuring the Storage Agent on page 193. Click Next.

184

Get More Out of Your SAN with IBM Tivoli Storage Manager

Figure 7-21 Create Storage Agent screen

6. The Select a Storage Pool screen appears, as shown in Figure 7-22. Select the desired storage pool and operation. For this example, select the storage pool that is defined on the 3582 library, which matches the storage pool that we assigned in the policy domain. Click Next.

Figure 7-22 Select Storage Pool screen

7. The Create Drive Paths for your_library screen appears, as shown in Figure 7-23 on page 186. This displays the tape drives in the library. Select the first drive. Select Modify Drive Path and click Go.

Chapter 7. LAN-free backup to tape

185

Figure 7-23 Create Drive Paths screen

8. The Modify the Path for your1stdrive screen appears, as shown in Figure 7-24 on page 187. Enter the device name for the tape drive as it appears on the Storage Agent machine. Click OK. You should know the device names from the Storage Agents perspective from the information that was gathered in 6.5.1, Obtaining the device name(s) on page 166. In this instance, for the Windows Storage Agent, we listed the devices visible in Example 6-2 on page 168. This output shows the serial numbers. Therefore, you can match up the correct serial number to device name. Note that the autodetect option is not available. Note: We strongly recommend that you enable the Tivoli Storage Manager V5.3 SAN Discovery option within the server and Storage Agent options files to allow Tivoli Storage Manager to assist with device recovery. When SAN Discovery is performed on a Windows tape drive, the Windows device name (that is, \.\tape0) is used. For further details about SAN Discovery, see to Chapter 9, Tivoli Storage Manager SAN Discovery on page 253. To set up paths for additional tape drives, click Next Drive and enter appropriate device names for the remaining drives. When the paths for all tape drives are modified, click Next.

186

Get More Out of Your SAN with IBM Tivoli Storage Manager

Figure 7-24 Modify Drive Path screen

9. The Create Drive Path screen appears, as shown in Figure 7-25. This is the same display as in Figure 7-23 on page 186, but now the device names are shown beside each drive. Click Next.

Figure 7-25 Create Drive Paths screen showing assigned device names

10.The Configure Another Storage Pool? screen appears, as shown in Figure 7-26 on page 188. Select No and click Next.

Chapter 7. LAN-free backup to tape

187

Figure 7-26 Configure Another Storage Pool? screen

11.The Summary screen appears, as shown in Figure 7-27. Click Next to complete the enable LAN-free data movement wizard.

Figure 7-27 LAN-free setup complete

188

Get More Out of Your SAN with IBM Tivoli Storage Manager

7.4.2 Setting up LAN-free data movement using the command line interface
This section describes how to set up LAN-free data movement using the Tivoli Storage Manager command line interface. (Refer to the sections of the same name in 7.4.1, Setting LAN-free from the Administration Center on page 182 for information to use when issuing the commands.)

Setting up server communication options using the command line interface


To enable the Tivoli Storage Manager server to communicate with Storage Agents and other servers, you must set its name, password, and TCP/IP Information. For example,
SET SET SET SET SERVERNAME azov_1 SERVERPASSWORD myserverpw SERVERHLADDRESS 9.1.39.168 SERVERLLADDRESS 1500

After completing these commands, issue the QUERY STATUS command. Verify that the server information is correct and that the Server Password Set value is Yes as shown in Example 7-3.
Example 7-3 QUERY STATUS output showing server communication definitions tsm: AZOV_1>query status Storage Management Server for AIX-RS/6000 - Version 5, Release 3, Level 0.0 Server Name: Server host name or IP address: Server TCP/IP port number: Server URL: Crossdefine: Server Password Set: AZOV_1 9.1.39.89 1500 On Yes

Enabling LAN-free data movement using the command line interface


Using the command line interface, you can: 1. Control whether both backups and restores use the LAN-free path by using the DATAWRITEPATH and DATAREADPATH options. In this example, we use the UPDATE NODE command to have the client node SENEGAL execute both backups and restores over the SAN.
UPDATE NODE SENEGAL DATAWRITEPATH=ANY DATAREADPATH=ANY

2. Use the DEFINE SERVER command to define the Storage Agent SENEGAL_STA:
DEFINE SERVER senegal_sta SERVERPASSWORD=mystapassword HLADDRESS=9.139.166 LLADDRESS=1502

Use the QUERY SERVER command to see the newly created Storage Agent server, as shown in Example 7-4 on page 190.

Chapter 7. LAN-free backup to tape

189

Example 7-4 Query server senegal_sta AZOV_1> q server senegal_sta Server Name : SENEGAL_STA Comm. Method : TCPIP High-level Address : 9.1.39.166 Low-level Address : 1502 Days Since Last Access : <1 Server Password Set : Yes Virtual Volume Password Set : No Allow Replacement : No

3. Use the DEFINE PATH command to create a path for the Storage Agent SENEGAL_STA to access the tape devices mt2.0.0.2 and mt3.0.0.2. These are the special device names for the tape drive as they appear on the Storage Agent system.
DEFINE PATH senegal_sta DRIVE1 SRCTYPE=SERVER DESTTYPE=DRIVE LIBRARY=3582 DEVICE=mt2.0.0.2 DEFINE PATH senegal_sta DRIVE2 SRCTYPE=SERVER DESTTYPE=DRIVE LIBRARY=3582 DEVICE=mt3.0.0.2

4. Use the QUERY PATH command to look at the newly created path, as shown in Example 7-5.
Example 7-5 Query path senegal_sta f=d AZOV_1> q path senegal_sta f=d Source Name : SENEGAL_STA Source Type : SERVER Destination Name : DRIVE1 Destination Type : DRIVE Library : 3582 Node Name : Device : mt2.0.0.2 External Manager : LUN : Initiator : 0 Directory : On-Line : Yes Last Update by (administrator) : SERVER_CONSOLE Last Update Date/Time : 4/5/05 11:04:42 AM PDT Source Name : SENEGAL_STA Source Type : SERVER Destination Name : DRIVE2 Destination Type : DRIVE Library : 3582 Node Name : Device : mt3.0.0.2 External Manager : LUN : Initiator : 0 Directory : On-Line : Yes Last Update by (administrator) : ADMIN Last Update Date/Time : 3/30/05 4:32:59 PM PST

190

Get More Out of Your SAN with IBM Tivoli Storage Manager

Note: We strongly recommend that you enable the Tivoli Storage Manager V5.3 SAN Discovery option within the server and Storage Agent options files to allow Tivoli Storage Manager to assist with device recovery. When SAN Discovery is performed on a Windows tape drive, the Windows device name (that is, \\.\tape0) is used. For further details on SAN Discovery, see to Chapter 9, Tivoli Storage Manager SAN Discovery on page 253.

7.4.3 Configuring the client


After configuring the Tivoli Storage Manager server, you next need to configure the client. The instructions in this section assume that you have installed the Tivoli Storage Manager Backup-Archive Client and that you have configured and tested it for normal backup to the Tivoli Storage Manager server. For more detailed information about setting up the Backup-Archive Client, see the Backup-Archive Clients Installation and Users Guide for your client platform. You should have set the following options to enable a backup to the Tivoli Storage Manager server, as shown in Example 7-6. You should perform a test backup at this stage to verify the communication between the client and server. This backup goes over the LAN to the storage device.
Example 7-6 Normal Backup-Archive Client options COMMmethod TCP/IP TCPPort 1500 TCPServeraddress azov.almaden.ibm.com

LAN-free options (used between the client and the Storage Agent)
To enable the SAN path to be used, you need to set these additional options in the client options file: ENABLELANFREE The ENABLELANFREE option is always set to yes. The setting of the other options depends on whether you are using a Storage Agent and Tivoli Storage Manager client on the same system or using a separate (external) Storage Agent for the Tivoli Storage Manager client. LANFREECOMMMETHOD Set the option LANFREECOMMMETHOD to identify what communication method to use between the Backup-Archive Client and the Storage Agent. LANFREETCPPORT or LANFREESHMPORT Identify a port to use using either the LANFREETCPPORT or LANFREESHMPORT option. LANFREETCPSERVERADDRESS The option LANFREETCPSERVERADDRESS is only used with an external Storage Agent.

Storage Agent and client on same system


If the Storage Agent is on the same system as the Backup-Archive Client (as in the case of SENEGAL in Figure 7-1 on page 173), you should specify LANFREECOMMMETHOD of sharedmem. Using shared memory gives the best performance when the communication is local, as in this case. You then specify the port to use with the LANFREESHMPORT option.
Chapter 7. LAN-free backup to tape

191

This is a different port than the one for use between the Storage Agent and the Tivoli Storage Manager server. Therefore, SENEGALs option file looks similar to that shown in Example 7-7. Setting the LANFREESHMPORT to one (1) matches the default SHMPORT setting in the Storage Agents dsmsta.opt file. Therefore, you do not need to change it as discussed in 7.5, Configuring the Storage Agent on page 193.
Example 7-7 Client options file with Storage Agent on same system as client node ENABLELanfree Yes LANFREECommmethod sharedmem LANFREESHMPORT 1

Using an external Storage Agent


Alternatively, a Backup-Archive Client can use an external Storage Agent which transfers data on behalf of one or more client nodes. In this case, the Backup-Archive Client does not have the Storage Agent installed, but instead points to another or external Storage Agent. The external Storage Agent might itself be a Backup-Archive Client as well, or it might be installed on a dedicated machine whose purpose is to transfer data over the SAN on behalf of one or more clients. This setup allows clients without direct access to SAN-attached devices to perform LAN-free backups through the dedicated Storage Agent. A second benefit is that some of the overhead of transferring the data to the SAN-attached storage devices is removed from the client machines and placed on the machine that hosts the Storage Agent. Figure 7-1 on page 173 also summarizes the configuration when using a separate Storage Agent from the Backup-Archive Client. )Figure 7-28 shows just this configuration. The machine SENEGAL has the Tivoli Storage Manager client and Storage Agent software installed and configured on it. The machine KANAGA has just the Tivoli Storage Manager client software installed and configured. We set up the configuration so that KANAGA uses the Storage Agent on SENEGAL to transfer its data via the SAN to the SAN-attached storage devices.

Tivoli Storage Manager Client node: SENEGAL

Tivoli Storage Manager Server

Figure 7-28 LAN-free backup using a dedicated Storage Agent.

192

Get More Out of Your SAN with IBM Tivoli Storage Manager

To set up a client to use an external Storage Agent to transfer data over the SAN, set the LANFREETCPSERVERADDRESS in the client option file. These are the values that we used on KANAGA: It needs the normal client options including TCPSERVERADDRESS. This is 9.1.39.89, corresponding to AZOV, the actual Tivoli Storage Manager server. We set ENABLELANFREE to yes as before. The LANFREETCPSERVERADDRESS, 9.1.39.166 is SENEGAL, which is hosting the Storage Agent for KANAGA. Because the Storage Agent is external, we need to set the LANFREECOMMMETHOD to TCP/IP. When TCP/IP is used, you specify LANFREETCPPORT. This setting it 1502, which matches the port that was defined for the Storage Agent. It also matches the TCPPORTsetting for the Storage Agents options file, dsmsta.opt, which we will set later. Example 7-8 shows KANAGAs option file.
Example 7-8 Client options file when using an external Storage Agent COMMmethod TCP/IP TCPPort 1500 TCPServeraddress 9.1.39.89 ENABLELanfree Yes LANFREECommmethod TCPIP LANFREETCPSERVERADDRESS 9.1.39.166 LANFREETCPPORT 1502

7.5 Configuring the Storage Agent


If the Storage Agent software has not been installed, you need to install it before you proceed with the configuration steps discussed in this section. If your Storage Agent is on Windows, you have the option of using the Administration Center to configure it. On other platforms, however, you have to use a command line interface. This section discusses both ways to configure the Storage Agent. For the example in this section, we are configuring the Storage Agent on the host SENEGAL. Note: Information on how to install the Storage Agent and device drivers is described in Chapter 6, Planning for LAN-free on page 159. The installation was done this way to obtain the SAN-attached device names using the tsmdlst utility, which is a part of the Storage Agent software. The device names were required to define the device paths on the Tivoli Storage Manager server.

Chapter 7. LAN-free backup to tape

193

7.5.1 Configuring the Storage Agent from the Management Console


To configure the Storage Agent from the Management Console: 1. On the machine where the Storage Agent is installed, start the Tivoli Storage Manager management console by selecting Start Programs Tivoli Storage Manager Management Console. The management console appears, as shown in Figure 7-29. 2. Expand Tivoli Storage Manager to show the client node name. Expand this entry and then Tivoli Storage Manager StorageAgent1. The Tivoli Storage Manager Device Driver expand button also appears if you have installed it. The Reports and Wizards options appear under Tivoli Storage Manager StorageAgent1.

Figure 7-29 Management console showing Tivoli Storage Manager StorageAgent1 expansion

3. Start the Tivoli Storage Manager StorageAgent1 Wizard by double clicking Storage Agent Initialization, which appears on the right side of the window. Ensure that Wizards is highlighted in the left-hand panel. You can also start the wizard by right-clicking Storage Agent Initialization and selecting Action Start, as shown in Figure 7-30.

Figure 7-30 Start Storage Agent Initialization wizard

194

Get More Out of Your SAN with IBM Tivoli Storage Manager

4. The Welcome to the Storage Agent Initialization Wizard screen appears, as shown in Figure 7-31. Click Next to continue.

Figure 7-31 The Welcome to the Storage Agent Initialization Wizard screen

5. The Tivoli Storage Manager Server Account Information input screen appears, as shown in Figure 7-32. Enter the Storage Agent name, password, and TCP/IP information. This information must match the information that was used when defining the Storage Agent as a server on the Tivoli Storage Manager server. Click Next.

Figure 7-32 The Tivoli Storage Manager Server Account Information screen filled in

Chapter 7. LAN-free backup to tape

195

6. The Tivoli Storage Manager Server Communication Information input screen appears, as shown in Figure 7-33. Enter the Tivoli Storage Manager server name, password, and TCP/IP information. This information must match the entries for the Tivoli Storage Manager server that were defined in Setting up server communication options from the Administration Center on page 182. Click Next.

Figure 7-33 Tivoli Storage Manager Server Communication Information screen completed

7. The Storage Agent Account Information input screen appears, as shown in Figure 7-34. Enter the information about a suitable Windows account that will be used by the Storage Agent. Make sure to select Automatically when Windows boots. Click Next.

Figure 7-34 Storage Agent Account Information

196

Get More Out of Your SAN with IBM Tivoli Storage Manager

8. The wizard is now complete. On the final screen, Figure 7-35, click Finish.

Figure 7-35 Completing the Storage Agent Initialization Wizard

9. A message appears, as shown in Figure 7-36. This message indicates that the Storage Agent configuration was successful. Click OK.

Figure 7-36 The Storage Agent has been initialized

10.Verify that the Storage Agent service is running in the Windows Services applet, as shown in Figure 7-37.

Figure 7-37 Storage Agent service

Chapter 7. LAN-free backup to tape

197

11.At this stage, you should stop the Storage Agent and set the TCP/IP port which will be used for Storage Agent communication. This was defined as LANFREETCPPORT 1502 when configuring the client in LAN-free options (used between the client and the Storage Agent) on page 191. To set this on the Storage Agent, edit the dsmsta.opt file in the C:\Program Files\Tivoli\Tsm\storageagent directory and set the TCPPORT option to 1502 (the default is 1500).
TCPPORT 1502

12.Tivoli Storage Manager V5.3 has the SAN Discovery feature, discussed in Chapter 9, Tivoli Storage Manager SAN Discovery on page 253. This feature for the Tivoli Storage Manager server and Storage Agent allows Tivoli Storage Manager to assist in the recovery when the SAN device configuration changes. To enable SAN Discovery on the Storage Agent, edit the configuration file, dsmsta.opt, in the C:\Program Files\Tivoli\TSM\Storageagent\ on Windows directory. Set the option:
SANDISCOVERY ON

13.Restart the Storage Agent to pick up the changed options using the Services applet. 14.For troubleshooting, you can run the Storage Agent in the foreground from the operating system command prompt. To do this, make sure the Storage Agent service is not running, and enter dsmsta from the Storage Agent directory, as shown in Example 7-9.
Example 7-9 The output from running the Storage Agent in foreground C:\Program Files\Tivoli\Tsm\storageagent>dsmsta ANR0900I Processing options file C:\PROGRA 1\Tivoli\Tsm\STORAG 1\dsmsta.opt. ANR7800I DSMSERV generated at 04:26:40 on Mar 29 2005. Tivoli Storage Manager for Windows Version 5, Release 3, Level 1.0 Licensed Materials - Property of IBM (C) Copyright IBM Corporation 1990, 2004. All rights reserved. U.S. Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corporation. ANR4726I The ICC support module has been loaded. ANR8273I Shared memory driver ready for connection with clients on port 1. ANR8200I TCP/IP driver ready for connection with clients on port 1502. ANR0408I Session 1 started for server AZOV_1 (AIX-RS/6000) (Tcp/Ip) for storage agent. ANR0408I Session 2 started for server AZOV_1 (AIX-RS/6000) (Tcp/Ip) for library sharing. ANR8920I Initialization and recovery has ended for shared library 3582. ANR0409I Session 2 ended for server AZOV_1 (AIX-RS/6000). ANR0408I Session 3 started for server AZOV_1 (AIX-RS/6000) (Tcp/Ip) for event logging. ANR0408I Session 4 started for server AZOV_1 (AIX-RS/6000) (Tcp/Ip) for storage agent. ANR0993I Server initialization complete. ANR0916I TIVOLI STORAGE MANAGER distributed by Tivoli is now ready for use. TSM:SENEGAL_STA>

198

Get More Out of Your SAN with IBM Tivoli Storage Manager

Note that the Storage Agent ports being used is listening for TCP/IP sessions from external Backup-Archive Clients on port 1502 and for shared memory sessions from the local client on port 1.

7.5.2 Configuring the Storage Agent using the command line interface
If your Storage Agent is running on UNIX or Linux, you can only use the command line interface to configure the Storage Agent. You can also use the command line interface on Windows, as shown in the example in this section. First, install the Storage Agent package and check that the required SAN devices are visible. The proceed with the configuration by following these steps: 1. Change the directory to the Storage Agent folder: C:\Program Files\Tivoli\TSM\Storageagent\ on Windows usr/tivoli/tsm/StorageAgent/bin on AIX /opt/tivoli/tsm/StorageAgent/bin on other UNIX 2. Edit the Storage Agent options file (dsmsta.opt) and set the following options:
DEVCONFIG devconfig.out SANDISCOVERY ON TCPPORT 1502

Note: The SANDISCOVERY option is supported for Tivoli Storage Manager V5.3 and later. In these commands, devconfig.out points to an output file that is used by the Storage Agent to store device configuration information. The SANDISCOVERY ON option allows Tivoli Storage Manager to assist in the recovery of SAN-attached devices. Save and close the dsmsta.opt file. You have set the TCPPORT to 1502 to match our previous definitions. 3. Start a command prompt in the Storage Agent directory. Issue the following command to set up a communication between the Storage Agent and the server (from SENEGAL to AZOV in this case). The parameter settings must match the definitions on the Tivoli Storage Manager server that were created in Setting up server communication options using the command line interface on page 189.
dsmsta setstorageserver myname=senegal_sta mypassword=xxxx myhladdress=9.1.39.89 servername=azov_1 serverpassword=xxxx hladdress=9.1.39.89 lladdress=1500

This command updates the device configuration output file (devconfig.out) so that it looks similar to Example 7-10.
Example 7-10 Storage Agent device configuration file Set STANAME senegal_sta SET STAPASSWORD xxxxxxx SET STAHLADDRESS 9.1.39.166 DEFINE SERVER azov_1 server password=xxxxxx HLADDRESS=9.1.39.89 LLADDRESS=1500

The Storage Agent option file (dsmsta.opt) is updated with the following:
SERVERNAME AZOV_1

Chapter 7. LAN-free backup to tape

199

7.6 Verifying the LAN-free path


Now that you have configured the server, client, and Storage Agent systems, you can check the setup. In Tivoli Storage Manager V5.3, verification is simplified by using the new VALIDATE LANFREE server command. The output from this command shows whether a client node, as associated with a specific Storage Agent, is capable of LAN-fee data movement. The command looks at the policy information, storage pool, and path definitions that are associated with the specified client node and Storage Agent to determine if the destination is LAN-free capable. This information can be useful when troubleshooting a suspected LAN-free configuration issue. The VALIDATE LANFREE command replaces the undocumented SHOW LANFREE command in Tivoli Storage Manager V5.2. The syntax of the VALIDATE LANFREE command is:
VALidate LAnfree node_name stgagent_name

The parameters for this command are: node_name (Required), which is the name of the node to evaluate. stgagent_name (Required), which is the name of the Storage Agent to evaluate. Example 7-11 shows the output from the VALIDATE LANFREE command in our setup, run on the Tivoli Storage Manager server, AZOV for the client, and Storage Agent SENEGAL.
Example 7-11 VALIDATE LANFREE command output tsm: AZOV_1>validate lanfree senegal senegal_sta ANR0387I Evaluating node SENEGAL using storage agent SENEGAL_STA for LAN-free data movement. Node Name : SENEGAL Storage Agent : SENEGAL_STA Operation : BACKUP Mgmt Class Name : STANDARD Destination Name : 3582_TAPE LAN-Free capable? : Yes Explanation : Node Name : SENEGAL Storage Agent : SENEGAL_STA Operation : ARCHIVE Mgmt Class Name : STANDARD Destination Name : 3582_TAPE LAN-Free capable? : Yes Explanation : ANR1706I Ping for server 'SENEGAL_STA' was able to establish a connection. ANR0388I Node SENEGAL using storage agent SENEGAL_STA has 2 storage pools capable of LAN-free data movement and 0 storage pools not capable of LAN-free data movement.

The output shows that the node SENEGAL using Storage Agent SENEGAL_STA has two storage pools that are capable of LAN-free data movement. If there were other storage pools not capable of LAN-free data movement, they would be shown as LAN-Free cable? : No. Notice also the message that the server AZOV established a connection with the Storage Agent, SENEGAL_STA, using ping. This information tells us that the PING SERVER command was issued by the Tivoli Storage Manager server and was able to successfully communicate with the Storage Agent.

200

Get More Out of Your SAN with IBM Tivoli Storage Manager

If the server is not able to ping the Storage Agent successfully, the error shown in Example 7-12 appears in the VALIDATE LANFREE output.
Example 7-12 Server unable to ping the Storage Agent ANR1705W Ping for server 'SENEGAL_STA' was not able to establish a connection.

To resolve this issue, you should first verify that the Storage Agent service/daemon is running on the client system. If it is running, you could stop and restart it and make sure that it remains running. Issue the PING SERVER command from the Tivoli Storage Manager server to test the connection with the Storage Agent. For example:
PING SERVER SENEGAL_STA

If the server is unable to establish a connection with the Storage Agent, verify that the following TCP/IP port settings all match. LLADDRESS On the Tivoli Storage Manager server, check the LLADDRESS that is used for the Storage Agent server definition. Issue QUERY SERVER storage_agent_name F=D, where storage_agent_name is the actual name of your Storage Agent. The specified port is opened to communicate with the Storage Agent,. TCPPORT On the Storage Agent machine, edit the option file, dsmsta.opt to verify that the TCPPORT value. The specified port is opened to communicate with the server and client. LANFREETCPPORT On the client machine, view or edit the client options file, to verify the LANFREETCPPORT option. The specified port is opened to communicate with the storage age. LANFREETCPPORT is used only when the LANFREECOMMMETHOD is set to TCPIP. If a shared memory or named pipes is being used, then disregard this option. For our other client, KANAGA, which is using SENEGAL as its external Storage Agent, the VALIDATE LANFREE output looks similar to that shown in Example 7-13.
Example 7-13 Validate LAN-free on client using proxy Storage Agent. tsm: AZOV_1>validate lanfree kanaga senegal_sta ANR0387I Evaluating node KANAGA using storage agent SENEGAL_STA for LAN-free data movement. Node Storage Operation Mgmt Class Destination LAN-Free Explanation Name Agent Name Name capable? ----- -------- --------- ---------- ------------ --------- -------------------KANA- SENEGAL- BACKUP STANDARD 3582_TAPE Yes GA _STA KANA- SENEGAL- ARCHIVE STANDARD 3582_TAPE Yes GA _STA ANR1706I Ping for server 'SENEGAL_STA' was able to establish a connection. ANR0388I Node KANAGA using storage agent SENEGAL_STA has 2 storage pools capable of LAN-free data movement and 0 storage pools not capable of LAN-free data movement.

Chapter 7. LAN-free backup to tape

201

After you have verified that a LAN-free path is available, you can perform a client backup to test the LAN-free connection. When the backup is started, you can confirm that data is being transferred over the SAN: If using the Backup-Archive interface, the Detailed Status Report should reveal the number of LAN-free Data Bytes that has been transferred, as shown in Figure 7-38. This is different from a normal LAN backup, when this option is grayed out.

Figure 7-38 Example of Backup-Archive Client that shows bytes transferred using LAN-free

If using the Backup-Archive Client, it will show the LAN-free data bytes, as part of the backup/restore status report, as shown in Example 7-14. This line does not appear on a LAN backup.
Example 7-14 Backup-Archive Client that shows LAN-free bytes Total number Total number Total number Total number Total number Total number Total number Total number LanFree data of objects inspected: of objects backed up: of objects updated: of objects rebound: of objects deleted: of objects expired: of objects failed: of bytes transferred: bytes: 2 2 0 0 0 0 0 1.95 GB 1.95 GB

On the Tivoli Storage Manager server confirm that the data is being transferred using LAN-free data movement by looking for messages in the activity log similar to those shown in Example 7-15.
Example 7-15 Activity log messages that confirm LAN-free data movement ANR0415I Session 991 proxied by SENEGAL_STA started for node SENEGAL. ANR0408I Session 992 started for server SENEGAL_STA (Windows) (Tcp/Ip) for library sharing.

202

Get More Out of Your SAN with IBM Tivoli Storage Manager

7.7 Communicating with and monitoring the Storage Agent


It is sometimes useful to communicate with or monitor the Storage Agent to get a better understanding of what is going on (for example, when troubleshooting).

7.7.1 Querying from the Tivoli Storage Manager server


You can issue query commands for the Storage Agent machine from the Tivoli Storage Manager server. For example, you can query the tape mounts that are held by the Storage Agent senegal_sta using the QUERY MOUNT command. Use the Storage Agent name as a prefix to the command, as shown in Example 7-16.
Example 7-16 Using the server to perform queries on the Storage Agent tsm: AZOV_1>senegal_sta: query mount ANR1699I Resolved SENEGAL_STA to 1 server(s) - issuing command Q MOUNT against server(s). ANR1687I Output for command 'Q MOUNT ' issued against server SENEGAL_STA follows: ANR8329I LTO volume 032AKK is mounted R/W in drive DRIVE1 (\\.\Tape0), status: IDLE. ANR8334I 1 matches found. ANR1688I Output for command 'Q MOUNT ' issued against server SENEGAL_STA completed. ANR1694I Server SENEGAL_STA processed command 'Q MOUNT ' and completed successfully. ANR1697I Command 'Q MOUNT ' processed by 1 server(s): 1 successful, 0 with warnings, and 0 with errors.

7.7.2 Using the command line interface


You can also use the command line interface to the Storage Agent itself to issue commands or to run it in console mode for monitoring purposes. To do this, you need to install the Tivoli Storage Manager command line interface package, which is part of the Backup-Archive Client. The command line interface package can be installed on any system with TCP/IP connectivity to the Storage Agent system. You can then run dsmadmc for the Storage Agent by using the flags -tcps option (to specify the tspserveraddress of the Storage Agent) and the -tcpp option (to specify the tcpport of the Storage Agent). For example, to start a command line interface session to the Storage Agent SENEGAL_STA, use:
dsmadmc -tcps=9.1.39.166 -tcpp=1502

To submit the ID and password without being prompted, use:


dsmadmc -tcps=9.1.39.166 -tcpp=1502 -id=admin -pa=admin

To run in console mode, use:


dsmadmc -tcps=9.1.39.166 -tcpp=1502 -consolemode -id=admin -pa=admin

Alternatively, you can add a server stanza to the appropriate client configuration file using the following parameters:
SErvername senegal_sta TCPServeraddress 9.1.39.166 TCPPort 1502

You can then run the command line interface by issuing the following command:
dsmadmc -servername=senegal_sta

Chapter 7. LAN-free backup to tape

203

7.8 Configuring other Tivoli products for LAN-free


This section contains a summary of how to allow the Data Protection clients to make use of a LAN-free configuration. It uses the term Data Protection to refer to the following Tivoli Storage Manager products: Tivoli Storage Manager for Mail, including Data Protection for Lotus Domino and Data Protection for Microsoft Exchange Server. Tivoli Storage Manager for Databases, including Data Protection for Oracle, and Data Protection for Microsoft SQL Server. Tivoli Storage Manager for Application Servers, including Data Protection for WebSphere Application Servers. When configuring the Data Protection clients for LAN-free backup, we recommend that you: 1. Install and configure the Backup-Archive Client and Storage Agent. Even if you do not plan on using the Backup-Archive Client, it is still a good idea to install and configure it on the system where you will be installing the Data Protection client. By doing this, you have a simple way to validate the LAN-free connection between the client machine, the SAN-attached devices and the Tivoli Storage Manager server by performing a straight file backup and restore, before the additional complication of configuring the TDP client. This will make troubleshooting the initial connection easier. Installing and configuring the Backup-Archive Client is also recommended because it allows you to protect the rest of the client system data the data that the Data Protection clients cant backup. You will install and configure the Backup-Archive Client as described in the Backup-Archive Clients Installation and Users Guide for your client operating system platform. You will install and configure the Storage Agent as described in this chapter. This includes registering the Backup-Archive Client node to the Tivoli Storage Manager server and configuring the client options file. It is a good idea to register a node for the Data Protection client while your registering one for the Backup-Archive Client. You install and configure the Data Protection client as per the accompanying installation and users guide. 2. Locate the client options file. The major difference between configuring the Backup-Archive Client and the Data Protection clients for LAN-free are the options files to configure. Even though there are several common options that can be used by both products, each product has its own specific options file. By default the options files for each product is located in the default installation directory. For example, considering the Backup-Archive Client and Data Protection for Oracle, the options files are: Backup-Archive Client Windows C:\Program Files\Tivoli\TSM\baclient\dsm.opt AIX /usr/tivoli/tsm/client/ba/bin/dsm.sys /usr/tivoli/tsm/client/ba/bin/dsm.opt

204

Get More Out of Your SAN with IBM Tivoli Storage Manager

Data Protection for Oracle clients option file: Windows C:\Program Files\Tivoli\TSM\AgentOBA\dsm.opt AIX /usr/tivoli/tsm/client/oracle/bin/tdpo.opt /usr/tivoli/tsm/client/oracle/bin/dsm.opt /usr/tivoli/tsm/client/api/bin/dsm.sys (symbolic linked /usr/tivoli/tsm/client/ba/bin/dsm.sys) Note: On new installations, sample option files are provided with an .smp extension (for example, tdpo.opt.smp or dsm.sys.smp). You should copy these sample files to the appropriate name. 3. Configure the Data Protection client options file for LAN-free. Once the Backup-Archive Client and Storage Agents are configured and a successful LAN-free backup was performed, you can configure the Data Protection client options file to enable LAN-free data movement. For example, if we installed TDP for Oracle on the machine senegal, we could define an additional node name, senegal_oracle for use by this application. The dsm.opt file in C:\Program Files\Tivoli\TSM\AgentOBA\ would include the options shown in Example 7-17
Example 7-17 Sample option file for TDP for Oracle on Windows COMMMethod TCPip TCPServeraddress 9.1.39.89 NODename senegal_oracle COMMmethod TCP/IP TCPPort 1500 ENABLELanfree Yes LANFREECommmethod TCPIP LANFREETCPPORT 1502

In the same environment on AIX, the file dsm.sys is in /usr/tivoli/tsm/client/api/bin/ and have the entries in Example 7-17
Example 7-18 Sample option file for TDP for Oracle on AIX *Server Stanza for Data Protection for Oracle COMMmethod TCP/IP TCPPort 1500 TCPServeraddress 9.1.39.89 ** AZOV TSM server ** NODename Kanaga_oracle ENABLELanfree Yes LANFREECommmethod TCPIP LANFREETCPSERVERADDRESS 9.1.39.166 ** Storage agent on SENEGAL ** LANFREETCPPORT 1502

4. Verify LAN-free backup. Review the steps in 7.6, Verifying the LAN-free path on page 200 to ensure that the Data Protection client backup is being transferred over the SAN.

Chapter 7. LAN-free backup to tape

205

206

Get More Out of Your SAN with IBM Tivoli Storage Manager

Chapter 8.

LAN-free backup to disk


This chapter discusses the configuration that is necessary to set up Tivoli Storage Manager LAN-free data movement to disk. It covers the following topics: Introduction to LAN-free backup to disk Preconfiguration: Setting up SANergy Overview of the lab environment Summary of LAN-free disk configuration Setting up the SAN-attached disk device on the Tivoli Storage Manager server Creating a policy domain for LAN-free clients Registering client node(s) Setting up server-to-server communication Installing and configuring the client Configuring the Storage Agent Enabling LAN-free data movement Verifying the LAN-free path

Copyright IBM Corp. 2005. All rights reserved.

207

8.1 Introduction to LAN-free backup to disk


LAN-free backup to disk works similarly to LAN-free backup to tape, in that data is transferred from a Storage Agent to a SAN-attached device. However, the data will be sent to SAN-attached disk. Internally, Tivoli Storage Manager configures the disk as a sequential device so that it emulates a tape library using the FILE device class. Tivoli SANergy is required to manage shared access to the SAN disk device. A SANergy Metadata Controller (MDC) is required, and each Storage Agent which backs up to the SAN disk needs to be configured as a SANergy host. Table 8-1 shows the currently tested combinations for these components for LAN-free backup to disk. Other combinations are possible.
Table 8-1 Tested combinations for LAN-free to SANergy managed disk storage pool Tivoli Storage Manager server platform Windows NT 2000 Windows NT 2000 Windows NT 2000 Sun Sun Sun Windows NT 2000 Windows NT 2000 Windows NT 2000 AIX SANergy MDC platform Tivoli Storage Manager client platform Windows Sun AIX Windows Sun AIX Windows Sun AIX Windows Tivoli Storage Manager server and SANergy MDC on same machine Yes Yes Yes Yes Yes Yes No No No No

Windows NT 2000 Windows NT 2000 Windows NT 2000 Sun Sun Sun Sun Sun Sun Sun

8.2 Preconfiguration: Setting up SANergy


To plan and install SANergy in your environment, consult the following documentation: A Practical Guide to Tivoli SANergy, SG24-6146 IBM Tivoli SANergy Administrators Guide, Version 3 Release 2, GC32-0740 You can download the IBM Tivoli SANergy Administrators Guide from:
http://publib.boulder.ibm.com/tividd/td/link/tdprodlist.html#S

You should ensure that your environment meets all hardware and software system requirements before you install the software. Obtain the SANergy software (Tivoli SANergy V3.2.4 is included with the Tivoli Storage Manager Storage Agent package) and install it by following the instructions on the screen and in the mentioned documentation. You need to install an MDC, which can be the Tivoli Storage Manager server itself or a separate system. This system must have access to the SAN-attached disks. You then install each Storage Agent that will backup to the

208

Get More Out of Your SAN with IBM Tivoli Storage Manager

SAN-attached disks as a SANergy host. The SANergy hosts must also have visibility to the SAN-attached disks.

8.3 Overview of the lab environment


Figure 8-1, shows how we used SANergy in our lab environment. The Windows machine TONGA was set up as the Tivoli Storage Manager server as well as the SANergy MDC. The Windows machine SENEGAL was set up with the Tivoli Storage Manager Backup-Archive Client and the Storage Agent as well as the SANergy Host code.

SANergy Host
Storage Agent: Senegal_sta Backup-Archive Client: SENEGAL

SANergy MDC
Tivoli Storage Manager Server

Library Control Client Metadata

LAN
SENEGAL 9.1.39.166
Client Data Library Control

TONGA 9.1.39.168

Define path senegal_sta sandisk1.... directory=\\9.1.39.168\e$\mydir1, \\9.1.39.168\f$\mydir2

SAN

SANDISK1
e:\mydir1 Owned by MDC Tonga f:\mydir2 File Library

Figure 8-1 The LAN-free to disk setup in our lab

After installing and configuring SANergy on TONGA, we allocated two SAN-attached disks to TONGA on the attached SAN disk system. These disks were labelled sandisk1 and sandisk2 and appear as local drives on TONGA (E and F, respectively). We created directories on these disks that will be used for sharing and configuring with Tivoli Storage Manager. These directories are E:\mydir1 and F:\mydir2. Note: At the time of writing, there is an issue with sharing file volumes that are located in the root directory of a partition. When defining a shared file device class, you should not use the root directory when specifying a directory location. Refer to the latest copy of the Storage Agents readme file for any updates on this matter. We set TONGA, the MDC, to own these two disks within the SANergy configuration.The drives were shared with standard Windows sharing. We created a directory on the root level of each drive to be used by Tivoli Storage Manager.

Chapter 8. LAN-free backup to disk

209

Figure 8-2 shows the SAN-attached disks with their drive letters assigned on TONGA, the MDC. Because TONGA is the MDC, the disks show as local drives.

Figure 8-2 SAN-attached disks to be accessed for LAN-free backup

Figure 8-3 shows that the drives have been shared using Windows.

Figure 8-3 MDC shares the drives

210

Get More Out of Your SAN with IBM Tivoli Storage Manager

Figure 8-4 shows the managed bus in SANergy on TONGA, the MDC, as well as the disks that are available on that bus.

Figure 8-4 SANergy managed buses

Figure 8-5 shows the devices that are assigned in SANergy on the MDC to be owned by TONGA.

Figure 8-5 SANergy device assignment

Chapter 8. LAN-free backup to disk

211

Figure 8-6 shows that the SAN volumes have been assigned to TONGA as the MDC owner.

Figure 8-6 Volumes assigned to TONGA

We installed the SANergy host code on the Tivoli Storage Manager client, SENEGAL, making sure it could see the SAN-attached disks that were shared by TONGA. We then used Windows drive mapping to access the disks as network drives. We selected Reconnect at logon when we created the Windows share. The disks were accessed as shares via SANergy on SENEGAL, as shown in Figure 8-7.

Figure 8-7 SANergy shared disks accessed on SENEGAL

212

Get More Out of Your SAN with IBM Tivoli Storage Manager

8.4 Summary of LAN-free disk configuration


The remaining sections of this chapter discuss the following: Using the configured devices to define a Tivoli Storage Manager shared file device class called SANDISK. By specifying the share option when creating the file device class, Tivoli Storage Manager creates automatically a file library named SANDISK and creates a file drive called SANDISK1. The number of drives that are defined is determined by the mount limit in the device class definition. Our example uses a mount limit setting of one. So, only one drive is created. Thus, only one backup/restore operation can take place at a time to this device class. If you specify a higher mount limit, then multiple concurrent options are possible. Creating a storage pool that uses this device class and defining a policy domain and management class to use this storage pool by default. Registering the client node SENEGAL and defining a server for the Storage Agent that is called SENEGAL_STA. Installing the Tivoli Storage Manager Backup-Archive Client and Storage Agent on the host SENEGAL. Defining a path to the SAN-attached disk directories for the Storage Agent SENEGAL_STA. Validating the configuration and performing a backup.

8.5 Setting up the SAN-attached disk device on the Tivoli Storage Manager server
The SAN-attached disk has been made available by the SANergy MDC (TONGA) to the host SENEGAL, which uses it to backup LAN-free to disk. Now, you can configure Tivoli Storage Manager to allow LAN-free to disk data movement. This section explains how to configure a device class for the SAN disk device to be used by the server and Storage Agent. It provides the steps that are required from the Administration Center as well as from the command line interface. You execute these steps on the Tivoli Storage Manager server TONGA.

8.5.1 Setting up the SAN disk device from the Administration Center
To set up the SAN disk device from the Administration Center: 1. From the Work Item menu, select Storage Devices. The Servers screen appears, as shown in Figure 8-8 on page 214. Select the server on which you will work (in this case, TONGA), and from the Select Action list, select View Device Classes. Click Go.

Chapter 8. LAN-free backup to disk

213

Figure 8-8 Servers screen

2. The current device classes for TONGA displays, as shown in Figure 8-9. Select Create a Device Class and click Go.

Figure 8-9 Device Classes screen

3. The Select Device Type screen appears, as shown in Figure 8-10. Select FILE (uses sequential-access volumes on disk). Click Next.

Figure 8-10 Select Device Type screen

214

Get More Out of Your SAN with IBM Tivoli Storage Manager

4. On the General Information screen (Figure 8-11), enter a name for the file device class (we chose SANDISK). Enter the directory location(s) where the client node(s) store the client data. (These are the shared directory names of the SAN disks that were created in 8.3, Overview of the lab environment on page 209.) You can enter multiple directories and separate them with a comma. Make sure to select the option Allow other servers and Storage Agents to share access to volumes in the specified directories. This option is equivalent to the shared library option for tape libraries, and when checked, the server creates a library file and a drives file automatically for use by the server and Storage Agent. Specify the mount limit, which indicates how many file drives are created. Specify the maximum file size, which represents the size of each file which is created. Click Next. Note: At the time of writing, there is an issue with sharing file volumes that are located in the root directory of a disk partition. When defining a shared file device class, you should not use the root directory when specifying a directory location. Refer to the latest copy of the Storage Agents readme file for any updates on this matter.

Figure 8-11 Shared file device class definitions

5. The Summary screen appears (Figure 8-12 on page 216). It contains information that the device class has been created. Click Finish.

Chapter 8. LAN-free backup to disk

215

Figure 8-12 Create Device Summary screen

6. The newly created file device class and its properties now appear in the Device Classes screen, as shown in Figure 8-13. Note the created file library, also called SANDISK.

Figure 8-13 Newly created device class SANDISK, with file library called SANDISK.

When defining a shared file device class, the server creates a file library and file drive definitions for those devices automatically. The file library and file drives are named after the file device class. Note: In Tivoli Storage Manager V5.2, path definitions could be made for the file library and drive but are never actually used by the server. In V5.3, path definitions are not allowed or necessary for file library and drive setups. 7. Scroll down to the Libraries for All Servers section, select Refresh Table and click Go. The newly created file library is now listed among the other defined libraries, as shown in Figure 8-14 on page 217.

216

Get More Out of Your SAN with IBM Tivoli Storage Manager

Figure 8-14 New library is listed

8. Use the SAN disk device class that you defined to create a storage pool that is used by the client node(s) to store and manage LAN-free to disk data. Select Storage Devices from the Work Items menu. Select the Tivoli Storage Manager server (TONGA in this example). Select View Storage Pools and click Go, as shown in Figure 8-15.

Figure 8-15 Servers screen

9. On the Storage Pools screen (Figure 8-16), select Create a Storage Pool.

Figure 8-16 Create Storage Pools screen

10.The General Storage Pool Settings screen appears, as shown in Figure 8-17 on page 218. Enter a name for the storage pool and optional description. Select Primary, sequential access, for the type of storage pool to create. Click Next.

Chapter 8. LAN-free backup to disk

217

Figure 8-17 General Storage Pool Settings screen

11.The Select a Device Class screen appears (Figure 8-18). For the Device class name, select the file device class just created, SANDISK in our case. Specify the maximum number of scratch volumes to use. If this value is set greater than zero, the server creates and uses that number of file volumes automatically. The value entered for the Maximum File Size when defining the file device class, determines the size of each scratch file volume. Ensure that the value entered for maximum scratch volumes, multiplied by the maximum file size, does not exceed the total size of the SAN-attached disk. Click Next.

Figure 8-18 Select a Device Class screen

12.Verify the information included in the Summary screen (Figure 8-19 on page 219) and click Finish.

218

Get More Out of Your SAN with IBM Tivoli Storage Manager

Figure 8-19 Create Storage Pool Summary screen

13.The newly created storage pool now appears in the list, as shown in Figure 8-20.

Figure 8-20 New storage pool

8.5.2 Setting up the SAN disk device using the command line interface
To set up the SAN-attached disk device from the Tivoli Storage Manager command line interface on the server: 1. Create the shared device class, which creates a file library and file drive(s) automatically. Use the DEFINE DEVCLASS command as follows:
DEFINE DEVCLASS sandisk DEVTYPE=FILE DIR=e\mydir1,f:\mydir2 MOUNTLIMIT=1 MAXCAP=500M SHARED=YES

The SHARED=YES setting means that the server creates a file library and file drives automatically for the disk device for use by the server and Storage Agent. The MOUNTLIMIT parameter indicates how many file drives are created. The MAXCAP parameter represents the size of each file that are created. The file library is named the same as the name specified for the file device class. The file drive names consist of the device class names with a number immediately after.

Chapter 8. LAN-free backup to disk

219

The DIRECTORY parameter corresponds to the SANergy shared directories, as configured in 8.3, Overview of the lab environment on page 209. Separate multiple directories with a comma. After creating the device class, check its details using the QUERY DEVCLASS command and specify the device class name that you created, as in the following command:
Query DEVclass sandisk F=D

Example 8-1 shows the output of the command.


Example 8-1 QUERY DEVCLASS sandisk detailed output Device Class Name: SANDISK Device Access Strategy: Sequential Storage Pool Count: 1 Device Type: FILE Format: DRIVE Est/Max Capacity (MB): 500 Mount Limit: 1 Mount Wait (min): Mount Retention (min): Label Prefix: Drive Letter: Library: SANDISK Directory: E:\MYDIR1,F:\MYDIR2 Server Name: Retry Period: Retry Interval: Twosided: Shared: Yes High-level Address: Minimum Capacity: WORM: No Scaled Capacity: Last Update by (administrator): ADMIN Last Update Date/Time: 4/1/05 4:01:53 PM PST

2. Look at the devices that were created automatically. To see the library, use the QUERY LIBRARY command, for example:
q library sandisk

Replace sandisk with the name of your device class, because this is the name which is assigned by Tivoli Storage Manager for the library. Example 8-2 shows the output.
Example 8-2 The output from QUERY LIBRARY sandisk Library Name: SANDISK Library Type: FILE ACS Id: Private Category: Scratch Category: WORM Scratch Category: External Manager: RSM Media Type: Shared: Yes LanFree: ObeyMountRetention:

220

Get More Out of Your SAN with IBM Tivoli Storage Manager

3. Query the drive(s) that were created automatically. The drives appear as in Example 8-3, SANDISK1 in our case. Remember the number of drives in the file library corresponds to the mount limit that was specified in the device class definition.
Example 8-3 Output from QUERY DRIVE sandisk sandisk1 tsm: TONGA_1>q drive Library Name -----------3582LIB 3582LIB SANDISK Drive Name -----------DRIVE1 DRIVE2 SANDISK1 Device Type ----------LTO LTO FILE On-Line ------------------Yes Yes Yes

4. Create a storage pool using the SAN disk device class to be used by the client node(s) to store and manage LAN-free to disk data. As part of the DEFINE STGP command, specify the maximum number of scratch volumes to use. If you specify a value greater than zero, the server creates and uses that number of file volumes automatically. The value that you chose for the Maximum File Size, in the device class definition, determines the size of each scratch file volume. The MAXSCRATCH parameter of the storage pool, multiplied by the maximum file size in the device class, must not exceed the capacity of the SAN-attached disk.
DEFINE STGPOOL SANDISKPOOL SANDISK pooltype=primary description=LANfree to disk use maxscratch=3

To show the new pool, use the QUERY STGPOOL command.


Q STG SANDISKPOOL F=D

The output is shown in Example 8-4.


Example 8-4 Q STG SANDISK F=D output Storage Pool Name: SANDISKPOOL Device Class Name: SANDISK Estimated Capacity: 0 M Pct Util: 0 Pct Migr: 0 High Mig Pct: 90 Low Mig Pct: 70 Next Storage Pool:

Chapter 8. LAN-free backup to disk

221

8.6 Creating a policy domain for LAN-free clients


Next, you create a new policy domain with a default management class that points to the SAN-attached disk to be used for this LAN-free configuration. You set this management class as the default to allow clients that are registered to it to use it automatically. This section provides instructions for creating a policy domain for LAN-free clients from the Administration Center and using the command line interface.

8.6.1 Creating a policy domain from the Administration Center


To create a policy domain from the Administration Center: 1. From the Work Items list, select Policy Domains and Client Nodes. The Policy Domains screen appears, as shown in Figure 8-21. Select the server which will have the new policy domain (TONGA_1 in our case).

Figure 8-21 Policy Domains screen

2. The current list of policy domains displays (Figure 8-22). Select Create a Policy Domain and click Go.

Figure 8-22 List of policy domains

3. The General screen appears, as shown in Figure 8-23 on page 223. Enter a name for the policy domain and specify the Backup and Archive retention as desired. Click Next.

222

Get More Out of Your SAN with IBM Tivoli Storage Manager

Figure 8-23 Policy Domain General screen

4. On each of the two Select a Storage Pool lists shown in Figure 8-24, select the storage pool or pools that were created to use the shared file device class. We created only one storage pool. Therefore, select SANDISKPOOL. However, if you have different storage pools, you can use them to separate backup and archive data. Click Next.

Figure 8-24 Specify storage pool for the policy domain

5. The Assign Clients Now? screen appears (Figure 8-25 on page 224). Click No, if you have not yet registered the client node for LAN-free backup, then click Next and continue with the next step. Otherwise, click Yes, then, click Next, and skip to step 7 on page 224.

Chapter 8. LAN-free backup to disk

223

Figure 8-25 Create Policy Domain Assign Client Nodes Now? screen

6. The Summary screen appears (Figure 8-26). Verify the information and click Finish. Skip to step on page 226.

Figure 8-26 Create Policy Domain Summary screen

7. If you did choose to assign a client to the policy domain in Figure 8-25, then the Assign Client Nodes screen appears, as shown in Figure 8-27 on page 225. Select the option to view all client nodes, and click Next.

224

Get More Out of Your SAN with IBM Tivoli Storage Manager

Figure 8-27 Create Policy Domain Assign Client nodes screen

8. All the client nodes are displayed, as shown in Figure 8-28. Check the client node(s) to be assigned, and click Next.

Figure 8-28 Select client nodes to assign to the policy domain

9. The Summary screen appears, Figure 8-29 on page 226. Verify that the information is correct and click Finish.

Chapter 8. LAN-free backup to disk

225

Figure 8-29 The Create Policy Domain Summary screen

The newly created policy domain shows up in the list, as shown in Figure 8-30.

Figure 8-30 The newly created policy domain

8.6.2 Creating a policy domain using the command line interface


To define the policy domain and management class structure to allow LAN-free data movement, using the command line interface, enter the following commands:
DEFINE DOMAIN lanfree_disk DESCRIPTION="Policy Domain for Client nodes that use LANfree to disk" BACKRETENTION=30 ARCHRETENTION=365 DEFINE POLICYSET lanfree_disk standard desc="Standard policy set" DEFINE MGMTCLASS lanfree_disk standard standard desc="Standard management class" DEFINE COPYGROUP lanfree_disk standard standard destination=SANDISKPOOL DEFINE COPYGROUP lanfree_disk standard standard type=archive destination=SANDISKPOOL ASSIGN DEFMGMTCLASS lanfree_disk standard standard VALIDATE POLICYSET lanfree_disk standard ACTIVATE POLICYSET lanfree_disk standard

Query the copy group to see the active policy that was created:
Q COPYGROUP

226

Get More Out of Your SAN with IBM Tivoli Storage Manager

Example 8-5 shows the output from this command.


Example 8-5 Extract from the query copygroup output, showing the new policy domain info Policy Domain Name: LANFREE_DISK Policy Set Name: ACTIVE Mgmt Class Name: STANDARD Copy Group Name: STANDARD Versions Data Exists: 2 Versions Data Deleted: 1 Retain Extra Versions: 30 Retain Only Version: 60

8.7 Registering client node(s)


If the client node that will use LAN-free transport is not already registered to the Tivoli Storage Manager server, register it now. If the node is already registered, then ensure that it is updated to use the policy domain that is intended for LAN-free use, and you can skip this section. This section explains how to register client nodes from the Administration Center and using the command line interface.

8.7.1 Registering the node from the Administration Center


From the Administration Center: 1. From the Policy Domains screen, as shown in Figure 8-30 on page 226, click the newly created policy domain, LANFREE_DISK in our example. The policy domain Properties screen appears. Click Client Nodes and select Create a Client Node, as shown in Figure 8-31. Click Go.

Figure 8-31 Policy domain properties screen, after selecting Create a Client Node

2. The Create Client Node General screen appears, as shown in Figure 8-32 on page 228. Give the client node a name and any other information. Click Next.

Chapter 8. LAN-free backup to disk

227

Figure 8-32 Create Client Node General screen

3. The Create Client Node Security screen appears, as shown in Figure 8-33. Enter a password and expiration details, and click Next.

Figure 8-33 Create Client Node Security screen

4. The Summary screen (Figure 8-34 on page 229) confirms that the node has been created. Click Finish.

228

Get More Out of Your SAN with IBM Tivoli Storage Manager

Figure 8-34 Create Client Summary screen

5. The newly created node now appears within the policy domain, as shown in Figure 8-35.

Figure 8-35 The newly created node shows up under the policy domain

8.7.2 Registering a node using the command line interface


You can register a client node using the command line interface as follows: 1. Enter the following command:
REGISTER NODE senegal ?***? PASSEXP=0 CONTACT="Joe Smith - TSM Administrator" DOMAIN=LANFREE_DISK FORCEPWRESET=NO URL=http://myclient.mycompany.com:1581

2. If the node is already registered, then ensure that it is updated to use the policy domain that is intended for LAN-free use using the following command:
UPDATE NODE senegalDOMAIN=LANFREE_DISK

3. Check the results by querying the new node:


QUERY NODE SENEGAL

Chapter 8. LAN-free backup to disk

229

The output should be similar to that shown in Example 8-6.


Example 8-6 QUERY NODE SENAGAL output Node Name : SENEGAL Platform: (?) Policy Domain Name: LANFREE_DISK Days Since Last Access: <1 Days Since Password Set: <1 Locked?: No

8.8 Setting up server-to-server communication


To prepare the Tivoli Storage Manager server to be communicate with Storage Agents and other servers, you first set the necessary settings on the destination server. These settings includes setting a server name and password that are used by Storage Agents and other servers.You then define a new server to represent the Storage Agent that you use for LAN-free to disk data movement. This sections includes the steps for setting up server-to-server communication from the Administration Center and using the command line interface.

8.8.1 Setting up server-to-server communication from the Administration Center


From the Administration Center: 1. From the Work Items list, click Enterprise Management. The Enterprise Management screen appears, as shown in Figure 8-36. Click Select next to the server that you would like to set as the Library Manager for the file library (in our case, TONGA). Select Server-to-Server Communication Settings and click Go.

Figure 8-36 Enterprise Management screen

2. The Server-to-Server Settings screen appears, as shown in Figure 8-37 on page 231. If the information is complete, continue to the next step. Otherwise, enter and verify the server password, TCP/IP address, and port number. The Enable cross-definition option is not required for communicating with a Storage Agent but should be used when configuring communications with many other servers in a large environment. Click OK.

230

Get More Out of Your SAN with IBM Tivoli Storage Manager

Figure 8-37 Server-to-Server settings for the Library Manager server

3. The server list redisplays (Figure 8-36 on page 230). Define a server to represent the Storage Agent. Click the server again (TONGA) and expand the Servers entry, as shown in Figure 8-38.

Figure 8-38 Servers and Server Groups Defined screen

4. From the Select Action list, select Define Server, as shown in Figure 8-39. Click Go.

Figure 8-39 Servers screen

5. The Welcome screen appears, a shown in Figure 8-40 on page 232. Click Next.

Chapter 8. LAN-free backup to disk

231

Figure 8-40 Define Server Welcome screen

6. On the General screen (Figure 8-41), enter a name for the Storage Agent. We chose SENEGAL_STA. Specify a password and optional description. We do not select the option to allow the server that is defined to initiate communications with TONGA, because the Storage Agent software has not yet been installed and configured (as described in 8.10, Configuring the Storage Agent on page 236). Click Next.

Figure 8-41 Define Server General screen

7. Figure 8-42 on page 233 shows the Communications screen. Enter the TCP/IP address for the Storage Agent machine and the port to be used for communication by this server. We used port 1502, although the default is 1500. The value entered here must match the LANFREETCPPORT setting in the clients options file and the TCPPORT setting within the Storage Agents dsmsta.opt option file, as shown in 8.9, Installing and configuring the client on page 235 and 8.10, Configuring the Storage Agent on page 236. Click Next.

232

Get More Out of Your SAN with IBM Tivoli Storage Manager

Figure 8-42 Server-to-server communication screen.

8. The Virtual Volumes screen appears (Figure 8-43). Because virtual volumes are not required when defining a Storage Agent server, do not select to configure this server for virtual volumes. Click Next.

Figure 8-43 Define a Server Virtual Volume screen

9. The Summary screen, as shown in Figure 8-44 on page 234, indicates that the server was defined. Click Finish.

Chapter 8. LAN-free backup to disk

233

Figure 8-44 Define Server Summary screen

10.The newly created server appears in the Servers screen, as shown in Figure 8-45.

Figure 8-45 Newly created Storage Agent server appears

8.8.2 Setting up server-to-server communication using the command line interface


To set up server-to-server communication using the command line interface: 1. Set the name and TCP/IP settings for the server that will be used for the Library Manager by running the following commands:
SET SET SET SET SERVERNAME tonga_1 SERVERHLADDRESS 9.1.39.168 SERVERLLADDRESS 1500 SERVERPASSWORD tongapw

Use the QUERY STATUS command, as shown in Example 8-7, to show the results.
Example 8-7 QUERY STATUS command showing server definition Storage Management Server for Windows - Version 5, Release 3, Level 1.0 Server Name: TONGA_1 Server host name or IP address: 9.1.39.168 Server TCP/IP port number: 1500 Crossdefine: Off Server Password Set: Yes

234

Get More Out of Your SAN with IBM Tivoli Storage Manager

2. Define a server to represent the Storage Agent. We used port 1502, although the default is 1500. The value entered here must match the LANFREETCPPORT setting in the clients options file and the TCPPORT setting within the Storage Agents dsmsta.opt option file, as shown in 8.9, Installing and configuring the client on page 235 and 8.10, Configuring the Storage Agent on page 236. This port is used for communication between the Storage Agent and the Tivoli Storage Manager server.
DEFINE SERVER senegal_sta SERVERPASSWORD=?***? HLADDRESS=9.1.39.166 LLADDRESS=1502 DESCRIPTION="Storage Agent used for Senegal's LAN-free data movement"

Use the QUERY SERVER command, as shown in Example 8-8, to show the results.
QUERY SERVER SENEGAL_STA Example 8-8 QUERY SERVER senegal_sta output Server Name: SENEGAL_STA Comm. Method: TCPIP High-level Address: 9.1.39.166 Low-level Address: 1502 Days Since Last Access: 10 Server Password Set: Yes Virtual Volume Password Set: No Allow Replacement: No

8.9 Installing and configuring the client


Next, you configure the client system, SENEGAL, for LAN-free backup. You should have installed the Tivoli Storage Manager Backup-Archive Client and tested it for normal backup to the Tivoli Storage Manager server. For more detailed information about setting up the Backup-Archive Client, see the Backup-Archive Clients Installation and Users Guide for your client platform. Example 8-9 shows a typical client options file which would enable regular backup to the Tivoli Storage Manager server.
Example 8-9 Sample client options file, dsm.opt to enable backup to TONGA COMMmethod TCP/IP TCPPort 1500 TCPServeraddress 9.1.39.168

8.9.1 LAN-free options (used between the client and the Storage Agent)
To enable the SAN (LAN-free) path to be used, you need to set these additional options in the client options file. ENABLELANFREE LANFREECOMMMETHOD LANFREETCPPORT or LANFREESHMPORT Always set ENABLELANFREE yes for a LAN-free client. Set LANFREECOMMMETHOD to identify what communication method to use between the Backup-Archive Client and the Storage Agent, and then identify a port to use, using either LANFREETCPPORT or LANFREESHMPORT. The selection of this option depends on whether the client has a local Storage Agent installed, or uses another Tivoli Storage Manager client system (proxy) as the Storage Agent. These configuration options are discussed in 7.4.3, Configuring the client on page 191. If you use an external system for the Storage Agent, you would set the client options file as described in Using an external Storage Agent on page 192.

Chapter 8. LAN-free backup to disk

235

Storage Agent and client on same system


If the Storage Agent is on the same system as the Backup-Archive Client (as in the case of SENEGAL), specify LANFREECOMMMETHOD of sharedmem. Using shared memory gives the best performance when the communication is local, as in this case. Specify the port to use with the LANFREESHMPORT option. This is a different port from the one used between the Storage Agent and the Tivoli Storage Manager server. SENEGALs option file looks similar to that shown in Example 8-10.
Example 8-10 Client options file with Storage Agent on same system as client node ENABLELanfree Yes LANFREECommmethod sharedmem LANFREESHMPORT 1

8.10 Configuring the Storage Agent


If the Storage Agent software has not been installed, then do so now and proceed with these configuration steps. Note: Installation of the Storage Agent and device drivers was discussed in Chapter 6, Planning for LAN-free on page 159. If your Storage Agent is on Windows system, you have the option of using the Administration Center to configure it. On other platforms, you have to use the command line interface, which is discussed in 8.10.2, Setting up the Storage Agent using the command line interface on page 241. Figure 8-46 shows the LAN-free to disk setup in our lab. The Tivoli Storage Manager server is TONGA. The client and Storage Agent are on SENEGAL.
Tivoli Storage Manager Server

Client: SENEGAL Storage Agent: SENEGAL_STA

Library Control Client Metadata

LAN
SENEGAL 9.1.39.166
Client Data Library Control

TONGA 9.1.39.168

SAN

e:\mydir1 f:\mydir2 File Library

Figure 8-46 LAN-free to disk setup in our lab

236

Get More Out of Your SAN with IBM Tivoli Storage Manager

8.10.1 Setting up the Storage Agent from the Administration Center


From the Administration Center: 1. On the Storage Agent system (SENEGAL), start the Management Console, as shown in Figure 8-47, by selecting Start Programs Tivoli Storage Manager Management Console. Expand Tivoli Storage Manager to show the client node name. Expand the client node name and then TSM StorageAgent1. (The TSM Device Driver expand button also appears if you have installed it).

Figure 8-47 Management console showing TSM StorageAgent1 expansion

2. The Reports and Wizards selections appear under TSM StorageAgent1. To start the TSM StorageAgent1 Wizard, double-click Storage Agent Initialization, on the right side of the window (make sure Wizards is highlighted in the left-hand panel. Alternatively, right click Storage Agent Initialization and select Start as shown in Figure 8-48.

Figure 8-48 Start the Storage Agent Initialization wizard

Chapter 8. LAN-free backup to disk

237

3. The Welcome to the Storage Agent Initialization Wizard screen appears, as shown in Figure 8-49.Click Next.

Figure 8-49 The Welcome to the Storage Agent Initialization Wizard screen

4. The TSM Server Account Information input screen appears, Figure 8-50. Enter the Storage Agent name, password, and TCP/IP information. This information must match the information that was used when defining the Storage Agent as a server on the Tivoli Storage Manager server in 8.8.1, Setting up server-to-server communication from the Administration Center on page 230. Click Next.

Figure 8-50 The TSM Server Account Information screen filled in

5. The TSM Server Communication Information input screen appears, Figure 8-51 on page 239. Enter the Tivoli Storage Manager server name, password, and TCP/IP information. This information must match the entries for the Tivoli Storage Manager server shown in Figure 8-37 on page 231. Click Next.

238

Get More Out of Your SAN with IBM Tivoli Storage Manager

Figure 8-51 TSM Server Communication Information

6. The Storage Agent Account Information input screen appears, Figure 8-52. Enter a suitable Windows account to be used by the Storage Agent. Be sure to select to start Automatically when Windows boots. Click Next.

Figure 8-52 Storage Agent Account Information

7. The wizard is now complete. On the final screen, as shown in Figure 8-53 on page 240, click Finish.

Chapter 8. LAN-free backup to disk

239

Figure 8-53 Completing the Storage Agent Initialization Wizard

8. The Storage Agent has been initialized message (Figure 8-54) indicates that the Storage Agent configuration was successful. Click OK.

Figure 8-54 The Storage Agent has been initialized

9. Verify that the Storage Agent service is running in the Windows Services applet, as shown in Figure 8-55.

Figure 8-55 Storage Agent service

10.Stop the Storage Agent and set the TCP/IP port which is used for Storage Agent communication with the Tivoli Storage Manager server We defined this as 1502 when creating the Storage Agent server definition. To set this port on the Storage Agent, edit the dsmsta.opt file in the C:\Program Files\Tivoli\Tsm\storageagent directory. Set the TCPPORT option to 1502 (the default is 1500).
TCPPORT 1502

240

Get More Out of Your SAN with IBM Tivoli Storage Manager

11.Tivoli Storage Manager V5.3 has the SAN Discovery feature, which is discussed in Chapter 9, Tivoli Storage Manager SAN Discovery on page 253. This feature for the Tivoli Storage Manager server and Storage Agent allows Tivoli Storage Manager to assist in the recovery when the SAN device configuration changes. To enable SAN Discovery on the Storage Agent, edit the dsmsta.opt configuration file in the C:\Program Files\Tivoli\TSM\Storageagent\ directory on Windows. Set the option:
SANDISCOVERY ON

12.Restart the Storage Agent to pick up the correct port using the Services applet. 13.For troubleshooting, you can run the Storage Agent in the foreground from the operating system command prompt. To do this, make sure the Storage Agent service is not running, and enter dsmsta from the Storage Agent directory, as shown in Example 8-11.
Example 8-11 The output from running the Storage Agent in foreground C:\Program Files\Tivoli\Tsm\storageagent>dsmsta ANR0900I Processing options file C:\PROGRA 1\Tivoli\Tsm\STORAG 1\dsmsta.opt. ANR7800I DSMSERV generated at 04:26:40 on Mar 29 2005. Tivoli Storage Manager for Windows Version 5, Release 3, Level 1.0 Licensed Materials - Property of IBM (C) Copyright IBM Corporation 1990, 2004. All rights reserved. U.S. Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corporation. ANR4726I The ICC support module has been loaded. ANR8273I Shared memory driver ready for connection with clients on port 1. ANR8200I TCP/IP driver ready for connection with clients on port 1502. ANR0408I Session 1 started for server TONGA_1 (Windows) (Tcp/Ip) for storage agent. ANR0993I Server initialization complete. ANR0916I TIVOLI STORAGE MANAGER distributed by Tivoli is now ready for use. ANR0408I Session 2 started for server TONGA_1 (Windows) (Tcp/Ip) for event logging. TSM:SENEGAL_STA>

Note the ports that are listed: port 1 for communication with the shared memory client and 1502 for communication with the Tivoli Storage Manager server. 14.Enter halt from on the Storage Agent console to terminate it. Restart it as a service. Use the Windows Services applet to check that the Storage Agent is set for automatic start.

8.10.2 Setting up the Storage Agent using the command line interface
If your Storage Agent is running on UNIX or Linux, you need to use the command line interface. It also works for Windows, as this example shows. You need to: 1. Install the Storage Agent package. 2. Change to the Storage Agent installation directory: C:\Program Files\Tivoli\TSM\Storageagent\ on Windows usr/tivoli/tsm/StorageAgent/bin on AIX /opt/tivoli/tsm/StorageAgent/bin on other UNIX platforms
Chapter 8. LAN-free backup to disk

241

3. Edit the Storage Agent options file (dsmsta.opt) and set the following options:
DEVCONFIG devconfig.out SANDISCOVERY ON TCPPORT 1502

Note: The SANDISCOVERY option is supported beginning with V5.3. In these commands, devconfig.out points to an output file which is used by the Storage Agent to store device configuration information. The SANDISCOVERY ON option allows Tivoli Storage Manager to assist in the recovery of SAN-attached devices. After you edit the file, save and close it. We set the TCPPORT to 1502, which matches the LANFREETCPORT setting within the clients option file (as discussed in 8.9.1, LAN-free options (used between the client and the Storage Agent) on page 235 and the LLADDRESS setting used in the DEFINE SERVER command for the Storage Agent (as discussed in 8.8.2, Setting up server-to-server communication using the command line interface on page 234). 4. From the DOS prompt in the Storage Agent directory, issue the following command to set up a communication between the Storage Agent and the server (in this case, from SENEGAL to TONGA):
dsmsta setstorageserver myname=senegal_sta mypassword=xxxx myhladdress=9.1.39.89 servername=azov_1 serverpassword=xxxx hladdress=9.1.39.89 lladdress=1500

These values must match the definitions on the Tivoli Storage Manager server which were created in 8.8.2, Setting up server-to-server communication using the command line interface on page 234. This command updates the device configuration output file (devconfig.out) so that it looks similar to that shown in Example 8-12.
Example 8-12 Storage Agent device configuration file SET STANAME senegal_sta SET STAPASSWORD xxxxxxx SET STAHLADDRESS 9.1.39.166 DEFINE SERVER azov_1 server password=xxxxxx HLADDRESS=9.1.39.89 LLADDRESS=1500

The Storage Agent option files (dsmsta.opt) is updated with the following:
SERVERNAME AZOV_1

5. Run the Storage Agent (console) in the foreground by issuing the dsmsta command. Example 8-11 on page 241 shows the output of this command. 6. Enter halt from the Storage Agent console to terminate it. Typically, you run the Storage Agent in background (that is, as a Windows service). Use the Windows Services applet to check that the Storage Agent is set for automatic start and to start the Storage Agent, if necessary.

242

Get More Out of Your SAN with IBM Tivoli Storage Manager

8.11 Enabling LAN-free data movement


Before enabling LAN-free data movement, verify that you have performed all the previous steps in this chapter, which include: Configuring SANergy. Configuring the SAN disk device to the Tivoli Storage Manager server. Defining a policy domain for clients to use for LAN-free data movement to disk. Registering a client to under the LAN-free to disk policy domain. Configuring server-to-server communication. Installing and configuring the backup-archive client. Ensuring that the LAN-based backup is successful. Installing and configuring the Storage Agent software. Ensuring that it is running. You can now proceed with the final step of configuring the LAN-free data movement to disk. You execute these steps on the Tivoli Storage Manager server. This section includes instructions on how to enable LAN-free data movement from the Administration Center and using the command line interface.

8.11.1 Enabling LAN-free from the Administration Center


From the Administration Center: 1. From the Work Items list, select Policy Domains and Client Nodes. The Policy Domains screen appears, as shown in Figure 8-56. Select the server on which you configured LAN-free to disk (in this example, TONGA).

Figure 8-56 Policy Domains screen

2. The Policy Domains that belongs to the server appears (Figure 8-57). Select the policy domain that was created to manage the LAN-free to disk data (in this example, LANFREE_DISK).

Figure 8-57 List of Policy Domains

Chapter 8. LAN-free backup to disk

243

3. The Properties for the policy domain screen appears below the current contents, as shown in Figure 8-58. Expand Client Nodes.

Figure 8-58 LANFREE_DISK Properties.

4. From the list of client nodes, select the client to be configured (in this example, SENEGAL), as shown in Figure 8-59. Select Enable LAN-free Data Movement. Click Go.

Figure 8-59 Client node used for LAN-free to disk use

5. The Welcome screen (Figure 8-60) provides an overview of the process and also lists prerequisites. Click Next.

Figure 8-60 Enable LAN-free data movement Welcome screen

6. The Verify Data Transfer Settings screen appears, as shown in Figure 8-61 on page 245. With these options, you can enable or restrict LAN-free data movement to backups and restores. Take the default that allows both backup and restores to use LAN and LAN-free data transfer. Click Next.

244

Get More Out of Your SAN with IBM Tivoli Storage Manager

Figure 8-61 Verify Data Transfer Settings screen

7. The Create or Select a Storage Agent screen appears (Figure 8-62). Because a server that corresponds to the Storage Agent has been configured, select Use an existing Storage Agent. From the Select a Storage Agent list, select the one that was created for LAN-free to disk data transfer (in this example, SENEGAL_STA). Click Next.

Figure 8-62 Select an existing Storage Agent

8. On the Select a Storage Pool screen (Figure 8-63 on page 246), select the storage pool that maps to the SAN-attached disk (in this example, SANDISKPOOL). Click Next.

Chapter 8. LAN-free backup to disk

245

Figure 8-63 Select a Storage Pool screen

9. The Create the Path to the File Library Directories screen appears, as shown in Figure 8-64 on page 247. Note: Before proceeding, check the Storage Agent system on which the SAN disk directories are mapped, as shown in Figure 8-7 on page 212. Here, you need to enter the fully qualified (UNC) path for the SAN-attached directories. If you defined multiple directories when defining the shared file device class, then you must define the same directories here and separate each with a comma. Specify the host name or address of the MDC server and use the share names as they appear to the Storage Agent, Figure 8-7 on page 212. In this example, we entered \\9.1.39.168\e$\mydir1,\\9.1.39.168\f$\mydir2. Be sure to enter in the entire string, even though the window does not display completely in Figure 8-64 on page 247. The address 9.1.39.168 is the TCP/IP address of TONGA, which is the SANergy MDC and owns the SAN-attached disks that were defined. So, for a Storage Agent to able to access these devices over the SAN, drive mapping must be made on the Storage Agent system (in this case, SENEGAL) to the SAN disk directories that are managed by the SANergy MDC. Click Next.

246

Get More Out of Your SAN with IBM Tivoli Storage Manager

Figure 8-64 Specify the directories of the SAN-attached disks

10.The Configure Another Storage Pool screen appears, as shown in Figure 8-65. Select No at this time. However, you can select Yes if you wish to create additional Storage Agents. Click Next.

Figure 8-65 Select whether to configure another Storage Agent.

11.The Summary screen appears (Figure 8-66 on page 248). Verify that the information is correct. Select Completing the setup on the client node.

Chapter 8. LAN-free backup to disk

247

Figure 8-66 The Enable LAN-free Data Movement Summary screen

12.The information about completing the setup on the client node appears, as shown in Figure 8-66. Verify that you have performed all the items listed. If you followed all the steps outlined in this chapter, items one through three should be complete. The next step is to verify the LAN-free data movement. Click Finish.

Figure 8-67 Completing the setup on the client node overview

248

Get More Out of Your SAN with IBM Tivoli Storage Manager

8.11.2 Enabling LAN-free with the command line interface


Using the command line interface, you enable LAN-free data movement as follows: 1. Use the DATAWRITEPATH and DATAREADPATH parameters to enable or restrict LAN-free data transfer for a node. These parameters are used with the DEFINE NODE or UPDATE NODE commands to enable or restrict LAN-free data movement to backups and restores for a given node. Allow both the backup and restores to use LAN-free data transfer (which is the default) by issuing the following:
UPDATE NODE SENEGAL DATAWRITEPATH=ANY DATAREADPATH=ANY

2. Define the path for the SAN-attached disk devices to the Storage Agent. Note: Before proceeding, check on the Storage Agent system that the SAN disk directories are mapped, as shown in Figure 8-7 on page 212. Use the DEFINE PATH command as follows:
DEFINE PATH SENEGAL_STA SANDISK1 SRCTYPE=SERVER DESTTYPE=DRIVE LIBRARY=SANDISK DEVICE=FILE DIRECTORY=\\9.1.39.168\e$\mydir1,\\9.1.39.168\f$\mydir2

For the DIRECTORY parameter, enter the fully qualified (UNC) path for the SAN-attached directories. If you defined multiple directories when defining the shared file device class, then you must define the same directories here and separate each with a comma. Specify the host name or address of the MDC server and use the share names as they appear to the Storage Agent, Figure 8-7 on page 212. We entered \\9.1.39.168\e$\mydir1,\\9.1.39.168\f$\mydir2. The address 9.1.39.168 is the TCP/IP address of TONGA which is the SANergy MDC and owns the SAN-attached disks that were defined. So, for a Storage Agent to able to access these devices over the SAN, drive mapping must be made on the Storage Agent system (in this case, SENEGAL) to the SAN disk directories that are sitting on the SANergy MDC. Define a path from SENEGAL_STA, the Storage Agent to the file drive, to SANDISK1 in the file library, SANDISK. If the path is defined successfully, you see a message similar to the following:
ANR1720I A path from SENEGAL_STA to SANDISK SANDISK1 has been defined

8.12 Verifying the LAN-free path


Now that you have configured the server, client, and Storage Agent systems, you can check the setup. In Tivoli Storage Manager V5.3, verification is easier with the new VALIDATE LANFREE command. This command shows whether a client node with a specific Storage Agent is capable of LAN-fee data movement. The command looks at the policy information, storage pool, and path definitions that are associated with the specified client node and Storage Agent to determine if the destination is LAN-free capable. This information is useful when troubleshooting a suspected LAN-free configuration problem. Note: The VALIDATE LANFREE command replaces the undocumented V5.2 SHOW LANFREE command. The parameters of this command are: node_name (required), which is the name of the node to evaluate. stgagent_name (required), which is the name of the Storage Agent to evaluate.

Chapter 8. LAN-free backup to disk

249

Example 8-13 shows the output from the VALIDATE LANFREE command in our setup, which was run on the Tivoli Storage Manager server, TONGA, specifying the client and Storage Agent on SENEGAL.
Example 8-13 VALIDATE LANFREE command output tsm: TONGA_1>validate lanfree senegal senegal_sta ANR0387I Evaluating node SENEGAL using storage agent SENEGAL_STA for LAN-free data movement. Node Name : SENEGAL Storage Agent : SENEGAL_STA Operation : BACKUP Mgmt Class Name : STANDARD Destination Name : SANDISKPOOL LAN-Free capable? : Yes Explanation : Node Name : SENEGAL Storage Agent : SENEGAL_STA Operation : ARCHIVE Mgmt Class Name : STANDARD Destination Name : SANDISKPOOL LAN-Free capable? : Yes Explanation : ANR1706I Ping for server 'SENEGAL_STA' was able to establish a connection. ANR0388I Node SENEGAL using storage agent SENEGAL_STA has 2 storage pools capable of LAN-free data movement and 0 storage pools not capable of LAN-free data movement.

The output shows that the node SENEGAL using Storage Agent SENEGAL_STA has two storage pools that are capable of LAN-free data movement. If there were other storage pools that are not capable of LAN-free data movement, they would be shown as LAN-Free capable? : No. Notice also that the message that states that the server was able to establish a connection with the Storage Agent, SENEGAL_STA, using ping. This information tells us that the PING SERVER command was issued by the Tivoli Storage Manager server and was able to successfully communicate with the Storage Agent. If the server cannot ping the Storage Agent successfully, the following error appears in the VALIDATE LANFREE output:
ANR1705W Ping for server 'SENEGAL_STA' was not able to establish a connection.

To resolve this issue, first verify that the Storage Agent service/daemon is running on the Storage Agent system. If it is running, stop and restart it to be sure that it remains running. Issue the PING SERVER command from the Tivoli Storage Manager server to test the connection with the Storage Agent. For example:
PING SERVER senegal_sta

If the server is still unable to establish a connection with the Storage Agent, verify that the following TCP/IP port settings match: LLADDRESS On the Tivoli Storage Manager server, check the LLADDRESS that is used for the Storage Agent server definition. Issue QUERY SERVER storage_agent_name F=D and specify the name of your Storage Agent. The specified port is opened to communicate with the Storage Agent, in this case.

250

Get More Out of Your SAN with IBM Tivoli Storage Manager

TCPPORT On the Storage Agent machine, edit the option file (dsmsta.opt) to verify the TCPPORT value. The specified port is opened to communicate with the server and client. LANFREETCPPORT On the client machine, edit the client options file to verify the LANFREETCPPORT option. The specified port is opened to communicate with the storage age. LANFREETCPPORT is used only when the LANFREECOMMMETHOD is TCPIP. If a shared memory or named pipes is used, then disregard this option. After you have verified that a LAN-free path is available, you can backup a client to test the LAN-free connection. When you start the backup, you can see that the data is being transferred correctly over the SAN from the following: If using the Backup-Archive Client interface, the Detailed Status Report should reveal the number of LAN-free bytes that have been transferred, as shown in Figure 8-68. This line is grayed out for a traditional LAN-based backup.

Figure 8-68 The Backup-Archive Detailed Status Report that shows LAN-free bytes

If using the Backup-Archive Client command line interface, it shows the LanFree data bytes, as part of the backup/restore status report, as shown in Example 8-14. This line does not appear on a traditional LAN-based backup.
Example 8-14 Backup-Archive client command line interface that shows LAN-free bytes Total number Total number Total number Total number Total number Total number Total number Total number LanFree data of objects inspected: of objects backed up: of objects updated: of objects rebound: of objects deleted: of objects expired: of objects failed: of bytes transferred: bytes: 6 6 0 0 0 0 0 500.06 MB 500.00 MB

On the Tivoli Storage Manager server to confirm that the data is being transferred using LAN-free data movement, look for activity log messages similar to that shown in Example 8-15 on page 252. You can see the sessions for the client node and the Storage Agent. On the server, a volume is mounted to receive the backup data. This volume is actually a file on the SANergy disk that is defined in the device class. Because we are using a device class of FILE, Tivoli Storage Manager handles it similar to a tape drive (that is, mounting the volume in the file drive SANDISK1, in the file library, SANDISK).

Chapter 8. LAN-free backup to disk

251

Example 8-15 Tivoli Storage Manager server activity log excerpt ANR0406I Session 23 started for node SENEGAL (WinNT) (Tcp/Ip Senegal.almaden.ibm.com(2437)). ANR0408I Session 24 started for server SENEGAL_STA (Windows) (Tcp/Ip) for storage agent. ANR0415I Session 24 proxied by SENEGAL_STA started for node SENEGAL. ANR0408I Session 25 started for server SENEGAL_STA (Windows) (Tcp/Ip) for library sharing. ANR0409I Session 25 ended for server SENEGAL_STA (Windows). ANR0408I Session 26 started for server SENEGAL_STA (Windows) (Tcp/Ip) for library sharing. ANR8493I FILE volume F:\MYDIR2\00000000.BFS mounted in drive SANDISK1 (FILE) in library SANDISK. ANR8340I FILE volume F:\MYDIR2\00000000.BFS mounted. ANR0409I Session 26 ended for server SENEGAL_STA (Windows). ANR0511I Session 24 opened output volume F:\MYDIR2\00000000.BFS. ANR0408I Session 27 started for server SENEGAL_STA (Windows) (Tcp/Ip) for library sharing. ANR8468I FILE volume F:\MYDIR2\00000000.BFS dismounted from drive SANDISK1 (FILE) in library SANDISK. ANR0409I Session 27 ended for server SENEGAL_STA (Windows). ANR0514I Session 24 closed volume F:\MYDIR2\00000000.BFS. ANR0408I Session 28 started for server SENEGAL_STA (Windows) (Tcp/Ip) for library sharing. ANR0409I Session 28 ended for server SENEGAL_STA (Windows). ANR0403I Session 23 ended for node SENEGAL (WinNT). ANR0403I Session 24 ended for node SENEGAL (WinNT).

You can use the QUERY MOUNT command to show that the volume is mounted. You can see the volume that was used for the LAN-free backup using the QUERY VOLUME command, as shown in Example 8-16. The size of the volume is defined by the capacity specified when we created the SANDISK device class, which was 500MB (see Figure 8-11 on page 215).
Example 8-16 Volume in LAN-free storage pool tsm: TONGA_1>q volume Volume Name Storage Pool Name ------------------------ ----------F:\MYDIR2\00000000.BFS SANDISKPOOL Device Class Name ---------SANDISK Estimated Capacity --------5,120.0 Pct Util ----9.8 Volume Status -------Filling

After the backup is complete, you can use the QUERY CONTENTS command on the volume, as shown in Example 8-16.
Example 8-17 Display file volume contents tsm: TONGA_1>q con f:\mydir2\00000002.bfs Node Name --------------SENEGAL SENEGAL SENEGAL Type ---Bkup Bkup Bkup Filespace FSID Name ---------- ---\\senegal6 \c$ \\senegal6 \c$ \\senegal6 \c$ Client's Name for File ------------------------------------\ TSM_IMAGES \TSM_IMAGES\ JUNK.TXT \TSM_IMAGES\ IMAGE.ZIP

252

Get More Out of Your SAN with IBM Tivoli Storage Manager

Chapter 9.

Tivoli Storage Manager SAN Discovery


This chapter contains information about the new Tivoli Storage Manager SAN Discovery feature. It shows how to enable the new functions and what is required to respond to changing SAN environments. This chapter discusses the following topics: SAN device mapping New or updated Tivoli Storage Manager commands Platform support and usage instructions Example of the automatic device mapping feature

Copyright IBM Corp. 2005. All rights reserved.

253

9.1 SAN device mapping


SAN environments can change dramatically due to device or cabling changes in the environment. In particular, device IDs that are assigned by the SAN might change due to bus resets or other environmental changes to the SAN. For example, consider a Linux Tivoli Storage Manager server that is attached to a tape library with ten drives. If a drive is offline when the server restarts, all the subsequent drives change their device names. This change causes static drive path definitions in Tivoli Storage Manager to be misconfigured and these drives are unusable. The administrator needs to update the devices manually in the Tivoli Storage Manager paths to restore normal operation. 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 available on Windows, AIX, Sun, and Linux servers as well as Storage Agents. This feature has been implemented in the 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. Important: Depending on the server platform, this step can require the administrator to manually update the devices special files in the operating system before Tivoli Storage Manager can detect the new path to the device.

Note: A commonly used workaround for device remapping was to use persistent binding features that are provided by the Fibre Channel HBA. Tivoli Storage Manager SAN device mapping offers a better solution because: Specific HBA vendors utility programs are required to set up persistent binding. These utilities change often, which can create complexity and confusion between users and support teams. SAN device mapping offers a consistent solution across multiple devices. For some applications, the persistent binding is incompatible with the disk failover capabilities for redundant dual-active controller (RDAC) and dynamic multipathing (DMP). To use Tivoli Storage Manager in a LAN-free environment without SAN device mapping, you must use dedicated HBAs to the tape or go without redundancy to their disks, which is not desirable.

254

Get More Out of Your SAN with IBM Tivoli Storage Manager

9.2 New or updated Tivoli Storage Manager commands


This section provides information about the new or updated commands in Tivoli Storage Manager V5.3 for implementing SAN device mapping.

9.2.1 SANDISCOVERY server option


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

9.2.2 QUERY SAN command


The QUERY SAN command shows the devices that are discovered on the SAN. Example 9-1 shows a sample output from our test environment.
Example 9-1 Output of QUERY SAN command Device Type -------DRIVE DRIVE LIBRARY Vendor -------IBM IBM IBM Product ---------------ULT3580-TD2 ULT3580-TD2 ULT3582-TL Serial Number ---------------1110177214 1110176223 0000013108231000 Device -----------------/dev/rmt0 /dev/rmt1 /dev/smc0

To see the details for each device, issue the QUERY SAN F=D command to receive the output as shown in Example 9-2.
Example 9-2 Detailed QUERY SAN output Device Type: DRIVE Vendor: IBM Product: ULT3580-TD2 Serial Number: 1110177214 Device: /dev/rmt0 Data Mover: No Node WWN: 500308C140067006 Port WWN: 500308C140467006 LUN: 0 SCSI Port: 0 SCSI Bus: 0 SCSI Target: 0 Device Type: Vendor: Product: Serial Number: Device: Data Mover: Node WWN: Port WWN: LUN: SCSI Port: DRIVE IBM ULT3580-TD2 1110176223 /dev/rmt1 No 500308C140067003 500308C140467003 0 0 Chapter 9. Tivoli Storage Manager SAN Discovery

255

SCSI Bus: 0 SCSI Target: 0 Device Type: Vendor: Product: Serial Number: Device: Data Mover: Node WWN: Port WWN: LUN: SCSI Port: SCSI Bus: SCSI Target: LIBRARY IBM ULT3582-TL 0000013108231000 /dev/smc0 No 500308C140067003 500308C140467003 0 0 0 0

9.2.3 DEFINE LIBRARY command


The SERIAL parameter is new for the DEFINE LIBRARY command. The relevant syntax for this parameter is as follows:
SERial=AUTODetect DEFine LIBRarylib_name----+--------------------------+ ------> SERial=serial_number SERial=AUTODetect

If a serial number is entered here, it is recorded in the Tivoli Storage Manager server database. It is not validated until the DEFINE PATH command is processed. When DEFine PATH device=device_name AUTODetect=No is issued (the default value for the AUTODETECT parameter), Tivoli Storage Manager server attempts to open the library and one of the following occurs: If the device open fails, the DEFINE PATH command fails. If the open is successful but the library does not support reporting the serial number, the Tivoli Storage Manager server does not validate the library serial number entered. If the open is successful and the device returns the library serial number, it is compared to the serial number that is in the Tivoli Storage Manager database from the DEFINE LIBRARY command. If they do not match, this error message is issued:
ANR8957E DEFINE PATH: Autodectect is OFF and the serial number reported by the library did not match the serial number in the library definition.

You can re-issue the DEFINE PATH command with AUTODetect set to yes. The serial number in the database is overridden with the correct serial number from the library as follows:
ANR8953I: Library lib_name with serial number xxxx is updated with the newly discovered serial number yyyyyy.

If the device open is successful and the device returns the library serial number, update the database with this value for the serial number, regardless of what was previously in the database.

256

Get More Out of Your SAN with IBM Tivoli Storage Manager

9.2.4 DEFINE DRIVE serial number


New parameters for the DEFINE DRIVE command are SERIAL and ELEMENT. The syntax for these parameters is:
SERial=AUTODetect ELEMent=AUTODetect DEFine-Drive---lib_name---drive_name---+--------------------+---------------------------+-> SERial=serial_number ELEMent=address SERial=AUTODetect ELEMent=AUTODect

If only the serial number is specified with the DEFINE DRIVE command, it is recorded in the server database. It is not validated until the DEFINE PATH command is issued. When DEFine PATH device=device_name AUTODetect=no is issued, Tivoli Storage Manager attempts to open the drive and one of the following occurs: If the device open fails, the DEFINE PATH command fails. If the open is successful but the drive does not support reporting the serial number, the Tivoli Storage Manager server does not validate drive serial number. If the open is successful and the device returns the drive serial number, it is compared to the serial number in the database. If they do not match, this error message is issued:
ANR8958E: DEFINE PATH: Autodectect is OFF and the serial number reported by the drive did not match the serial number in the drive definition.

You can re-issue DEFINE PATH command with AUTODetect set to yes. Now the serial number and element number are overridden with the correct serial number and element number from the drive, as shown in the following.
ANR8955I: Drive drive_name in library lib_name with serial number xxxx is updated with the newly discovered serial number yyyyyyy.

9.2.5 DEFINE DRIVE element number


You can also specify the element number on the DEFINE DRIVE command. Note: Element number detection requires that the library supports the SCSI Read Element Status with DVCID (device ID) bit set to one to get the serial number/element number map. Check your vendor documentation to see if DVCID is supported. If DVCID is not supported by the library, you must enter the drive element number with the DEFINE DRIVE command. The syntax for this command is:
SERial=AUTODetect ELEMent=AUTODetect DEFine-Drive---lib_name---drive_name---+--------------------------+---------------------+-? SERial=serial_number ELEMent=address SERial=AUTODetect ELEMent=AUTODect

If only the drive element number is entered here, it is recorded in the server database. It is not validated until the DEFINE PATH command is issued. The serial number is detected automatically when the DEFINE PATH command is issued. When DEFine PATH device=device_name AUTODetect=no is issued, Tivoli Storage Manager attempts to open the drive and one of the following occurs: If the device open fails, the DEFINE PATH command fails. If the open is successful but the drive does not support reporting the serial number, the Tivoli Storage Manager server does not validate the drive serial number and element number.
Chapter 9. Tivoli Storage Manager SAN Discovery

257

If the open is successful and the device returns the drive serial number, it is used to get the element number from the librarys drive serial number and element number map and is compared to the element number in the database. If they do not match, this error message is issued:
ANR8419E: DEFINE PATH: The drive or element conflicts with an existing drive in library SCSILIB.

You can re-issue DEFINE PATH with AUTODetect set to yes. The serial number and element number in the database are overridden with the correct serial number and element number from the drive, as in the following:
ANR8955I: Drive www in library xxx with serial number yyyyyy is updated with the newly discovered serial number zzzzzz .

Note: If AUTODETECT is set to Yes with the DEFINE PATH command, the serial number and element number obtained in real time is loaded into the database regardless of what was previously in the database from the DEFINE DRIVE or UPDATE DRIVE commands. For that reason, you should use the autodetect parameter only when you define the first path to the drive on the Library Manager. All subsequent paths to the same drive do not require this parameter. Otherwise, you could mistakenly overwrite serial and element number with an unwanted value when pointing to the wrong device.

9.2.6 SAN Discovery error messages


The following error messages can occur in Tivoli Storage Manager in conjunction with the SAN Discovery feature: ANR1786W HBAAPI not able to get adapter name. HBA driver problem. ANR1787W Not able to open adapter adapterName. HBA driver problem. ANR1788W Not able to get the adapter attributes for adapterName. HBA driver problem. ANR1789W Get HBA target mapping failed. This is the most commonly occurred error, because the HBA driver has to send commands to all of the devices on the SAN. If any device returns an illegal request bad status, the HBA driver might quit SAN Discovery with this error. Known issues only Windows systems are: The Qlogic HBA driver on Windows with IBM SAN Data Gateway 2108 (this hardware is no longer supported by IBM or ADIC) can see this issue. For IBM tape devices, confirm that the latest firmware is installed. Firmware before 4772 for IBM 3580 tape devices cause this problem with QLogic HBAAPI.

258

Get More Out of Your SAN with IBM Tivoli Storage Manager

9.2.7 New Tivoli Storage Manager messages


The following messages are associated with SAN device discovery and device detection on Tivoli Storage Manager. ANR8953I: ANR8955I: ANR8957E: Library library_name with serial number xxxxx is updated with the newly discovered serial number yyyyy. Drive drive_name in library library_name with serial number xxxxx is updated with the newly discovered serial number yyyyy. DEFINE PATH: Autodectect is OFF and the serial number reported by the library did not match the serial number in the library definition. DEFINE PATH: Autodectect is OFF and the serial number reported by the drive did not match the serial number in the drive definition. We were not able to find the path to match the serial number defined for library library_name and drive_name. We were not able to update the path in the database table library_name and drive drive_name. The server is unable to automatically determine the serial number for the device. The drive serial conflicts with an existing drive in library library_name.

ANR8958E:

ANR8963E: ANR8964W: ANR8965W: ANR8967E:

9.3 Platform support and usage instructions


SAN device mapping is available on all Tivoli Storage Manager server platforms except HP, zLinux, and Windows 64bit. Before setting SANDISCOVERY ON for a non-Windows platform, confirm that the proper HBA driver is installed. You can find a table that shows the platform and HBA driver levels that required for SAN device mapping at:
http://www.ibm.com/software/sysmgmt/products/support/IBMTivoliStorageManager.html

Hint: Search on SAN Device Mapping.

9.3.1 Information for Windows systems


SAN device mapping is supported on Windows 2000 and Windows 2003 32-bit with QLogic and Emulex HBAs. The SAN Discovery feature is enabled by default in the server options file (dsmserv.opt). If you are using a QLA2200 HBA, be sure to indicate the correct HBA model when getting the QLogic HBA device driver. If the SAN has any mature, non-supported gateways (such as the SAN Data Gateway 2108), SAN Discovery might not work. You need to either zone out the gateway or replace it with a newer, supported gateway. With the Windows plug-and-play mechanism, the registry is updated automatically and the device name might be changed without the need to reboot the machine or reload the driver.
Chapter 9. Tivoli Storage Manager SAN Discovery

259

SAN device mapping is capable of detecting the changes when it accesses the tape devices during the server start or normal operation. The correct device names are updated in the Tivoli Storage Manager database.

9.3.2 Information for AIX systems


The following information is relevant to AIX systems: SAN device mapping is supported on AIX V5.2 or higher. The SANDISCOVERY option defaults to OFF. If you enable SANDISCOVERY at a version that precedes AIX V5.2, you get the following message:
ANR1793W TSM SAN Discovery is not supported on this platform or this version of OS.

You need to install the HBAAPI library from the AIX media. The file name is libHBAAPI.a and must reside in the /usr/lib directory. If it is not installed or is down a level, you get the following errors: ANR8226E: ANR8227E: Error detecting version of HBA-API library Fileset devices.common.IBM.fc.hba-api is not at the required level. AIX V5.2 - need 5.2.0.50 AIX V5.3 - need 5.3.0.10

When devices in the SAN are changed, the HBA gets the most up-to-date configuration information as a result of the Registered State Change Notification (RSCN). For IBM devices: Issue the cfgmgr command to get the new configuration and the special file name for IBM tape devices. New devices are added. Special file names are /dev/rmtx and /dev/smcx. For Tivoli Storage Manager devices, you can: Use smitty devices Tivoli Storage Manager devices remove all defined devices discover devices supported by Tivoli Storage Manager. Reinstall the Tivoli Storage Manager device driver.

9.3.3 Information for Linux systems


The following information is relevant to Linux systems: Supported HBAs are QLogic and Emulex. The SANDISCOVERY option defaults to OFF. You need to ensure that the HBA driver is at the supported level before setting SANDISCOVERY to ON. When devices in the SAN are changed, the HBA gets the most up-to-date configuration information as a result of the Registered State Change Notification (RSCN). For IBM devices: Issue the IBMtapeconfig command to get the new configuration and the special device file names for IBM tape devices. New devices are added. Special file names are /dev/IBMtapex and /dev/IBMchangerx. For Tivoli Storage Manager devices, with the new Linux pass-through device driver for Tivoli Storage Manager devices, you have to reload the HBA driver and reload the generic driver to get all the current special device file names. After that, run the autoconf script in the /opt/tivoli/tsm/devices/bin directory so that the Tivoli Storage Manager device driver

260

Get More Out of Your SAN with IBM Tivoli Storage Manager

can create the lbinfo and mtinfo files in the /dev/tsmscsi directory. These files are used by the SAN device mapping code. Special device file names are /dev/tsmscsi/mtx and /dev/tsmscsi/lbx.

9.3.4 Information for Solaris systems


The following information is relevant to Solaris systems: Supported HBAs are Qlogic and Emulex. The SANDISCOVERY option defaults to OFF. Ensure that the HBA driver is at the supported level before setting SANDISCOVERY to ON. Before turning on SANDISCOVERY, do the following before device names for Tivoli Storage Manager devices can be determined: a. Modify the /usr/kernel/drv/mt.conf and /usr/kernel/drv/lb.conf files to add the following:
mt.conf: name="mt" parent="pseudo" instance=16383 lb.conf name="lb" parent="pseudo" instance=16383

b. Issue the autoconf command. c. Ensure that the virtual device special files are in the following directory:
/devices/pseudo/mt@16383:tsmmtctl and /devices/pseudo/lb@16383:tsmlbctl

d. Issue the sync sync command. e. Reboot the system. When devices in the SAN are changed, the HBA gets the most up-to-date configuration information as a result of the Registered State Change Notification (RSCN). For IBM devices, issue the rem_drv IBMtape and add_drv IBMtape commands. New devices are added. Special file names are /dev/rmt/xst and /dev/rmt/xsmc. For Tivoli Storage Manager devices, issue the following commands:
rem_drv add_drv rem_drv add_drv lb lb mt mt

As an alternative to unloading and reloading the device drivers, you can reinstall the IBM device driver or the Tivoli Storage Manager device driver as appropriate.

9.4 Example of the automatic device mapping feature


As an example of the automatic device mapping feature, this section shows how to define paths to a Library Client without knowing the device names on the remote machine. The SAN device mapping feature eases the task of defining drive paths to Tivoli Storage Manager Library Clients and Storage Agents. Prior to Tivoli Storage Manager V5.3, you had to know the exact drive device name on each participating Library Client and Storage Agent. If something in the SAN changed, it required a lot of work to update all drive paths on the Library Manager. When you have enabled the SANDISCOVERY parameter on the Library Clients and the Storage Agents, defining paths is easy. Just define a generic string as the device name, and

Chapter 9. Tivoli Storage Manager SAN Discovery

261

upon first access, the Library Client recognizes the corresponding device name and updates the path accordingly. In this example, AZOV is the Library Manager, and TONGA is the Library Client, as shown in Figure 9-1.

LAN

server-to-server communication

AZ0V AIX 5.3 Tivoli Storage Manager Library Manager

Tape Library 3582 2xLT02 drives

TONGA Windows 2000 ITSM Library Client

Library Control Data Flow Data Flow

SAN

Figure 9-1 Library Manager and client

In Example 9-3, on the Library Manager AZOV, we defined two paths to the Library Client TONGA. The paths were to the drives DRIVE1 and DRIVE2 in the library 3582. Note: You do not need the autodetect parameter when defining drives to a Library Client, because the serial number is already present in the Tivoli Storage Manager database. The automatic update to the path to point to the right device is always done when SANDISCOVERY is set to ON and in a supported environment. When defining paths, you cannot omit the device parameter, because it is detected automatically. As an example we used abc, which is not a valid device name.
Example 9-3 Define the paths for the Library Client tsm: AZOV_1>q path Source Name ----------AZOV_1 AZOV_1 AZOV_1 Source Type ----------SERVER SERVER SERVER Destination Name ----------3582 DRIVE1 DRIVE2 Destination Type ----------LIBRARY DRIVE DRIVE On-Line ------Yes Yes Yes

tsm: AZOV_1>def path tonga_1 drive1 libr=3582 srct=server destt=drive devi=abc ANR1720I A path from TONGA_1 to 3582 DRIVE1 has been defined. tsm: AZOV_1>def path tonga_1 drive2 libr=3582 srct=server destt=drive devi=abc

262

Get More Out of Your SAN with IBM Tivoli Storage Manager

ANR1720I A path from TONGA_1 to 3582 DRIVE2 has been defined. tsm: AZOV_1>q path Source Name ----------AZOV_1 AZOV_1 AZOV_1 TONGA_1 TONGA_1 Source Type ----------SERVER SERVER SERVER SERVER SERVER Destination Name ----------3582 DRIVE1 DRIVE2 DRIVE1 DRIVE2 Destination Type ----------LIBRARY DRIVE DRIVE DRIVE DRIVE On-Line ------Yes Yes Yes Yes Yes

tsm: AZOV_1>q path f=d Source Name: Source Type: Destination Name: Destination Type: Library: Node Name: Device: External Manager: LUN: Initiator: Directory: On-Line: TONGA_1 SERVER DRIVE1 DRIVE 3582 abc

0 Yes

Last Update by (administrator): ADMIN Last Update Date/Time: 03/24/05 Source Name: Source Type: Destination Name: Destination Type: Library: Node Name: Device: External Manager: LUN: Initiator: Directory: On-Line: Last Update by (administrator): Last Update Date/Time: tsm: AZOV_1> TONGA_1 SERVER DRIVE2 DRIVE 3582 abc

13:15:46

0 Yes ADMIN 03/24/05

13:15:57

When we started an operation on the Library Client (such as a database backup), it detected that the path information that was retrieved from the Library Manager was not correct. It started SAN Discovery and, based on the drive serial number, it found a valid path to the drive. It then updated the new (and this time correct) path information remotely at the Library Manager. Based on the accurate SAN device mapping, it found the drive and performed the requested process, as shown in Example 9-4 on page 264.

Chapter 9. Tivoli Storage Manager SAN Discovery

263

Example 9-4 Database backup on the Library Client tsm: TONGA_1>ba db t=f s=y devc=lto2 ANR2280I Full database backup started as process 28. ANS8003I Process number 28 started. tsm: TONGA_1>q ac 03/16/2005 11:40:02 03/16/2005 11:40:02 03/16/2005 11:40:02 03/16/2005 11:40:02

03/16/2005 11:40:02 03/16/2005 11:40:02

03/16/2005 11:40:34

03/16/2005 11:40:34 03/16/2005 11:40:34

03/16/2005 11:40:34 03/16/2005 11:40:34 03/16/2005 11:40:34 03/16/2005 11:40:40

03/16/2005 11:40:40 03/16/2005 11:40:40

03/16/2005 11:40:40

03/16/2005 11:40:40 03/16/2005 11:40:40 03/16/2005 11:40:40

03/16/2005 11:40:47 03/16/2005 11:40:47 03/16/2005 11:40:47

ANR2017I Administrator ADMIN issued command: BACKUP DB t=f s=y devc=lto2c (SESSION: 1681) ANR0984I Process 28 for DATABASE BACKUP started in the BACKGROUND at 11:40:02. (SESSION: 1681, PROCESS: 28) ANR2280I Full database backup started as process 28. (SESSION: 1681, PROCESS: 28) ANR0408I Session 1684 started for server AZOV_1 (AIX-RS/6000) (Tcp/Ip) for library sharing. (SESSION: 1681) ANR0409I Session 1684 ended for server AZOV_1 (AIX-RS/6000). (SESSION: 1681) ANR0408I Session 1685 started for server AZOV_1 (AIX-RS/6000) (Tcp/Ip) for library sharing. (SESSION: 1681) ANR0408I Session 1686 started for server AZOV_1 (AIX-RS/6000) (Tcp/Ip) for library sharing. (SESSION: 1681) ANR0409I Session 1686 ended for server AZOV_1 (AIX-RS/6000). (SESSION: 1681) ANR8974I Found new path for TONGA_1 and target name DRIVE2 old path abc new path \\.\Tape1. Path information will be updated remotely. (SESSION: 1681) ANR0409I Session 1685 ended for server AZOV_1 (AIX-RS/6000). (SESSION: 1681) ANR8337I LTO volume 034AKK mounted in drive DRIVE2 (\\.\Tape1). (SESSION: 1681) ANR0511I Session 1681 opened output volume 034AKK. (SESSION: 1681) ANR0408I Session 1687 started for server AZOV_1 (AIX-RS/6000) (Tcp/Ip) for library sharing. (SESSION: 1681) ANR0409I Session 1687 ended for server AZOV_1 (AIX-RS/6000). (SESSION: 1681) ANR0408I Session 1689 started for server AZOV_1 (AIX-RS/6000) (Tcp/Ip) for library sharing. (SESSION: 1689) ANR0408I Session 1688 started for server AZOV_1 (AIX-RS/6000) (Tcp/Ip) for library sharing. (SESSION: 1681) ANR0409I Session 1688 ended for server AZOV_1 (AIX-RS/6000). (SESSION: 1681) ANR4550I Full database backup (process 28) complete, 830 pages copied. (SESSION: 1681, PROCESS: 28) ANR0985I Process 28 for DATABASE BACKUP running in the BACKGROUND completed with completion state SUCCESS at 11:40:40. (SESSION: 1681, PROCESS: 28) ANR8336I Verifying label of LTO volume 034AKK in drive DRIVE2 (\\.\Tape1). (SESSION: 1681) ANR8468I LTO volume 034AKK dismounted from drive DRIVE2 (\\.\Tape1) in library 3582. (SESSION: 1681) ANR0409I Session 1689 ended for server AZOV_1 (AIX-RS/6000). (SESSION: 1689)

264

Get More Out of Your SAN with IBM Tivoli Storage Manager

When we queried the path information, we saw the updated information, as shown in Example 9-5. Note that the path to DRIVE1 was not updated because it was not used in this operation. However, the path to DRIVE2 reflects the SAN Discovery and the correct device name.
Example 9-5 Path definition on the Library Manager tsm: AZOV_1>q path f=d Source Name: Source Type: Destination Name: Destination Type: Library: Node Name: Device: External Manager: LUN: Initiator: Directory: On-Line: Last Update by (administrator): Last Update Date/Time: Source Name: Source Type: Destination Name: Destination Type: Library: Node Name: Device: External Manager: LUN: Initiator: Directory: On-Line: Last Update by (administrator): Last Update Date/Time: tsm: AZOV_1> TONGA_1 SERVER DRIVE1 DRIVE 3582 abc

0 Yes ADMIN 03/24/05 TONGA_1 SERVER DRIVE2 DRIVE 3582 \\.\Tape1

13:15:46

0 Yes SERVER_CONSOLE 03/24/05 15:17:17

Restriction: With SANDISCOVERY set to ON, Tivoli Storage Manager tries to find an alternate path to a device whenever the open of a device fails. In order to find an alternative path, the operating system might be required to update the special device file names, which is, in most cases, not an automatic process. Tivoli Storage Manager is limited to seeing what the operating system reports. However, it frees you from the task of updating paths to point to the right device.

Chapter 9. Tivoli Storage Manager SAN Discovery

265

266

Get More Out of Your SAN with IBM Tivoli Storage Manager

10

Chapter 10.

Server-free data movement


This chapter describes server-free backup and restore and shows how to implement it. It discusses the following topics: Overview of server-free data movement Requirements for server-free data movement Server-free data movement in our lab environment Note: The information in this chapter is taken from Tivoli Storage Manager Version 5.1 Technical Guide, SG24-6554. Figures and examples might not match exactly later versions of Tivoli Storage Manager. Server-free data movement uses the SCSI-3 extended copy command to do full-volume backup and restore. It provides the following advantages: Reduces Tivoli Storage Manager client and server processor use. Eliminates almost all data movement on the LAN. Improves performance for data movement operations. Allows the server to handle more concurrent client connections and server operations.

Copyright IBM Corp. 2005. All rights reserved.

267

10.1 Overview of server-free data movement


Tivoli Storage Manager Version 5 Release 1 with PTF 5.1.1 introduced server-free data movement. The feature is currently only available with a Windows 2000 client and Windows server platform. To introduce server-free data movement, let us first look at Tivoli Storage Managers image backup feature. Image backup is available for the AIX, HP, Sun, Windows 2000, and Windows 2000 client platforms. Image backup is performed via the Logical Volume Storage Agent (LVSA), which is capable of taking a snapshot of the volume while it is online. Figure 10-1 shows the data flow for image backup.

Control Information Data Flow

Tivoli Storage Manager Server Tivoli Storage Manager Client LVSA

Original Blocks File (OBF)

Tivoli Storage Manager Client managed disk volume

Figure 10-1 Image backup

This image backup is a block-by-block copy of the data. Optionally, only occupied blocks can be copied. If the snapshot option is used (rather than static), then any blocks which change during the backup process are first kept unaltered in an Original Block File. In this way, the client is able to send a consistent image of a volume as it was at the start of the snapshot process to the Tivoli Storage Manager server. Server-free data movement is simply a special form of standard Windows 2000 image backup. The Storage Agent used in LAN-free backups is no longer used for this functionality. Figure 10-2 on page 269 shows the data flow for server-free data movement.

268

Get More Out of Your SAN with IBM Tivoli Storage Manager

Control Information Data Flow

LAN

Tivoli Storage Manager Client LVSA

Tivoli Storage Manager Server

SAN

Data Mover

Tivoli Storage Manager Server managed tape library

Figure 10-2 Server-free backups

The data movement is actually done by a SAN Data Gateway (SDG) or similar device on the SAN. If snapshot is being used, then an Original Block File (OBF) file is created to hold the original blocks if any are changed during the backup. This OBF is sent to the server with the image, which contains any changes made during the backup. On restore, it is the clients job to merge the restored image with the blocks in the OBF to reproduce the volume as it was at the start of the snapshot backup. Thus, both the Tivoli Storage Manager client and server machines do not have to read and write the data at all. The Tivoli Storage Manager server sends commands to the SDG device to tell it which blocks to move from which SAN-attached disk to which SAN-attached tape device. Important: It is worth pointing out that although many references are made to a Data Mover or data mover device in server-free backups, the data is not actually moved per se but is actually copied from the source to the target location. After a backup has completed using server-free data movement, the original data remains on the client disk. Server-free data movement provides a way to back up and restore large volumes of data between client-owned disks and storage devices using a method that considerably reduces overhead on the Tivoli Storage Manager server and the Tivoli Storage Manager client. Remember that only volume images and not individual files can be moved by server-free data movement. It minimizes data transfer on the LAN. The data is transferred block-by-block rather than via file I/O. Both Raw and NTFS volumes can be backed up using server-free data movement but not FAT volumes. Data that has been backed up using server-free data movement can be restored over a server-free path, over a LAN-free path, or over the LAN itself.

Chapter 10. Server-free data movement

269

All data movement is out board of the client machine. In this way, data is copied directly from the SAN-attached Tivoli Storage Manager client disk to the SAN-attached tape drive via the SAN Data Gateway data mover. No Storage Agent is involved in the data movement as in LAN-free backups. It is important to realize that this type of backup does not bypass the Tivoli Storage Manager completely. The Tivoli Storage Manager server discovers devices in the SAN, ensures that all the required paths exist, transforms extents to xcopy commands, mounts and positions the tape, records the information about the backup/restore in its database, and so forth. The metadata is written via the traditional LAN path. Notice that the client data is written directly from SAN-attached disk to SAN-attached tape via the SAN Data Gateway data mover. Metadata goes to the Tivoli Storage Manager server via the LAN path. However, the client machine (application server) no longer has to read the data from disk and write it to the SAN-attached tape as done previously on LAN-free backups. In this way, the data movement is application server-free. The impact on application servers is minimized with server-free data movement. It reduces both Tivoli Storage Manager client and server processor use. The use of a SCSI-3 EXTENDED COPY command causes data to be transferred directly between devices over the SAN or SCSI bus. The SCSI-3 command is issued and initiated by the Tivoli Storage Manager server and carried out by the data mover device that exists on the SAN. The Tivoli Storage Manager client builds the extent lists and sends them to the Tivoli Storage Manager server which controls the conversation with the data mover. The data mover device is responsible for moving the data either from a SAN-attached client-owned disk to a SAN-attached tape drive (backup), or from a SAN-attached tape drive to a SAN-attached client-owned disk (restore).The data mover device must support the SCSI-3 EXTENDED COPY command, which conforms to the ANSI T10 SPC-2 standard. For a current list of supported data mover devices, site:
http://www-306.ibm.com/software/sysmgmt/products/support/IBMTivoliStorageManager.html

Search on server-free and select the link entitled Server-Free Data Movement Information. The data mover device can be anywhere in the SAN, but it has to be able to address the LUNs for both the disk and tape devices that it is moving data between. It has to be able to see the LUNs in the same way that the Tivoli Storage Manager server and client see them. The SAN-attached disk must be able to respond to a query for its serial number or WWN so that the Tivoli Storage Manager server can verify that it is sending data to the correct device. Both SCSI and fibre connectivity are supported. The Tivoli Storage Manager server is able to handle more concurrent client connections because it is not copying data. Similarly, the Tivoli Storage Manager client is able handle more application load because cycles are not needed to send any data buffers to the server. Online server-free image backup is currently supported with a Windows NT/2000 server and Windows 2000 clients. By default, it uses Tivoli Storage Managers Logical Volume Storage Agent, which is installed from the Administration Center, and a SAN Data Gateway for the data movement.

10.1.1 Related options


You enable the Tivoli Storage Manager server to perform server-free data movement operations by using the SET SERVERFREE command:
SET SERVERFREE STATUS=ON

270

Get More Out of Your SAN with IBM Tivoli Storage Manager

You can set the amount of data to be moved during an instance of an extended copy command by specifying the BATCHSIZE parameter when you issue the SET SERVERFREE command. The BATCHSIZE parameter specifies the maximum amount of data, in megabytes, that is copied in a single instance of an extended copy command. The minimum value is 10 MB, the maximum value is 1000 MB, and the default value is 80 MB. For example, if you wanted to set a batchsize of 320 MB, you would issue the following command:
SET SERVERFREE BATCHSIZE=320

You can specify the number of concurrent copy operations that the data mover can support by including the COPYTHREADS parameter when you issue the DEFINE DATAMOVER command. The COPYTHREADS parameter is used to govern how many copy commands can run concurrently using this same data mover. For example, to perform four concurrent server-free data movement operations, specify the following when defining a data mover:
DEFINE DATAMOVER SCSI1 TYPE=SCSI WWN=2002006045160D2A SERIAL=21081300957 DATAFORMAT=NONBLOCK COPYTHREADS=4

The default value is one. See your data mover device specific documentation to obtain the maximum value. The number must be greater than zero. If other programs or servers are using the extended copy capabilities of the data mover device, you might want to specify fewer than the maximum number of concurrent copy commands that are supported by the device for this parameter.

10.1.2 Data format for server-free data movement


Data that is transferred using server-free data movement must be stored in a different format than the format that has traditionally been used for Tivoli Storage Manager. The new data format is called NONBLOCK and must be specified when you define a data mover for server-free data movement and when you define a storage pool that is used for server-free data movement. Attention: The terms NONBLOCK (or NONblock) and Native Without mean the same thing. If you look at a storage pool that has been defined to hold server-free backups, you see NONblock in the Storage Pool Data Format field. However, if you display a SCSI Data Mover device (such as the SAN Data Gateway), then the Storage Pool Data Format there shows Native without. Data that has been backed up or archived using server-free data movement and stored in a storage pool with a data format of NONBLOCK, can be moved to other storage pools. Likewise, you can also move an uncompressed image object backed up or archived by a client from a traditional storage pool to a NONBLOCK storage pool and restore it using server-free. Server operations such as migration, move data, and storage pool backup can cause this data to be stored in storage pools that do not have a data format of NONBLOCK. If this occurs, it is no longer possible to restore the data using server-free. However, the data can be restored over the LAN.

Chapter 10. Server-free data movement

271

10.2 Requirements for server-free data movement


You must meet the following requirements when setting up server-free data movement operations: Operating system for the Tivoli Storage Manager server and client Supported Windows operating system for Tivoli Storage Manager server and client. Data mover device The data mover device must support the version of the SCSI-3 EXTENDED COPY command that conforms to the ANSI T10 SPC-2 standard. Fibre Channel Host Bus Adapter (FC HBA) You need to install a Host Bus Adapter DLL that supports the Storage Network Industry Associations (SNIA) common API for purposes of device discovery. Consult the HBA documentation or the HBAs manufacturer for the location of the required DLL. For QLogic HBAs refer to:
http://www.qlogic.com/support/home_support.asp

Attention: Device addressing in a SAN can be tricky, especially in a Windows environment, where addition or removal of devices without disruption can cause a change to the SCSI address or device name (//./Tape0) of existing devices. If possible, use persistent naming (or binding) with a static device naming convention. For more details, see the IBM Redpaper Managing the device addressing of SAN attached tape for use with Tivoli Storage Manager, REDP0150. Tape libraries SCSI-attached or Fibre Channel-attached tape libraries that are supported by the Tivoli Storage Manager device driver. Tape drives If a tape library contains one or more drives, the data mover must have addressability to all drives that will be used for server-free data movement. Disks The client-owned disks must be accessible from the data mover and the Tivoli Storage Manager server machines HBA. Verify the compatibility of specific combinations of data mover devices, tape devices, and SAN devices with the manufacturers of the hardware. Not all data movers support all drives. Before attempting to set up server-free data movement operations, first verify that Tivoli Storage Manager supports the devices you wish to use. For more information about supported Data Mover Devices, FC HBAs, Tape Libraries, Tape Drives and Disks, see:
http://www-306.ibm.com/software/sysmgmt/products/support/IBMTivoliStorageManager.html

10.2.1 Preparing for server-free data movement


As usual, careful preparation is essential. Allow plenty of time to set up server-free data movement. In our lab, we used a SAN Data Gateway 2108-G07 as data mover. The microcode of the SAN Data Gateway must be 3.43.14 or higher.

272

Get More Out of Your SAN with IBM Tivoli Storage Manager

First, we installed the current microcode level on the 2108-G07 SDG itself. After that, we enabled the SDG as a data mover. A license key is required to enable data movement. We used the StorWatch SAN Data Gateway Specialist to license the SAN Data Gateway as a data mover.

IBM SAN Data Gateway


The 2108-G07 SDG needs to be at current firmware levels to perform server-free data movement as directed by the Tivoli Storage Manager server. The following procedure describes how to update the firmware of the SAN Data Gateway Model 2108-G07, enable the data mover, and set up the Gateway for server-free data movement. 1. Download the latest version of the firmware from:
http://www-1.ibm.com/support/docview.wss?rs=528&context=STCVQ5X&q=SAN&uid=ssg1S4000067

2. Install the IBM StorWatch SAN Data Gateway Specialist if you have not already done so. See the IBM Storage Area Network Data Gateway Installation and Users Guide, SC26-7304, for details on how to do this installation. You need to install both StorWatch server and client code on the machine. The client connects to the server automatically and then the server connects to the SAN Data Gateway of your choice (by IP address). 3. Start the IBM SAN Data Gateway Specialist and connect to the SAN Data Gateway that you want to update using the IP-address of the Gateway. The specialist main window appears, as shown in Figure 10-3.

Figure 10-3 Specialist main window

4. The right side of the window shows the current firmware revision (for example, 3.42.12). Select Controls Update Firmware to get the file selection window. Choose the new firmware file and click Open. Confirm that you want to download the firmware, as shown in Figure 10-4.

Figure 10-4 Attention! message

Chapter 10. Server-free data movement

273

Downloading the firmware into the SAN Data Gateway is a disruptive process, so the specialist displays a warning message. Click Yes to start the download. 5. After the firmware has been upgraded, you are prompted to restart the SAN Data Gateway, as shown in Figure 10-5. Click Yes to restart.

Figure 10-5 Upload completed message

6. If you are satisfied that I/O is halted, click Yes to the message that is shown in Figure 10-6.

Figure 10-6 Warning! message

7. After the restart, reconnect to the SAN Data Gateway to enable the Data Mover. Select Controls Feature Enable Data Mover. The Enter License Key window appears (Figure 10-7). Enter your license key to activate the Data Mover.

Figure 10-7 Enable Data Mover window

8. After you update the firmware and activate the data mover, check whether the setup of the SAN Data Gateway for server-free data movement is correct. Select the Fibre Channel port that is connected to the SAN and click Controls Fibre Channel, as shown in Figure 10-8 on page 275.

274

Get More Out of Your SAN with IBM Tivoli Storage Manager

Figure 10-8 Fibre Channel selection

9. The Fibre Channel parameters window appears, as shown in Figure 10-10 on page 276.

Figure 10-9 Fibre Channel parameters window

Select NT as the Host Type to be sure that the Tivoli Storage Manager server can see the Gateway via the SAN. Select Target and Initiator and Public Port Mode to be sure the Gateway can see the disk subsystem as well as the tape drives. For Connection Options use Loop or Point to Point, depending on whether you use a Fibre Channel Hub or a Fibre Channel Switch. Click OK to apply all changes.
Chapter 10. Server-free data movement

275

Note: The port settings Public and Target and Initiator can only be selected if the Fibre Channel ports of the SAN Data Gateway uses 2200-type HBAs. With 2100-type HBAs, the port settings do not work. 10.To check whether the Gateway is correctly connected to the SAN and sees all necessary devices, expand the Fibre Channel section of the Channel you use for your SAN connection, as shown in Figure 10-10.

Figure 10-10 Visible devices for Fibre Channel - 4

If your setup is correct, you see the disk devices, the SAN Data Gateway of the tape library, as well as the medium changer and its tape devices. In this example, you see two disk devices, the SAN Data Gateway, two tape drives, and the medium changer.

276

Get More Out of Your SAN with IBM Tivoli Storage Manager

10.3 Server-free data movement in our lab environment


Figure 10-11 shows our lab environment for the original test of server-free data movement (server-free setup 1).

JAMAICA ITSM 5.1.0.0 Server QLogic 2200

LAN
100BaseT

Data movement
CLYDE ITSM 5.1.0.0 Client QLogic 2200

Fibre

Fibre Magstar MP Tape 3570-C02 (2 drives) lb1.3.0.3; mt1 2.0.3; mtl .4.0.3 WWN1+2=2001006045161767 SN1=0000000 B1982; SN2-00000000B2070

SAN
FC Switch 2109-S08

SCSI

Fibre

SAN Data GW 2108-G07 WWN=200400604516150D SN=21081302315 DATAMOVER

Fibre

FAStT700 WWN=200200A0B80CBCE8 SN=1T14859797

Figure 10-11 Lab server-free setup 1

We have shown the World Wide Names and serial numbers of the devices which were needed during the Path and Device definitions we used. Notice than in this test the tape library was directly attached to the SCSI port on the SAN Data Gateway data mover device itself. We also tested server-free data movement in our lab with the tape library attached to a second SAN Data Gateway device which was not enabled as a data mover (server-free setup 2), as shown in Figure 10-12 on page 278.

Chapter 10. Server-free data movement

277

JAMAICA ITSM 5.1.0.0 Server QLogic 2200

LAN
100BaseT

Data movement
CLYDE ITSM 5.1.0.0 Client QLogic 2200

Fibre

Fibre Magstar MP Tape 3570-C02 (2 drives) lb1.3.0.3; mt1 2.0.3; mtl .4.0.3 WWN1+2=2001006045161767 SN1=0000000 B1982; SN2-00000000B2070

SAN
FC Switch 2109-S08 Fibre

SCSI

SAN Data GW 2108-G07 WWN=2001006045161767 SN=21081302794 SAN Data GW 2108-G07 WWN=200400604516150D SN=21081302315 DATAMOVER

Fibre

Fibre

FAStT700 WWN=200200A0B80CBCE8 SN=1T14859797

Figure 10-12 Lab server-free setup 2

Figure 10-12 shows a Tivoli Storage Manager server (JAMAICA) and Tivoli Storage Manager client (Clyde) both at Tivoli Storage Manager V5.1 and both running Windows 2000. They are connected to a SAN with a FAStT700 disk subsystem and a 2108-G07 SAN Data Gateway which had been enabled as our data mover. The second 2108-G07 SAN Data Gateway was required only because our Magstar library only has SCSI connectivity. We have shown the World Wide Names and serial numbers of all the devices we needed during the preparations for server-free data movement.

Preparing Tivoli Storage Manager


The following are the relevant names that were used for the required entities as defined on the Tivoli Storage Manager server: Server name = JAMAICA Node name = CLYDE Library name = MAGLIB Tape drive 1 = MAGDRV1 Tape drive 2 = MAGDRV2 Device class = MAGCLASS Storage pool = SRVFREEPOOL Management class = SRVFREEMC Data Mover = SRVFREEDM

278

Get More Out of Your SAN with IBM Tivoli Storage Manager

Configuring Tivoli Storage Manager


To configure server-free setup 2, perform the following on the Tivoli Storage Manager server: 1. Connect devices to the SAN. Before you configure Tivoli Storage Manager for server-free data movement, all devices must be connected to the SAN that are needed for this function, including: Data mover device Tape libraries Tape drives Disk devices

The devices must exist on the SAN and must be visible for the Tivoli Storage Manager server before they are defined to Tivoli Storage Manager. Also, if you are using zoning, ensure that the following devices can see each other: On the Tivoli Storage Manager server: data mover device, tape libraries, tape drives, disk devices On the Tivoli Storage Manager client: disk devices 2. Determine the World Wide Name, Serial Number, and LUN Before you configure Tivoli Storage Manager for server-free data movement, you must first identify and record the World Wide Name, serial number, and LUN of each disk device and tape drive that are used, and the World Wide Name and serial number of the data mover. This information is used when defining devices and device paths. To identify this information, issue the QUERY SAN command. The QUERY SAN command displays the devices that can be detected on the SAN, as well as the information for those devices. Example 10-1 shows the output of this command.
Example 10-1 Output of the QUERY SAN command Operation Results Device Type -------DISK DISK GATEWAY DRIVE LIBRARY DRIVE GATEWAY Vendor -------IBM IBM PATHLGHT IBM IBM IBM PATHLGHT Product -----------1742 1742 SAN Gateway 03570C12 03570C12 03570C12 SAN Gateway Serial Number -----------1T14859797 1T14859797 21081302794 0000000B1982 0000000B1982 0000000B2070 21081302315 Device --------------

mt1.2.0.3 lb1.3.0.3 mt1.4.0.3

To get more information, including the World Wide Name, issue the QUERY SAN FORMAT=DETAILED command, which produces the output as shown in Example 10-2.
Example 10-2 Output of query san format=detailed command Operation Results Device Type: Vendor: Product: Serial Number: Device: Data Mover: Node WWN: Port WWN: LUN: DISK IBM 1742 1T14859797 No 200200A0B80CBCE7 200200A0B80CBCE8 0

Chapter 10. Server-free data movement

279

SCSI Port: 3 SCSI Bus: 0 SCSI Target: 0 Device Type: Vendor: Product: Serial Number: Device: Data Mover: Node WWN: Port WWN: LUN: SCSI Port: SCSI Bus: SCSI Target: Device Type: Vendor: Product: Serial Number: Device: Data Mover: Node WWN: Port WWN: LUN: SCSI Port: SCSI Bus: SCSI Target: Device Type: Vendor: Product: Serial Number: Device: Data Mover: Node WWN: Port WWN: LUN: SCSI Port: SCSI Bus: SCSI Target: Device Type: Vendor: Product: Serial Number: Device: Data Mover: Node WWN: Port WWN: LUN: SCSI Port: SCSI Bus: SCSI Target: Device Type: Vendor: Product: Serial Number: DISK IBM 1742 1T14859797 No 200200A0B80CBCE7 200200A0B80CBCE8 1 3 0 0 GATEWAY PATHLGHT SAN Gateway 21081302794 No 1000006045161767 2004006045161767 0 3 0 1 DRIVE IBM 03570C12 0000000B1982 mt1.2.0.3 No 1000006045161767 2004006045161767 2 3 0 1 LIBRARY IBM 03570C12 0000000B1982 lb1.3.0.3 No 1000006045161767 2004006045161767 3 3 0 1 DRIVE IBM 03570C12 0000000B2070

280

Get More Out of Your SAN with IBM Tivoli Storage Manager

Device: Data Mover: Node WWN: Port WWN: LUN: SCSI Port: SCSI Bus: SCSI Target: Device Type: Vendor: Product: Serial Number: Device: Data Mover: Node WWN: Port WWN: LUN: SCSI Port: SCSI Bus: SCSI Target:

mt1.4.0.3 No 1000006045161767 2004006045161767 4 3 0 1 GATEWAY PATHLGHT SAN Gateway 21081302315 Yes 100000604516150D 200400604516150D 0 3 0 2

When you record the information, be sure to use Port WWN as the World Wide Name to be used in the path definitions. For example, the information that we recorded for our first tape drive was: World Wide Name: 2004006045161767 Serial number: 0000000B1982 LUN: 2 You can also get the same information from the Tivoli Storage Manager Management Console, as shown in Figure 10-13 and Figure 10-14 on page 282.

Figure 10-13 Device information

Chapter 10. Server-free data movement

281

Figure 10-14 Device information window

3. Obtain and correlate the disk information After detecting and recording the information for all of the devices that are detectable on the SAN, you must obtain and correlate the information for the disks that you are backing up. Log into the client machine that owns the disk and start the Tivoli Storage Manager client command line interface. Run the QUERY DISKINFO command to get the information for disks that are associated with the client, as shown in Example 10-3.
Example 10-3 Disk information of client CLYDE Disk name LUN Serial number ---------------------------------Harddisk0 0 TEF76061 Harddisk1 0 1T14859797

Note: The output of the QUERY DISKINFO command will display information about every disk defined on the client, SAN-attached as well as direct attached. Compare the information from the QUERY DISKINFO command output to the output of the QUERY SAN command. In this example, the serial number and LUN from the disk, Harddisk1, match the information for the disk that is displayed in the output from the QUERY SAN command, indicating that this is the disk to be backed up. The information for the disk that will be backed up is: Node name: Clyde Device name: Harddisk1 World wide name: 200200A0B80CBCE8 Serial number: 1T14859797 LUN: 0

4. Enable the server to perform server-free data movement operations using the SET SERVERFREE command as follows:
set serverfree status=on

282

Get More Out of Your SAN with IBM Tivoli Storage Manager

To check if the server supports server-free data movement and the server-free status is enabled, use the QUERY STATUS command. As you can see in the last two rows of the output in Figure 10-15, server-free is enabled and the server-free batch size is 80 MB.

Figure 10-15 QUERY STATUS output

5. Define the library to the server using the DEFINE LIBRARY command:
DEFINE LIBRARY MAGLIB LIBTYPE=SCSI SHARED=NO

6. Define the library path from the Tivoli Storage Manager server to the library using the DEFINE PATH command:
DEFINE PATH JAMAICA MAGLIB SRCTYPE=SERVER DESTTYPE=LIBRARY DEVICE=LB1.3.0.3

7. Define the tape drive(s) to the Tivoli Storage Manager server using the DEFINE DRIVE command.
DEFINE DRIVE MAGLIB MAGDRV1 ELEMENT=16 WWN=2004006045161767 SERIAL=0000000B1982 DEFINE DRIVE MAGLIB MAGDRV2 ELEMENT=17 WWN=2004006045161767 SERIAL=0000000B2070

8. Define the drive paths from the Tivoli Storage Manager server to the tape drive using the DEFINE PATH command:
DEFINE PATH JAMAICA MAGDRV1 SRCT=SERVER DESTTYPE=DRIVE LIBRARY=MAGLIB DEVICE=MT1.2.0.3 DEFINE PATH JAMAICA MAGDRV2 SRCT=SERVER DESTTYPE=DRIVE LIBRARY=MAGLIB DEVICE=MT1.4.0.3

9. Define the device class to the Tivoli Storage Manager server using the DEFINE DEVCLASS command:
DEFINE DEVCLASS MAGCLASS DEVTYPE=3570 LIBRARY=MAGLIB

10.Define the storage pool(s) to the Tivoli Storage Manager server using the DEFINE STGPOOL command:
DEFINE STGPOOL SRVFREEPOOL MAGCLASS MAXSCRATCH=5 DATAFORMAT=NONBLOCK

Note: The DATAFORMAT option must be defined as NONBLOCK for server-free.

Chapter 10. Server-free data movement

283

11.Define the management class using the DEFINE MGMTCLASS command:


DEFINE MGMTCLASS STANDARD STANDARD SRVFREEMC

12.Define the backup copygroup with the server-free storage pool, SRVFREEPOOL, with the DEFINE COPYGROUP command:
DEFINE COPYGROUP STANDARD STANDARD SRVFREEMC TYPE=BACKUP DESTINATION=SRVFREEPOOL

13.Activate a STANDARD policy set in the STANDARD policy domain with the ACTIVATE POLICYSET command:
ACTIVATE POLICYSET STANDARD STANDARD

14.Register the client node CLYDE and the password of the node as a Tivoli Storage Manager node with the REGISTER NODE command:
REGISTER NODE CLYDE CLYDEPWD

15.Define each disk with the DEFINE DISK command:


DEFINE DISK CLYDE HARDDISK1 WWN=200200A0B80CBCE8 SERIAL=1T14859797

Attention: The disk device name is case sensitive. 16.Define the data mover using the DEFINE DATAMOVER command:
DEFINE DATAMOVER SRVFREEDM TYPE=SCSI WWN=200400604516150D SERIAL=21081302315 DATAFORMAT=NONBLOCK

17.Define the paths from the data mover to the tape drive with the DEFINE PATH command:
DEFINE PATH SRVFREEDM MAGDRV1 SRCTYPE=DATAMOVER DESTTYPE=DRIVE LIBRARY=MAGLIB LUN=2 DEFINE PATH SRVFREEDM MAGDRV2 SRCTYPE=DATAMOVER DESTTYPE=DRIVE LIBRARY=MAGLIB LUN=4

Note: You might wonder why you have to use a LUN number in the DEFINE PATH command for the data mover when you were able to use the device name (mt1.2.0.3) when doing the DEFINE PATH from the Tivoli Storage Manager server to the same device earlier. The LUN is required because the SAN Data Gateway data mover uses it to directly address the device on the SAN. The SAN Data Gateway does not need to know the device name. The WWN and LUN combination uniquely identify the device. You can obtain the LUN for the device from the Device Information window, as shown in Figure 10-14 on page 282. 18.Define the paths from the data mover to each disk using the DEFINE PATH command:
DEFINE PATH SRVFREEDM HARDDISK1 SRCTYPE=DATAMOVER DESTTYPE=DISK NODE=CLYDE LUN=0

Attention: The disk device name is case sensitive. The server setup is now complete.

Setting up Tivoli Storage Manager client


Server-free backup is only available for NTFS-formatted volumes and raw volumes. FAT and FAT32 file systems are not supported. The following volume types are supported: Simple Spanned Mirrored

284

Get More Out of Your SAN with IBM Tivoli Storage Manager

To enable the Windows client for server-free backup and restore: 1. Enable the client for server-free backups by selecting the Tivoli Storage Manager client preferences editor under the General tab as shown in Figure 10-16.

Figure 10-16 Enabling server-free backups on the client

Alternatively, you can edit the Tivoli Storage Manager client options manually in the dsm.opt file, if you prefer. Example 10-4 shows what our client dsm.opt file looked like for server-free data movement. You need a line to enable server-free data movement (ENABLESERVERFREE YES) and an INCLUDE.IMAGE statement to identify the target Management Class (in this case, SERVERFREEMC that was defined earlier) and, thus, the target storage pool for any drive you want to backup using server-free data movement.
Example 10-4 Tivoli Storage Manager client options file for Server-Free Data Movement NODENAME CLYDE PASSWORDACCESS GENERATE TCPSERVERADDRESS 9.1.36.156 ENABLESERVERFREE YES INCLUDE.IMAGE D: SERVERFREEMC

Chapter 10. Server-free data movement

285

2. Remember, you must have a SAN Data Mover device enabled and defined to the Tivoli Storage Manager server for server-free data movement to take place. If you attempt a server-free image backup from the client without a data mover configured, you will see the error that is shown in Figure 10-17.

Figure 10-17 Warning if data mover not available on server-free backup

10.3.1 Server-free backup and restore


When both the client and server have been configured and enabled for server-free image backups, you can perform server-free backups and restores from the client GUI or using the command line interface.

Backup
To perform a server-free backup from the client GUI, select the SAN-attached drive that you want to back up, select Image Snapshot Backup or Image Backup, and then select Backup. A panel, such as that shown in Figure 10-18, confirms that the image backup is taking place on the server-free path.

Figure 10-18 Server-free image backup in progress

Although the full drive capacity is displayed (in this case, 9.99 GB), you can choose to back up only the occupied blocks and skip the empty ones. To do this, specify a non-zero value for the Image Gap Size option if you are backing up from an NTFS volume. A non-zero value is the default behavior. The default for the Image Gap Size option is 5 MB for server-free backup, meaning that empty regions of 5 MB or larger are skipped. Note: The Image Gap Size option can be specified as an option to the backup image command, specified in the dsm.opt client options file, or specified in the GUI client preferences. See IBM Tivoli Storage Manager for Windows: Installation and Users Guide, GC32-0788 for more information about this option.

286

Get More Out of Your SAN with IBM Tivoli Storage Manager

During backup, the blue progress bar indicates how much data has been transferred. It only reports on the actual data that is transferred, so it does not completely fill the space when the server-free backup has completed. For example, in this case, a 9.99 GB drive was backed up, of which only 971 MB was occupied. Therefore, the bar only went approximately 10% of the way across. When the backup has completed, the status report, as shown in Figure 10-19, shows how much data was actually transferred and the transfer rates that were held. Notice that only one object (one image) was backed up.

Figure 10-19 Server-free backup status report

You can use the command line interface to perform the same image backup. By default, the image backup is a snapshot, but you can request a static backup if you prefer. Figure 10-20 on page 288 shows the typical output that is displayed when performing a server-free image backup via the command line interface. A server background process is started to control the data movement from the clients SAN-attached disk to the servers SAN-attached tape device, using the SAN Data Gateway data mover functions. The process reports the size of the entire volume that was backed up and the number of actual bytes that were transferred to the tape device.

Chapter 10. Server-free data movement

287

Figure 10-20 Server-free image backup using command line interface

The background process that is initiated on the Tivoli Storage Manager server can also be seen in the servers activity log, using the QUERY ACTLOG command, as shown in Figure 10-21.

Figure 10-21 Activity log extract showing server-free backup

You could also use the QUERY PROCESS command to show any server-free processes in progress on the server.

288

Get More Out of Your SAN with IBM Tivoli Storage Manager

Restore
You can restore a backup image server-free from the client GUI or command line interface. On the GUI, select the image to restore and click Restore, as shown in Figure 10-22.

Figure 10-22 Server-free restore selection

You get a warning that the entire volume is about to be overwritten, as shown in Figure 10-23.

Figure 10-23 Warning on image restore

When you click Yes, the Task List panel is displayed (Figure 10-24 on page 290). Notice the indication that the restore is server-free.

Chapter 10. Server-free data movement

289

Figure 10-24 Server-free image restore

As with the backups, the blue progress bar does not completely fill the space, because it is recording only the data that was transferred (in the occupied blocks) and not the entire volume. You can also restore the backup image using the command line interface, as shown in Figure 10-25. The default is to restore the image to its original location. As with the image backup, there is an indication that a background process has been started on the Tivoli Storage Manager server to control data movement from the tape device back to the clients SAN-attached disk.

Figure 10-25 Server-free image restore using command line interface

As with the backup, this background process can be seen in the Tivoli Storage Manager server activity log, as shown in Figure 10-26 on page 291.

290

Get More Out of Your SAN with IBM Tivoli Storage Manager

Figure 10-26 Activity log extract showing server-free restore

Attention: You might notice that the number of bytes that were processed on the restore is slightly less than the number of bytes processed during the backup. Do not panic! You have not lost any data. The byte count for the backup includes all the bytes that were moved to the tape drive, including the frame headers and the object header. The byte count for the restore only includes the bytes that were actually moved to the disk and does not contain any headers. The larger the image you backup, the greater is this discrepancy.

Chapter 10. Server-free data movement

291

292

Get More Out of Your SAN with IBM Tivoli Storage Manager

11

Chapter 11.

Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP
This chapter describes the functions of Tivoli Storage Manager with its specific component for mySAP environments. Both DB2 and Oracle databases are supported. However, the example included in this chapter shows Oracle. This chapter contains the following topics: Introduction to Data Protection for mySAP Overview of the test environment Requirements and prerequisites Installation for this environment Backup Restore Special environments Determining problems Special Notice: This chapter references the SAPDBA Oracle administration utilities. However, at the time of writing, these utilities have been phased out by SAP. These utilities are now repackaged under a new suite called BR*Tools. In all cases, SAP recommends using the latest release of BR*Tools, which at the time of writing is 6.40.

Copyright IBM Corp. 2005. All rights reserved.

293

11.1 Introduction to Data Protection for mySAP


Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP enables you to use ESS FlashCopy for backup/restore of mySAP databases (DB2 UDB and Oracle). All the different modes of FlashCopy are supported within the Data Protection module, including: NOCOPY: Data is copied only to the target volumes when changed. COPY: Data is copied to target volumes using a background process. INCR: The Disk Subsystem keeps track of dirty blocks and copies only changed blocks to the target volumes. The first incremental is a full copy. The FlashCopy process yields the following benefits over a conventional (direct tape) operation:

Zero impact backup. The backup window on the operational database is minimal (minutes), and the load for transferring data to backup storage is moved from the production server to a backup server.
Full operational flexibility. The zero impact characteristic eliminates the need for a backup window and allows backups to occur any time and in shortened intervals (shorter recovery). Minute restore: Flashback restore (from backups on disk) shortens the restore time from hours to minutes. Data Protection for IBM ESS for mySAP (Data Protection for IBM ESS for mySAP) can perform disk-only as well as tape backups to a Tivoli Storage Manager server or a combination of both. In a disk-only backup, copies of the production servers disks are kept after the FlashCopy operation, and you can perform a very fast FlashBack restore. Recovery can start within minutes, making the database available much faster after data loss. If you have only one set of target volumes, only one disk-only backup will be available for restore, because subsequent backups will overwrite the existing version. Multiple backup generations on disk are supported and need multiple sets of target volumes on the ESS. If you send the backups to the Tivoli Storage Manager server, then normal Tivoli Storage Manager versioning policy applies, because you can maintain and restore backups from different backup operations. A number of advanced features are supported with Tivoli Storage Manager for Hardware Data Protection for IBM ESS for mySAP, including: HACMP environments. Special functionality for enhanced volume groups has been added for the target system. AIX LVM mirroring for storage high availability (each mirror in a separate ESS) is supported - only one mirror needs to be FlashCopied, FlashCopies can be taken alternating from both ESSs. Concurrent I/O (CIO) environments are supported. On the backup server, the Subsystem Device Driver (SDD) is used to speed up the backup to the Tivoli Storage Manager server. Additional command scripts are provided to support the database administrator for preand post-restore operations. Data Protection for IBM ESS for mySAP is tightly integrated with database administration utilities (db2admin for DB2 UDB and BRTools utilities for mySAP) for backup and restore operations, which provides for automated processes that are consistent with conventional (tape) backup/restore.

294

Get More Out of Your SAN with IBM Tivoli Storage Manager

11.2 Overview of the test environment


The test environment in our lab included three IBM pSeries servers and an IBM ESS. A separate Tivoli Storage Manager server, also running AIX, was set up for other use. In addition , we could have used the backup server as the Tivoli Storage Manager server. Figure 11-1 illustrates the details of the test environment.

pSeries ID S1 AIX 5.3 JFS2 NFS REXEC IDES 4.6C Oracle 9.2 (30 GB) SAP executables

mySAP production DB Server


TSM for ERP

LAN

Backup Server
TSM for ERP

TSM for HW

pSeries ID T1 AIX 5.3 JFS2 NFS REXEC BRTools

SAN
ESS mod 800 ID 2105.23376 FlashCopy V2 mcode lvl 2.4.2.31 CLI 2.3.0.2 Source Volumes

ESS
Target Volumes

TSM Server

pSeries ID Y1 AIX 5.2 ML05 NFS REXEC ITSM 5.2.0.0 disk storage pools

FlashCopy

Figure 11-1 Test environment in the lab

In machines in our test environment were configured as follows: mySAP production server S1: AIX V5.3 with mySAP V4.6C and Oracle V9.2 installed. The sample database used about 30 GB of disk space for the tablespace data. Backup server T1: AIX V5.3, which required Tivoli Storage Manager components and the BRTools utilities for mySAP. NFS is required to access profiles residing on the production server and rexec to execute remote commands. Tivoli Storage Manager server Y1: Running Tivoli Storage Manager Server V5.2. Note that the Tivoli Storage Manager components on S1 and T1 are at V5.3. The versions do not need to match, as long as they are all supported versions. IBM ESS Model 800: Contains all the production filespaces and the target volumes that were used for FlashCopy. Restriction: It is not possible to use the standby machine of an HACMP cluster as the backup server. An HACMP setup requires the use of three systems (see 11.7.2, AIX HACMP on page 373 for details). The different components on each server are shown in Figure 11-2 on page 296.

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

295

Production System / DB Server


mySAP DBA Tools sapdba
brbackup / brarchive brrestore Oracle Server/Client
TCP/ IP TCP/ IP S Q L N E T S Q L N E T

Backup System
mySAP DBA Tools

brbackup Oracle Client


DP for mySAP.com

DP for ESS splitint


CORE IDS LVM

DP for mySAP

ITSM API ITSM Client

N F S R E X E C

N F S R E X E C

ITSM API ITSM Client

DP for ESS splitint


CORE LVM IDS

ESS CopyServices CLI

AIX
Disk I/O AIX JFS AIX LVM SCSI Layer SCSI / Fibre Channel

AIX
Disk I/O AIX JFS AIX LVM SCSI Layer SCSI / Fibre Channel

ESS CopyServices CLI

Public Network GigaBit Network Management Network Storage Area Network

SAN

Source

Target Tivoli Storage Manager Server

IBM ESS

Figure 11-2 Machine setup

11.2.1 Overview of the procedures


The following is a summary of the configuration and the procedures used to backup the mySAP database: The production server runs an Oracle database that resides on ESS (source) volumes. The production database can be backed up online or offline. The ESS source volumes are copied to target volumes using FlashCopy and then backed up using Data Protection for mySAP from the backup server to the Tivoli Storage Manager server via LAN or LAN-free communications methods. Backups are initiated using the brbackup utility for mySAP. This utility calls the backint and splitint interfaces for mySAP. The brbackup utility is always invoked from the backup server. It starts the Data Protection for IBM ESS for mySAP on the production server via the rexec command, checks for FlashCopy conditions, and performs FlashCopy. The NFS mounts are mainly used for sharing profiles and backup logs. Restores are only invoked on the production server. You must stop mySAP and Oracle.

296

Get More Out of Your SAN with IBM Tivoli Storage Manager

11.3 Requirements and prerequisites


The following sections show the hardware and software requirements.

11.3.1 Hardware requirements


The hardware requirements are: Two pSeries servers connected via SAN to an ESS storage subsystem. The production mySAP database system and the backup system operating system levels must be the same on both systems, because file systems and volumes are imported. Supported disk systems at the time of writing: IBM ESS Server 2105, model Exx, Fxx, or 800 with FlashCopy feature 1830-1835. ESS microcode level: 1.5.2.144 or higher; 2.2.0.545 or higher when using FlashCopy V2 on ESS source/target volume. LSS setup restrictions: 2.3 or higher to use INCR FlashCopy. LAN connection from the production and backup servers to the primary and the backup ESS Copy Services Server. LAN connection between the production system and the backup server to execute rexec procedures and NFS mounts. If the Tivoli Storage Manager server is not installed on the backup machine, a LAN or SAN (for LAN-free data movement) is required for backup operations.

11.3.2 Software requirements


The software requirements are (see the readme file for latest instructions): AIX V5.1 (32bit or 64bit) with FixPack 3 (AIX 5.1.0.0.03) and PTF U483641 for APAR IY37174 or AIX V5.2 (32bit or 64bit) with FixPack 2 (AIX 5.2.0.0.02) and PTF U486557 for APAR IY52248 or AIX V5.3 (32bit or 64bit) Java Runtime for AIX, Version 1.1.8, 1.3.0 or 1.3.1 ESS Copy Services command line interface for AIX (from the ESS microcode, see Hardware requirements) Tivoli Storage Manager Backup-Archive Client V5.1 (or higher) for AIX Tivoli Storage Manager API level for AIX as required by the version of Data Protection for mySAP Tivoli Storage Manager for Hardware Data Protection for IBM ESS for mySAP (3.3.11 or higher) for Oracle for AIX mySAP R/3, Release 4.5B to 4.6D or mySAP e-business solutions (for example, mySAP BW) together with released Oracle V8 or V9 Note: On the backup machine, only the mySAP utilities with released Oracle client code are required. mySAP utilities and interfaces kernel release 6.20 with patch level 18 or higher (supporting the new splitint architecture)

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

297

Note: SAP recommends using BR*Tools release 6.40. On the production system, the rexecd daemon must be configured and running. Note: Production and backup system product levels must match.

Note: AIX Base System locale must be U.S. English. The locale -a command output must include en_US.ISO8859-1. If using the Korn shell, the file /etc/environment must include the following statement:
ENV=$HOME/.profile

The PATH environment variable must include the /usr/sbin directory for the user ID that is running the brbackup utility for mySAP (usually Oracle Database Administrator). To add this information, add the following statements to $ORACLE_HOME/.profile (if you are using Korn shell):
PATH=${PATH}:/usr/sbin export PATH

When setting up the volumes on the ESS, make sure that: The LUNs (volumes) used by the production database are accessible to the production system. These are the source volumes used by the FlashCopy process. The LUNs (volumes) intended to be used as target volumes are accessible to the backup system. The size of each target LUN matches the size of its source volume. Only if FlashCopy V1 is used: all ESS target volumes reside in the same Logical Subsystem (LSS) as their source volume. Both the primary and backup ESS Copy Services servers must be able to resolve the host names of the production and backup server systems.

298

Get More Out of Your SAN with IBM Tivoli Storage Manager

11.3.3 Storage classes


Figure 11-3 shows the different requirements for storage classes in this type of environment.

Production System / DB Server


mySAP DBA Tools sapdba
brbackup / brarchive brrestore Oracle Server/Client
TCP/ IP TCP/ IP S Q L N E T S Q L N E T

Backup System
mySAP DBA Tools

brbackup Oracle Client


DP for mySAP.com

DP for ESS splitint


CORE IDS LVM

DP for mySAP

ITSM API ITSM Client

N F S R E X E C

N F S R E X E C

ITSM API ITSM Client

DP for ESS splitint


CORE LVM IDS

ESS CopyServices CLI

AIX
Disk I/O AIX JFS AIX LVM SCSI Layer SCSI / Fibre Channel

AIX
Disk I/O AIX JFS AIX LVM SCSI Layer SCSI / Fibre Channel

ESS CopyServices CLI

Public Network GigaBit Network Management Network Storage Area Network

SAN

Source

Target Tivoli Storage Manager Server

IBM ESS

Figure 11-3 Disk setup

The db_disk category is for the mySAP data tablespace files. They can reside in one or more Volume Groups (VGs). The redo log files, which also belong in the db_disk category, must reside in a different VG. Use of separate VGs is required, because the scope of the files for different backup types is different. Using the same VG for online redo logs and tablespaces will create problems during backup/restore using the ESS target volumes. This is because during a FlashCopy operation, all the volumes in a VG are flashed. It is recommended to split the VGs of the primary redo logs and their mirrors. Because only the original log files are used for backup, it is space efficient to separate them from their copies. VGs - volume groups LPs = logical partitions LVs = logical volumes Note: Each jfslog logical volume used in the volume groups with all its logical partitions can only use one ESS volume. Striping is not allowed for jfslog logical volumes. The following are not supported with Data Protection for IBM ESS for mySAP for flashed volumes: Databases residing on raw devices. Databases on a secondary ESS system in a PPRC environment. Soft links to Oracle database files. AIX LVM mirrored environments if not set as required (for example, in the same ESS subsystem).
Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

299

Inline logs for JFS2 file systems at the time of writing (pending resolution of a problem in the AIX recreatevg command). JFSlog LVs spread over more than one ESS volume. The production and backup systems need to share the following files: Oracle configuration files (such as init<SID>.ora and so forth) Data Protection for IBM ESS for mySAP profile (init<SID>.sap) as well as the run log of the backup cycles (.aff/.anf) The run log summary (back<SID>.log Data Protection for mySAP profile (init<SID>.utl) and its configuration file (.bki) Data Protection for IBM ESS for mySAP profile (init<SID>.fcs), the target volumes file (init<SID>.fct) These files reside in the following directories and are shared via NFS export from the production system: $ORACLE_HOME/dbs /oracle/<SID>/sapbackup /oracle/<SID>/sapreorg /sapmnt/SID/exe It is optional to share this directory. Alternatively, you can install it separately on the backup server.

11.4 Installation for this environment


This section explains the installation instructions for this environment.

11.4.1 mySAP and Oracle


Install Oracle and mySAP according to the requirements outlined in Figure 11-3 on page 299. You can find additional help in the manual mySAP for R/3 Installation for UNIX. For a quick demonstration, see the section Sample R/3 Installation and Customization in the manual IBM Tivoli Storage Manager for Hardware - Data Protection for IBM ESS for mySAP, Installation and Users Guide for Oracle, SC33-8205. For this environment: System ID (SID) is RED. Users are: redadm: Administrative user for mySAP orared: Administrative user for Oracle File systems on production system are: 300 /oracle/RED: Instance home /usr/sap/RED: mySAP home /sapmnt/RED: mySAP tools /oracle/RED/sapdata1-6: mySAP tablespaces /oracle/RED/origlogA: Redo log A /oracle/RED/origlogB: Redo log B /oracle/RED/mirrorlogA: Mirror of redo log A /oracle/RED/mirrorlogB: Mirror of redo log B

Get More Out of Your SAN with IBM Tivoli Storage Manager

NFS mounts from production to backup system are: /oracle/RED/920_64/dbs /oracle/RED/sapbackup /oracle/RED/sapreorg /sapmnt/RED

File systems on backup system are: /oracle/RED: Oracle SQLPLUS client /usr/sap/RED: mySAP tools executables

Testing access from the backup to the production system database


To access the production database from the backup system via the SQLPLUS command: 1. Create an Oracle password file with the orapwd command:
orapwd file=/oracle/<SID>/920_64/dbs/orapwRED password=<password> entries=100

In this command, <password> is the password for the Oracle user SYS (standard is CHANGE_ON_INSTALL). 2. Specify the following parameter in the /oracle/RED/920_64/dbs/initRED.ora file:
remote_login_passwordfile=exclusive

You need to restart the Oracle database to make this change effective on the production system. 3. Give authority SYSOPER to the user SYSTEM in the production database, as shown in Example 11-1.
Example 11-1 Give SYSOPER authority to user SYSTEM orared@s1:/oracle/RED/920_64/dbs>sqlplus SQL*Plus: Release 9.2.0.1.0 - Production on Fri Mar 18 19:35:15 2005 Copyright (c) 1982, 2002, Oracle Corporation. Enter user-name: / as sysdba Total System Global Area 179224752 bytes Fixed Size 741552 bytes Variable Size 100663296 bytes Database Buffers 76496896 bytes Redo Buffers 1323008 bytes Database mounted. SQL> grant sysoper to system; Grant succeeded. SQL> alter user system identified by secret; Database altered. SQL> quit Disconnected from Oracle9i Enterprise Edition Release 9.2.0.1.0 - 64bit Production With the Partitioning option JServer Release 9.2.0.1.0 - Production orared@s1:/oracle/RED/920_64/dbs> All rights reserved.

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

301

4. Verify that you can connect from the backup system to the production database via SQLPLUS as user SYSTEM and SYSDBA role (as shown in Example 11-2).
Example 11-2 Verifying the Oracle connection from the backup system t1:orared 1> sqlplus SQL*Plus: Release 9.2.0.1.0 - Production on Tue Mar 22 00:15:37 2005 Copyright (c) 1982, 2002, Oracle Corporation. Enter user-name: SYSTEM@RED as SYSOPER Enter password: Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - 64bit Production With the Partitioning option JServer Release 9.2.0.1.0 - Production SQL> All rights reserved.

11.4.2 Tivoli Storage Manager


You must install the following Tivoli Storage Manager products.

Tivoli Storage Manager Backup-Archive Client and API


Install Tivoli Storage Manager Backup-Archive Client and API components on the production and backup system. For details see IBM Tivoli Storage Manager Backup-Archive Clients Installation and Users Guide for UNIX and Linux, GC32-0789.

Data Protection for mySAP


Install Data Protection for mySAP on your production and backup system by running the ./install_tdpr3_ora_aix_64bit.bin command from your installation medium. You are guided through the Data Protection for mySAP setup procedure. To ensure that the setup procedure is carried out properly, read the following description carefully and follow the guidelines on the panels that are displayed during setup. To install Data Protection for mySAP on a UNIX system, do the following: Read the Release Notice (RELNOTE) and the readme file that is provided with Data Protection for mySAP. Log in as root user on the mySAP database server machine. Ensure that you have set the DISPLAY variable correctly because the installer guides you through the installation via a graphical window. Alternatively use the -console parameter when you run the command. Run the installation file for Data Protection for mySAP that is appropriate for your operating system and your Oracle database. Check the summary at the end of the installation dialog.You will find, among other information, the installation path of Data Protection for mySAP. Installation results are logged in the installation log (log.txt), which is located in the installation path. During installation, the following modifications are done to your system automatically: An entry is created in /etc/inittab to start the background process ProLE An entry is created in /etc/services, which is needed for internal communication. 302
Get More Out of Your SAN with IBM Tivoli Storage Manager

After the installation, the following files are available in the installation path of Data Protection for mySAP: backint ProLE createinfo backfm initSID.bki initSID.utl libtdp_r3.<ext> archive.ksh backup.ksh crontab.sample dsm.opt dsm.sys gensortfile.sh inclexcl.list README Copy the initSID.bki and initSID.utl files to the /oracle/RED/920_64/dbs directory and rename them accordingly to initRED.bki and initRED.utl. (Note: replace RED with your actual database name). Example 11-3 shows our initRED.sap file:
Example 11-3 initRED.sap ######################################################################## # SAP backup sample profile. # # The parameter syntax is the same as for init.ora parameters. # # Enclose parameter values which consist of more than one symbol in # # double quotes. # # After any symbol, parameter definition can be continued on the next # # line. # # A parameter value list should be enclosed in parentheses, the list # # items should be delimited by commas. # # There can be any number of white spaces (blanks, tabs and new lines) # # between symbols in parameter definition. # # # ######################################################################## # backup mode [all | all_data | full | incr | sap_dir | ora_dir # | <tablespace_name> | <file_id> | <file_id1>-<file_id2> # | <generic_path> | (<object_list>)] # default: all backup_mode = all # restore mode [all | all_data | full | incr | incr_only | incr_full # | <tablespace_name> | <file_id> | <file_id1>-<file_id2> # | <generic_path> | (<object_list>)] # redirection with '=' is not supported here - use option '-m' instead # default: all restore_mode = all # backup type [offline | offline_force | offline_standby | offline_mirror # | offline_stop | online | online_cons | online_mirror] # default: offline backup_type = offline_mirror # backup device type Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

303

# [tape | tape_auto | tape_box | pipe | pipe_auto | pipe_box | disk # | disk_copy | disk_standby | stage | stage_copy | stage_standby # | util_file | util_file_online | rman_util | rman_disk | rman_stage # | rman_prep] # default: tape backup_dev_type = tape # backup root directory [<path_name> | (<path_name_list>)] # default: $SAPDATA_HOME/sapbackup backup_root_dir = $SAPDATA_HOME/sapbackup # stage root directory [<path_name> | (<path_name_list>)] # default: value of the backup_root_dir parameter stage_root_dir = $SAPDATA_HOME/sapbackup # compression flag [yes | no | hardware | only] # default: no compress = no # compress command # first $-character is replaced by the source file name # second $-character is replaced by the target file name # <target_file_name> = <source_file_name>.Z # for compress command the -c option must be set # recommended setting for brbackup -k only run: # "compress -b 12 -c $ > $" # no default compress_cmd = "compress -c $ > $" # uncompress command # first $-character is replaced by the source file name # second $-character is replaced by the target file name # <source_file_name> = <target_file_name>.Z # for uncompress command the -c option must be set # no default uncompress_cmd = "uncompress -c $ > $" # directory for compression [<path_name> | (<path_name_list>)] # default: value of the backup_root_dir parameter compress_dir = $SAPDATA_HOME/sapreorg # brarchive function [save | second_copy | double_save | save_delete # | second_copy_delete | double_save_delete | copy_save # | copy_delete_save | delete_saved | delete_copied] # default: save archive_function = save # directory for archive log copies to disk # default: first value of the backup_root_dir parameter # Oracle Parallel Server: # archive_copy_dir = $SAPDATA_HOME/saparchglobal archive_copy_dir = $SAPDATA_HOME/sapbackup # directory for archive log copies to stage # should contain <SID> subdirectory # default: first value of the stage_root_dir parameter archive_stage_dir = $SAPDATA_HOME/sapbackup # new sapdata home directory for disk_copy | disk_standby # no default

304

Get More Out of Your SAN with IBM Tivoli Storage Manager

# new_db_home = /oracle/C11 # stage sapdata home directory for stage_copy | stage_standby # default: value of the new_db_home parameter # stage_db_home = /oracle/C11 # original sapdata home directory for split mirror disk backup # no default # orig_db_home = /oracle/C11 # remote host name # no default # remote_host = <host_name> # remote user name # default: current operating system user # remote_user = <user_name> # tape copy command [cpio | cpio_gnu | dd | dd_gnu | rman | rman_dd] # default: cpio tape_copy_cmd = cpio # disk copy command [copy | dd | dd_gnu | rman] # default: copy disk_copy_cmd = copy # stage copy command [rcp | ftp] # default: rcp stage_copy_cmd = rcp # flags for cpio output command # default: -ovB cpio_flags = -ovB # flags for cpio input command # default: -iuvB cpio_in_flags = -iuvB # flags for cpio command for copy of directories to disk # default: -pdcu cpio_disk_flags = -pdcu # flags for dd output command # default: "obs=16k" # recommended setting: # Unix: "obs=nk bs=nk", example: "obs=64k bs=64k" # NT: "bs=nk", example: "bs=64k" dd_flags = "obs=64k bs=64k" # flags for dd input command # default: "ibs=16k" # recommended setting: # Unix: "ibs=nk bs=nk", example: "ibs=64k bs=64k" # NT: "bs=nk", example: "bs=64k" dd_in_flags = "ibs=64k bs=64k" # number of members in RMAN save sets [ 1 | 2 | 3 | 4 | tsp | all ] # default: 1 saveset_members = 1

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

305

# # # # # # # # # # # # # # # # # # # # # # # # #

additional parameters for RMAN rman_channels and rman_filesperset are only used when rman_util, rman_disk or rman_stage rman_channels defines the number of parallel sbt channel allocations rman_filesperset = 0 means: one file per save set - for non-incremental backups all files in one save set - for incremental backups the others have the same meaning as for native RMAN rman_channels = 1 rman_filesperset = 0 rman_kbytes = 0 rman_readrate = 0 rman_maxopenfiles = 0 rman_setsize = 0 additional parameters for RMAN version 8.1 the parameters have the same meaning as for native RMAN rman_diskratio = 0 rman_pool = 0 rman_duplex = 0 | 1 | 2 | 3 | 4 rman_proxy = no | yes | only special parameters for an external backup library, example: rman_parms = "BLKSIZE=65536 ENV=(BACKUP_SERVER=HOSTNAME)" rman_send = "'<command>'" rman_send = ("channel sbt_1 '<command1>' parms='<parameters1>'", "channel sbt_2 '<command2>' parms='<parameters2>'")

# remote copy-out command (backup_dev_type = pipe) # $-character is replaced by current device address # no default copy_out_cmd = "dd ibs=8k obs=64k of=$" # remote copy-in command (backup_dev_type = pipe) # $-character is replaced by current device address # no default copy_in_cmd = "dd ibs=64k obs=8k if=$" # rewind command # $-character is replaced by current device address # no default # operating system dependent, examples: # HP-UX: "mt -f $ rew" # OSF1: "mt -f $ rewind" # AIX: "tctl -f $ rewind" # SINIX: "mt -f $ rewind" # SUN: "mt -f $ rewind" # NT: "mt -f $ rewind" # Linux: "mt -f $ rewind" rewind = "mt -f $ rewind" # # # # # # # # # # # rewind and set offline command $-character is replaced by current device address default: value of the rewind parameter operating system dependent, examples: HP-UX: "mt -f $ offl" OSF1: "mt -f $ offline" AIX: "tctl -f $ offline" SINIX: "mt -f $ offline" SUN: "mt -f $ offline" NT: "mt -f $ offline" Linux: "mt -f $ offline"

306

Get More Out of Your SAN with IBM Tivoli Storage Manager

rewind_offline = "mt -f $ offline" # tape positioning command # first $-character is replaced by current device address # second $-character is replaced by number of files to be skipped # no default # operating system dependent, examples: # HP-UX: "mt -f $ fsf $" # OSF1: "mt -f $ fsf $" # AIX: "tctl -f $ fsf $" # SINIX: "mt -f $ fsf $" # SUN: "mt -f $ fsf $" # NT: "mt -f $ fsf $" # Linux "mt -f $ fsf $" tape_pos_cmd = "mt -f $ fsf $" # # # # # # # # mount backup volume command in auto loader / juke box used if backup_dev_type = tape_box | pipe_box no default mount_cmd = "<mount_cmd> $ $ $ [$]" dismount backup volume command in auto loader / juke box used if backup_dev_type = tape_box | pipe_box no default dismount_cmd = "<dismount_cmd> $ $ [$]"

# split mirror disks command # used if backup_type = offline_split | online_split # no default # split_cmd = "<split_cmd> [$]" split_options= "-p /oracle/RED/920_64/dbs/initRED.fcs -d " # resynchronize mirror disks command # used if backup_type = offline_split | online_split # no default # resync_cmd = "<resync_cmd> [$]" split_resync=yes # # # # # # # # # # # # # # # # # # # # # # volume size in KB = K, MB = M or GB = G (backup device dependent) default: 1200M recommended values for tape devices without hardware compression: 60 m 4 mm DAT DDS-1 tape: 1200M 90 m 4 mm DAT DDS-1 tape: 1800M 120 m 4 mm DAT DDS-2 tape: 3800M 125 m 4 mm DAT DDS-3 tape: 11000M 112 m 8 mm Video tape: 2000M 112 m 8 mm high density: 4500M DLT 2000 10/20 GB: 10000M DLT 2000XT 15/30 GB: 15000M DLT 4000 20/40 GB: 20000M DLT 7000 35/70 GB: 35000M recommended values for tape devices with hardware compression: 60 m 4 mm DAT DDS-1 tape: 1000M 90 m 4 mm DAT DDS-1 tape: 1600M 120 m 4 mm DAT DDS-2 tape: 3600M 125 m 4 mm DAT DDS-3 tape: 10000M 112 m 8 mm Video tape: 1800M 112 m 8 mm high density: 4300M DLT 2000 10/20 GB: 9000M DLT 2000XT 15/30 GB: 14000M

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

307

# DLT 4000 20/40 GB: # DLT 7000 35/70 GB: tape_size = 1200M

18000M 30000M

# volume size in KB = K, MB = M or GB = G used by brarchive # default: value of the tape_size parameter # tape_size_arch = 1200M # level of parallel execution # default: 0 - set to number of backup devices exec_parallel = 0 # address of backup device without rewind # [<dev_address> | (<dev_address_list>)] # no default # operating system dependent, examples: # HP-UX: /dev/rmt/0mn # OSF1: /dev/nrmt0h # AIX: /dev/rmt0.1 # SINIX: /dev/ios0/rstape005n # SUN: /dev/rmt/0mn # NT: /dev/nmt0 | /dev/nst0 # Linux /dev/nst0 tape_address = /dev/rmt/0mn # # # # address of backup device without rewind used by brarchive default: value of the tape_address parameter operating system dependent tape_address_arch = /dev/rmt/0mn

# address of backup device with rewind # [<dev_address> | (<dev_address_list>)] # no default # operating system dependent, examples: # HP-UX: /dev/rmt/0m # OSF1: /dev/rmt0h # AIX: /dev/rmt0 # SINIX: /dev/ios0/rstape005 # SUN: /dev/rmt/0m # NT: /dev/mt0 | /dev/st0 # Linux: /dev/st0 tape_address_rew = /dev/rmt/0m # # # # # # # # # # # # # # address of backup device with rewind used by brarchive default: value of the tape_address_rew parameter operating system dependent tape_address_rew_arch = /dev/rmt/0m address of backup device with control for mount/dismount command [<dev_address> | (<dev_address_list>)] default: value of the tape_address_rew parameter operating system dependent tape_address_ctl = /dev/... address of backup device with control for mount/dismount command used by brarchive default: value of the tape_address_rew_arch parameter operating system dependent tape_address_ctl_arch = /dev/...

308

Get More Out of Your SAN with IBM Tivoli Storage Manager

# volumes for brarchive # [<volume_name> | (<volume_name_list>) | # no default volume_archive = (SIDA01, SIDA02, SIDA03, SIDA06, SIDA07, SIDA08, SIDA11, SIDA12, SIDA13, SIDA16, SIDA17, SIDA18, SIDA21, SIDA22, SIDA23, SIDA26, SIDA27, SIDA28,

SCRATCH] SIDA04, SIDA09, SIDA14, SIDA19, SIDA24, SIDA29, SIDA05, SIDA10, SIDA15, SIDA20, SIDA25, SIDA30)

# volumes for brbackup # [<volume_name> | (<volume_name_list>) | SCRATCH] # no default volume_backup = (SIDB01, SIDB02, SIDB03, SIDB04, SIDB05, SIDB06, SIDB07, SIDB08, SIDB09, SIDB10, SIDB11, SIDB12, SIDB13, SIDB14, SIDB15, SIDB16, SIDB17, SIDB18, SIDB19, SIDB20, SIDB21, SIDB22, SIDB23, SIDB24, SIDB25, SIDB26, SIDB27, SIDB28, SIDB29, SIDB30) # expiration period for backup volumes in days # default: 30 expir_period = 30 # recommended usages of backup volumes # default: 100 tape_use_count = 100 # backup utility parameter file # default: no parameter file # util_par_file = initSID.utl util_par_file = /oracle/RED/920_64/dbs/initRED.utl # mount/dismount command parameter file # default: no parameter file # mount_par_file = initSID.mnt # Oracle instance string to the primary database # [primary_db = <inst_str> | LOCAL] # no default # primary_db = <inst_str> primary_db = RED.WORLD # # # # # # # # # # # # # # # # description of parallel instances for Oracle Parallel Server parallel_instances = <instance_desc> | (<instance_desc_list>) <instance_desc_list> -> <instance_desc>[,<instance_desc>...] <instance_desc> -> <Oracle_sid>:<Oracle_home>@<inst_str> <Oracle_sid> -> Oracle system id for parallel instance <Oracle_home> -> Oracle home for parallel instance <inst_str> -> Oracle instance string to parallel instance Do not include the local instance in the parameter definition! default: no parallel instances example for initC11.sap: parallel_instances = (C11_002:/oracle/C11@C11_002, C11_003:/oracle/C11@C11_003) example for initC11_002.sap: parallel_instances = (C11:/oracle/C11@C11,

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

309

# # # # # # # # # # # # # #

C11_003:/oracle/C11@C11_003) database owner of objects to be checked <owner> | (<owner_list>) default: all SAP owners check_owner = sapr3 database objects to be excluded from checks all_part | non_sap | [<owner>.]<table> | [<owner>.]<index> | <tablespace> | (<object_list>) default: no exclusion, example: check_exclude = (SDBAH, SAPR3.SDBAD) database owner of SDBAH, SDBAD and XDB tables for cleanup <owner> | (<owner_list>) default: all SAP owners cleanup_owner = sapr3

# retention period in days for brarchive log files # default: 30 # cleanup_brarchive_log = 30 # retention period in days for brbackup log files # default: 30 # cleanup_brbackup_log = 30 # retention period in days for brconnect log files # default: 30 # cleanup_brconnect_log = 30 # retention period in days for brrestore log files # default: 30 # cleanup_brrestore_log = 30 # retention period in days for sapdba log files # default: 30 # cleanup_sapdba_log = 30 # retention period in days for offline redo log files saved on disk # default: 30 # cleanup_disk_archive = 30 # retention period in days for database file saved on disk # default: 30 # cleanup_disk_backup = 30 # retention period in days for sapdba export dumps and scripts # default: 30 # cleanup_exp_dump = 30 # retention period in days for Oracle trace and audit files # default: 30 # cleanup_ora_trace = 30 # retention period in days for records in SDBAH and SDBAD tables # default: 100 # cleanup_db_log = 100 # retention period in days for records in XDB tables # default: 100

310

Get More Out of Your SAN with IBM Tivoli Storage Manager

# cleanup_xdb_log = 100 # retention period in days for database check messages # default: 100 # cleanup_check_msg = 100 # # # # # # # # # # # # # # # # # # # database owner of objects to adapt next extents <owner> | (<owner_list>) default: all SAP owners next_owner = sapr3 database objects to adapt next extents all | all_ind | special | [<owner>.]<table> | [<owner>.]<index> | <tablespace> | (<object_list>) default: all abjects of selected owners, example: next_table = (SDBAH, SAPR3.SDBAD) database objects to be excluded from adapting next extents all_part | [<owner>.]<table> | [<owner>.]<index> | <tablespace> | (<object_list>) default: no exclusion, example: next_exclude = (SDBAH, SAPR3.SDBAD) database objects to get special next extent size all_sel:<size>[/<limit>] | [<owner>.]<table>:<size>[/<limit>] | [<owner>.]<index>:<size>[/<limit>] | (<object_size_list>) default: according to table category, example: next_special = (SDBAH:100K, SAPR3.SDBAD:1M/200)

# maximum next extent size # default: 2 GB - 5 * <database_block_size> # next_max_size = 1G # maximum number of next extents # default: 0 - unlimited # next_limit_count = 300 # # # # # # # # # # # # # # # # # # # database owner of objects to update statistics <owner> | (<owner_list>) default: all SAP owners stats_owner = sapr3 database objects to update statistics all | all_ind | all_part | missing | info_cubes | dbstatc_tab | dbstatc_mon | dbstatc_mona | [<owner>.]<table> | [<owner>.]<index> | <tablespace> | (<object_list>) default: all abjects of selected owners, example: stats_table = (SDBAH, SAPR3.SDBAD) database objects to be excluded from updating statistics all_part | info_cubes | non_sap | [<owner>.]<table> | [<owner>.]<index> | <tablespace> | (<object_list>) default: no exclusion, example: stats_exclude = (SDBAH, SAPR3.SDBAD) method for updating statistics for tables not in DBSTATC E | EH | EI | EX | C | CH | CX | E= | C= | =H | =I | =X | +H | +I default: according to internal rules stats_method = E

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

311

# # # #

sample size for updating statistics for tables not in DBSTATC P<percentage_of_rows> | R<thousands_of_rows> default: according to internal rules stats_sample_size = P10

# number of buckets for updating statistics with histograms # default: 75 # stats_bucket_count = 75 # threshold for collecting statistics after checking # default: 50% # stats_change_threshold = 50 # number of parallel threads for updating statistics # default: 1 # stats_parallel_degree = 1 # processing time limit in minutes for updating statistics # default: 0 - no limit # stats_limit_time = 0 # # # # # # # # # parameters for calling DBMS_STATS supplied package all:R|B:<degree> | all_part:R|B:<degree> | info_cubes:R|B:<degree> | [<owner>.]<table>:R|B:<degree> | (<object_list>) default: NULL - use ANALYZE statement stats_dbms_stats = ([ALL:R:1,][<owner>.]<table>:R|B:<degree>,...) definition of info cube tables [<owner>.]<table> | [<owner>.]<prefix>* | (<object_list>) default: from RSNSPACE control table stats_info_cubes = (/BIC/D*, /BI0/D*, ...)

The most important parameters for our example are: split_options Points to the Data Protection for IBM ESS for mySAP (see 11.4.3, Tivoli Storage Manager for Hardware: Data Protection for IBM ESS for mySAP on page 319) -d causes a disk-only backup -n1 and -n2 selects different ESS target sets to be used for the FlashCopy operation split_resync Should be set to yes or has to be done manually before next running the brbackup command util_par_file Points to the Data Protection for mySAP configuration file, initSID.utl The initSID.utl file (initRED.utl in this example) contains information for Tivoli Storage Manager parameters, as shown in Example 11-4.
Example 11-4 initRED.utl # # # # # # # -------------------------------------------------------------------------Data Protection for mySAP(R) interface for ORACLE Sample profile for Data Protection for mySAP(R) Version 5.3 for UNIX --------------------------------------------------------------------------

312

Get More Out of Your SAN with IBM Tivoli Storage Manager

# # This file should be renamed to $ORACLE_HOME/dbs/init$ORACLE_SID.utl # where $ORACLE_HOME is the home directory of the Oracle database and # $ORACLE_SID is the system ID of the Oracle database. # Default is '/oracle/C21/initC21.utl'. # # See the 'Data Protection for mySAP (R) Installation & User's Guide' # for a full description. # # For a comment symbol the character '#' can be used. # Everything following this character will be interpreted as comment. # # Data Protection for mySAP (R) V5R3 accesses its profile in "read only" # mode only. All variable parameters like passwords, date of last # password change, current version number will be written into the file # specified with the CONFIG_FILE parameter. The passwords will be encrypted. # # # -------------------------------------------------------------------------# Prefix of the 'Backup ID' which will be used for communication with SAPDBA # and stored in the description field of the Tivoli Storage Manager archive # function. # Maximum 6 characters. # Default: none. # -------------------------------------------------------------------------# # # -------------------------------------------------------------------------# Number of total parallel sessions to be established. Note: this number should correspond # with the number of simultaneously available tape drives specified for the Tivoli Storage # Manager server. # Default: none. # -------------------------------------------------------------------------BACKUPIDPREFIX RED___ MAX_SESSIONS 3 # 1 Tivoli Storage Manager client session is default # # # -------------------------------------------------------------------------# Number of parallel sessions to be established for the database backup. # Note: this number must not exceed the number of tape drives simultaneously available to # the node for a database backup on the Tivoli Storage Manager servers to be accessed. # Default: MAX_SESSIONS. # -------------------------------------------------------------------------# MAX_BACK_SESSIONS 1 # 1 Tivoli Storage Manager client session for backup # # # -------------------------------------------------------------------------# Number of parallel sessions to be established for the redo log backup. # Note: this number must not exceed the number of tape drives simultaneously available to # the node for a database backup on the Tivoli Storage Manager servers to be accessed. # Default: MAX_SESSIONS. # -------------------------------------------------------------------------MAX_ARCH_SESSIONS 1 # 1 Tivoli Storage Manager client session for archive # # # -------------------------------------------------------------------------# Number of parallel sessions to be established for the restore of files. # Note: this number must not exceed the number of tape drives simultaneously available to

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

313

# the node for a processing backup on the Tivoli Storage Manager servers to be accessed. # Default: MAX_SESSIONS. # -------------------------------------------------------------------------MAX_RESTORE_SESSIONS 1 # 1 Tivoli Storage Manager client session for restore # # # -------------------------------------------------------------------------# Number of backup copies of logs. The valid range of REDOLOG_COPIES is from 1 to 9. # Default: 1. # -------------------------------------------------------------------------# REDOLOG_COPIES 2 # 1 is default # # # -------------------------------------------------------------------------# Specifies whether a null block compression of the data is to be performed # before they are transmiission Tivoli Storage Manager. The null block compression # consumes only little cpu resources. This compression in Data Protection for # MySAP is independent from the Tivoli Storage Manager compression. # Do not compress twice! # Default: NO # -------------------------------------------------------------------------RL_COMPRESSION NO # NO is default # # # -------------------------------------------------------------------------# Specifies how many files are to be read simultaneously and multiplexed into one # data stream to a Tivoli Storage Manager server. Multiplexing is useful when the data # rate to a Tivoli Storage Manager server is higher (fast tapes, fast network) # than the I/O rate from a single disk. # The valid range of MULTIPLEXING is from 1 to 8. # Default: 1 (meaning no multiplexing) # -------------------------------------------------------------------------# MULTIPLEXING 3 # 1 is default # # # -------------------------------------------------------------------------# Specifies the block size for disk I/O (in bytes). The valid range is # from 4 KB to 32 MB. # The default values have been chosen from our performance experiments in # standard hardware environments. # Default: 131072 (128 KB) on UNIX, 32768 (32 KB) on Windows NT. # -------------------------------------------------------------------------BUFFSIZE 131072 # block size in bytes # # # -------------------------------------------------------------------------# -------------------------------------------------# This optional parameter controls how Data Protection for mySAP (R) uses the # internal buffers for transferring data during a backup. #Valid values: SIMPLE | PREVENT | AUTO # Default: SIMPLE # -------------------------------------------------# BUFFCOPY AUTO # Name of a program to be called before the backup task is started. # Default: none. # -------------------------------------------------------------------------# FRONTEND pgmname parameterlist # #

314

Get More Out of Your SAN with IBM Tivoli Storage Manager

# -------------------------------------------------------------------------# Name of a program to be called by after the backup task is completed. # Default: none. # -------------------------------------------------------------------------# BACKEND pgmname parameterlist # # # -------------------------------------------------------------------------# Maximum number of data base backup versions to be kept. # Note: Version control by Data Protection for mySAP is only # activated if the SAP R/3 release is 3.0C and higher and the parameter # MAX_VERSION is not 0. The valid range of MAX_VERSIONS is from 0 to 9999. Value # of 0 means no versioning. # Default: 0. # -------------------------------------------------------------------------MAX_VERSIONS 4 # # # -------------------------------------------------------------------------# Indicates whether processing is to be done unattended or whether human # intervention is allowed. # Default: YES for the backup processing run and NO for restore processing. # -------------------------------------------------------------------------BATCH YES # unattended automated operation # BATCH NO # manual operation # # # -------------------------------------------------------------------------# Control of error situations: Indicates whether and when database backups # and restore operations should be ended when an error occurs during unattended # processing. # Valid values: # YES: exit wehn a single file cannot be backed up or restored. # NO: do not exit when an error occurs. # a number of errors resulting in exiting the processing. # the valid range for this number is from 0 to 100. # Default: NO. # -------------------------------------------------------------------------# EXITONERROR 3 # exit after 3 errors # # # -------------------------------------------------------------------------# Control of information for reporting purposes, e.g. messages, statistics. # Default: NO (no additional data will be reported). # -------------------------------------------------------------------------# REPORT NO # no additional messages # REPORT YES # all additional messages REPORT 2 # all additional messages + summary # # # -------------------------------------------------------------------------# Controls generation of a trace file. # Note: we recommend using the trace function only in cooperation with # Data Protection for mySAP support. # Default: OFF. # -------------------------------------------------------------------------TRACE 70 # # # --------------------------------------------------------------------------

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

315

# The full path name of the trace file . # Note: for an actual trace the string '%BID' will be replaced by # the current backupid. # (.../backint_%BID.trace changes to .../backint_SAP___9809182300.trace). # Default: none # -------------------------------------------------------------------------# TRACEFILE /oracle/C21/dbs/backint.trace TRACEFILE /oracle/RED/saparch/backint_%BID.trace # # # -------------------------------------------------------------------------# Specify the full path name of the configuration file. # Default: none. # -------------------------------------------------------------------------CONFIG_FILE /oracle/RED/920_64/dbs/initRED.bki # # # -------------------------------------------------------------------------# Number of times to retry backup/restore of a file in case an error occurs. # The valid range of FILE_RETRIES is from 0 to 100.. # Default: 3. # -------------------------------------------------------------------------# RETRY 5 # # # -------------------------------------------------------------------------# Specify time after which a retry has to be performed (seconds). # Default: 1. # -------------------------------------------------------------------------# TCPWAIT 1 # # # -------------------------------------------------------------------------# Number of times Data Protection for mySAP retries to save/restore # a file in case an error occurs. # Default: 3. # -------------------------------------------------------------------------# FILE_RETRIES 3 # # # -------------------------------------------------------------------------# Send error/status information # to a Tivoli Storage Manager server. The # servername must # match one of the servers listed in a SERVER statement. # Statements for # verbosity are ERROR, WARNING, or DETAIL. # Default: none. # -------------------------------------------------------------------------# LOG_SERVER servername [verbosity] # LOG_SERVER server_a ERROR # # # -------------------------------------------------------------------------# Denotes if Data Protection for mySAP shall use a manual sorting file for disk # sorting? # Default: none. # -------------------------------------------------------------------------# SORT_FILE /oracle/C21/dbs/manual_sort_file # # # ************************************************************************** # Statement for multiple Servers and multiple Paths.

316

Get More Out of Your SAN with IBM Tivoli Storage Manager

# may be used multiple times (one for each server). # ************************************************************************** # # # # SERVER server_b # Servername # SESSIONS 2 # Max sessions # PASSWORDREQUIRED YES # Use a password # ADSMNODE NODE # Tivoli Storage Manager Nodename # BRBACKUPMGTCLASS MDB # Mgmt-Classes # BRARCHIVEMGTCLASS MLOG1 MLOG2 # Mgmt-Classes # # ************************************************************************** # Default: all days # ************************************************************************** # # # -------------------------------------------------------------------------# # # MAX_BACK_SESSIONS 1 SERVER server_a # Servername ADSMNODE REDP # Tivoli Storage Manager Nodename BRARCHIVEMGTCLASS MLOG1 MLOG2 # Mgmt-Classes BRBACKUPMGTCLASS MDB # Mgmt-Classes PASSWORDREQUIRED YES # Use a password SESSIONS 3 # Max sessions # USE_AT 0 1 2 3 4 5 6 # Days for backup FCS_FILE /oracle/RED/920_64/dbs/initRED.fcs END

We left most of the parameters at the default values. However, you should tune your environment accordingly. IBM Tivoli Storage Manager for Hardware - Data Protection for IBM ESS for mySAP, Installation and Users Guide for Oracle, SC33-8205. The SERVER parameter points to the Tivoli Storage Manager server stanza in the dsm.sys file for the Tivoli Storage Manager client. The initRED.bki file is a binary file that is used for storing the different runtime parameters. It cannot be edited directly. Figure 11-4 on page 318 shows the relationships between the different configuration files.

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

317

Production System / DB Server


init<SID>.sap backup_dev_type = util_file . . . util_par_file = .../init<SID>.utl init<SID>.utl CONFIG_FILE . . . SERVERNAME dsm.sys
SERVERNAME . . .

init<SID>.bki

dsm.opt
empty file

Figure 11-4 Configuration files of Data Protection for mySAP

Next, you have to set the Tivoli Storage Manager password. Because the password gets encrypted in the initRED.bki file, you only need to set it on one machine, as shown in Example 11-5.
Example 11-5 Setting the Tivoli Storage Manager password t1:orared> backint -p initRED.utl -f password Data Protection for mySAP(R) Interface between SAPDBA Utilities and Tivoli Storage Manager - Version 5, Release 3, Modification 0 for AIX LF 64-bit Build: 257 compiled on Nov 23 2004 (c) Copyright IBM Corporation, 1996, 2004, All Rights Reserved. BKI2027I: Using TSM-API version 5.3.0.0 (compiled with 5.3.0.0). BKI2000I: Successfully connected to ProLE on port tdpr3ora64. BKI0005I: Start of program at: Tue Mar 22 18:25:36 NFT 2005 . BKI2017I: Blocksize is set to 131072 bytes BKI0049I: Please enter password for node REDP on server SERVER_A: BKI0051I: Password successfully verified for node REDP on server SERVER_A. BKI0020I: End of program at: Tue Mar 22 18:25:41 NFT 2005. BKI0021I: Elapsed time: 05 sec.. BKI0024I: Return code is: 0. t1:orared>

At this point, you should be able to do regular Tivoli Storage Manager backups from the production system to the Tivoli Storage Manager server. All backup types can be used except online_mirror and offline_mirror using FlashCopy, which only can be used in conjunction with Tivoli Storage Manager for Hardware which is shown in the next section. In other words, any backups run at this time are not exploiting the FlashCopy ESS function but can only be done from the production server. Using the ESS function (Tivoli Storage Manager for Hardware) allows the time spent offline in the database to be minimized because the backup is taken from the FlashCopy target instead of the actual production disks. 318
Get More Out of Your SAN with IBM Tivoli Storage Manager

11.4.3 Tivoli Storage Manager for Hardware: Data Protection for IBM ESS for mySAP
You must install Data Protection for IBM ESS for mySAP on both the production database server machine (the production system) and on the backup system where the brbackup utility for mySAP with FlashCopy disk backups will run. If there are multiple database instances, Data Protection for IBM ESS for mySAP must be installed on each production system and once on the common backup system. Each production system running Data Protection for IBM ESS for mySAP to a common backup system must use a different Oracle SID. The version/maintenance level of Data Protection for IBM ESS for mySAP (splitint) that is used for the FlashCopy of one database instance (SID) must be the same on the production and backup systems. After installing Data Protection for IBM ESS for mySAP, you must run setup.sh for each specific database instance (SID) on the production system as well as on the backup system. This approach permits the production systems to have different version/maintenance levels.

Base installation
To install Data Protection for IBM ESS for mySAP: 1. Log in as user ID root on the system to be installed. 2. The install package is delivered as a single executable file named install_tdpessr3_ora.bin on the installation media. 3. Ensure that the environment variable DISPLAY is set to <host>:display, where <host> identifies the host name of the X Server to be contacted and display is the display number. Alternatively, you can use the -console parameter to use a non X installation. 4. Run the install_tdpessr3_ora.bin executable and follow the instructions. 5. Check the summary on the last dialog panel for successful installation. If an error occurs during the installation process, check for the error message in the output panel carefully and correct the problems. After correcting the error(s), repeat the installation procedure beginning at step 3. Data Protection for IBM ESS for mySAP is installed in the /usr/tivoli/tsm/tdpessr3/oracle directory. Check the readme file for a brief description of all installed files. The directory contains the executables, which are accessed by the setup.sh script that is run after the base installation.

Post-installation
For the proper functioning of Data Protection for IBM ESS for mySAP, after installation, run the setup.sh script. This script does the following: 1. Renames the Data Protection for IBM ESS for mySAP profile (init<SID>.fcs) and copies it to the /oracle/RED/920_64/dbs directory. 2. Copies the splitint interface for mySAP to a version/maintenance level directory. 3. Creates a softlink to the splitint interface for mySAP in the mySAP executables path.

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

319

To run the script: 1. Log in as root and enter the following command:
/usr/tivoli/tsm/tdpessr3/oracle/setup.sh

2. Enter the system ID (SID) for the mySAP system to be backed up (in this example, RED). 3. Enter the path for the mySAP executables, normally found in the /usr/sap/RED/sys/exe/run directory. If appropriate, you can use the suggested default by pressing Enter. 4. Enter the path for the Data Protection for IBM ESS for mySAP profile (initRED.fcs). If appropriate, you can use the suggested default by pressing Enter. This must be an NFS directory. Note: The setup.sh script ensures that several levels of Data Protection for IBM ESS for mySAP (splitint) can be used simultaneously on the backup and various production systems. The Data Protection for IBM ESS for mySAP installation procedure is complete when you have run the installation on the production and backup systems. Now, you must enter the necessary information in the initRED.fcs configuration file, as shown in Figure 11-6.
Example 11-6 initRED.fcs ################################################################ # 5.3.0 # ################################################################ # This profile contains setup information for # IBM Tivoli Storage Manager for Hardware - Data Protection for IBM ESS for mySAP(R) # on Oracle(R) # # as described in the manual # IBM Tivoli Storage Manager for Hardware - Data Protection for IBM ESS for mySAP(R) # on Oracle(R) Installation and User's Guide" # # This profile is referred to there and here as the # TDP for ESS profile. # # For a full description see the above referenced manual. # # # # File name: init<SID>.fcs # Directory: /oracle/<SID>/dbs # where <SID> stands for the used Oracle System ID. # In R/3 environments, 3 character System IDs are # used. In the sample, A01 is used as the System ID. # Usage : # Whenever TDP for ESS will be used, a profile has to # be passed along with the TDP for ESS command splitint # as the value of the -p parameter, for example: # # splitint -f xxxxxx -p /oracle/<SID>/dbs/init<SID>.fcs # # where xxxxxx stands for a function of TDP for ESS # (resynch, withdraw, unmount, inquire, password or # query) being performed by splitint.

320

Get More Out of Your SAN with IBM Tivoli Storage Manager

# # # # # # # # # # # # # # #

With the product deliverables, you get the sample file initSID.fcs. If you have not used the install script, rename it to $ORACLE_HOME/dbs/init$ORACLE_SID.fcs, where $ORACLE_HOME is the home directory of the Oracle database. In the sample the name /oracle/A01/dbs/initA01.fcs is used.

Rules for the profile setup must be followed as shown: - Directory names and files names are case sensitive - All directories and file names must be available via NFS mounts on the production (here: columbus) or backup system (here: magellan)

# Any comments must start with the character '#' in column 1. # # Tabs should not be used. # Layout of the profile # The profile is divided into topics. The present # release contains the following topics: # global and # shark_data # Each topic has a unique set of specific parameters, of which # some are required and some will default to a value. # Each topic is enclosed by a topic begin statement (>>>) and a # topic end statement (<<<) followed by the topic name separated # by a blank character. # Parameters of the 'global' topic >>> global #------------------------------------------------------------------# # LOGON_HOST_PROD (changed with TDP for ESS 1.1.10.1) # Defines the parameters needed to reach the production system # on which the R/3 database server is running. # # The syntax with 2 parameters is: # # LOGON_HOST_PROD tcp_name userid # # where tcp_name is the TCP/IP name or the dot address under # which the production system can be reached # using rexec services # (here called columbus_et) # # userid is the R/3 userid ora<sid> (here called oraa01) # The password for this userid has to be provided # - once TDP for ESS has been installed - using # the password function of TDP for ESS and will be # encrypted and stored in the file specified in # CONFIG_FILE. # # # # The syntax with 3 parameters (introduced with 1.1.0.3 is still # working however the 1st parameter is not any longer checked # to be true) is:

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

321

# # LOGON_HOST_PROD hostname tcp_name userid # # where hostname is the host name (result of hostname command) # of the production system (here called columbus). # tcp_name is the TCP/IP name or the dot address of the # production system. # (here called columbus_et) # userid is the R/3 userid ora<sid> (here called oraa01) # The password for this userid has to be provided # - once TDP for ESS has been installed - using # the password function of TDP for ESS and will be # encrypted and stored in the file specified in # CONFIG_FILE. # # # # Parameter definition is required. #------------------------------------------------------------------# LOGON_HOST_PROD s1 orared

#------------------------------------------------------------------# # LOGON_HOST_BACK # Defines the host name of the backup system (as a result of the # hostname command) on which the R/3 DBA tool brbackup will be # started with a FlashCopy request for TDP for ESS # (here called magellan). # # Once the task for this request has finished, brbackup will # start the backup on the backup system by calling # Tivoli Data Protection for R/3. # # Parameter definition is required. #------------------------------------------------------------------# LOGON_HOST_BACK t1

#------------------------------------------------------------------# # BACKUP_MAX # Defines the number of backup cycles kept in the directory of the # IDS_CONTROL_FILE path; if BACKUP_MAX is reached, # the logs and traces belonging to a backup cycle will also be # deleted (see also LOG_TRACE_DIR). # Parameter definition is optional. # Default: 30 #------------------------------------------------------------------# BACKUP_MAX 30

#------------------------------------------------------------------# # IDS_CONTROL_FILE # Defines the file which contains the summary information # of such a backup cycle entry. TDP for ESS will create an entry # in this file each time it starts a FlashCopy on behalf of a # FlashCopy request by R/3 DBA tool brbackup. # # This file must be reachable via an NFS setup from the production # and backup systems. # In the sample, /oracle/A01/sapbackup is already available

322

Get More Out of Your SAN with IBM Tivoli Storage Manager

# as an NFS directory. # # Parameter definition is required. #------------------------------------------------------------------# IDS_CONTROL_FILE /oracle/RED/sapbackup/idssave/idssave

#------------------------------------------------------------------# # CONFIG_FILE # Defines the file which contains the information required # when the backup system needs to work with other hosts # like the production system. # # The file will be created by calling the password function of # TDP for ESS, once it had been installed, and each time the # password of the ora<sid> user (here in our sample oraa01) has # been changed. # # This file must be reachable via an NFS setup from the production # and backup systems. # In the sample, /oracle/A01/dbs is already available # as an NFS directory. # # Parameter definition is required. #------------------------------------------------------------------# CONFIG_FILE /oracle/RED/920_64/dbs/initRED.fcp

#------------------------------------------------------------------# # WORK_DIR # Specifies the directory where temporary files will be written # by TDP for ESS. # This file must be reachable via an NFS setup from the production # and backup systems. # In the sample, /oracle/A01/dbs is already available # as an NFS directory. # # Parameter definition is required. #------------------------------------------------------------------# WORK_DIR /oracle/RED/sapbackup/work

#------------------------------------------------------------------# # TRACE # Controls the generation of a trace file. # Note: we recommend using the trace function # - at implementation time and # - in cooperation with the hotline # # Parameter definition is optional. # Default: YES #------------------------------------------------------------------# TRACE YES

#------------------------------------------------------------------# # LOG_TRACE_DIR # Specifies the directory for log and trace files to be written # by TDP for ESS. # Trace files will be written to this directory if TRACE ON is

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

323

# specified in the TRACE parameter. # # This file must be reachable via an NFS setup from the production # and backup systems. # In the sample, /oracle/A01/dbs is already available # as an NFS directory. # # Parameter definition is optional. # Default: if not specified, logs and traces will be written to the # directory specified as the WORK_DIR parameter. #------------------------------------------------------------------# LOG_TRACE_DIR /oracle/RED/sapbackup/logtraces #------------------------------------------------------------------# # SUPPORT_ADMIN_ASSISTANT # Defines whether TDP for ESS sends its log records to # the TDP for R3 Administrator Assistant. # For proper setup of the Administrator Assistant see the # TDP for R/3 Installation and User's Guide # # Possible parameter values: YES | NO # # Parameter definition is optional. # DEFAULT value : NO #------------------------------------------------------------------# SUPPORT_ADMIN_ASSISTANT NO #------------------------------------------------------------------# # PROLE_SERVICE_NAME # This parameter specifies the service name with which DP for ESS # communicates with DP for mySAP prole to provide information # to the Administrator Assistant. # The service name is defined by DP for mySAP at installation # time in /etc/services. Check this file. # This parameter is required only if SUPPORT_ADMINISTRATOR_ASSISTANT # is set to YES. # # Default: (no name provided) #------------------------------------------------------------------# # PROLE_SERVICE_NAME tdpr3ora64 | tdpr3ora <<< global

# Parameters of the 'shark_data' topic >>> shark_data #------------------------------------------------------------------# # The 'shark_data' topic contains all the parameters # required to let TDP for ESS use the ESS CopyServices CLI # to request ESS FlashCopy, withdraw, and inquire # operations on the primary server of an ESS Cluster in which the # volumes of interest reside. # # To access the ESS, a username and password # are required. You will get the username and the # password from the ESS administrator, who likely has also # set up for you # the ESS (source) volumes to allow you to install R/3 with # an Oracle DB and # the ESS (target) volumes #

324

Get More Out of Your SAN with IBM Tivoli Storage Manager

# # The password for this username has to be provided - once # TDP for ESS has been installed - using the password function # of TDP for ESS and will be encrypted and stored in the file # specified in CONFIG_FILE (see above). #------------------------------------------------------------------# #------------------------------------------------------------------# # JAVA_HOME_DIRECTORY # Defines the directory of the Java runtime executables # # Parameter definition is required. #------------------------------------------------------------------# JAVA_HOME_DIRECTORY /usr/jdk_base #------------------------------------------------------------------# # SHARK_COPY_SERVICE_CODE # Defines the directory into which the complete ibm2105 installation # package (ESS Copy Services code) was installed. # # For IBM2105 Command Line Interface 1.1 the install path is # /usr/opt/ibm2105cli # # Parameter definition is required. #------------------------------------------------------------------# SHARK_COPY_SERVICE_CODE /usr/opt/ibm/ibm2105cli #------------------------------------------------------------------# # SHARK_SERVERNAME_PRIMARY # Defines the DNS or TCP/IP address of the primary ESS Copy # Services server of the ESS cluster you plan to have # TDP for ESS work with. # Should the primary ESS Copy Services Server not be reached, # TDP for ESS will try the connection to the backup Copy Services # Server. # # Parameter definition is required. #------------------------------------------------------------------# SHARK_SERVERNAME_PRIMARY 172.31.1.15 #------------------------------------------------------------------# # SHARK_SERVERNAME_BACKUP # Defines the DNS or TCP/IP address of the backup ESS Copy # Services server of the ESS cluster you plan to have # TDP for ESS work with. # Should the backup ESS Copy Services Server not be reached as well # TDP for ESS will terminate with an error message. # # Parameter definition is required. #------------------------------------------------------------------# SHARK_SERVERNAME_BACKUP 172.31.1.19 #------------------------------------------------------------------# # SHARK_USERNAME # Defines the username which was set up in the ESS # to work with the ESS Copy Services Server. # # Parameter definition is required. #------------------------------------------------------------------# SHARK_USERNAME ess

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

325

#------------------------------------------------------------------# # FLASHCOPY_TYPE # Defines whether the ESS performs a NOCOPY or a COPY. # COPY results in a bit-by-bit copy of data from one physical volume # (source) to another physical volume (target). # # Possible parameter values: INCR | COPY | NOCOPY # # Parameter definition is optional. # DEFAULT: COPY #------------------------------------------------------------------# FLASHCOPY_TYPE COPY #------------------------------------------------------------------# # SHARK_VOLUMES_FILE # Defines the fully qualified file name containing a list of all # target volumes planned for use by serial number. # The specified file must be reachable via the NFS setup. # # To distinguish this from other profiles and control files, # define the character string 'fct' as the name suffix. # # Parameter definition is required. #------------------------------------------------------------------# SHARK_VOLUMES_FILE /oracle/RED/920_64/dbs/initRED.fct #------------------------------------------------------------------# <<< shark_data #------------------------------------------------------------------#

The SHARK_VOLUMES_FILE parameter points to the initRED.fct configuration file, which contains the target volume IDs to be used for the FlashCopy procedure (Example 11-7).
Example 11-7 initRED.fct #=====================================================================# #=== #=== This file contains setup information about source/target volumes #=== as they will be used in the flashcopy function. #=== The file will be pointed to by the file name specified #=== in the SHARK_VOLUMES_FILE parameter of the #=== 'Data Protection for ESS for mySAP' profile #=== (if standard naming conventions have been used then #=== this would be /oracle/<SID>/dbs/init<SID>.fcs) #=== #=== It is required to embed the SHARK_TARGET_VOLUMES parameter #=== between the topic start parameter (>>>shark_volume_set_x) #=== and topic end parameter (<<<shark_volume_set_x) where x should #=== indicate the TargetVolumeSet you would like to use. #=== 'Tivoli Data Protection for ESS for R/3 ' V1R1 supports only #=== shark_volumes_set_1 #=== #=== #=== #=== Example:

326

Get More Out of Your SAN with IBM Tivoli Storage Manager

#=== File name (suggested): init<SID>.fct #=== Directory (suggested): /oracle/<SID>/dbs #=== #=== ATT: on the parameter statement SHARK_TARGET_VOLUME #=== 1st value is target_volume_serial_number #=== 2nd value is source_volume_serial_number or #=== 3rd value is Size=2.0_GB or #=== #=== If you specify source volume serial number and size, #=== you must ensure the target volume size is the same. #=====================================================================#

>>> shark_volumes_set_1 #=====================================================================# #SHRK_ID_LVM_MIRROR 23376 # # Use this parameter only in case of an AIX LVM Mirror environment. # It defines the serial number of the ESS machine which # contains a complete set of at least 1 copy of all DB LVs # which shall become object of the backup process. # Only the ESS source volumes of the specified ESS will be used # on the production system by DP for ESS for the flashcopy process. # # Possible parameter values : XXXXX # where XXXXX is the 5 digit ESS box serial number. # It must be whithin the topic >>> shark_volumes_set_x . # # Parameter definition can o n l y be used if an appropriate # setup had been done as defined in the DP for ESS manual. # # DEFAULT : NOT DEFINED # #=====================================================================# SHARK_TARGET_VOLUME 1A323376 1A023376 6.10_GB SHARK_TARGET_VOLUME 1A423376 1A123376 6.10_GB SHARK_TARGET_VOLUME 1A523376 1A223376 6.10_GB SHARK_TARGET_VOLUME 33123376 32F23376 6.10_GB SHARK_TARGET_VOLUME 33223376 33023376 6.10_GB SHARK_TARGET_VOLUME 19B23376 19A23376 1.50_GB SHARK_TARGET_VOLUME 35A23376 35923376 1.50_GB <<< shark_volumes_set_1 #=====================================================================# # Fill in the topic shark_volumes_set_2 only in case of LVM mirror or # if you want to maintain multiple FlashCopy backup versions (multiple # target sets) #=====================================================================# #>>> shark_volumes_set_2 #SHARK_ID_LVM_MIRROR 13158 #SHARK_TARGET_VOLUME 51913158 - #SHARK_TARGET_VOLUME 52013158 - # ... #<<< shark_volumes_set_2

This example shows all the source and target volume serial numbers and the sizes, which were filled in after the first backup run. However, when configuring the file initially, we recommend that you enter in lines of the following format:
SHARK_TARGET_VOLUME 1A323376 - -

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

327

That is, enter a line for each target volume with the other parameters (source volume and size) replaced by a dash. In this case, providing that there are sufficient target volumes of the correct size (matching the source volumes), Data Protection for IBM ESS for mySAP finds the source volumes and the sizes automatically and updates the information in the .fct file as shown in our example. The file is updated when the first backup operation is initiated. (You could run a test backup where no data is sent, using the brbackup -q command.) Figure 11-5 shows the relationships between the various configuration files in detail.

init<SID>.sap split_options = "... init<SID>.fcs ..." split_resync = "..." primary_db = <SID>.WORLD backup_type = ... backup_dev_type = util_file . . . util_par_file = .../init<SID>.utl

init<SID>.fcs CONFIG_FILE SHARK_VOLUMES_FILE . . .

init<SID>.fct
>>> shark_volumes_set_1 SHARK_TARGET_VOLUME ... SHARK_TARGET_VOLUME ... SHARK_TARGET_VOLUME ... <<< shark_volumes_set_1

init<SID>.fcp

init<SID>.utl Production System / DB Server dsm.sys


SERVERNAME . . .

Backup System init<SID>.bki dsm.sys


SERVERNAME . . .

FCS_FILE CONFIG_FILE . . . SERVERNAME


NFS mounts via GigaBit Network

dsm.opt
empty file

dsm.opt
empty file

Figure 11-5 mySAP backup environment: configuration files

The initRED.fcp file is a binary file which stores the compiled information retrieved from the other configuration files. It cannot be edited manually. Now, you need to set the passwords for the orared user and the ess user on the ESS Copy Services server, using the splitint interface for mySAP (Example 11-8).
Example 11-8 Setting the orared and ess user passwords t1:orared> splitint -p initRED.fcs -f password IBM Tivoli Storage Manager for Hardware Data Protection for IBM ESS for mySAP(R) on Oracle(R) BR*Tools Interface SPLITINT for the IBM Enterprise Storage Server - Version 5, Release 3, Level 0 for AIX (32 Bit) Build: 225 generated at 15:09:41 on Mar 21 2005 (c) Copyright IBM Corporation, 2000, 2004, All Rights Reserved. IDS1310W The free space in the file system containing the directory / is only 27.55 MB (9 percent). IDS1411I The intended FlashCopy type has a value of 'INCR'. Profile initRED.fcs Log file splitint_?_20052203183101.log Trace file splitint_?_20052203183101.trace

328

Get More Out of Your SAN with IBM Tivoli Storage Manager

-- Parameters of splitint profile -LOGON_HOST_PROD s1 orared LOGON_HOST_BACK t1 BACKUP_MAX 30 IDS_CONTROL_FILE /oracle/RED/sapbackup/idssave/idssave CONFIG_FILE /oracle/RED/920_64/dbs/initRED.fcp WORK_DIR /oracle/RED/sapbackup/work TRACE YES LOG_TRACE_DIR /oracle/RED/sapbackup/logtraces SUPPORT_ADMIN_ASSISTANT NO JAVA_HOME_DIRECTORY /usr/jdk_base SHARK_COPY_SERVICE_CODE /usr/opt/ibm/ibm2105cli SHARK_SERVERNAME_PRIMARY 172.31.1.15 SHARK_SERVERNAME_BACKUP 172.31.1.19 SHARK_USERNAME ess FLASHCOPY_TYPE INCR SHARK_VOLUMES_FILE /oracle/RED/920_64/dbs/initRED.fct IDS1015I Start of splitint program at: 03/22/05-18:31:01. Function password IDS1051I: Enter the password for the user 'orared' : IDS1052I: Enter the password for the user 'orared' again: IDS1051I: Enter the password for the user 'ess on the ESS' : IDS1052I: Enter the password for the user 'ess on the ESS' again: IDS1023I Exiting with return code 0. t1:orared>

The environment is now set up to allow the actual backup and restore commands to be run.

11.4.4 Backup and restore commands


The commands that are used for backup and restore are: brbackup utility for mySAP Starts the actual backup run. -h shows help -c is no-prompt batch mode -t overrides the backup mode, for example, online_mirror -q simulates actions and checks settings

splitint interface for mySAP Can be used to perform manual actions on the ESS subsystem and is also called by the brbackup utility to perform the ESS-specific functions. -f inquire or ts_inquire shows status of target volumes -f unmount unmounts target volumes from backup system in case of an error tdpessora Used for querying the status of FlashCopy based backups and for restoring backups. The following types of backups can be taken: On the backup system (disk-only as well as Tivoli Storage Manager backups are possible) Full database offline FlashCopy backup (brbackup -t offline_mirror) Full database online FlashCopy backup (brbackup -t online_mirror)

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

329

On the production system (all backups are Tivoli Storage Manager backups) Full/partial database offline/online backup (for example, brbackup -t offline) Incremental database backup (brbackup...) Backup of the offline redo log files (brarchive) Non-database related files (Tivoli Storage Manager Backup-Archive Client) Base system related files (operating system specific methods such as mksysb)

11.5 Backup
There are different types of backups available. You can choose between online-mirror and offline-mirror backups that are combined with the ESS FlashCopy modes NOCOPY, COPY, and INCR. Furthermore, you can choose whether to do disk-only backups or transfer the data to Tivoli Storage Manager. Figure 11-6 shows the different steps that are executed during a backup run.
Production system
mySAP utilities brbackup brarchive brrestore
(not involved in FlashCopy Backup)

Backup system 3
Tivoli Storage Manager Server

1 Oracle production server 5


DP for mySAP (backint)

1 3 5 7

Oracle Remote Client

1 ,3
mySAP utility brbackup

DP for mySAP (backint)


Backup Part 2 Backup Part 1

7 7 2,3,5 6,8

with -t offline_mirror or -t online_mirror

DP for ESS (splitint)

2,4
4
LAN

3 8

DP for ESS (splitint)

2 mySAP DB server
LVM

4
LVM 1

5 6

Backup Server

spl i t i nt - Det er m ne r el at i on of i DB f i l es t o physi cal vol um es ( ESS sour ce vol um es) spl i t i nt - On pr oduct i on syst em - Per f or m Fl ashCopy ( I NCR, COPY, NOCOPY) and exi t - On backup syst em - St ar t Fl ashCopy agent spl i t i nt - f r esync onl y i f spl i t _r esync = yes: - unm ount f i l e syst em s on backup syst em ( COPY, I NCR, NOCOPY) and - wi t hdr aw t ar get vol um es ( NOCOPY)

br backup - r em e connect i on ot - get f i l e l i st s spl i t i nt - r equest DB backup m ode and wai t spl i t i nt - r equest DB nor m al m ode spl i t i nt - im por t / var yon VGs of TVs - m ount f i l esyst em s backi nt - f backup - exchange i nf o wi t h spl i t i nt - backup dat abase t o I TSM ser ver - backup l ogs and pr of i l es t o Ti vol i St or age M anager ser ver

ESS Copy Services

5 6

Source volumes (SVs)

IBM ESS

Target volumes (TVs)

Figure 11-6 FlashCopy backup scheme

The following sections contain examples that explain the different phases.

330

Get More Out of Your SAN with IBM Tivoli Storage Manager

11.5.1 FlashCopy Backup OFFLINE_MIRROR NOCOPY to Tivoli Storage Manager


This example executes an offline database backup using FlashCopy and transfers the tablespace data files to Tivoli Storage Manager. It uses the FlashCopy NOCOPY method, so that the FlashCopy takes only minutes to complete. However, it is not eligible for a FlashBack restore. The restore has to be done from Tivoli Storage Manager. If instead it used the COPY option, the data would be fully copied in the background to the target volumes. This target set would then be eligible as a FlashBack restore source. Figure 11-7 shows the schema of the action taken.

Production System
ESS Source Volumes

Backup System
ESS Target Volumes

Backup System or Other System


Backup to Tivoli Storage Manager

VG1

Tablespace files

Tablespace files All files

Complete DB Backup

DB control files

DB control files 1st control file only

ITSM

VG2

Online redo logs (origlog A/B)

Online redo logs (origlog A/B)

All files

Online redo logs (mirrlog A/B)

Online redo logs (mirrlog A/B) Not backed up separately

splitint

backint (part 1)

brbackup

Figure 11-7 OFFLINE_MIRROR backup method

To get an OFFLINE_MIRROR backup you have to change the SPLIT_OPTIONS parameter in the initRED.sap file or call brbackup with -t offline_mirror to override the options in the configuration file. To get the NOCOPY FlashCopy mode, append -C NOCOPY to the SPLIT_OPTIONS parameter in the initRED.sap file or change the FLASHCOPY_TYPE parameter in the initRED.fcs configuration file (see Figure 11-6 on page 320). In this example, we changed the file initRED.sap file to indicate NOCOPY, so we can call just brbackup with the batch flag -c. The output of this command is very long. Example 11-9 shows the first part. It displays a summary of the operation to be performed and determines the resources required for the requested task.
Example 11-9 Output of brbackup offline_mirror, Tivoli Storage Manager, NOCOPY t1:orared 1> brbackup -c BR051I BRBACKUP 6.400 (116+) BR055I Start of database backup: bdpnlfyi.aff 2005-03-18 01.33.24 BR280I Time stamp 2005-03-18 01.33.25 BR295I Splitting mirror disks... BR278I Command output of '/usr/sap/RED/SYS/exe/run/splitint -u RED -f split -i /oracle/RED/sapbackup/.bdpnlfyi.lst -t offline -c -s -p /oracle/RED/920_64/dbs/initRED.fcs -C NOCOPY':

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

331

IBM Tivoli Storage Manager for Hardware Data Protection for IBM ESS for mySAP(R) on Oracle(R) BR*Tools Interface SPLITINT for the IBM Enterprise Storage Server - Version 5, Release 3, Level 0 for AIX (32 Bit) Build: 220 generated at 16:54:57 on Nov 25 2004 (c) Copyright IBM Corporation, 2000, 2004, All Rights Reserved. IDS1411I The intended FlashCopy type has a value of 'NOCOPY'. Profile /oracle/RED/920_64/dbs/initRED.fcs Log file splitint_?_20051803013325.log Trace file splitint_?_20051803013325.trace -- Parameters of splitint profile -LOGON_HOST_PROD s1 orared LOGON_HOST_BACK t1 BACKUP_MAX 30 IDS_CONTROL_FILE /oracle/RED/sapbackup/idssave/idssave CONFIG_FILE /oracle/RED/920_64/dbs/initRED.fcp WORK_DIR /oracle/RED/sapbackup/work TRACE YES LOG_TRACE_DIR /oracle/RED/sapbackup/logtraces SUPPORT_ADMIN_ASSISTANT NO JAVA_HOME_DIRECTORY /usr/jdk_base SHARK_COPY_SERVICE_CODE /usr/opt/ibm/ibm2105cli SHARK_SERVERNAME_PRIMARY 172.31.1.15 SHARK_SERVERNAME_BACKUP 172.31.1.19 SHARK_USERNAME ess FLASHCOPY_TYPE NOCOPY SHARK_VOLUMES_FILE /oracle/RED/920_64/dbs/initRED.fct IDS1005I Start of splitint program at: 03/18/05-01:33:25. EEO0020I ====>Performing DP FOR ESS BACKUP command. IDS1121I Getting the source volumes... Function getresources Backup list /oracle/RED/sapbackup/.bdpnlfyi.lst IDS1035I The IDS control file exists and a new backup cycle entry has been created. IDS1101I New assigned Backup Sequence Number 00002 IDS1025I Time stamp: 03/18/05-01:33:34.

Next, we determine the relationship of the database files to physical volumes (ESS source volumes), as shown in Example 11-10.
Example 11-10 Getting source volumes IDS1026I Start of splitint on the production system... IBM Tivoli Storage Manager for Hardware Data Protection for IBM ESS for mySAP(R) on Oracle(R) BR*Tools Interface SPLITINT for the IBM Enterprise Storage Server - Version 5, Release 3, Level 0 for AIX (32 Bit) Build: 220 generated at 16:54:57 on Nov 25 2004 (c) Copyright IBM Corporation, 2000, 2004, All Rights Reserved. IDS1411I The intended FlashCopy type has a value of 'NOCOPY'. Profile /oracle/RED/920_64/dbs/initRED.fcs Log file splitint_?_20051803013325.log Trace file splitint_?_20051803013325.trace IDS1015I Start of splitint program at: 03/18/05-01:33:34.

332

Get More Out of Your SAN with IBM Tivoli Storage Manager

Function getresources Subfunction performsplit Backup list /oracle/RED/sapbackup/work/.bdpnlfyi.lst EEO0022I AIX Version: 5300 Oslevel: 0. EEO0023I ESS CopyServices CLI Version: 2.3. EEO0362I Checking the status of the primary Copy Services Server: 172.31.1.15 EEO0363I Primary Copy Services server is ready. EEO0156I Finding the serial numbers... IDS1404I The target set with ID '1' is selected for this run. Matching pair tgt: <1A323376> src: <1A023376> size: <6.10_GB> Matching pair tgt: <1A423376> src: <1A123376> size: <6.10_GB> Matching pair tgt: <1A523376> src: <1A223376> size: <6.10_GB> Matching pair tgt: <33123376> src: <32F23376> size: <6.10_GB> Matching pair tgt: <33223376> src: <33023376> size: <6.10_GB> Matching pair tgt: <19B23376> src: <19A23376> size: <1.50_GB> Matching pair tgt: <35A23376> src: <35923376> size: <1.50_GB> EEO0371I Value of Flashcopy type is: NOCOPY. EEO0359I Incremental Change Recording: Not Set EEO0381I Querying ESS for pending sectors for volume: 1A023376 EEO0381I Querying ESS for pending sectors for volume: 1A123376 EEO0381I Querying ESS for pending sectors for volume: 1A223376 EEO0381I Querying ESS for pending sectors for volume: 32F23376 EEO0381I Querying ESS for pending sectors for volume: 33023376 EEO0381I Querying ESS for pending sectors for volume: 19A23376 EEO0381I Querying ESS for pending sectors for volume: 35923376 EEO0374I Querying ESS for status of volume: 1A023376 EEO0374I Querying ESS for status of volume: 1A323376 EEO0374I Querying ESS for status of volume: 1A123376 EEO0374I Querying ESS for status of volume: 1A423376 EEO0374I Querying ESS for status of volume: 1A223376 EEO0374I Querying ESS for status of volume: 1A523376 EEO0374I Querying ESS for status of volume: 32F23376 EEO0374I Querying ESS for status of volume: 33123376 EEO0374I Querying ESS for status of volume: 33023376 EEO0374I Querying ESS for status of volume: 33223376 EEO0374I Querying ESS for status of volume: 19A23376 EEO0374I Querying ESS for status of volume: 19B23376 EEO0374I Querying ESS for status of volume: 35923376 EEO0374I Querying ESS for status of volume: 35A23376 IDS1023I Exiting with return code 0. #INFO remote shell terminated successfully IDS1027I Splitint ended successfully on the production system. IDS1025I Time stamp: 03/18/05-01:37:23.

Now, we shutdown the database, as shown in Example 11-11.


Example 11-11 Shutdown database IDS1320I Setting the tablespaces in backup mode or, in case of type offline, the database will be shutdown. BR280I Time stamp 2005-03-18 01.37.28 #BEGIN SPLIT /tmp/yaaQWqnUy BR280I Time stamp 2005-03-18 01.37.28 BR307I Shutting down database instance RED/PRIMARY .. BR280I Time stamp 2005-03-18 01.37.54 BR308I Shutdown of database instance RED/PRIMARY successful

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

333

Next, we perform the actual backup, calling splitint on the production system to perform the FlashCopy, as shown in Example 11-12.
Example 11-12 Perform FlashCopy IDS1122I Flashcopying the sources to the target volumes... Function flashcopy_only Backup list /oracle/RED/sapbackup/.bdpnlfyi.lst IDS1025I Time stamp: 03/18/05-01:37:58. IDS1026I Start of splitint on the production system... IBM Tivoli Storage Manager for Hardware Data Protection for IBM ESS for mySAP(R) on Oracle(R) BR*Tools Interface SPLITINT for the IBM Enterprise Storage Server - Version 5, Release 3, Level 0 for AIX (32 Bit) Build: 220 generated at 16:54:57 on Nov 25 2004 (c) Copyright IBM Corporation, 2000, 2004, All Rights Reserved. IDS1411I The intended FlashCopy type has a value of 'NOCOPY'. Profile /oracle/RED/920_64/dbs/initRED.fcs Log file splitint_?_20051803013325.log Trace file splitint_?_20051803013325.trace IDS1015I Start of splitint program at: 03/18/05-01:37:59. Function flashcopy_only Subfunction performsplit EEO0022I AIX Version: 5300 Oslevel: 0. EEO0023I ESS CopyServices CLI Version: 2.3. EEO0371I Value of Flashcopy type is: NOCOPY. EEO0272I Flushing the buffers to disk... IDS1030I Flashcopy started... EEO0362I Checking the status of the primary Copy Services Server: 172.31.1.15 EEO0363I Primary Copy Services server is ready. EEO0030I Number of ESS Volumes to be Flashcopied: 7 EEO0354I Performing NOCOPY FlashCopy of source ESS volume 1A023376 to target ESS 1A323376 EEO0354I Performing NOCOPY FlashCopy of source ESS volume 19A23376 to target ESS 19B23376 EEO0354I Performing NOCOPY FlashCopy of source ESS volume 1A223376 to target ESS 1A523376 EEO0354I Performing NOCOPY FlashCopy of source ESS volume 1A123376 to target ESS 1A423376 EEO0354I Performing NOCOPY FlashCopy of source ESS volume 32F23376 to target ESS 33123376 EEO0354I Performing NOCOPY FlashCopy of source ESS volume 35923376 to target ESS 35A23376 EEO0354I Performing NOCOPY FlashCopy of source ESS volume 33023376 to target ESS 33223376 EEO0366I Flashcopy was performed with NOCOPY option. IDS1031I Flashcopy successful. IDS1024I Exiting with return code 0. #INFO remote shell terminated successfully IDS1027I Splitint ended successfully on the production system. IDS1025I Time stamp: 03/18/05-01:38:19.

volume volume volume volume volume volume volume

After the FlashCopy is complete, we restart the database, as shown in Example 11-13 on page 335. Production can now resume on the production system.

334

Get More Out of Your SAN with IBM Tivoli Storage Manager

Example 11-13 Start up database IDS1321I The tablespaces will end the backup mode or, in case of offline_split, the database will be started. BR280I Time stamp 2005-03-18 01.38.19 #END SPLIT /tmp/zaadIqnUz BR280I Time stamp 2005-03-18 01.38.19 BR304I Starting and opening database instance RED/PRIMARY... BR280I Time stamp 2005-03-18 01.38.29 BR305I Start and open of database instance RED/PRIMARY successful

At this point, the production system no longer needs to be involved in the operation, and the actual backup is now taken on the backup system. The offline backup caused exactly 61 seconds of downtime to the mySAP database system. Next, we make the resources that are required (VGs and file systems) available to the backup system, as shown in Example 11-14.
Example 11-14 Varyon VGs, import VGs and mount file systems EEO0371I Value of Flashcopy type is: NOCOPY. IDS1123I Enabling the volumes and filesystems... Function setresources Backup list /oracle/RED/sapbackup/.bdpnlfyi.lst IDS1076I Trying to set the semaphore for the critical part of importing/exporting... IDS1046I Start of listing of importing volume groups/mounting file systems... EEO0126I Trying to find new devices to match the source device. This process will take some time....... EEO0148I Importing volume groups now... EEO0149I Newly imported volume group: REDtdp1 EEO0149I Newly imported volume group: REDtdp2 EEO0124I Mounting filesystem: /oracle/RED/mirrlogA. EEO0124I Mounting filesystem: /oracle/RED/mirrlogB. EEO0124I Mounting filesystem: /oracle/RED/origlogA. EEO0124I Mounting filesystem: /oracle/RED/origlogB. EEO0124I Mounting filesystem: /oracle/RED/sapdata1. EEO0124I Mounting filesystem: /oracle/RED/sapdata2. EEO0124I Mounting filesystem: /oracle/RED/sapdata3. EEO0124I Mounting filesystem: /oracle/RED/sapdata4. EEO0124I Mounting filesystem: /oracle/RED/sapdata5. EEO0124I Mounting filesystem: /oracle/RED/sapdata6. IDS1077I Semaphore released. IDS1047I End of listing. IDS1025I Time stamp: 03/18/05-01:40:27. BR280I Time stamp 2005-03-18 01.40.33 BR629I SPLITINT command sent success message: #SUCCESS IDS1024I Exiting with return code 0. BR280I Time stamp 2005-03-18 01.40.33 BR296I Split of mirror disks successful BR280I Time stamp 2005-03-18 01.40.34

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

335

We transfer the data from the backup system to Tivoli Storage Manager, as shown in Example 11-15.
Example 11-15 Backup data to Tivoli Storage Manager BR057I Backup of database: RED BR058I BRBACKUP action ID: bdpnlfyi BR059I BRBACKUP function ID: aff BR110I Backup mode: ALL BR077I Database files for backup: /oracle/RED/origlogA/log_g11m1.dbf /oracle/RED/origlogB/log_g12m1.dbf /oracle/RED/origlogA/log_g13m1.dbf /oracle/RED/origlogB/log_g14m1.dbf /oracle/RED/sapdata1/cntrl/cntrlRED.dbf BR061I 41 files found for backup, total size 24150.049 MB BR143I Backup type: offline_mirror BR130I Backup device type: util_file BR109I Files will be saved by backup utility BR126I Unattended mode active - no operator confirmation required BR280I Time stamp 2005-03-18 01.40.34 BR229I Calling backup utility... BR278I Command output of '/usr/sap/RED/SYS/exe/run/backint -u RED -f backup -i /oracle/RED/sapbackup/.bdpnlfyi.lst -t file -p /oracle/RED/920_64/dbs/initRED.utl -c': Data Protection for mySAP(R) Interface between SAPDBA Utilities and Tivoli Storage Manager - Version 5, Release 3, Modification 0 for AIX LF 64-bit Build: 257 compiled on Nov 23 2004 (c) Copyright IBM Corporation, 1996, 2004, All Rights Reserved. BKI2027I: Using TSM-API version 5.3.0.0 (compiled with 5.3.0.0). BKI2000I: Successfully connected to ProLE on port tdpr3ora64. BKI0005I: Start of program at: Fri Mar 18 01:40:34 NFT 2005. -- Parameters -Input File Profile Conflictive Manual sorting file Tracefile Traceflags Parallel sessions Multiplexed files RL compression Retries for files Exit on error BATCH Buffer size Buffer Copy Mode Redologcopies Versioning Current Version Versions to keep Delete Versions Backup Type TSM log server TSM server TSM client node

: /oracle/RED/sapbackup/.bdpnlfyi.lst : /oracle/RED/920_64/dbs/initRED.utl : /oracle/RED/920_64/dbs/initRED.bki : disabled : /oracle/RED/saparch/backint_RED___A0E6FO2ZQM.trace : FILEIO_MAX COMPR_MIN TSM_MIN : 1 : 1 : 0 : 3 : disabled : enabled : 131072 : SIMPLE : disabled : enabled : 134 : 4 : <= 130 : file : disabled : SERVER_A with 3 sessions configured, using 1 session : REDP

336

Get More Out of Your SAN with IBM Tivoli Storage Manager

TSM server version TSM server ip TSM server name TSM server type Sign-in id name Compression Archive deletion Days for backup Backup mgmt class Archiv mgmt class

: : : : : : : : : :

5.2.0.0 Y1.BOEBLINGEN.DE.IBM.COM ??? AIX-RS/6000 REDP client determined allowed Sun Mon Tue Wed Thu Fri Sat MDB MLOG1 MLOG2

BKI2017I: Blocksize is set to 131072 bytes BKI7311I: Profile used by DP ESS mySAP: /oracle/RED/920_64/dbs/initRED.fcs. BKI7536I: Execute command 'splitint -p /oracle/RED/920_64/dbs/initRED.fcs -f set_bki_info -i /tmp/bkiRED.ids': DP ESS mySAP: DP ESS mySAP: IBM Tivoli Storage Manager for Hardware DP ESS mySAP: Data Protection for IBM ESS for mySAP(R) on Oracle(R) DP ESS mySAP: DP ESS mySAP: BR*Tools Interface SPLITINT for the IBM Enterprise Storage Server DP ESS mySAP: - Version 5, Release 3, Level 0 for AIX (32 Bit) DP ESS mySAP: Build: 220 generated at 16:54:57 on Nov 25 2004 DP ESS mySAP: (c) Copyright IBM Corporation, 2000, 2004, All Rights Reserved. DP ESS mySAP: DP ESS mySAP: IDS1411I The intended FlashCopy type has a value of 'NOCOPY'. DP ESS mySAP: Profile /oracle/RED/920_64/dbs/initRED.fcs DP ESS mySAP: Log file splitint_?_20051803014034.log DP ESS mySAP: Trace file splitint_?_20051803014034.trace DP ESS mySAP: DP ESS mySAP: -- Parameters of splitint profile -DP ESS mySAP: DP ESS mySAP: LOGON_HOST_PROD s1 orared DP ESS mySAP: LOGON_HOST_BACK t1 DP ESS mySAP: BACKUP_MAX 30 DP ESS mySAP: IDS_CONTROL_FILE /oracle/RED/sapbackup/idssave/idssave DP ESS mySAP: CONFIG_FILE /oracle/RED/920_64/dbs/initRED.fcp DP ESS mySAP: WORK_DIR /oracle/RED/sapbackup/work DP ESS mySAP: TRACE YES DP ESS mySAP: LOG_TRACE_DIR /oracle/RED/sapbackup/logtraces DP ESS mySAP: SUPPORT_ADMIN_ASSISTANT NO DP ESS mySAP: JAVA_HOME_DIRECTORY /usr/jdk_base DP ESS mySAP: SHARK_COPY_SERVICE_CODE /usr/opt/ibm/ibm2105cli DP ESS mySAP: SHARK_SERVERNAME_PRIMARY 172.31.1.15 DP ESS mySAP: SHARK_SERVERNAME_BACKUP 172.31.1.19 DP ESS mySAP: SHARK_USERNAME ess DP ESS mySAP: FLASHCOPY_TYPE NOCOPY DP ESS mySAP: SHARK_VOLUMES_FILE /oracle/RED/920_64/dbs/initRED.fct DP ESS mySAP: IDS1015I Start of splitint program at: 03/18/05-01:40:34 . DP ESS mySAP: #SAVED /oracle/RED/sapdata2/btabd_2/btabd.data2 >>>>>>> output deleted >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> DP DP DP DP DP DP DP ESS ESS ESS ESS ESS ESS ESS mySAP: mySAP: mySAP: mySAP: mySAP: mySAP: mySAP: #SAVED /oracle/RED/sapdata1/cntrl/cntrlRED.dbf BID RED___A0E6FO2ZQM UTL /oracle/RED/920_64/dbs/initRED.utl INF /oracle/RED/sapbackup/.bdpnlfyi.lst EBT file EBC BRBACKUP EBB FULL

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

337

DP ESS mySAP: EBR DP ESS mySAP: INL >>>>>>> output deleted >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

NEW /oracle/RED/sapdata2/btabd_2/btabd.data2

DP ESS mySAP: INL /oracle/RED/sapdata1/cntrl/cntrlRED.dbf DP ESS mySAP: IDS1033I Information from DP for mySAP was found with backup ID RED___A0E6FO2ZQM. DP ESS mySAP: IDS1023I Exiting with return code 0. BKI5016I: Time: 03/18/05 01:40:48 New TSM session created: MGMNT-CLASS: MDB, TSM-Server: SERVER_A, type: SIMPLE BKI0027I: Time: 03/18/05 01:40:48 Object: 1 of 41 in process: /oracle/RED/sapdata1/stabi_1/stabi.data1 Size: 2000.008 MB, MGMNT-CLASS: MDB, TSM-Server: SERVER_A . BKI0023I: Time: 03/18/05 01:44:12 Done: 2000.008 MB (8.3 %) of 23.584 GB. Estimated end time: 03/18/05 02:24:26. BKI0053I: Time: 03/18/05 01:44:12 Object: 1 of 41 done: /oracle/RED/sapdata1/stabi_1/stabi.data1 with: 2000.008 MB saved with description RED___A0E6FO2ZQM. BKI0055I: Object /oracle/RED/sapdata1/stabi_1/stabi.data1 with 2000.008 MB saved with description RED___A0E6FO2ZQM_SERVER_A@MDB#340145 00134. >>>>>>> output deleted >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> BR280I Time stamp 2005-03-18 02.18.27 #FILE..... /oracle/RED/sapdata1/cntrl/cntrlRED.dbf #SAVED.... RED___A0E6FO2ZQM BKI2009I: Deleting all versions with version number <= 130 on server SERVER_A. Nr. Object 1 /oracle/RED/sapdata1/stabi_1/stabi.data1 >>>>>>> output deleted >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 41 /oracle/RED/sapdata1/cntrl/cntrlRED.dbf Nr. 1 Size 2000.008 MB Time 00 h 03 min 25 sec Sec 205 GB/h 34.299 SERVER_A Mgmtclass MDB Server SERVER_A

>>>>>>> output deleted >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 41 4888.000 KB 00 h 00 min 01 sec 1 16.782 MDB

BKI1215I: BKI1227I: BKI0020I: BKI0021I: BKI0024I:

Average transmission rate was 37.336 GB/h (10.620 MB/sec). Average compression factor was 1.000. End of program at: Fri Mar 18 02:18:30 NFT 2005 . Elapsed time: 37 min 56 sec . Return code is: 0.

BR280I Time stamp 2005-03-18 02.18.31 BR232I 41 of 41 files saved by backup utility BR230I Backup utility called successfully BR280I Time stamp 2005-03-18 02.18.34

338

Get More Out of Your SAN with IBM Tivoli Storage Manager

Then, we send the logs and profiles to Tivoli Storage Manager, as shown in Example 11-16.
Example 11-16 Back up logs and profiles to Tivoli Storage Manager BR229I Calling backup utility... BR278I Command output of '/usr/sap/RED/SYS/exe/run/backint -u RED -f backup -i /oracle/RED/sapbackup/.bdpnlfyi.lst -t file -p /oracle/RED/920_64/dbs/initRED.utl -c': Data Protection for mySAP(R) Interface between SAPDBA Utilities and Tivoli Storage Manager - Version 5, Release 3, Modification 0 for AIX LF 64-bit Build: 257 compiled on Nov 23 2004 (c) Copyright IBM Corporation, 1996, 2004, All Rights Reserved. BKI2027I: Using TSM-API version 5.3.0.0 (compiled with 5.3.0.0). BKI2000I: Successfully connected to ProLE on port tdpr3ora64. BKI0005I: Start of program at: Fri Mar 18 02:18:35 NFT 2005. -- Parameters -Input File Profile Configfile Manual sorting file Tracefile Traceflags Parallel sessions Multiplexed files RL compression Retries for files Exit on error BATCH Buffer size Buffer Copy Mode Redologcopies Versioning Current Version Backup Type TSM log server TSM server TSM client node TSM server version TSM server ip TSM server name TSM server type Sign-in id name Compression Archive deletion Days for backup Backup mgmt class Archiv mgmt class

: : : : : : : : : : : : : : : : : : : : : : : : : : : : : : :

/oracle/RED/sapbackup/.bdpnlfyi.lst /oracle/RED/920_64/dbs/initRED.utl /oracle/RED/920_64/dbs/initRED.bki disabled /oracle/RED/saparch/backint_RED___A0E6FPFXM5.trace FILEIO_MAX COMPR_MIN TSM_MIN 1 1 0 3 disabled enabled 131072 SIMPLE disabled enabled 135 file disabled SERVER_A with 3 sessions configured, using 1 session REDP 5.2.0.0 Y1.BOEBLINGEN.DE.IBM.COM ??? AIX-RS/6000 REDP client determined allowed Sun Mon Tue Wed Thu Fri Sat MDB MLOG1 MLOG2

BKI2017I: Blocksize is set to 131072 bytes BKI5016I: Time: 03/18/05 02:18:38 New TSM session created: MGMNT-CLASS: MDB, TSM-Server: SERVER_A, type: SIMPLE BKI0027I: Time: 03/18/05 02:18:38 Object: 1 of 8 in process: /oracle/RED/sapbackup/bdpnlfyi.aff Size: 64.285 KB, MGMNT-CLASS: MDB, TSM-Server: SERVER_A . BKI0023I: Time: 03/18/05 02:18:38 Done: 64.285 KB (53.5 %) of 120.058 KB. Estimated end time: 03/18/05 02:18:40.

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

339

BKI0053I: Time: 03/18/05 02:18:38 Object: 1 of 8 done: /oracle/RED/sapbackup/bdpnlfyi.aff with: 65.759 KB saved with description RED___A0E6FPFXM5. BKI0055I: Object /oracle/RED/sapbackup/bdpnlfyi.aff with 65.759 KB saved with description RED___A0E6FPFXM5_SERVER_A@MDB#380186 00135. >>>>>>> output deleted >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> BR280I Time stamp 2005-03-18 02.18.39 #INLOG.... /oracle/RED/sapreorg/reorgRED.log #SAVED.... RED___A0E6FPFXM5 Nr. 1 2 3 4 5 6 7 8 Nr. 1 2 3 4 5 6 7 8 Object /oracle/RED/sapbackup/bdpnlfyi.aff /oracle/RED/920_64/dbs/initRED.dba /oracle/RED/920_64/dbs/initRED.utl /oracle/RED/920_64/dbs/initRED.sap /oracle/RED/920_64/dbs/initRED.ora /oracle/RED/sapreorg/structRED.log /oracle/RED/sapbackup/backRED.log /oracle/RED/sapreorg/reorgRED.log Size 64.285 KB 19.589 KB 12.347 KB 11.981 KB 6152 Bytes 4976 Bytes 852 Bytes 160 Bytes Time h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 Sec 0 0 1 0 0 0 0 0 GB/h 0.245 0.075 0.042 0.046 0.023 0.019 0.003 0.001 Server SERVER_A SERVER_A SERVER_A SERVER_A SERVER_A SERVER_A SERVER_A SERVER_A Mgmtclass MDB MDB MDB MDB MDB MDB MDB MDB

00 00 00 00 00 00 00 00

min min min min min min min min

00 00 01 00 00 00 00 00

sec sec sec sec sec sec sec sec

BKI1215I: BKI1227I: BKI0020I: BKI0021I: BKI0024I:

Average transmission rate was 0.208 GB/h (0.059 MB/sec). Average compression factor was 0.987. End of program at: Fri Mar 18 02:18:39 NFT 2005 . Elapsed time: 04 sec . Return code is: 0.

BR280I Time stamp 2005-03-18 02.18.39 BR232I 8 of 8 files saved by backup utility BR230I Backup utility called successfully BR280I Time stamp 2005-03-18 02.18.41

After the backup is complete, we free the resources from the backup system by unmounting file systems, varying off VGs, exporting VGs, and withdrawing the ESS target volumes, as shown in Example 11-17.
Example 11-17 Resync and withdraw BR297I Resynchronizing mirror disks... BR278I Command output of '/usr/sap/RED/SYS/exe/run/splitint -u RED -f resync -i /oracle/RED/sapbackup/.bdpnlfyi.lst -c -s -p /oracle/RED/920_64/dbs/initRED.fcs -C NOCOPY': IBM Tivoli Storage Manager for Hardware Data Protection for IBM ESS for mySAP(R) on Oracle(R) BR*Tools Interface SPLITINT for the IBM Enterprise Storage Server - Version 5, Release 3, Level 0 for AIX (32 Bit) Build: 220 generated at 16:54:57 on Nov 25 2004

340

Get More Out of Your SAN with IBM Tivoli Storage Manager

(c) Copyright IBM Corporation, 2000, 2004, All Rights Reserved. IDS1310W The free space in the file system containing the directory / is only 24.85 MB (8 percent). IDS1411I The intended FlashCopy type has a value of 'NOCOPY'. Profile /oracle/RED/920_64/dbs/initRED.fcs Log file splitint_?_20051803021842.log Trace file splitint_?_20051803021842.trace -- Parameters of splitint profile -LOGON_HOST_PROD s1 orared LOGON_HOST_BACK t1 BACKUP_MAX 30 IDS_CONTROL_FILE /oracle/RED/sapbackup/idssave/idssave CONFIG_FILE /oracle/RED/920_64/dbs/initRED.fcp WORK_DIR /oracle/RED/sapbackup/work TRACE YES LOG_TRACE_DIR /oracle/RED/sapbackup/logtraces SUPPORT_ADMIN_ASSISTANT NO JAVA_HOME_DIRECTORY /usr/jdk_base SHARK_COPY_SERVICE_CODE /usr/opt/ibm/ibm2105cli SHARK_SERVERNAME_PRIMARY 172.31.1.15 SHARK_SERVERNAME_BACKUP 172.31.1.19 SHARK_USERNAME ess FLASHCOPY_TYPE NOCOPY SHARK_VOLUMES_FILE /oracle/RED/920_64/dbs/initRED.fct IDS1005I Start of splitint program at: 03/18/05-02:18:43 . Function withdraw Backup list /oracle/RED/sapbackup/.bdpnlfyi.lst IDS1025I Time stamp: 03/18/05-02:18:50. EEO0371I Value of Flashcopy type is: NOCOPY. IDS1060I Start of listing of exported volume groups/unmounting file systems ... IDS1076I Trying to set the semaphore for the critical part of importing/exporting ... EEO0273I Unmounting the file system /oracle/RED/sapdata6... EEO0273I Unmounting the file system /oracle/RED/sapdata5... EEO0273I Unmounting the file system /oracle/RED/sapdata4... EEO0273I Unmounting the file system /oracle/RED/sapdata3... EEO0273I Unmounting the file system /oracle/RED/sapdata2... EEO0273I Unmounting the file system /oracle/RED/sapdata1... EEO0273I Unmounting the file system /oracle/RED/mirrlogB... EEO0273I Unmounting the file system /oracle/RED/mirrlogA... EEO0273I Unmounting the file system /oracle/RED/origlogB... EEO0273I Unmounting the file system /oracle/RED/origlogA... EEO0152I Removing volume group REDtdp1 .... EEO0152I Removing volume group REDtdp2 .... EEO0153I Varied off and exported volume group : REDtdp1 EEO0153I Varied off and exported volume group : REDtdp2 EEO0138I Flashcopy type is set to NOCOPY. Removing disk meta data for all target disks... This backup is NOT valid for a FlashCopy restore. Please restore from TSM Server. EEO0127I Removing device : vpath39 EEO0127I Removing device : vpath36 EEO0127I Removing device : vpath35 EEO0127I Removing device : vpath29 EEO0127I Removing device : vpath28 EEO0127I Removing device : vpath27 EEO0127I Removing device : vpath26 EEO0127I Removing device : hdisk95

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

341

EEO0127I EEO0127I EEO0127I EEO0127I EEO0127I EEO0127I EEO0127I EEO0127I EEO0127I EEO0127I EEO0127I EEO0127I EEO0127I EEO0127I EEO0127I EEO0127I EEO0127I EEO0127I EEO0127I EEO0127I IDS1077I IDS1047I IDS1025I EEO0022I EEO0023I EEO0362I EEO0363I IDS1061I EEO0020I EEO0357I 1A323376 EEO0357I 19B23376 EEO0357I 1A523376 EEO0357I 1A423376 EEO0357I 33123376 EEO0357I 35A23376 EEO0357I 33223376 EEO0366I IDS1047I IDS1025I

Removing device : hdisk92 Removing device : hdisk91 Removing device : hdisk83 Removing device : hdisk82 Removing device : hdisk81 Removing device : hdisk80 Removing device : hdisk47 Removing device : hdisk43 Removing device : hdisk42 Removing device : hdisk33 Removing device : hdisk32 Removing device : hdisk31 Removing device : hdisk30 Removing device : hdisk135 Removing device : hdisk132 Removing device : hdisk131 Removing device : hdisk126 Removing device : hdisk125 Removing device : hdisk124 Removing device : hdisk123 Semaphore released. End of listing. Time stamp: 03/18/05-02:20:10. AIX Version: 5300 Oslevel: 0. ESS CopyServices CLI Version: 2.3. Checking the status of the primary Copy Services Server: 172.31.1.15 Primary Copy Services server is ready. Start of withdraw of the target-source pairs ... ====>Performing DP FOR ESS WITHDRAW command. Performing FlashCopy withdraw of source ESS volume 1A023376 from target ESS volume Performing FlashCopy withdraw of source ESS volume 19A23376 from target ESS volume Performing FlashCopy withdraw of source ESS volume 1A223376 from target ESS volume Performing FlashCopy withdraw of source ESS volume 1A123376 from target ESS volume Performing FlashCopy withdraw of source ESS volume 32F23376 from target ESS volume Performing FlashCopy withdraw of source ESS volume 35923376 from target ESS volume Performing FlashCopy withdraw of source ESS volume 33023376 from target ESS volume Flashcopy was performed with WITHDRAW option. End of listing. Time stamp: 03/18/05-02:21:20.

BR280I Time stamp 2005-03-18 02.21.20 BR629I SPLITINT command sent success message: #SUCCESS IDS1024I Exiting with return code 0. BR280I Time stamp 2005-03-18 02.21.20 BR298I Resynchronization of mirror disks successful BR056I End of database backup: bdpnlfyi.aff 2005-03-18 02.18.39 BR280I Time stamp 2005-03-18 02.21.20 BR053I BRBACKUP terminated successfully t1:orared>

342

Get More Out of Your SAN with IBM Tivoli Storage Manager

The whole offline database backup cycle took 48 minutes to complete, backing up a 30 GB mySAP database to Tivoli Storage Manager over a 100 MB Ethernet connection. The production database was offline for only 61 seconds. To verify the status of the backup run the tdpessora command:
tdpessora -p initRED.sap

The output is shown in Example 11-18.


Example 11-18 Output of tdpessora FlashCopy Backup using NOCOPY -------------------------------------------------------------------------------IBM Tivoli Storage Manager for Hardware Data Protection for IBM ESS for mySAP(R) on Oracle(R) Log history of the database backups SystemID: RED -------------------------------------------------------------------------------# Log Start of backup Type BackupID TSM FlashCopy -------------------------------------------------------------------------------1 bdpnlfyi.aff 05-03-18 01.33.24 offline_mirror RED___A0E6FO2ZQM ok nocopy d r o f e x show details refresh display choose from older backups show FlashCopy backups only (target set state IN_USE) emergency FlashCopy restore exit tdpessora

Enter your selection =>

From the output, you can determine the backup type (offline_mirror), the backup ID (mySAP generated), if the data was transferred to the Tivoli Storage Manager serve, r and the FlashCopy type.

11.5.2 FlashCopy Backup ONLINE_MIRROR Disk-only INCR


In this example, we back up the mySAP database online. To do this, we put the database in backup mode, FlashCopy the tablespace volumes using the incremental INCR FlashCopy feature of the ESS, and as soon as the FlashCopy relationship is accomplished, the database is put into production again. This is a disk-only backup and only the changed data blocks are synchronized in the ESS subsystem. This is the fastest backup method available and puts the production database in backup mode for only a few minutes. To start this type of backup, change the BACKUP_TYPE to ONLINE_MIRROR and SPLIT_OPTIONS parameter to -C INCR in the initRED.sap configuration file. Then run brbackup -c as shown in Example 11-19.
Example 11-19 Output of brbackup ONLINE_MIRROR, Disk Only, INCR t1:orared 17> brbackup -c BR051I BRBACKUP 6.400 (116+) BR055I Start of database backup: bdpnotka.anf 2005-03-18 18.43.44 BR319I Control file copy was created: /oracle/RED/sapbackup/cntrlRED.dbf 5005312 BR280I Time stamp 2005-03-18 18.43.45 BR295I Splitting mirror disks... Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

343

BR278I Command output of '/usr/sap/RED/SYS/exe/run/splitint -u RED -f split -i /oracle/RED/sapbackup/.bdpnotka.lst -t online -c -s -p /oracle/RED/920_64/dbs/initRED.fcs -d -C INCR': IBM Tivoli Storage Manager for Hardware Data Protection for IBM ESS for mySAP(R) on Oracle(R) BR*Tools Interface SPLITINT for the IBM Enterprise Storage Server - Version 5, Release 3, Level 0 for AIX (32 Bit) Build: 220 generated at 16:54:57 on Nov 25 2004 (c) Copyright IBM Corporation, 2000, 2004, All Rights Reserved. IDS1189I The option '-C INCR' will override the value 'INCR' of the parameter FLASHCOPY_TYPE in the profile. IDS1411I The intended FlashCopy type has a value of 'INCR'. Profile /oracle/RED/920_64/dbs/initRED.fcs Log file splitint_?_20051803184345.log Trace file splitint_?_20051803184345.trace -- Parameters of splitint profile -LOGON_HOST_PROD s1 orared LOGON_HOST_BACK t1 BACKUP_MAX 30 IDS_CONTROL_FILE /oracle/RED/sapbackup/idssave/idssave CONFIG_FILE /oracle/RED/920_64/dbs/initRED.fcp WORK_DIR /oracle/RED/sapbackup/work TRACE YES LOG_TRACE_DIR /oracle/RED/sapbackup/logtraces SUPPORT_ADMIN_ASSISTANT NO JAVA_HOME_DIRECTORY /usr/jdk_base SHARK_COPY_SERVICE_CODE /usr/opt/ibm/ibm2105cli SHARK_SERVERNAME_PRIMARY 172.31.1.15 SHARK_SERVERNAME_BACKUP 172.31.1.19 SHARK_USERNAME ess FLASHCOPY_TYPE INCR SHARK_VOLUMES_FILE /oracle/RED/920_64/dbs/initRED.fct IDS1005I Start of splitint program at: 03/18/05-18:43:46 . EEO0020I ====>Performing DP FOR ESS BACKUP command. IDS1121I Getting the source volumes ... Function getresources Backup list /oracle/RED/sapbackup/.bdpnotka.lst IDS1035I The IDS control file exists and a new backup cycle entry has been created. IDS1101I New assigned Backup Sequence Number 00005 IDS1025I Time stamp: 03/18/05-18:43:54.

Determine the relationship of the database tablespace files to the physical volumes (ESS source volumes), as shown in Example 11-20.
Example 11-20 Gather source volumes IDS1026I Start of splitint on the production system ... IBM Tivoli Storage Manager for Hardware Data Protection for IBM ESS for mySAP(R) on Oracle(R) BR*Tools Interface SPLITINT for the IBM Enterprise Storage Server - Version 5, Release 3, Level 0 for AIX (32 Bit) Build: 220 generated at 16:54:57 on Nov 25 2004 (c) Copyright IBM Corporation, 2000, 2004, All Rights Reserved.

344

Get More Out of Your SAN with IBM Tivoli Storage Manager

IDS1189I The option '-C INCR' will override the value 'INCR' of the parameter FLASHCOPY_TYPE in the profile. IDS1411I The intended FlashCopy type has a value of 'INCR'. Profile /oracle/RED/920_64/dbs/initRED.fcs Log file splitint_?_20051803184345.log Trace file splitint_?_20051803184345.trace IDS1015I Start of splitint program at: 03/18/05-18:43:54 . Function getresources Subfunction performsplit Backup list /oracle/RED/sapbackup/work/.bdpnotka.lst EEO0022I AIX Version: 5300 Oslevel: 0. EEO0023I ESS CopyServices CLI Version: 2.3. EEO0362I Checking the status of the primary Copy Services Server: 172.31.1.15 EEO0363I Primary Copy Services server is ready. EEO0156I Finding the serial numbers ... IDS1404I The target set with ID '1' is selected for this run. Matching pair tgt: <1A323376> src: <1A023376> size: <6.10_GB> Matching pair tgt: <1A423376> src: <1A123376> size: <6.10_GB> Matching pair tgt: <1A523376> src: <1A223376> size: <6.10_GB> Matching pair tgt: <33123376> src: <32F23376> size: <6.10_GB> Matching pair tgt: <33223376> src: <33023376> size: <6.10_GB> EEO0371I Value of Flashcopy type is: INCR. EEO0359I Incremental Change Recording: Enabled EEO0381I Querying ESS for pending sectors for volume: 1A023376 EEO0071I Source volume: 1A023376 Target volume: 1A323376 Pending Sectors: 0 EEO0381I Querying ESS for pending sectors for volume: 1A123376 EEO0071I Source volume: 1A123376 Target volume: 1A423376 Pending Sectors: 0 EEO0381I Querying ESS for pending sectors for volume: 1A223376 EEO0071I Source volume: 1A223376 Target volume: 1A523376 Pending Sectors: 0 EEO0381I Querying ESS for pending sectors for volume: 32F23376 EEO0071I Source volume: 32F23376 Target volume: 33123376 Pending Sectors: 0 EEO0381I Querying ESS for pending sectors for volume: 33023376 EEO0071I Source volume: 33023376 Target volume: 33223376 Pending Sectors: 0 EEO0374I Querying ESS for status of volume: 1A023376 EEO0374I Querying ESS for status of volume: 1A123376 EEO0374I Querying ESS for status of volume: 1A223376 EEO0374I Querying ESS for status of volume: 32F23376 EEO0374I Querying ESS for status of volume: 33023376 EEO0374I Querying ESS for status of volume: 1A323376 EEO0374I Querying ESS for status of volume: 1A423376 EEO0374I Querying ESS for status of volume: 1A523376 EEO0374I Querying ESS for status of volume: 33123376 EEO0374I Querying ESS for status of volume: 33223376 IDS1023I Exiting with return code 0. #INFO remote shell terminated successfully IDS1027I Splitint ended successfully on the production system. IDS1025I Time stamp: 03/18/05-18:46:41.

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

345

Put the tablespaces in backup mode, as shown in Example 11-21.


Example 11-21 Put tablespaces in backup mode IDS1320I Setting the tablespaces in backup mode or, in case of type offline, the database will be shutdown. BR280I Time stamp 2005-03-18 18.46.47 #BEGIN SPLIT /tmp/yaaD6al7y BR280I Time stamp 2005-03-18 18.46.47 BR315I 'Alter tablespace PSAPBTABD begin backup' successful >>>>>>> output deleted >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> BR280I Time stamp 2005-03-18 18.46.47 BR315I 'Alter tablespace PSAPUSER1I begin backup' successful BR280I Time stamp 2005-03-18 18.46.48 BR315I 'Alter tablespace SYSTEM begin backup' successful

Create the FlashCopy target volumes using incremental FlashCopy. If this is the first time an incremental FlashCopy is done, all source data is copied to the target volumes in the background. However, the target volumes are immediately available to the backup system, as shown in Example 11-22.
Example 11-22 Create the FlashCopy target volumes IDS1122I Flashcopying the sources to the target volumes ... Function flashcopy_only Backup list /oracle/RED/sapbackup/.bdpnotka.lst IDS1025I Time stamp: 03/18/05-18:46:52. IDS1026I Start of splitint on the production system ... IBM Tivoli Storage Manager for Hardware Data Protection for IBM ESS for mySAP(R) on Oracle(R) BR*Tools Interface SPLITINT for the IBM Enterprise Storage Server - Version 5, Release 3, Level 0 for AIX (32 Bit) Build: 220 generated at 16:54:57 on Nov 25 2004 (c) Copyright IBM Corporation, 2000, 2004, All Rights Reserved. IDS1189I The option '-C INCR' will override the value 'INCR' of the parameter FLASHCOPY_TYPE in the profile. IDS1411I The intended FlashCopy type has a value of 'INCR'. Profile /oracle/RED/920_64/dbs/initRED.fcs Log file splitint_?_20051803184345.log Trace file splitint_?_20051803184345.trace IDS1015I Start of splitint program at: 03/18/05-18:46:52 . Function flashcopy_only Subfunction performsplit EEO0022I AIX Version: 5300 Oslevel: 0. EEO0023I ESS CopyServices CLI Version: 2.3. EEO0371I Value of Flashcopy type is: INCR. EEO0272I Flushing the buffers to disk... IDS1030I Flashcopy started ... EEO0362I Checking the status of the primary Copy Services Server: 172.31.1.15 EEO0363I Primary Copy Services server is ready. EEO0030I Number of ESS Volumes to be Flashcopied: 5

346

Get More Out of Your SAN with IBM Tivoli Storage Manager

EEO0354I Performing INCR FlashCopy of source ESS volume 1A023376 1A323376 EEO0354I Performing INCR FlashCopy of source ESS volume 1A223376 1A523376 EEO0354I Performing INCR FlashCopy of source ESS volume 1A123376 1A423376 EEO0354I Performing INCR FlashCopy of source ESS volume 32F23376 33123376 EEO0354I Performing INCR FlashCopy of source ESS volume 33023376 33223376 EEO0366I Flashcopy was performed with INCR option. IDS1031I Flashcopy successful. IDS1024I Exiting with return code 0. #INFO remote shell terminated successfully IDS1027I Splitint ended successfully on the production system. IDS1025I Time stamp: 03/18/05-18:47:11.

to target ESS volume to target ESS volume to target ESS volume to target ESS volume to target ESS volume

End backup mode for the tablespaces, as shown in Example 11-23.


Example 11-23 End backup mode IDS1321I The tablespaces will end the backup mode or, in case of offline_split, the database will be started. BR280I Time stamp 2005-03-18 18.47.11 #END SPLIT /tmp/zaamLal7z BR280I Time stamp 2005-03-18 18.47.11 BR317I 'Alter tablespace PSAPBTABD end backup' successful >>>>>>> output deleted >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> BR280I Time stamp 2005-03-18 18.47.11 BR317I 'Alter tablespace PSAPUSER1I end backup' successful BR280I Time stamp 2005-03-18 18.47.11 BR317I 'Alter tablespace SYSTEM end backup' successful

The tablespaces were in backup mode for just 24 seconds, so very little overhead is generated on the redo logs. The next step is to import VGs, varyon VGs, and mount file systems on the backup server, as shown in Example 11-24.
Example 11-24 Import VGs, varyon VGs and mount filesystems EEO0371I Value of Flashcopy type is: INCR. IDS1540I Start of fcagent on the backup system ... IDS1123I Enabling the volumes and filesystems ... Function setresources Backup list /oracle/RED/sapbackup/.bdpnotka.lst IDS1076I Trying to set the semaphore for the critical part of importing/exporting ... IDS1046I Start of listing of importing volume groups/mounting file systems ... EEO0126I Trying to find new devices to match the source device. This process will take some time....... EEO0148I Importing volume groups now... EEO0149I Newly imported volume group: REDtdp1 EEO0124I Mounting filesystem : /oracle/RED/sapdata1. EEO0124I Mounting filesystem : /oracle/RED/sapdata2.

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

347

EEO0124I EEO0124I EEO0124I EEO0124I IDS1077I IDS1047I IDS1025I

Mounting filesystem : /oracle/RED/sapdata3. Mounting filesystem : /oracle/RED/sapdata4. Mounting filesystem : /oracle/RED/sapdata5. Mounting filesystem : /oracle/RED/sapdata6. Semaphore released. End of listing. Time stamp: 03/18/05-18:49:05.

BR280I Time stamp 2005-03-18 18.49.12 BR629I SPLITINT command sent success message: #SUCCESS IDS1024I Exiting with return code 0. BR280I Time stamp 2005-03-18 18.49.12 BR296I Split of mirror disks successful BR280I Time stamp 2005-03-18 18.49.12 BR340I Switching to next online redo log file for database instance RED ... BR321I Switch to next online redo log file for database instance RED successful BR280I Time stamp 2005-03-18 18.49.12

The database backup is now done (FlashCopy is complete). Because we specified a disk-only backup, no data is actually sent to Tivoli Storage Manager. In order to get this backup entered as a valid backup into the BRBackup log (to be later used for restore by BRRestore), a dummy backup with a BackupID is started. All files are reported as saved to BRBackup via the backint interface, and only a small amount of control information is transferred to the Tivoli Storage Manager server. See Example 11-25 for details.
Example 11-25 Backup data - dummy Tivoli Storage Manager session BR057I BR058I BR059I BR110I BR077I BR061I BR143I BR130I BR109I BR126I Backup of database: RED BRBACKUP action ID: bdpnotka BRBACKUP function ID: anf Backup mode: ALL Database file for backup: /oracle/RED/sapbackup/cntrlRED.dbf 37 files found for backup, total size 24070.047 MB Backup type: online_mirror Backup device type: util_file Files will be saved by backup utility Unattended mode active - no operator confirmation required

BR280I Time stamp 2005-03-18 18.49.12 BR229I Calling backup utility... BR278I Command output of '/usr/sap/RED/SYS/exe/run/backint -u RED -f backup -i /oracle/RED/sapbackup/.bdpnotka.lst -t file -p /oracle/RED/920_64/dbs/initRED.utl -c': Data Protection for mySAP(R) Interface between SAPDBA Utilities and Tivoli Storage Manager - Version 5, Release 3, Modification 0 for AIX LF 64-bit Build: 257 compiled on Nov 23 2004 (c) Copyright IBM Corporation, 1996, 2004, All Rights Reserved. BKI2027I: Using TSM-API version 5.3.0.0 (compiled with 5.3.0.0). BKI2000I: Successfully connected to ProLE on port tdpr3ora64. BKI0005I: Start of program at: Fri Mar 18 18:49:12 NFT 2005 .

348

Get More Out of Your SAN with IBM Tivoli Storage Manager

-- Parameters -Input File Profile Configfile Manual sorting file Tracefile Traceflags Parallel sessions Multiplexed files RL compression Retries for files Exit on error BATCH Buffer size Buffer Copy Mode Redologcopies Versioning Current Version Versions to keep Delete Versions Backup Type TSM log server TSM server TSM client node TSM server version TSM server ip TSM server name TSM server type Sign-in id name Compression Archive deletion Days for backup Backup mgmt class Archiv mgmt class

: : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : :

/oracle/RED/sapbackup/.bdpnotka.lst /oracle/RED/920_64/dbs/initRED.utl /oracle/RED/920_64/dbs/initRED.bki disabled /oracle/RED/saparch/backint_RED___A0E6GOTU2Z.trace FILEIO_MAX COMPR_MIN TSM_MIN 1 1 0 3 disabled enabled 131072 SIMPLE disabled enabled 135 4 <= 131 file disabled SERVER_A with 3 sessions configured, using 1 session REDP 5.2.0.0 Y1.BOEBLINGEN.DE.IBM.COM ??? AIX-RS/6000 REDP client determined allowed Sun Mon Tue Wed Thu Fri Sat MDB MLOG1 MLOG2

BKI2017I: Blocksize is set to 131072 bytes BKI7304I: Performing DISK ONLY backup. BKI7311I: Profile used by DP ESS mySAP: /oracle/RED/920_64/dbs/initRED.fcs. BKI7536I: Execute command 'splitint -p /oracle/RED/920_64/dbs/initRED.fcs -f set_bki_info -i /tmp/bkiRED.ids': DP ESS mySAP: DP ESS mySAP: IBM Tivoli Storage Manager for Hardware DP ESS mySAP: Data Protection for IBM ESS for mySAP(R) on Oracle(R) DP ESS mySAP: DP ESS mySAP: BR*Tools Interface SPLITINT for the IBM Enterprise Storage Server DP ESS mySAP: - Version 5, Release 3, Level 0 for AIX (32 Bit) DP ESS mySAP: Build: 220 generated at 16:54:57 on Nov 25 2004 DP ESS mySAP: (c) Copyright IBM Corporation, 2000, 2004, All Rights Reserved. DP ESS mySAP: DP ESS mySAP: IDS1310W The free space in the file system containing the directory / is only 24.85 MB (8 percent). DP ESS mySAP: IDS1411I The intended FlashCopy type has a value of 'INCR'. DP ESS mySAP: Profile /oracle/RED/920_64/dbs/initRED.fcs DP ESS mySAP: Log file splitint_?_20051803184913.log DP ESS mySAP: Trace file splitint_?_20051803184913.trace DP ESS mySAP: DP ESS mySAP: -- Parameters of splitint profile -DP ESS mySAP: DP ESS mySAP: LOGON_HOST_PROD s1 orared

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

349

DP DP DP DP DP DP DP DP DP DP DP DP DP DP DP DP DP

ESS ESS ESS ESS ESS ESS ESS ESS ESS ESS ESS ESS ESS ESS ESS ESS ESS

mySAP: mySAP: mySAP: mySAP: mySAP: mySAP: mySAP: mySAP: mySAP: mySAP: mySAP: mySAP: mySAP: mySAP: mySAP: mySAP: mySAP:

LOGON_HOST_BACK t1 BACKUP_MAX 30 IDS_CONTROL_FILE /oracle/RED/sapbackup/idssave/idssave CONFIG_FILE /oracle/RED/920_64/dbs/initRED.fcp WORK_DIR /oracle/RED/sapbackup/work TRACE YES LOG_TRACE_DIR /oracle/RED/sapbackup/logtraces SUPPORT_ADMIN_ASSISTANT NO JAVA_HOME_DIRECTORY /usr/jdk_base SHARK_COPY_SERVICE_CODE /usr/opt/ibm/ibm2105cli SHARK_SERVERNAME_PRIMARY 172.31.1.15 SHARK_SERVERNAME_BACKUP 172.31.1.19 SHARK_USERNAME ess FLASHCOPY_TYPE INCR SHARK_VOLUMES_FILE /oracle/RED/920_64/dbs/initRED.fct IDS1015I Start of splitint program at: 03/18/05-18:49:13 . #SAVED /oracle/RED/sapdata2/btabd_2/btabd.data2

>>>>>>> output deleted >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> DP DP DP DP DP DP DP DP DP ESS ESS ESS ESS ESS ESS ESS ESS ESS mySAP: mySAP: mySAP: mySAP: mySAP: mySAP: mySAP: mySAP: mySAP: #SAVED /oracle/RED/sapdata4/system_2/system.data2 BID RED___A0E6GOTU2Z UTL /oracle/RED/920_64/dbs/initRED.utl INF /oracle/RED/sapbackup/.bdpnotka.lst EBT file EBC BRBACKUP EBB FULL EBR NEW INL /oracle/RED/sapdata2/btabd_2/btabd.data2

>>>>>>> output deleted >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> DP ESS mySAP: INL /oracle/RED/sapbackup/cntrlRED.dbf DP ESS mySAP: IDS1033I Information from DP for mySAP was found with backup ID RED___A0E6GOTU2Z. DP ESS mySAP: IDS1023I Exiting with return code 0. BKI0027I: Time: 03/18/05 18:49:26 Object: 1 of 37 in process: /oracle/RED/sapdata1/stabi_1/stabi.data1 Size: 2000.008 MB, MGMNT-CLASS: disk_only, TSM-Server: splitint . >>>>>>> output deleted >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> BR280I Time stamp 2005-03-18 18.49.27 #FILE..... /oracle/RED/sapdata1/temp_5/temp.data5 #SAVED.... RED___A0E6GOTU2Z BKI5016I: Time: 03/18/05 18:49:28 New TSM session created: MGMNT-CLASS: MDB, TSM-Server: SERVER_A, type: SIMPLE BKI0027I: Time: 03/18/05 18:49:28 Object: 37 of 37 in process: /oracle/RED/sapbackup/cntrlRED.dbf Size: 4888.000 KB, MGMNT-CLASS: MDB, TSM-Server: SERVER_A . BKI0023I: Time: 03/18/05 18:49:28 Done: 23.506 GB (100.0 %) of 23.506 GB. Estimated end time: 03/18/05 18:49:28. BKI0053I: Time: 03/18/05 18:49:28 Object: 37 of 37 done: /oracle/RED/sapbackup/cntrlRED.dbf with: 4888.000 KB saved with description RED___A0E6GOTU2Z. BKI0055I: Object /oracle/RED/sapbackup/cntrlRED.dbf with 4888.000 KB saved with description RED___A0E6GOTU2Z_SERVER_A@MDB#130275 00135.

350

Get More Out of Your SAN with IBM Tivoli Storage Manager

BR280I Time stamp 2005-03-18 18.49.28 #FILE..... /oracle/RED/sapbackup/cntrlRED.dbf #SAVED.... RED___A0E6GOTU2Z BKI1215I: Average transmission rate was 5288.828 GB/h (1504.377 MB/sec). BKI1227I: Average compression factor was 1.000. BKI0020I: End of program at: Fri Mar 18 18:49:29 NFT 2005 . BKI0021I: Elapsed time: 17 sec . BKI0024I: Return code is: 0. BR280I Time stamp 2005-03-18 18.49.29 BR232I 37 of 37 files saved by backup utility BR230I Backup utility called successfully BR280I Time stamp 2005-03-18 18.49.31

Next, back up the logs and profiles to the Tivoli Storage Manager server, as shown in Example 11-26.
Example 11-26 Backup logs and profiles BR229I Calling backup utility... BR278I Command output of '/usr/sap/RED/SYS/exe/run/backint -u RED -f backup -i /oracle/RED/sapbackup/.bdpnotka.lst -t file -p /oracle/RED/920_64/dbs/initRED.utl -c': Data Protection for mySAP(R) Interface between SAPDBA Utilities and Tivoli Storage Manager - Version 5, Release 3, Modification 0 for AIX LF 64-bit Build: 257 compiled on Nov 23 2004 (c) Copyright IBM Corporation, 1996, 2004, All Rights Reserved. BKI2027I: Using TSM-API version 5.3.0.0 (compiled with 5.3.0.0). BKI2000I: Successfully connected to ProLE on port tdpr3ora64. BKI0005I: Start of program at: Fri Mar 18 18:49:31 NFT 2005 . -- Parameters -Input File Profile Configfile Manual sorting file Tracefile Traceflags Parallel sessions Multiplexed files RL compression Retries for files Exit on error BATCH Buffer size Buffer Copy Mode Redologcopies Versioning Current Version Backup Type TSM log server TSM server TSM client node TSM server version TSM server ip

: : : : : : : : : : : : : : : : : : : : : : :

/oracle/RED/sapbackup/.bdpnotka.lst /oracle/RED/920_64/dbs/initRED.utl /oracle/RED/920_64/dbs/initRED.bki disabled /oracle/RED/saparch/backint_RED___A0E6GOU8EE.trace FILEIO_MAX COMPR_MIN TSM_MIN 1 1 0 3 disabled enabled 131072 SIMPLE disabled enabled 135 file disabled SERVER_A with 3 sessions configured, using 1 session REDP 5.2.0.0 Y1.BOEBLINGEN.DE.IBM.COM

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

351

TSM server name TSM server type Sign-in id name Compression Archive deletion Days for backup Backup mgmt class Archiv mgmt class

: : : : : : : :

??? AIX-RS/6000 REDP client determined allowed Sun Mon Tue Wed Thu Fri Sat MDB MLOG1 MLOG2

BKI2017I: Blocksize is set to 131072 bytes BKI5016I: Time: 03/18/05 18:49:31 New TSM session created: MGMNT-CLASS: MDB, TSM-Server: SERVER_A, type: SIMPLE BKI0027I: Time: 03/18/05 18:49:31 Object: 1 of 8 in process: /oracle/RED/sapbackup/bdpnotka.anf Size: 59.867 KB, MGMNT-CLASS: MDB, TSM-Server: SERVER_A . BKI0023I: Time: 03/18/05 18:49:31 Done: 59.867 KB (51.5 %) of 116.264 KB. Estimated end time: 03/18/05 18:49:31. BKI0053I: Time: 03/18/05 18:49:31 Object: 1 of 8 done: /oracle/RED/sapbackup/bdpnotka.anf with: 61.341 KB saved with description RED___A0E6GOU8EE. BKI0055I: Object /oracle/RED/sapbackup/bdpnotka.anf with 61.341 KB saved with description RED___A0E6GOU8EE_SERVER_A@MDB#310276 00135. >>>>>>> output deleted >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> BR280I Time stamp 2005-03-18 18.49.32 #INLOG.... /oracle/RED/sapbackup/backRED.log #SAVED.... RED___A0E6GOU8EE BKI0027I: Time: 03/18/05 18:49:32 Object: 8 of 8 in process: /oracle/RED/sapreorg/reorgRED.log Size: 160 Bytes, MGMNT-CLASS: MDB, TSM-Server: SERVER_A . BKI0023I: Time: 03/18/05 18:49:32 Done: 116.264 KB (100.0 %) of 116.264 KB. Estimated end time: 03/18/05 18:49:32. BKI0053I: Time: 03/18/05 18:49:32 Object: 8 of 8 done: /oracle/RED/sapreorg/reorgRED.log with: 160 Bytes saved with description RED___A0E6GOU8EE. BKI0055I: Object /oracle/RED/sapreorg/reorgRED.log with 160 Bytes saved with description RED___A0E6GOU8EE_SERVER_A@MDB#310283 00135. BR280I Time stamp 2005-03-18 18.49.32 #INLOG.... /oracle/RED/sapreorg/reorgRED.log #SAVED.... RED___A0E6GOU8EE Nr. 1 2 3 4 5 6 7 8 Nr. 1 2 3 4 5 6 7 8 Object /oracle/RED/sapbackup/bdpnotka.anf /oracle/RED/920_64/dbs/initRED.dba /oracle/RED/920_64/dbs/initRED.utl /oracle/RED/920_64/dbs/initRED.sap /oracle/RED/920_64/dbs/initRED.ora /oracle/RED/sapreorg/structRED.log /oracle/RED/sapbackup/backRED.log /oracle/RED/sapreorg/reorgRED.log Size 59.867 KB 19.589 KB 12.347 KB 11.981 KB 6152 Bytes 4976 Bytes 1491 Bytes 160 Bytes Time h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 Sec 0 0 0 0 0 0 0 0 GB/h 0.228 0.075 0.047 0.046 0.023 0.019 0.006 0.001 Server SERVER_A SERVER_A SERVER_A SERVER_A SERVER_A SERVER_A SERVER_A SERVER_A Mgmtclass MDB MDB MDB MDB MDB MDB MDB MDB

00 00 00 00 00 00 00 00

min min min min min min min min

00 00 00 00 00 00 00 00

sec sec sec sec sec sec sec sec

352

Get More Out of Your SAN with IBM Tivoli Storage Manager

BKI1215I: BKI1227I: BKI0020I: BKI0021I: BKI0024I:

Average transmission rate was 0.404 GB/h (0.114 MB/sec). Average compression factor was 0.987. End of program at: Fri Mar 18 18:49:32 NFT 2005 . Elapsed time: 01 sec . Return code is: 0.

BR280I Time stamp 2005-03-18 18.49.32 BR232I 8 of 8 files saved by backup utility BR230I Backup utility called successfully BR280I Time stamp 2005-03-18 18.49.33

Finally, unmount the file systems, varyoff VGs, and export VGs, as shown in Example 11-27. The target relationships with the source volumes are not withdrawn, because the next incremental FlashCopy backs up only the changed blocks. The ESS system tracks the changes automatically.
Example 11-27 Unmount the file systems, varyoff VGs and export VGs BR297I Resynchronizing mirror disks... BR278I Command output of '/usr/sap/RED/SYS/exe/run/splitint -u RED -f resync -i /oracle/RED/sapbackup/.bdpnotka.lst -c -s -p /oracle/RED/920_64/dbs/initRED.fcs -d -C INCR': IBM Tivoli Storage Manager for Hardware Data Protection for IBM ESS for mySAP(R) on Oracle(R) BR*Tools Interface SPLITINT for the IBM Enterprise Storage Server - Version 5, Release 3, Level 0 for AIX (32 Bit) Build: 220 generated at 16:54:57 on Nov 25 2004 (c) Copyright IBM Corporation, 2000, 2004, All Rights Reserved. IDS1189I The option '-C INCR' will override the value 'INCR' of the parameter FLASHCOPY_TYPE in the profile. IDS1411I The intended FlashCopy type has a value of 'INCR'. Profile /oracle/RED/920_64/dbs/initRED.fcs Log file splitint_?_20051803184933.log Trace file splitint_?_20051803184933.trace -- Parameters of splitint profile -LOGON_HOST_PROD s1 orared LOGON_HOST_BACK t1 BACKUP_MAX 30 IDS_CONTROL_FILE /oracle/RED/sapbackup/idssave/idssave CONFIG_FILE /oracle/RED/920_64/dbs/initRED.fcp WORK_DIR /oracle/RED/sapbackup/work TRACE YES LOG_TRACE_DIR /oracle/RED/sapbackup/logtraces SUPPORT_ADMIN_ASSISTANT NO JAVA_HOME_DIRECTORY /usr/jdk_base SHARK_COPY_SERVICE_CODE /usr/opt/ibm/ibm2105cli SHARK_SERVERNAME_PRIMARY 172.31.1.15 SHARK_SERVERNAME_BACKUP 172.31.1.19 SHARK_USERNAME ess FLASHCOPY_TYPE INCR SHARK_VOLUMES_FILE /oracle/RED/920_64/dbs/initRED.fct IDS1005I Start of splitint program at: 03/18/05-18:49:33 . Function unmount Backup list /oracle/RED/sapbackup/.bdpnotka.lst

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

353

EEO0371I Value of Flashcopy type is: INCR. IDS1060I Start of listing of exported volume groups/unmounting file systems ... IDS1076I Trying to set the semaphore for the critical part of importing/exporting ... EEO0273I Unmounting the file system /oracle/RED/sapdata6... EEO0273I Unmounting the file system /oracle/RED/sapdata5... EEO0273I Unmounting the file system /oracle/RED/sapdata4... EEO0273I Unmounting the file system /oracle/RED/sapdata3... EEO0273I Unmounting the file system /oracle/RED/sapdata2... EEO0273I Unmounting the file system /oracle/RED/sapdata1... EEO0152I Removing volume group REDtdp1 .... EEO0153I Varied off and exported volume group : REDtdp1 EEO0140I Flashcopy type is set to COPY or INCR. Leaving disk meta data intact for all target disks... This backup is valid for a FlashCopy restore. EEO0127I Removing device : vpath36 EEO0127I Removing device : vpath35 EEO0127I Removing device : vpath29 EEO0127I Removing device : vpath28 EEO0127I Removing device : vpath27 EEO0127I Removing device : hdisk92 EEO0127I Removing device : hdisk91 EEO0127I Removing device : hdisk83 EEO0127I Removing device : hdisk82 EEO0127I Removing device : hdisk81 EEO0127I Removing device : hdisk43 EEO0127I Removing device : hdisk42 EEO0127I Removing device : hdisk33 EEO0127I Removing device : hdisk32 EEO0127I Removing device : hdisk31 EEO0127I Removing device : hdisk132 EEO0127I Removing device : hdisk131 EEO0127I Removing device : hdisk126 EEO0127I Removing device : hdisk125 EEO0127I Removing device : hdisk124 IDS1077I Semaphore released. IDS1047I End of listing. IDS1025I Time stamp: 03/18/05-18:50:15. BR280I Time stamp 2005-03-18 18.50.15 BR629I SPLITINT command sent success message: #SUCCESS IDS1024I Exiting with return code 0. BR280I Time stamp 2005-03-18 18.50.15 BR298I Resynchronization of mirror disks successful BR056I End of database backup: bdpnotka.anf 2005-03-18 18.49.32 BR280I Time stamp 2005-03-18 18.50.15 BR053I BRBACKUP terminated successfully t1:orared>

The entire process took 6 minutes and 31 seconds. However, the database spent 24 seconds in backup mode. Only the backup logs and the profiles were transferred to Tivoli Storage Manager.

354

Get More Out of Your SAN with IBM Tivoli Storage Manager

You can check the status of the backup using tdpessora, as shown in Example 11-28.
Example 11-28 Query the status of the ONLINE_MIRROR backup -------------------------------------------------------------------------------IBM Tivoli Storage Manager for Hardware Data Protection for IBM ESS for mySAP(R) on Oracle(R) Log history of the database backups SystemID: RED -------------------------------------------------------------------------------# Log Start of backup Type BackupID TSM FlashCopy -------------------------------------------------------------------------------1 bdpnotka.anf 05-03-18 18.43.44 online_mirror RED___A0E6GOTU2Z * ok 2 bdpnlfyi.aff 05-03-18 01.33.24 offline_mirror RED___A0E6FO2ZQM ok invalid d r o f e x show details refresh display choose from older backups show FlashCopy backups only (target set state IN_USE) emergency FlashCopy restore exit tdpessora

Enter your selection =>

For the entry 1, the backup that we just made, the asterisk (*) in the Tivoli Storage Manager column indicates that the data was not sent to Tivoli Storage Manager, because it was a disk-only backup. The FlashCopy entry is ok, because we can do a FlashBack of this backup version. For the entry 2, our previous backup, this is valid for a Tivoli Storage Manager restore (status ok), but not for a Flash restore, because we have only one target set, and the latest backup overwrote that data. To ensure that a background copy has ended before you start another one, you can use the splitint interface for mySAP (Example 11-29).
Example 11-29 Query the status of the target set ESS volumes t1:orared> splitint -p initRED.fcs -f ts_inquire IBM Tivoli Storage Manager for Hardware Data Protection for IBM ESS for mySAP(R) on Oracle(R) BR*Tools Interface SPLITINT for the IBM Enterprise Storage Server - Version 5, Release 3, Level 0 for AIX (32 Bit) Build: 220 generated at 16:54:57 on Nov 25 2004 (c) Copyright IBM Corporation, 2000, 2004, All Rights Reserved. IDS1310W The free space in the file system containing the directory / is only 24.86 MB (8 percent). IDS1411I The intended FlashCopy type has a value of 'INCR'. Profile initRED.fcs Log file splitint_?_20051803191513.log Trace file splitint_?_20051803191513.trace -- Parameters of splitint profile -LOGON_HOST_PROD LOGON_HOST_BACK BACKUP_MAX s1 t1 30 orared

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

355

IDS_CONTROL_FILE /oracle/RED/sapbackup/idssave/idssave CONFIG_FILE /oracle/RED/920_64/dbs/initRED.fcp WORK_DIR /oracle/RED/sapbackup/work TRACE YES LOG_TRACE_DIR /oracle/RED/sapbackup/logtraces SUPPORT_ADMIN_ASSISTANT NO JAVA_HOME_DIRECTORY /usr/jdk_base SHARK_COPY_SERVICE_CODE /usr/opt/ibm/ibm2105cli SHARK_SERVERNAME_PRIMARY 172.31.1.15 SHARK_SERVERNAME_BACKUP 172.31.1.19 SHARK_USERNAME ess FLASHCOPY_TYPE INCR SHARK_VOLUMES_FILE /oracle/RED/920_64/dbs/initRED.fct IDS1015I Start of splitint program at: 03/18/05-19:15:13 . Function ts_inquire IDS1014I 1 IN_USE RED___A0E6GOTU2Z 00005 BSI_DISKONLY PSI_UNMOUNT_DONE - INCR 20051803184345 - - - - - IDS1023I Exiting with return code 0. t1:orared>

The output shows that the target set is in use by the backup run RED___A0E6GOTU2Z which was disk-only using the INCR FlashCopy method. The target set volumes have been unmounted from the backup server.

11.6 Restore
This section explains how to restore the mySAP database from a disk-only backup.

11.6.1 FlashBack Restore


As an example for restoring the mySAP database, we show you how to do a FlashBack restore. This procedure restores the database from the disk-only backup discussed in 11.5.2, FlashCopy Backup ONLINE_MIRROR Disk-only INCR on page 343. We use the data that is residing on the target volumes in the ESS subsystem. Figure 11-8 on page 357 shows an overview of the different steps in the restore process. These steps are outlined in each section in the restore example. There are different ways to do a restore. As an example, we chose to use the tdpessora command. For different commands and procedures see IBM Tivoli Storage Manager for Hardware - Data Protection for IBM ESS for mySAP, Installation and Users Guide for Oracle, SC33-8205.

356

Get More Out of Your SAN with IBM Tivoli Storage Manager

Restore/Recovery Activities 5 Check backup/information status with tdpessora Stop the DB Save control files and redo logs 11 FlashBack Restore (Overall Process) BKI7316I User selects 16 FlashCopy backup type for 12 FlashBack Restore IDS1084I 13 14 15 Termination messages IDS1020I IDS1023I BKI0024I BR403I Initiate DB Restore Restore the DB Recover the DB Restore offline redo logs Restore saved control information 19 18

DBA Pre-Restore Activities

9 Delete 8 database BR256I files

DBA Post-Restore Activities

FlashCopy Backup complete 3 Normal DB activity 4 (Possible structural changes)

Redo any structural changes 17 Start up Start DB DB for recovery for production 20 21 Normal DB activity

10

splitint backint -f restore

splitint -f flashback

brrestore -m full 1 FlashCopy background process in ESS

[1]

[2]

FlashCopy background process in ESS

[3]

[4]

[5]

[1]Pre-restore activites: stop the database; check for structural changes performed, such as removing/adding ESS volumes to the volume groups and file systems for the purpose of adding, extending, or deleting tablespaces; save current DB control and online redo log files (see sample script PreRestore.sh). Use tdpessora to get summarized information of previous backups. [2]Restore: start brrestore (preferred) or backfm for a FlashBack Restore of a complete database. BR256I, BKI7316I, and IDS1084I are prompts, that require a user reply. [3]Post-restore activities: Prior to the recovery, re-do any structural changes; restore DB control and online redo log files (see sample script PostRestore.sh). If required, restore from ITSM archived redo log files. [4]DB recovery [5]DB started for production transactions Note: It is highly recommended, and sometimes essential, to run another FlashCopy Backup after doing structural changes following a first FlashCopy Backup. This will avoid discrepancies in, or failure of, the FlashBack Restore or DB recovery.

Figure 11-8 FlashBack restore

We begin with the tdpessora command:


tdpessora -p initRED.sap

We select the backup which we want to restore. If you want to do a FlashBack restore, the FlashCopy status must be ok. You cannot restore from an invalid target set, because it has been overwritten by a subsequent backup. Example 11-30 shows the output.
Example 11-30 FlashBack Restore -------------------------------------------------------------------------------IBM Tivoli Storage Manager for Hardware Data Protection for IBM ESS for mySAP(R) on Oracle(R) Log history of the database backups SystemID: RED -------------------------------------------------------------------------------# Log Start of backup Type BackupID TSM FlashCopy -------------------------------------------------------------------------------1 bdpnotka.anf 05-03-18 18.43.44 online_mirror RED___A0E6GOTU2Z * ok 2 bdpnoodd.anf 05-03-18 17.44.25 online_mirror RED___A0E6GMQ0BC * invalid 3 bdpnlfyi.aff 05-03-18 01.33.24 offline_mirror RED___A0E6FO2ZQM ok invalid d r o # f x show details refresh display choose from older backups restore the backup number #, including pre- and post-processing show FlashCopy backups only (target set state IN_USE) exit tdpessora

Enter your selection => 1 IDS1425I You selected to restore the backup log 'bdpnotka.anf'. IDS1423I There is only a FlashCopy backup available for the backup log 'bdpnotka.anf'.

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

357

IDS1434I Production volumes and files systems will be checked. IDS1435I Enter 'c[ont]' to continue or any other key to cancel. c IDS1180I The FlashCopy run 00005 is a valid disk backup. EEO0371I Value of Flashcopy type is: INCR. EEO0156I Finding the serial numbers ... REDdatavg: LV NAME lvREDdata1 loglv06 lvREDdata2 lvREDdata3 lvREDdata4 lvREDdata5 lvREDdata6 REDdatavg: PV_NAME vpath55 vpath56 vpath57 vpath58 vpath59 PV STATE active active active active active TOTAL PPs 181 181 181 181 181 FREE PPs 0 0 0 0 31 FREE DISTRIBUTION 00..00..00..00..00 00..00..00..00..00 00..00..00..00..00 00..00..00..00..00 00..00..00..00..31 TYPE jfs jfslog jfs jfs jfs jfs jfs LPs 156 1 187 125 140 109 156 PPs 156 1 187 125 140 109 156 PVs 1 1 2 1 1 1 4 LV STATE open/syncd open/syncd open/syncd open/syncd open/syncd open/syncd open/syncd MOUNT POINT /oracle/RED/sapdata1 N/A /oracle/RED/sapdata2 /oracle/RED/sapdata3 /oracle/RED/sapdata4 /oracle/RED/sapdata5 /oracle/RED/sapdata6

EEO0293I List of the current file systems on the backed up volume groups ... Name Nodename Mount Pt VFS Size Options Auto Accounting /dev/lvREDdata1 -/dev/lvREDdata2 -/dev/lvREDdata3 -/dev/lvREDdata4 -/dev/lvREDdata5 -/dev/lvREDdata6 -/oracle/RED/sapdata1 /oracle/RED/sapdata2 /oracle/RED/sapdata3 /oracle/RED/sapdata4 /oracle/RED/sapdata5 /oracle/RED/sapdata6 jfs jfs jfs jfs jfs jfs 10223616 rw 12255232 rw 8192000 rw 9175040 rw 7143424 rw 10223616 rw yes yes yes yes yes yes no no no no no no

EEO0294I List of file systems which will be restored... Name Nodename Mount Pt VFS Size Options /dev/lvREDdata1 -/oracle/RED/sapdata1 jfs 10223616rw /dev/lvREDdata2 -/oracle/RED/sapdata2 jfs 12255232rw /dev/lvREDdata3 -/oracle/RED/sapdata3 jfs 8192000rw /dev/lvREDdata4 -/oracle/RED/sapdata4 jfs 9175040rw

Auto Accounting yes no yes no yes no yes no

358

Get More Out of Your SAN with IBM Tivoli Storage Manager

/dev/lvREDdata5 -/oracle/RED/sapdata5 jfs 7143424rw /dev/lvREDdata6 -/oracle/RED/sapdata6 jfs 10223616rw /oracle/RED/sapdata /oracle/RED/sapdata /oracle/RED/sapdata /oracle/RED/sapdata /oracle/RED/sapdata /oracle/RED/sapdata IDS1435I Enter 'c[ont]' to continue or any other key to cancel. c

yes no yes no

After determining which file systems need to be restored, the script PreRestore.sh which is provided by Data Protection for IBM ESS for mySAP is run. It checks prerequisites; it also checks if anything has changed on the production machine because the FlashCopy backup was performed. It checks if the backup is valid. It copies the redo logs and control files (if they are still available) away from the original locations, because they will get flashed over with the target volumes (Example 11-31).
Example 11-31 PreRestore.sh Do you want to run 'IDS1431I Do you want to run 'PreRestore.sh -b logname -E tdpessora'? ('y'es/'e'dit/'q'uit) [y] => PreRestore.sh -b bdpnotka.anf -E tdpessora'? ('y'es/'e'dit/'q'uit) [y] => y IDS1306I Issuing command 'PreRestore.sh -b bdpnotka.anf -E tdpessora echo hdwIntRC: $?' ... PreRestore: -----------------------------------------------------------------------------PreRestore: PreRestore: IBM Tivoli Storage Manager for Hardware PreRestore: Data Protection for IBM ESS for mySAP(R) on Oracle(R) PreRestore: PreRestore: Restore Preprocessing script PreRestore: PreRestore: - Version 5, Release 3, Level 0 for AIX PreRestore: (c) Copyright IBM Corporation, 2000, 2004, All Rights Reserved. PreRestore: PreRestore: -----------------------------------------------------------------------------PreRestore: checking user ... PreRestore: Oracle user orared found PreRestore: $ORACLE_SID = <RED> PreRestore: $ORACLE_HOME = </oracle/RED/920_64> PreRestore: $SAPDATA_HOME = </oracle/RED> PreRestore: AIX version: 5300 oslevel: 00 PreRestore: Time stamp: 03/18/05 19:30:38 PreRestore: -----------------------------------------------------------------------------PreRestore: PreRestore: PART 1: command line options PreRestore: PreRestore: -----------------------------------------------------------------------------PreRestore: checking commandline options ... PreRestore: Option -d <backup_root_dir> is not specified PreRestore: Assuming default dir: </oracle/RED/sapbackup> PreRestore: backup_root_dir = </oracle/RED/sapbackup> PreRestore: Option -r <sapreorg_dir> is not specified PreRestore: Assuming default dir: </oracle/RED/sapreorg> PreRestore: sapreorg_dir = </oracle/RED/sapreorg> PreRestore: brbackup log = </oracle/RED/sapbackup/bdpnotka.anf> PreRestore: Time stamp: 03/18/05 19:30:38 PreRestore: -----------------------------------------------------------------------------PreRestore: PreRestore: PART 2: check SAP / Oracle / DP for ESS environment Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

359

PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore: PreRestore:

-----------------------------------------------------------------------------checking for running SAP instance RED ... OK checking for running Oracle instance RED ... OK reading brbackup log /oracle/RED/sapbackup/bdpnotka.anf ... OK brbackup backup type = <online_mirror> SAP profile used = </oracle/RED/920_64/dbs/initRED.sap> DP for mySAP util file used = </oracle/RED/920_64/dbs/initRED.utl> DP for ESS control file = </oracle/RED/sapbackup/idssave/idssave> DP for ESS backup sequence number = <00005> Current Oracle log sequence number = <10> checking for FlashBack Rerun ... OK No FlashBack with backup sequence number <00005> was performed previously. Oracle log file : /oracle/RED/origlogA/log_g11m1.dbf found Oracle log file : /oracle/RED/mirrlogA/log_g11m2.dbf found Oracle log file : /oracle/RED/origlogB/log_g12m1.dbf found Oracle log file : /oracle/RED/mirrlogB/log_g12m2.dbf found Oracle log file : /oracle/RED/origlogA/log_g13m1.dbf found Oracle log file : /oracle/RED/mirrlogA/log_g13m2.dbf found Oracle log file : /oracle/RED/origlogB/log_g14m1.dbf found Oracle log file : /oracle/RED/mirrlogB/log_g14m2.dbf found Oracle control file : /oracle/RED/sapdata1/cntrl/cntrlRED.dbf found Oracle control file : /oracle/RED/sapdata2/cntrl/cntrlRED.dbf found Oracle control file : /oracle/RED/sapdata3/cntrl/cntrlRED.dbf found space needed for backup of log and control files: 217.905 MB checking freespace in /oracle/RED/sapreorg ... OK freespace in directory </oracle/RED/sapreorg> : 1425.64 MB freespace after copying all files : 1207.74 MB creating directory /oracle/RED/sapreorg/restore_050318193039 ... OK Time stamp: 03/18/05 19:30:39 -----------------------------------------------------------------------------PART 3: copy Oracle online log files -----------------------------------------------------------------------------copying /oracle/RED/origlogA/log_g11m1.dbf ... OK copying /oracle/RED/mirrlogA/log_g11m2.dbf ... OK copying /oracle/RED/origlogB/log_g12m1.dbf ... OK copying /oracle/RED/mirrlogB/log_g12m2.dbf ... OK copying /oracle/RED/origlogA/log_g13m1.dbf ... OK copying /oracle/RED/mirrlogA/log_g13m2.dbf ... OK copying /oracle/RED/origlogB/log_g14m1.dbf ... OK copying /oracle/RED/mirrlogB/log_g14m2.dbf ... OK Time stamp: 03/18/05 19:30:46 -----------------------------------------------------------------------------PART 4: copy Oracle control files -----------------------------------------------------------------------------copying /oracle/RED/sapdata1/cntrl/cntrlRED.dbf ... OK copying /oracle/RED/sapdata2/cntrl/cntrlRED.dbf ... OK copying /oracle/RED/sapdata3/cntrl/cntrlRED.dbf ... OK Time stamp: 03/18/05 19:30:47 -----------------------------------------------------------------------------Restore Preprocessing finished successfully -----------------------------------------------------------------------------Program PreRestore.sh completed successfully. hdwIntRC: 0

360

Get More Out of Your SAN with IBM Tivoli Storage Manager

For a FlashBack restore no data is actually transferred over the backint interface under BRRestore control. Therefore, a dummy restore is performed next, analogous to the disk only backup (Figure 11-25 on page 348) to satisfy the backint interface conventions for BRRestore (Example 11-32).
Example 11-32 Restore from Tivoli Storage Manager Do you want to run 'IDS1432I Do you want to run 'brrestore -m full -b logname -r initSID.utl -p initSID.sap'? ('y'es/'e'dit/'q'uit) [y] => brrestore -m full -b bdpnotka.anf -r /oracle/RED/920_64/dbs/initRED.utl -p /oracle/RED/920_64/dbs/initRED.sap'? ('y'es/'e'dit/'q'uit) [y] => y IDS1306I Issuing command 'brrestore -m full -b bdpnotka.anf -r /oracle/RED/920_64/dbs/initRED.utl -p /oracle/RED/920_64/dbs/initRED.sap echo hdwIntRC: $? echo hdwIntRC: $?' ... brrestore: BR401I BRRESTORE 6.400 (116) brrestore: BR169I Value 'online_mirror' of parameter/option 'backup_type/-t' ignored for 'brrestore' - 'offline' assumed brrestore: BR405I Start of file restore: rdpnoxov.rsb 2005-03-18 19.30.53 brrestore: BR437W File /oracle/RED/origlogA/log_g11m1.dbf to be restored was not saved brrestore: BR437W File /oracle/RED/mirrlogA/log_g11m2.dbf to be restored was not saved brrestore: BR437W File /oracle/RED/origlogB/log_g12m1.dbf to be restored was not saved brrestore: BR437W File /oracle/RED/mirrlogB/log_g12m2.dbf to be restored was not saved brrestore: BR437W File /oracle/RED/origlogA/log_g13m1.dbf to be restored was not saved brrestore: BR437W File /oracle/RED/mirrlogA/log_g13m2.dbf to be restored was not saved brrestore: BR437W File /oracle/RED/origlogB/log_g14m1.dbf to be restored was not saved brrestore: BR437W File /oracle/RED/mirrlogB/log_g14m2.dbf to be restored was not saved brrestore: BR280I Time stamp 2005-03-18 19.30.53 brrestore: BR256I Enter 'c[ont]' to continue, 's[top]' to cancel the program: c brrestore: BR280I Time stamp 2005-03-18 19.30.57 brrestore: BR257I Your reply: 'c' brrestore: BR259I Program execution will be continued... brrestore: brrestore: BR428W File /oracle/RED/sapdata2/btabd_2/btabd.data2 will be overwritten >>>>>>> output deleted >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> brrestore: brrestore: brrestore: c brrestore: brrestore: brrestore: brrestore: brrestore: brrestore: brrestore: brrestore: brrestore: brrestore: brrestore: brrestore: brrestore: brrestore: brrestore: brrestore: BR428W File /oracle/RED/sapdata3/cntrl/cntrlRED.dbf will be overwritten BR280I Time stamp 2005-03-18 19.30.57 BR256I Enter 'c[ont]' to continue, 's[top]' to cancel the program: BR280I Time stamp 2005-03-18 19.31.15 BR257I Your reply: 'c' BR259I Program execution will be continued... BR280I Time stamp 2005-03-18 19.31.15 BR407I Restore of database: RED BR408I BRRESTORE action ID: rdpnoxov BR409I BRRESTORE function ID: rsb BR449I Restore mode: FULL BR411I Database files for restore: /oracle/RED/sapdata1/cntrl/cntrlRED.dbf /oracle/RED/sapdata2/cntrl/cntrlRED.dbf /oracle/RED/sapdata3/cntrl/cntrlRED.dbf BR419I Files will be restored from backup: bdpnotka.anf 2005-03-18 18.43.44 BR416I 37 files found to restore, total size 24070.047 MB BR421I Restore device type: util_file

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

361

brrestore: BR280I Time stamp 2005-03-18 19.31.15 brrestore: BR256I Enter 'c[ont]' to continue, 's[top]' to cancel the program: c brrestore: BR280I Time stamp 2005-03-18 19.31.20 brrestore: BR257I Your reply: 'c' brrestore: BR259I Program execution will be continued... brrestore: brrestore: BR280I Time stamp 2005-03-18 19.31.22 brrestore: BR229I Calling backup utility... brrestore: BR278I Command output of '/usr/sap/RED/SYS/exe/run/backint -u RED -f restore -i /oracle/RED/sapbackup/.rdpnoxov.lst -t file -p /oracle/RED/920_64/dbs/initRED.utl': brrestore: brrestore: Data Protection for mySAP(R) brrestore: brrestore: Interface between SAPDBA Utilities and Tivoli Storage Manager brrestore: - Version 5, Release 3, Modification 0 for AIX LF 64-bit brrestore: Build: 257 compiled on Nov 23 2004 brrestore: (c) Copyright IBM Corporation, 1996, 2004, All Rights Reserved. brrestore: brrestore: BKI2027I: Using TSM-API version 5.3.0.0 (compiled with 5.3.0.0). brrestore: BKI2000I: Successfully connected to ProLE on port tdpr3ora64. brrestore: BKI0005I: Start of program at: Fri Mar 18 19:31:22 NFT 2005 . brrestore: brrestore: brrestore: -- Parameters -brrestore: Input File : /oracle/RED/sapbackup/.rdpnoxov.lst brrestore: Profile : /oracle/RED/920_64/dbs/initRED.utl brrestore: Configfile : /oracle/RED/920_64/dbs/initRED.bki brrestore: Manual sorting file : disabled brrestore: Tracefile : /oracle/RED/saparch/backint_RED___A0E6GQC1W8.trace brrestore: Traceflags : FILEIO_MAX COMPR_MIN TSM_MIN brrestore: Parallel sessions : 1 brrestore: Multiplexed files : disabled brrestore: RL compression : disabled brrestore: Retries for files : 3 brrestore: Exit on error : disabled brrestore: BATCH : enabled brrestore: Buffer size : 131072 brrestore: Redologcopies : disabled brrestore: Versioning : enabled brrestore: Current Version : 135 brrestore: Backup Type : unknown brrestore: SNMPTRAP : disabled brrestore: TSM log server : disabled brrestore: TSM server : SERVER_A with 3 sessions configured brrestore: TSM client node : REDP brrestore: TSM server version : 5.2.0.0 brrestore: TSM server ip : Y1.BOEBLINGEN.DE.IBM.COM brrestore: TSM server name : ??? brrestore: TSM server type : AIX-RS/6000 brrestore: Sign-in id name : REDP brrestore: Compression : client determined brrestore: Archive deletion : allowed brrestore: Days for backup : Sun Mon Tue Wed Thu Fri Sat brrestore: Backup mgmt class : MDB brrestore: Archiv mgmt class : MLOG1 MLOG2 brrestore: TSM server : idscntl with 1 session configured brrestore: TSM client node : brrestore: TSM server version : brrestore: TSM server ip :

362

Get More Out of Your SAN with IBM Tivoli Storage Manager

brrestore: TSM server name : brrestore: TSM server type : brrestore: Sign-in id name : brrestore: Compression : unknown brrestore: Archive deletion : unknown brrestore: Days for backup : Sun Mon Tue Wed Thu Fri Sat brrestore: Backup mgmt class : brrestore: Archiv mgmt class : brrestore: brrestore: brrestore: BKI2017I: Blocksize is set to 131072 bytes brrestore: BKI7536I: Execute command 'splitint -p /oracle/RED/920_64/dbs/initRED.fcs -f get_disk_backups': brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: IBM Tivoli Storage Manager for Hardware brrestore: DP ESS mySAP.com: Data Protection for IBM ESS for mySAP(R) on Oracle(R) brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: BR*Tools Interface SPLITINT for the IBM Enterprise Storage Server brrestore: DP ESS mySAP.com: - Version 5, Release 3, Level 0 for AIX (32 Bit) brrestore: DP ESS mySAP.com: Build: 220 generated at 16:54:57 on Nov 25 2004 brrestore: DP ESS mySAP.com: (c) Copyright IBM Corporation, 2000, 2004, All Rights Reserved. brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: IDS1411I The intended FlashCopy type has a value of 'INCR'. brrestore: DP ESS mySAP.com: Profile /oracle/RED/920_64/dbs/initRED.fcs brrestore: DP ESS mySAP.com: Log file splitint_?_20051803193126.log brrestore: DP ESS mySAP.com: Trace file splitint_?_20051803193126.trace brrestore: DP ESS mySAP.com: IDS1015I Start of splitint program at: 03/18/05-19:31:26 . brrestore: DP ESS mySAP.com: #FOUND RED___A0E6GOTU2Z /oracle/RED/sapdata2/btabd_2/btabd.data2 yes >>>>>>> output deleted >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> brrestore: DP ESS mySAP.com: #FOUND RED___A0E6GOTU2Z /oracle/RED/sapdata4/system_2/system.data2 yes brrestore: DP ESS mySAP.com: IDS1023I Exiting with return code 0.

Restore the log and profiles from Tivoli Storage Manager, as shown in Example 11-33.
Example 11-33 Restore log and profiles from Tivoli Storage Manager brrestore: BKI7536I: Execute command 'splitint -p /oracle/RED/920_64/dbs/initRED.fcs -f flashback_check -i /tmp/baaM.Ieib -b RED___A0E6GOTU2Z': brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: IBM Tivoli Storage Manager for Hardware brrestore: DP ESS mySAP.com: Data Protection for IBM ESS for mySAP(R) on Oracle(R) brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: BR*Tools Interface SPLITINT for the IBM Enterprise Storage Server brrestore: DP ESS mySAP.com: - Version 5, Release 3, Level 0 for AIX (32 Bit) brrestore: DP ESS mySAP.com: Build: 220 generated at 16:54:57 on Nov 25 2004 brrestore: DP ESS mySAP.com: (c) Copyright IBM Corporation, 2000, 2004, All Rights Reserved. brrestore: DP ESS mySAP.com:

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

363

brrestore: DP ESS mySAP.com: IDS1411I The intended FlashCopy type has a value of 'INCR'. brrestore: DP ESS mySAP.com: Profile /oracle/RED/920_64/dbs/initRED.fcs brrestore: DP ESS mySAP.com: Log file splitint_?_20051803193129.log brrestore: DP ESS mySAP.com: Trace file splitint_?_20051803193129.trace brrestore: DP ESS mySAP.com: IDS1015I Start of splitint program at: 03/18/05-19:31:30 . brrestore: DP ESS mySAP.com: #FOUND RED___A0E6GOTU2Z /oracle/RED/sapdata2/btabd_2/btabd.data2 yes >>>>>>> output deleted >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> brrestore: DP ESS mySAP.com: #FOUND RED___A0E6GOTU2Z /oracle/RED/sapdata4/system_2/system.data2 yes brrestore: DP ESS mySAP.com: IDS1023I Exiting with return code 0.

Now, the actual FlashBack restore ESS function is executed, as shown in Example 11-34.
Example 11-34 FlashBack Restore ESS function brrestore: BKI7320I: Start FLASHCOPY restore. brrestore: BKI7536I: Execute command 'splitint -p /oracle/RED/920_64/dbs/initRED.fcs -f flashback -i /tmp/caaQHIeic -b RED___A0E6GOTU2Z': brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: IBM Tivoli Storage Manager for Hardware brrestore: DP ESS mySAP.com: Data Protection for IBM ESS for mySAP(R) on Oracle(R) brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: BR*Tools Interface SPLITINT for the IBM Enterprise Storage Server brrestore: DP ESS mySAP.com: - Version 5, Release 3, Level 0 for AIX (32 Bit) brrestore: DP ESS mySAP.com: Build: 220 generated at 16:54:57 on Nov 25 2004 brrestore: DP ESS mySAP.com: (c) Copyright IBM Corporation, 2000, 2004, All Rights Reserved. brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: IDS1411I The intended FlashCopy type has a value of 'INCR'. brrestore: DP ESS mySAP.com: Profile /oracle/RED/920_64/dbs/initRED.fcs brrestore: DP ESS mySAP.com: Log file splitint_?_20051803193132.log brrestore: DP ESS mySAP.com: Trace file splitint_?_20051803193132.trace brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: -- Parameters of splitint profile -brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: LOGON_HOST_PROD s1 orared brrestore: DP ESS mySAP.com: LOGON_HOST_BACK t1 brrestore: DP ESS mySAP.com: BACKUP_MAX 30 brrestore: DP ESS mySAP.com: IDS_CONTROL_FILE /oracle/RED/sapbackup/idssave/idssave brrestore: DP ESS mySAP.com: CONFIG_FILE /oracle/RED/920_64/dbs/initRED.fcp brrestore: DP ESS mySAP.com: WORK_DIR /oracle/RED/sapbackup/work brrestore: DP ESS mySAP.com: TRACE YES brrestore: DP ESS mySAP.com: LOG_TRACE_DIR /oracle/RED/sapbackup/logtraces brrestore: DP ESS mySAP.com: SUPPORT_ADMIN_ASSISTANT NO brrestore: DP ESS mySAP.com: JAVA_HOME_DIRECTORY /usr/jdk_base brrestore: DP ESS mySAP.com: SHARK_COPY_SERVICE_CODE /usr/opt/ibm/ibm2105cli brrestore: DP ESS mySAP.com: SHARK_SERVERNAME_PRIMARY 172.31.1.15 brrestore: DP ESS mySAP.com: SHARK_SERVERNAME_BACKUP 172.31.1.19 brrestore: DP ESS mySAP.com: SHARK_USERNAME ess brrestore: DP ESS mySAP.com: FLASHCOPY_TYPE INCR brrestore: DP ESS mySAP.com: SHARK_VOLUMES_FILE /oracle/RED/920_64/dbs/initRED.fct brrestore: DP ESS mySAP.com: IDS1015I Start of splitint program at: 03/18/05-19:31:32 .

364

Get More Out of Your SAN with IBM Tivoli Storage Manager

brrestore: DP ESS mySAP.com: Function flashback brrestore: DP ESS mySAP.com: Backup list /tmp/caaQHIeic brrestore: DP ESS mySAP.com: EEO0020I ====>Performing DP FOR ESS RESTORE command. brrestore: DP ESS mySAP.com: IDS1180I The FlashCopy run 00005 is a valid disk backup. brrestore: DP ESS mySAP.com: IDS1025I Time stamp: 03/18/05-19:31:34. brrestore: DP ESS mySAP.com: EEO0022I AIX Version: 5300 Oslevel: 0. brrestore: DP ESS mySAP.com: EEO0023I ESS CopyServices CLI Version: 2.3. brrestore: DP ESS mySAP.com: EEO0362I Checking the status of the primary Copy Services Server: 172.31.1.15 brrestore: DP ESS mySAP.com: EEO0363I Primary Copy Services server is ready. brrestore: DP ESS mySAP.com: EEO0371I Value of Flashcopy type is: INCR. brrestore: DP ESS mySAP.com: EEO0359I Incremental Change Recording: Enabled brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: -- Data content of the backup cycle with BSEQ_N/BID = 00005 -brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: IDS1014I 1 BACKUP_SEQUENCE_NO 00005 brrestore: DP ESS mySAP.com: 2 BACKUP_STATUS BSI_DISKONLY brrestore: DP ESS mySAP.com: 3 PROCESSING_STATUS PSI_UNMOUNT_DONE brrestore: DP ESS mySAP.com: 4 BACKUP_ID RED___A0E6GOTU2Z brrestore: DP ESS mySAP.com: 5 VOL_TARGET_SET 1 brrestore: DP ESS mySAP.com: 6 DT_FLASHCOPY_START 20051803184345 brrestore: DP ESS mySAP.com: 7 DT_FLASHCOPY_END 03/18/05-18:47:11 brrestore: DP ESS mySAP.com: 8 DT_MOUNT_END 20051803184905 brrestore: DP ESS mySAP.com: 9 EXCHANGE_FILE exchange.00005 brrestore: DP ESS mySAP.com: 10 UTIL_FILE /oracle/RED/920_64/dbs/initRED.utl brrestore: DP ESS mySAP.com: 11 INPUT_FILE /oracle/RED/sapbackup/.bdpnotka.lst brrestore: DP ESS mySAP.com: 12 BACKINT_OPT_T file brrestore: DP ESS mySAP.com: 13 BI_CALLER BRBACKUP brrestore: DP ESS mySAP.com: 14 BI_BACKUP FULL brrestore: DP ESS mySAP.com: 15 BI_REQUEST NEW brrestore: DP ESS mySAP.com: 16 DATABASE_FILE brrestore: DP ESS mySAP.com: 17 DT_WITHDRAW_START brrestore: DP ESS mySAP.com: 18 DT_WITHDRAW_END brrestore: DP ESS mySAP.com: 19 VERSION 530220 brrestore: DP ESS mySAP.com: 20 FLASHCOPY_TYPE INCR brrestore: DP ESS mySAP.com: 21 RSI brrestore: DP ESS mySAP.com: 22 BACKUP_DESTINATION DISKONLY brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: EEO0156I Finding the serial numbers ... brrestore: DP ESS mySAP.com: REDdatavg: brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: lvREDdata1 jfs 156 156 1 open/syncd /oracle/RED/sapdata1 brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: loglv06 jfslog 1 1 1 open/syncd N/A brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: lvREDdata2 jfs 187 187 2 open/syncd /oracle/RED/sapdata2 brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: lvREDdata3 jfs 125 125 1 open/syncd /oracle/RED/sapdata3 brrestore: DP ESS mySAP.com:

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

365

brrestore: DP ESS mySAP.com: /oracle/RED/sapdata4 brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: /oracle/RED/sapdata5 brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: /oracle/RED/sapdata6 brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: FREE DISTRIBUTION brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: 00..00..00..00..00 brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: 00..00..00..00..00 brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: 00..00..00..00..00 brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: 00..00..00..00..00 brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: 00..00..00..00..31 brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: volume groups ... brrestore: DP ESS mySAP.com: Options Auto Accounting brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: 10223616 rw yes no brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: 12255232 rw yes no brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: 8192000 rw yes no brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: 9175040 rw yes no brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: 7143424 rw yes no brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: 10223616 rw yes no brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: brrestore: DP ESS mySAP.com: Options Auto Accounting brrestore: DP ESS mySAP.com: 10223616rw yes no

lvREDdata4

jfs

140

140

open/syncd

lvREDdata5

jfs

109

109

open/syncd

lvREDdata6

jfs

156

156

open/syncd

REDdatavg: PV_NAME PV STATE TOTAL PPs FREE PPs

vpath55

active

181

vpath56

active

181

vpath57

active

181

vpath58

active

181

vpath59

active

181

31

EEO0293I List of the current file systems on the backed up Name Nodename Mount Pt VFS Size

/dev/lvREDdata1 --

/oracle/RED/sapdata1

jfs

/dev/lvREDdata2 --

/oracle/RED/sapdata2

jfs

/dev/lvREDdata3 --

/oracle/RED/sapdata3

jfs

/dev/lvREDdata4 --

/oracle/RED/sapdata4

jfs

/dev/lvREDdata5 --

/oracle/RED/sapdata5

jfs

/dev/lvREDdata6 --

/oracle/RED/sapdata6

jfs

EEO0294I List of file systems which will be restored... Name Nodename Mount Pt VFS Size /dev/lvREDdata1 -/oracle/RED/sapdata1 jfs

366

Get More Out of Your SAN with IBM Tivoli Storage Manager

brrestore: DP ESS mySAP.com: /dev/lvREDdata2 -/oracle/RED/sapdata2 jfs 12255232rw yes no brrestore: DP ESS mySAP.com: /dev/lvREDdata3 -/oracle/RED/sapdata3 jfs 8192000rw yes no brrestore: DP ESS mySAP.com: /dev/lvREDdata4 -/oracle/RED/sapdata4 jfs 9175040rw yes no brrestore: DP ESS mySAP.com: /dev/lvREDdata5 -/oracle/RED/sapdata5 jfs 7143424rw yes no brrestore: DP ESS mySAP.com: /dev/lvREDdata6 -/oracle/RED/sapdata6 jfs 10223616rw yes no brrestore: DP ESS mySAP.com: IDS1084I This is your last chance to stop the FlashBack Restore. Enter 'c[ont]' to continue, 's[top]' to cancel. c brrestore: DP ESS mySAP.com: IDS1134I Disabling the volumes and filesystems ... brrestore: DP ESS mySAP.com: IDS1076I Trying to set the semaphore for the critical part of importing/exporting ... brrestore: DP ESS mySAP.com: #UNMOUNTING_FS brrestore: DP ESS mySAP.com: EEO0273I Unmounting the file system /oracle/RED/sapdata6... brrestore: DP ESS mySAP.com: EEO0402I rmfs -r /oracle/RED/sapdata6 brrestore: DP ESS mySAP.com: EEO0273I Unmounting the file system /oracle/RED/sapdata5... brrestore: DP ESS mySAP.com: EEO0402I rmfs -r /oracle/RED/sapdata5 brrestore: DP ESS mySAP.com: EEO0273I Unmounting the file system /oracle/RED/sapdata4... brrestore: DP ESS mySAP.com: EEO0402I rmfs -r /oracle/RED/sapdata4 brrestore: DP ESS mySAP.com: EEO0273I Unmounting the file system /oracle/RED/sapdata3... brrestore: DP ESS mySAP.com: EEO0402I rmfs -r /oracle/RED/sapdata3 brrestore: DP ESS mySAP.com: EEO0273I Unmounting the file system /oracle/RED/sapdata2... brrestore: DP ESS mySAP.com: EEO0402I rmfs -r /oracle/RED/sapdata2 brrestore: DP ESS mySAP.com: EEO0273I Unmounting the file system /oracle/RED/sapdata1... brrestore: DP ESS mySAP.com: EEO0402I rmfs -r /oracle/RED/sapdata1 brrestore: DP ESS mySAP.com: EEO0402I rmlv -f loglv06 brrestore: DP ESS mySAP.com: EEO0152I Removing volume group REDdatavg .... brrestore: DP ESS mySAP.com: EEO0153I Varied off and exported volume group : REDdatavg brrestore: DP ESS mySAP.com: IDS1135I Flashcopying the target to the source volumes ... brrestore: DP ESS mySAP.com: IDS1030I Flashcopy started ... brrestore: DP ESS mySAP.com: EEO0362I Checking the status of the primary Copy Services Server: 172.31.1.15 brrestore: DP ESS mySAP.com: EEO0363I Primary Copy Services server is ready. brrestore: DP ESS mySAP.com: EEO0030I Number of ESS Volumes to be Flashcopied: 5 brrestore: DP ESS mySAP.com: EEO0354I Performing INCR FlashCopy of source ESS volume 1A323376 to target ESS volume 1A023376 brrestore: DP ESS mySAP.com: EEO0354I Performing INCR FlashCopy of source ESS volume 1A523376 to target ESS volume 1A223376 brrestore: DP ESS mySAP.com: EEO0354I Performing INCR FlashCopy of source ESS volume 1A423376 to target ESS volume 1A123376 brrestore: DP ESS mySAP.com: EEO0354I Performing INCR FlashCopy of source ESS volume 33123376 to target ESS volume 32F23376 brrestore: DP ESS mySAP.com: EEO0354I Performing INCR FlashCopy of source ESS volume 33223376 to target ESS volume 33023376 brrestore: DP ESS mySAP.com: EEO0366I Flashcopy was performed with INCR option. brrestore: DP ESS mySAP.com: IDS1031I Flashcopy successful. brrestore: DP ESS mySAP.com: IDS1545I Start of fcagent on the production system ... brrestore: DP ESS mySAP.com: IDS1123I Enabling the volumes and filesystems ... brrestore: DP ESS mySAP.com: IDS1046I Start of listing of importing volume groups/mounting file systems ... brrestore: DP ESS mySAP.com: EEO0402I importvg -V 65 -y REDdatavg -n vpath55 brrestore: DP ESS mySAP.com: EEO0274I Bringing up the volume groups... brrestore: DP ESS mySAP.com: EEO0124I Mounting filesystem : /oracle/RED/sapdata1. brrestore: DP ESS mySAP.com: EEO0124I Mounting filesystem : /oracle/RED/sapdata2. brrestore: DP ESS mySAP.com: EEO0124I Mounting filesystem : /oracle/RED/sapdata3. brrestore: DP ESS mySAP.com: EEO0124I Mounting filesystem : /oracle/RED/sapdata4.

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

367

brrestore: brrestore: brrestore: brrestore: brrestore: brrestore: brrestore:

DP DP DP DP DP DP DP

ESS ESS ESS ESS ESS ESS ESS

mySAP.com: mySAP.com: mySAP.com: mySAP.com: mySAP.com: mySAP.com: mySAP.com:

EEO0124I Mounting filesystem : /oracle/RED/sapdata5. EEO0124I Mounting filesystem : /oracle/RED/sapdata6. IDS1077I Semaphore released. IDS1047I End of listing. #FS_MOUNTED IDS1025I Time stamp: 03/18/05-19:34:03. #RESTORED /oracle/RED/sapdata2/btabd_2/btabd.data2

>>>>>>> output deleted >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> brrestore: brrestore: brrestore: brrestore: brrestore: brrestore:

BR406I End of file restore: rdpnoxov.rsb 2005-03-18 19.34.09 BR280I Time stamp 2005-03-18 19.34.09 BR403I BRRESTORE terminated successfully hdwIntRC: 0 hdwIntRC: 0

Execute the PostRestore.sh script is to copy back the previously saved redo log and control files to the original file systems (Example 11-35).
Example 11-35 PostRestore.sh Do you want to run 'IDS1433I Do you want to run 'PostRestore.sh -b logname -E tdpessora'? ('y'es/'e'dit/'q'uit) [y] => PostRestore.sh -b bdpnotka.anf -E tdpessora'? ('y'es/'e'dit/'q'uit) [y] => y IDS1306I Issuing command 'PostRestore.sh -b bdpnotka.anf -E tdpessora echo hdwIntRC: $?' ... PostRestore: -----------------------------------------------------------------------------PostRestore: PostRestore: IBM Tivoli Storage Manager for Hardware PostRestore: Data Protection for IBM ESS for mySAP(R) on Oracle(R) PostRestore: PostRestore: Restore Postprocessing script PostRestore: PostRestore: - Version 5, Release 3, Level 0 for AIX PostRestore: (c) Copyright IBM Corporation, 2000, 2004, All Rights Reserved. PostRestore: PostRestore: -----------------------------------------------------------------------------PostRestore: checking user ... PostRestore: Oracle user orared found PostRestore: $ORACLE_SID = <RED> PostRestore: $ORACLE_HOME = </oracle/RED/920_64> PostRestore: $SAPDATA_HOME = </oracle/RED> PostRestore: Time stamp: 03/18/05 19:34:15 PostRestore: -----------------------------------------------------------------------------PostRestore: PostRestore: PART 1: command line options PostRestore: PostRestore: -----------------------------------------------------------------------------PostRestore: checking commandline options ... PostRestore: Option -d <backup_root_dir> is not specified PostRestore: Assuming default dir: </oracle/RED/sapbackup> PostRestore: backup_root_dir = </oracle/RED/sapbackup> PostRestore: Option -r <sapreorg_dir> is not specified PostRestore: Assuming default dir: </oracle/RED/sapreorg> PostRestore: sapreorg_dir = </oracle/RED/sapreorg> PostRestore: brbackup log = </oracle/RED/sapbackup/bdpnotka.anf> PostRestore: Option -m <restoretype> is not be specified! PostRestore: Assuming default restore type: ALL

368

Get More Out of Your SAN with IBM Tivoli Storage Manager

PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: current PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore: PostRestore:

Restore type = <ALL> All log files and control files saved by PreRestore.sh will be restored. Time stamp: 03/18/05 19:34:15 -----------------------------------------------------------------------------PART 2: check SAP / Oracle / DP for ESS environment -----------------------------------------------------------------------------checking for running SAP instance RED ... OK checking for running Oracle instance RED ... OK reading brbackup log /oracle/RED/sapbackup/bdpnotka.anf ... OK brbackup backup type = <online_mirror> SAP profile used = </oracle/RED/920_64/dbs/initRED.sap> DP for mySAP util file used = </oracle/RED/920_64/dbs/initRED.utl> DP for ESS control file = </oracle/RED/sapbackup/idssave/idssave> DP for ESS backup sequence number = <00005> Current Oracle log sequence number = <10> checking for FlashBack ... OK A FlashBack with backup sequence number <00005> was performed previously. check directory /oracle/RED/sapreorg/restore_050318193039 ... OK DP ESS mySAP has detected - the current FlashBack Restore with backup sequence number <00005> used target set 1 The PostRestore.sh script will now copy the log and control files from the restore run to the original location. The following log files will be copied back to the original destination Oracle log file : /oracle/RED/origlogA/log_g11m1.dbf Oracle log file : /oracle/RED/mirrlogA/log_g11m2.dbf Oracle log file : /oracle/RED/origlogB/log_g12m1.dbf Oracle log file : /oracle/RED/mirrlogB/log_g12m2.dbf Oracle log file : /oracle/RED/origlogA/log_g13m1.dbf Oracle log file : /oracle/RED/mirrlogA/log_g13m2.dbf Oracle log file : /oracle/RED/origlogB/log_g14m1.dbf Oracle log file : /oracle/RED/mirrlogB/log_g14m2.dbf The following control files will be copied back to the original destination Oracle control file : /oracle/RED/sapdata1/cntrl/cntrlRED.dbf Oracle control file : /oracle/RED/sapdata2/cntrl/cntrlRED.dbf Oracle control file : /oracle/RED/sapdata3/cntrl/cntrlRED.dbf Time stamp: 03/18/05 19:34:16 -----------------------------------------------------------------------------PART 3: copy Oracle online log files -----------------------------------------------------------------------------copying /oracle/RED/origlogA/log_g11m1.dbf ... OK copying /oracle/RED/mirrlogA/log_g11m2.dbf ... OK copying /oracle/RED/origlogB/log_g12m1.dbf ... OK copying /oracle/RED/mirrlogB/log_g12m2.dbf ... OK copying /oracle/RED/origlogA/log_g13m1.dbf ... OK copying /oracle/RED/mirrlogA/log_g13m2.dbf ... OK copying /oracle/RED/origlogB/log_g14m1.dbf ... OK copying /oracle/RED/mirrlogB/log_g14m2.dbf ... OK Time stamp: 03/18/05 19:34:20

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

369

PostRestore: -----------------------------------------------------------------------------PostRestore: PostRestore: PART 4: copy Oracle control files PostRestore: PostRestore: -----------------------------------------------------------------------------PostRestore: copying /oracle/RED/sapdata1/cntrl/cntrlRED.dbf ... OK PostRestore: copying /oracle/RED/sapdata2/cntrl/cntrlRED.dbf ... OK PostRestore: copying /oracle/RED/sapdata3/cntrl/cntrlRED.dbf ... OK PostRestore: Time stamp: 03/18/05 19:34:21 PostRestore: -----------------------------------------------------------------------------PostRestore: PostRestore: Restore Postprocessing finished successfully PostRestore: PostRestore: -----------------------------------------------------------------------------PostRestore: PostRestore: In order to perform a forward recovery you will need all Oracle redo log PostRestore: files beginning with log sequence number 10 up to the point in PostRestore: time you want to recover your database. PostRestore: PostRestore: Make sure you have restored all redo log files from TSM prior starting the PostRestore: recovery. PostRestore: PostRestore: -----------------------------------------------------------------------------PostRestore: PostRestore: You can now start the forward recovery using the SQLPlus command PostRestore: PostRestore: SQL> recover database [until time <timestamp>] PostRestore: PostRestore: -----------------------------------------------------------------------------PostRestore: PostRestore: Program PostRestore.sh completed successfully. PostRestore: hdwIntRC: 0 IDS1430I Restore from tdpessora ended with return code '0'. -------------------------------------------------------------------------------IBM Tivoli Storage Manager for Hardware Data Protection for IBM ESS for mySAP(R) on Oracle(R) Log history of the database backups SystemID: RED -------------------------------------------------------------------------------# Log Start of backup Type BackupID TSM FlashCopy -------------------------------------------------------------------------------1 bdpnotka.anf 05-03-18 18.43.44 online_mirror RED___A0E6GOTU2Z * ok 2 bdpnoodd.anf 05-03-18 17.44.25 online_mirror RED___A0E6GMQ0BC * invalid 3 bdpnlfyi.aff 05-03-18 01.33.24 offline_mirror RED___A0E6FO2ZQM ok invalid d r o # f x show details refresh display choose from older backups restore the backup number #, including pre- and post-processing show FlashCopy backups only (target set state IN_USE) exit tdpessora

Enter your selection => x IDS1023I Exiting with return code 0. orared@s1:/oracle/RED/920_64/dbs>

370

Get More Out of Your SAN with IBM Tivoli Storage Manager

After that, the database is ready to begin roll forward recovery to the point in time you desire. Because we want to go back to the last transaction, we issue recover database without parameters. After forward recovery has ended, you are ready to start the database and mySAP and begin production again (Example 11-36).
Example 11-36 Roll forward database and start mySAP orared@s1:/oracle/RED/920_64/dbs>sqlplus SQL*Plus: Release 9.2.0.1.0 - Production on Fri Mar 18 19:35:15 2005 Copyright (c) 1982, 2002, Oracle Corporation. Enter user-name: / as sysdba Connected to an idle instance. SQL> startup mount ORACLE instance started. Total System Global Area 179224752 bytes Fixed Size 741552 bytes Variable Size 100663296 bytes Database Buffers 76496896 bytes Redo Buffers 1323008 bytes Database mounted. ORA-01113: file 1 needs media recovery ORA-01110: data file 1: '/oracle/RED/sapdata4/system_1/system.data1' SQL> recover database Media recovery complete. SQL> alter database open SQL> alter database open; Database altered. SQL> quit Disconnected from Oracle9i Enterprise Edition Release 9.2.0.1.0 - 64bit Production With the Partitioning option JServer Release 9.2.0.1.0 - Production orared@s1:/oracle/RED/920_64/dbs>su - redadm redadm's Password: redadm> startsap Checking SAP R/3 RED Database -----------------------------Database is running Starting SAP R/3 Instance -----------------------------Startup-Log is written to /home/redadm/startsap_s1_02.log Instance on host s1 started redadm> All rights reserved.

The complete restore cycle took 5 minutes and 38 seconds to the point of forward recovery. Because we did not change much between the backup and the restore, our redo logs were very small. The FlashBack restore, however, does not depend on how much data is flashed back, because the flashed back source volumes are available immediately after the flash
Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

371

operation. Only the size of the redo logs slows down the process. So, a FlashBack restore is the fastest method to recovering mySAP databases.

11.7 Special environments


This section mentions some special environments which are specifically supported by Data Protection for IBM ESS for mySAP.

11.7.1 AIX LVM mirroring


LVM mirroring across two separate storage subsystems provides for storage high availability that is transparent to the application. In case of a failure in one ESS, operation continues seamlessly on the other. Many customers with a high availability requirement use LVM mirroring in combination with a system take-over capability as provided by HACMP or Tivoli System Automation. This configuration can also be used for disaster recovery by separating the systems and disk subsystems into two locations. Currently, distances of up to 35 miles (60 kilometers) are supported. Data Protection for IBM ESS for mySAP provides special support for LVM mirrored ESSs to make economic use of storage: only one mirror needs to be FlashCopied for backup. This setup requires that each mirror set is completely contained in one ESS (that is, mirror set 1 and mirror set 2 must each be in separate ESSs). Figure 11-9 shows the required setup.

Production System / DB Server


mySAP utilities sapdba
brbackup / brarchive brrestore Oracle Server/Client
TCP/ IP TCP/ IP S Q L N E T S Q L N E T

Backup System
mySAP utilities

brbackup Oracle Client


DP for mySAP.com

DP for ESS splitint


CORE IDS LVM

DP for mySAP

ITSM API ITSM Client

N F S R E X E C

N F S R E X E C

ITSM API ITSM Client

DP for ESS splitint


CORE LVM IDS

ESS CopyServices CLI

AIX
Disk I/O AIX JFS AIX LVM SCSI Layer SCSI / Fibre Channel

AIX
Disk I/O AIX JFS AIX LVM SCSI Layer SCSI / Fibre Channel

ESS CopyServices CLI

AIX LVM Mirroring

1 1 1

1 1 1
FC

1 1 1

1 1 1

2 2 2

2 2 2
FC

2 2 2

2 2 2

Source Volumes CopySet 1

Target Volumes CopySet 1

Source Volumes CopySet 2

Target Volumes CopySet 2

IBM ESS 1

IBM ESS 2

Figure 11-9 LVM mirroring in mySAP ESS environment

To activate the LVM mirroring support, the SHARK_ID_LVM parameter must be defined (init<SID>.fct), which specifies the ESS subsystems.

372

Get More Out of Your SAN with IBM Tivoli Storage Manager

If only one target set is defined (for either ESS), FlashCopies are always performed to this target set. To provide for fast restore even if one ESS fails, two target sets can be defined, one in each ESS. Data Protection for IBM ESS for mySAP then performs FlashCopies alternating between the ESSs (that is, TS1, TS2, TS1, TS2, and so forth). Thus a disk backup is always available for FlashBack restore. A specific target set can be selected by specifying it via the -n parameter of the split_options variable in the init<SID>.sap config file. Data Protection for IBM ESS for mySAP also performs the following checks for AIX LVM mirrored environments: A proper AIX LVM mirror setup for all LVs Mirror Write Consistency is set to YES Quorum is set to OFF All PPs synchronized prior and after the FlashCopy Schedule Policy is used

11.7.2 AIX HACMP


High availability environments with HACMP are supported, but only in a three machine environment, as shown in Figure 11-10.

Production System / DB Server


mySAP utilities sapdba
brbackup / brarchive brrestore Oracle Server/Client
TCP/ IP S Q L N E T

Takeover System
mySAP utilities sapdba
brbackup / brarchive brrestore Oracle Server/Client
TCP/ IP TCP/ IP S Q L N E T S Q L N E T

Backup System
mySAP utilities

brbackup Oracle Client

DP for ESS splitint


CORE IDS LVM

DP for mySAP

ITSM API ITSM Client

N F S R E X E C

DP for ESS splitint


CORE IDS LVM

DP for mySAP

DP for mySAP N F S R E X E C N F S R E X E C

ITSM API ITSM Client

ITSM API ITSM Client

DP for ESS splitint


CORE LVM IDS

ESS CopyServices CLI

AIX
Disk I/O AIX JFS AIX LVM SCSI Layer SCSI / Fibre Channel

ESS CopyServices CLI

AIX
Disk I/O AIX JFS AIX LVM SCSI Layer SCSI / Fibre Channel

AIX
Disk I/O AIX JFS AIX LVM SCSI Layer SCSI / Fibre Channel

ESS CopyServices CLI

AIX LVM Mirroring

1 1 1

1 1 1
FC

1 1 1

1 1 1

2 2 2

2 2 2
FC

2 2 2

2 2 2

Source Volumes CopySet 1

Target Volumes CopySet 1

Source Volumes CopySet 2

Target Volumes CopySet 2

IBM ESS 1

IBM ESS 2

Figure 11-10 HACMP mySAP environment

The backup server system cannot be the same as the HACMP takeover system. If the primary machine fails, it must be able to failover to a separate cluster node, which cannot be the backup server.

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

373

LVM mirroring is also supported in an HACMP environment.

11.7.3 Multiple backup generations on disk


To address the requirement for minimum outage for database restoration, the time between backups must be decreased (having fewer log files to apply reduces forward recovery duration). In order to maintain the capability for FlashBack restore, multiple backup generations must be kept on disk. Data Protection for IBM ESS for mySAP supports this by managing multiple target sets. Figure 11-11 illustrates such an environment.

Figure 11-11 Use of two target sets as backup generations

374

Get More Out of Your SAN with IBM Tivoli Storage Manager

Configuring multiple target sets as backup generations on disk increases the availability of a best-fit backup on disk for FlashBack restore. For example, consider the backup schedule shown in Table 11-1.
Table 11-1 Sample backup schedule Daily backup no 1 2 Time 12:00 a.m. 4:00 a.m. Target set 1 2 FlashCopy type INCR COPY Backup type Disk-only Disk and tape (Tivoli Storage Manager) Disk-only Disk-only Disk-only Disk-only

3 4 5 6

8:00 a.m. 12:00 p.m. 4:00 p.m. 8:00 p.m.

1 1 2 1

INCR INCR COPY INCR

In determining which target set to use for a backup run, Data Protection for IBM ESS for mySAP supports automatic selection, but it also allows the administrator to select a specific set if necessary. For backup operation, Data Protection for IBM ESS for mySAP prevents you from accidentally running too many backups simultaneously, which would increase the risk that a disk-based backup will not be available if a FlashBack restore is needed. The software checks for any ESS background copies still running on behalf of a previous backup request and prevents a new FlashCopy from being started if a conflict is detected. In the case of a restore, Data Protection for IBM ESS for mySAP initially verifies that there are no existing ESS source/target relationships that would prevent the FlashBack restore and alerts the administrator to first withdraw these relationships. Multiple target sets can also be employed in an AIX LVM mirroring configuration (see 11.7.1, AIX LVM mirroring on page 372). Data Protection for IBM ESS for mySAP can be configured to perform backups to one of the target sets of a specific mirror copy or alternate the selection between the two mirrors, for example. The advantage of alternating between the mirror sets is that the mirrors can each have an incremental FlashCopy active at the same time.

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

375

11.8 Determining problems


This section explains some diagnostic commands that you can use to get information about your environment, along with some troubleshooting procedures and issues to watch for when encountering problems.

11.8.1 Diagnostic commands


The following are helpful diagnostics commands: Function 'query' with brbackup q Allows Data Protection for IBM ESS for mySAP to perform a test run on the production system without interfering with the production work (database is not put into backup mode). Function 'inquire' with splitint -f inquire Shows information for the latest backup cycles. Function 'ts_inquire' with splitint -f ts_inquire Shows information about the target sets (copy set) TRACE YES Recommended to always set TRACE to YES. In error situations, it provides very helpful information for error analysis and problem determination in spite of its small size.

11.8.2 Summary of various logs and traces


Data Protection for IBM ESS for mySAP produces various log and trace files, including: Utilities for mySAP: BR*Tools brbackup brarchive brrestore

You can find these utilities in the following directories: The /oracle/<SID>/sapbackup directory for brbackup logs and brbackup summary logs, and for BR*Tools/brrestore logs The /oracle/<SID>/saparch directory for brarchive logs and brarchive summary logs Interfaces for Data Protection for IBM ESS for mySAP: Logs and traces go into the directory specified in the profile parameter LOG_TRACE_DIR. The file names are: splitint_b_<splitint function>_<date time stamp>.log - log for production system splitint_b_<splitint function>_<date time stamp>.trace - trace for production system splitint_p_<splitint function>_<date time stamp>.log - log for backup system, splitint_p_<splitint function>_<date time stamp>.trace - trace for backup system

ESS info (see the ESS Specialist browser/status menu). Data Protection for IBM ESS for mySAP places run time info into the mySAP BRTools logs (see above); in addition traces can be taken. AIX operating system error info (run the command: errpt a).

376

Get More Out of Your SAN with IBM Tivoli Storage Manager

11.8.3 Troubleshooting
Here is a general checklist for when problems occur. Then, some specific actions in particular problem scenarios are given.

A general checklist
Here are situations of which you should be aware: Are ESS and Oracle installed and set up correctly? Do all database files reside on ESS source disks and are the ESS target disks available? Are disks visible to appropriate systems: Source disks to production host? Target disks to backup host? Are Tivoli Storage Manager Backup-Archive clients and Data Protection for IBM ESS for mySAP set up with required PASSWORDACCESS values in the options files? Are production and backup systems registered as Tivoli Storage Manager client nodes? Has the Tivoli Storage Manager Backup-Archive Client password file been generated by the Tivoli Storage Manager components (when using PASSWORDACCESS GENERATE in the options files)? Are the passwords used by Data Protection for IBM ESS for mySAP defined/established in the CONFIG_FILE? Is the ESS Copy Services server running? Are ESS target volumes in another FlashCopy or PPRC relationship? Are the DNS services in the ESS systems set up properly for the production and backup systems? That is, are their TCP/IP host names known to the ESS Copy Services server?

Specific problem scenarios


The following are some specific problem scenarios that require action: If brbackup fails, there is no connection to production database. Check mySAP OSS. If splitint fails, check ESS source/target volumes size fails with rc=20. Possible causes are: A size mismatch between source and target volume Update ESS Copy Services command line interface to a level higher than 2.1.0.0 and Data Protection for IBM ESS for mySAP higher than V1.2 Action: Update Data Protection for IBM ESS for mySAP to version 1.2 or higher Adapt the ESS volumes file by replacing source and size by hyphen

If no ESS source volume is found, make sure that all database files are located on ESS volumes. If no ESS target volume is found, make sure that all ESS source volumes have their corresponding target volumes in the same LSS. If splitint / FlashCopy fails because of: Duplicate PVIDs, the possible cause might be source volume to target volume1, later to target volume2 Single Target Set for multiple source systems, the possible cause might be target volume could still be in an ESS source/target relationship or be used (mounted) elsewhere

Chapter 11. Tivoli Storage Manager for Hardware Data Protection for ESS for mySAP

377

Copy Services server no heartbeat, the possible cause might be that the TCP/IP network is down, Copy Services server is down, or the wrong DNS / TCP/IP address was used The /etc/hosts file in ESS not set up properly, the possible cause might be that you must configure the DNS names of the production and backup system in the ESS Copy Services server down, the possible cause might be that both the primary and backup server are down or the administrator has not switched Using command line interface FlashCopy request returns rc=8, then use the following for cause analysis: ESS Copy Services server Log find ESS volume in Copy Services server Log ESS volume assignment

Manual cleanup A manual cleanup might be required if you encounter duplicate PVIDs on the backup system. To clean the ODM as well as the PVID on the physical volume, run these commands:
lsvpcfg (only if SDD) /usr/opt/ibm2105cli/rsList2105s.sh lscfg vl hdiskxx lspv chdev -a pv=clear ... rmdev -dl vpathX (only if SDD) rmdev -df hdiskX

378

Get More Out of Your SAN with IBM Tivoli Storage Manager

12

Chapter 12.

Backing up SAN File System with Tivoli Storage Manager


This chapter describes the possibilities to backup the IBM TotalStorage SAN File System with Tivoli Storage Manager. It focuses on file-based backup/restore scenarios. For a discussion of LUN-based backups, see the IBM Redbook IBM TotalStorage: Introducing the SAN File System, SG24-7057. This chapter discusses the following topics: SAN File System overview Backing up SAN File System with Tivoli Storage Manager Backup and restore scenarios with Tivoli Storage Manager Special environments

Copyright IBM Corp. 2005. All rights reserved.

379

12.1 SAN File System overview


The IBM TotalStorage SAN File System (SAN File System) is designed on industry standards so that it can: Allow data sharing and collaboration across servers over the SAN with high performance and full file locking support, using a single global namespace for the data. Provide more effective storage use by reducing the amount of duplicate data and by sharing free and temporary space across servers. Improve productivity and simplify the process for IT storage and server management staff by centralizing management through policy-based storage management automation, thus significantly lowering the cost of storage management. Facilitate application server and storage consolidation across the enterprise to scale the infrastructure for storage and data on demand. Simplify and lower the cost of data backups through built-in, file-based FlashCopy image function. Eliminate data migration during application server consolidation, and also reduce application downtime and failover costs. SAN File System is a multiplatform, robust, scalable, and highly available file system and is a storage management solution that works with Storage Area Networks (SANs). It uses SAN technology, which allows an enterprise to connect a large number of computers and share a large number of storage devices via a high-performance network. With SAN File System, heterogeneous clients can access shared data directly from large, high-performance, high-function storage systems, such as IBM TotalStorage Enterprise Storage Server (ESS), IBM TotalStorage SAN Volume Controller (SVC), and IBM TotalStorage DS4000 (formerly IBM TotalStorage FAStT), as well as non-IBM storage devices. The SAN File System is built on a Fibre Channel network and is designed to provide superior I/O performance for data sharing among heterogeneous computers. SAN File System differs from conventional distributed file systems in that it uses a data-access model that separates file metadata (information about the files, such as owner, permissions, and the physical file location) from actual file data (contents of the files). The metadata is provided to clients by Metadata servers the clients communicate with the Metadata servers only to get the information they need to locate and access the files. When they have this information, the SAN File System clients access data directly from storage devices via the clients own direct connection to the SAN. Direct data access eliminates server bottlenecks and provides the performance necessary for data-intensive applications. SAN File System presents a single, global namespace to clients where they can create and share data, using uniform file names from any client or application. Furthermore, data consistency and integrity is maintained through SAN File Systems management of distributed locks and the use of leases. SAN File System also provides automatic file placement through the use of policies and rules. Based on rules specified in a centrally-defined and managed policy, SAN File System automatically stores data on devices in storage pools that are specifically created to provide the capabilities and performance appropriate for how the data is accessed and used.

380

Get More Out of Your SAN with IBM Tivoli Storage Manager

12.1.1 SAN File System architecture


Figure 12-1 illustrates the SAN File System architecture and components. Computers that want to share data and have their storage centrally managed are all connected to the SAN. In SAN File System terms, these are known as clients, because they access SAN File System services. However, in the enterprise context, they would most likely be, for example, database servers, application servers, or file servers.
NIS/ Active Directory Server

LDAP Server

Existing IP Network for Participant/File Directory Cluster Communications

Linux

Solaris

AIX

Win2000

Win2003

Master Console
Centralized Administration

VFS
Metadata server engines
. . .

VFS

VFS

IFS

IFS

SAN Fabric

Metadata server cluster


Load balancing Fail-over processing Scalability

System Pool

User Pools

Figure 12-1 SAN File System architecture

Figure 12-1 shows five such clients, each running a SAN File System currently supported client operating system. The SAN File System client software enables them to access the global namespace through a virtual file system (VFS) on UNIX or Linux systems and an installable file system (IFS) on Windows systems. This layer (VFS/IFS) is built by the operating system vendors for use specifically on special-purpose or newer file systems. There are also special computers called metadata server (MDS) engines that run the metadata server software, as shown on the left side of the figure. The MDSs manage file system metadata (including file creation time, file security information, file location information, and so on), but the user data accessed over the SAN by the clients does not pass through the MDS. This architecture eliminates the performance bottleneck from which many existing shared file system approaches suffer, giving near-local file system performance. MDSs are clustered for scalability and availability of metadata operations and are often referred to as the MDS cluster. In a SAN File System server cluster, there is one master MDS and one or more subordinate MDSs. Each MDS runs on a separate physical engine in the cluster. Additional MDSs can be added as required if the workload grows, providing solution scalability. Storage volumes that store the SAN File System clients user data (User Pools) are separated from storage volumes that store metadata (System Pool), as shown in Figure 12-1. The Administrative server allows SAN File System to be remotely monitored and controlled through a Web-based user interface called the SAN File System console. The Administrative

Chapter 12. Backing up SAN File System with Tivoli Storage Manager

381

server also processes requests issued from an administrative command line interface, which can also be accessed remotely.

12.2 Backing up SAN File System with Tivoli Storage Manager


This section discusses how to use a backup/recovery application, such as Tivoli Storage Manager, with the SAN File System clients to perform a file-based backup of files in the SAN File System global namespace.

12.2.1 Benefits of Tivoli Storage Manager with SAN File System


Because SAN File System is a global namespace (the files are visible to all clients), the files can be backed up from any SAN File System client. Therefore, you can back up those files, either directly from the filesets or from a SAN File FlashCopy image on a completely separate SAN File System client from the client that normally runs any applications on these files, thus giving application server-free backup. This backup method eliminates the application servers themselves from the data path of the backup and frees them from expending any processor cycles on the backup process. If you back up the files from a FlashCopy image, this effectively almost eliminates the backup window (that is, a period of outage of the application to clients), because you create an online consistent copy of the data that is then backed up. The application then proceeds uninterrupted while the backup is executed against the FlashCopy image. This principle is illustrated in Figure 12-2.

User

Pools System

Tape Library

SAN
"Production" SAN FS Clients Tivoli Storage Manager Server SAN FS Clients Tivoli Storage Manager or LAN-Free clients

LAN
Figure 12-2 Backing up SAN File System with Tivoli Storage Manager

The following procedure provides application server-free backup: 1. Create FlashCopy images of the filesets that you want to protect. This step requires minimal disruption to the SAN File System clients that are performing a production workload (Web servers, application servers, database servers, and so on).

382

Get More Out of Your SAN with IBM Tivoli Storage Manager

2. Now you can back up these FlashCopy images using a file-based backup application such as Tivoli Storage Manager, where the Tivoli Storage Manager client is installed on a separate SAN File System client. It still sees all the files, but the backups run independently of the production SAN File System clients. To keep all file attributes, if you have both Windows and UNIX (including Linux)-created data in your SAN File System environment, it should be separated by fileset. Then you should run two separate Tivoli Storage Manager clients in this instance: a Windows Tivoli Storage Manager/SAN File System client to back up Windows files, and an AIX Tivoli Storage Manager/SAN File System client to back up UNIX (including Linux) files. You can also run multiple instances of these if required to improve backup performance. The Tivoli Storage Manager server can be on any supported Tivoli Storage Manager server platform, and only needs to be SAN and LAN attached. It does not need to be a SAN File System client. 3. If you have implemented a non-uniform SAN File System configuration, such that not all filesets are visible to all clients, you need additional backup clients to ensure that all filesets can be backed up by a client that has visibility to it. 4. You can use the LAN-free backup client to also back up these files directly over the SAN to a SAN-attached library as shown, rather than using the LAN for backup data traffic. Therefore, we have LAN-free and (application) server-free backup capability. Note: Tivoli Storage Manager, in backing up the files in SAN File System, automatically also backs up the associated file metadata. Tivoli Storage Manager also supports restoring files to the same or a different location, and even to a different Tivoli Storage Manager client. This means you could restore files backed up from SAN File System not only to a different SAN File System environment but also (as in a disaster recovery situation) to a local file system on another UNIX or Windows Tivoli Storage Manager client that is not a SAN File System client (that is, you could still restore these files from a Tivoli Storage Manager backup even if you do not have a SAN File System environment to which to restore them). After all, they are just files to Tivoli Storage Manager the metadata will be handled appropriately for the restore platform, depending on whether the restore destination is a directory in the SAN File System global namespace or a local file system.

12.3 Backup and restore scenarios with Tivoli Storage Manager


This section presents the following scenarios for restore: Backing up user data in Windows filesets using Tivoli Storage Manager client for Windows Selected file to original location File restore to different location from a FlashCopy image backup Backing up user data in UNIX filesets using Tivoli Storage Manager client for AIX Backing up and restoring files using data in an actual fileset Backing up and restoring SAN File System FlashCopy images using the -snapshotroot Tivoli Storage Manager option In our lab, we installed the Tivoli Storage Manager server on a Windows 2000 machine and two clients on the following platforms: AIX 5L Version 5.2, Maintenance Level 03, 32-bit version Windows 2000 Service Pack 4 Both Tivoli Storage Manager server and client code versions used in our lab were at V5.2.2.0. Note that in order to back up SAN File System data from AIX and Windows SAN File System clients, you need Tivoli Storage Manager client V5.1 and higher. To back up SAN File System
Chapter 12. Backing up SAN File System with Tivoli Storage Manager

383

data from Linux and Solaris clients, you need Tivoli Storage Manager client V5.2.3_1 or higher. All these clients are also SAN File System clients. The following sections introduce sample backup and restore scenarios for both Windows and UNIX SAN File System filesets.

12.3.1 Backing up user data in Windows filesets using Tivoli Storage Manager client for Windows
First, we back up the files with the Tivoli Storage Manager client: 1. To start the Backup-Archive Client interface, select Start Programs Tivoli Storage Manager Backup-Archive GUI, and select the Backup function. Select the files to back up, as shown in Figure 12-3. Notice that the SAN File System drive and filesets appear as a Local drive in the Backup-Archive Client.

Figure 12-3 User files selection

2. Start the backup by clicking Backup. The files are backed up to the Tivoli Storage Manager server. Note that we selected for our backup not only the actual content of the INSTALL directory but also its SAN File System FlashCopy image, which resides in the .flashcopy/Image-8 folder. If you make a FlashCopy image each day (using a different directory) and back it up, Tivoli Storage Manager incremental backup will back up all the files each time. For information about how to back up SAN File System FlashCopy images incrementally using the Tivoli Storage Manager -snapshotroot option, see 12.3.3,

384

Get More Out of Your SAN with IBM Tivoli Storage Manager

Backing up FlashCopy images with Tivoli Storage Manager the -snapshotroot option on page 390.

Restoring user data using Tivoli Storage Manager client for Windows
Having backed up both actual data and its FlashCopy image, we can execute the restore scenarios.

Scenario 1: Restoring selected file to original destination


This scenario restores files from the Tivoli Storage Manager backup of the actual fileset. We deleted the INSTALL directory, which we now restore using Tivoli Storage Manager. We are showing the restore of one folder for demonstration purposes, but Tivoli Storage Manager can restore multiple files or folders as well as an entire file system. The steps in this scenario are: 1. Start the Tivoli Storage Manager Backup-Archive Client and select Restore. In Figure 12-4, we chose to restore the folder.

Figure 12-4 Restore selective file selection

2. We chose to restore to the original location, as shown in Figure 12-5 on page 386. Click Restore to start the restore.

Chapter 12. Backing up SAN File System with Tivoli Storage Manager

385

Figure 12-5 Select destination of restore file(s)

The deleted file is restored.

Scenario 2: Restoring FlashCopy image to a different destination


This scenario restores the files that were backed up from the FlashCopy image to the real fileset location. The steps in this scenario are: 1. Start the Tivoli Storage Manager Backup-Archive Client. Select Restore. 2. Select the files to restore, as shown in Figure 12-6. We are restoring the Image-8 folder from the FlashCopy image.

Figure 12-6 Restore files selection for FlashCopy image backup

3. Select the destination to restore the files to. We restore the folder to the win2kfiles fileset in S:\winhome\win2kfiles\testfolder, as shown in Figure 12-7 on page 387. Click Restore

386

Get More Out of Your SAN with IBM Tivoli Storage Manager

to start the restore. Note that we could not (and it would not make sense to) restore the files to the .flashcopy directory as FlashCopy images, so their directories are read-only.

Figure 12-7 Restore files destination path selection

The restore of the FlashCopy files is now complete the original folder is restored. Tip: Regular periodic FlashCopy images are highly recommended. They are the most efficient method for backing up and restoring files quickly in scenarios where the metadata is still available.

12.3.2 Backing up user data in UNIX filesets with Tivoli Storage Manager client for AIX
This section introduces the following backup and restore scenarios: Backing up and restoring files using data in an actual fileset Backing up and restoring SAN File System FlashCopy images using the -snapshotroot Tivoli Storage Manager option

Backing up and restoring files using data in an actual fileset


This scenario backs up sample files in the aixfiles and lixfiles filesets, as shown in Example 12-1. Our example uses the command line interface.
Example 12-1 Files to back up using Tivoli Storage Manager AIX client Rome:/sfs/sanfs/lixfiles/linuxhome/install >ls -l total 2048 -rw-rw-rw1 root system 696679 Jun 01 11:07 TIVguid.i386.rpm Rome:/sfs/sanfs/lixfiles/linuxhome/install >ls -l ../../../aixfiles/aixhome/inst.images total 48897 -rw-r--r-1 root system 0 May 26 17:47 .toc -rw-r--r-1 root system 25034752 May 26 17:46 510005.v2.tar drwxr-x--2 root system 48 May 26 17:47 lost+found/

Chapter 12. Backing up SAN File System with Tivoli Storage Manager

387

1. Back up the files with the Tivoli Storage Manager client. Example 12-2 shows the output.
Example 12-2 Backing up files using Tivoli Storage Manager AIX command line client Rome:/sfs/sanfs >dsmc selective "/sfs/sanfs/aixfiles/aixhome/inst.images/*" "/sfs/sanfs/lixfiles/linuxhome/install/*" IBM Tivoli Storage Manager Command Line Backup/Archive Client Interface - Version 5, Release 2, Level 2.0 (c) Copyright by IBM Corporation and other(s) 1990, 2003. All Rights Reserved. Node Name: AIXROME Session established with server NPSRV2: Windows Server Version 5, Release 2, Level 2.0 Server date/time: 06/02/04 09:51:00 Last access: 06/02/04 Selective Backup function invoked. Directory--> 72 /sfs/sanfs/aixfiles/aixhome/inst.images [Sent] Directory--> 312 /sfs/sanfs [Sent] Directory--> 96 /sfs/sanfs/aixfiles [Sent] Directory--> 144 /sfs/sanfs/aixfiles/aixhome [Sent] Normal File--> 27,673,600 /sfs/sanfs/aixfiles/aixhome/inst.images/IP22727.tivoli.tsm.client.ba.32bit [Sent] Selective Backup processing of '/sfs/sanfs/aixfiles/aixhome/inst.images/*' finished without failure. Directory--> 72 /sfs/sanfs/lixfiles/linuxhome/install [Sent] Directory--> 312 /sfs/sanfs [Sent] Directory--> 72 /sfs/sanfs/lixfiles [Sent] Directory--> 192 /sfs/sanfs/lixfiles/linuxhome [Sent] Normal File--> 696,679 /sfs/sanfs/lixfiles/linuxhome/install/TIVguid.i386.rpm [Sent] Selective Backup processing of '/sfs/sanfs/lixfiles/linuxhome/install/*' finished without failure. Total number of objects inspected: 10 Total number of objects backed up: 10 Total number of objects updated: 0 Total number of objects rebound: 0 Total number of objects deleted: 0 Total number of objects expired: 0 Total number of objects failed: 0 Total number of bytes transferred: 27.05 MB Data transfer time: 2.32 sec Network data transfer rate: 11,909.43 KB/sec Aggregate data transfer rate: 9,186.13 KB/sec Objects compressed by: 0% Elapsed processing time: 00:00:03

09:48:37

2. In Example 12-3, we simulate data loss in the fileset that was backed up earlier. We delete the /sfs/sanfs/aixfiles/aixhome/inst.images/inst.images and /sfs/sanfs/lixfiles/linuxhome/install directories.
Example 12-3 Simulating the loss of data by deleting directories that we backed up in step 1 Rome:/sfs/sanfs >rm -rf /sfs/sanfs/lixfiles/linuxhome/install Rome:/sfs/sanfs >rm -rf /sfs/sanfs/aixfiles/aixhome/inst.images

3. We restore our files using the Tivoli Storage Manager AIX line client from the backup created earlier, as shown in Example 12-4 on page 389.

388

Get More Out of Your SAN with IBM Tivoli Storage Manager

Example 12-4 Restoring files from Tivoli Storage Manager AIX client backup dsmc restore "/sfs/sanfs/aixfiles/aixhome/inst.images/*";dsmc restore "/sfs/sanfs/lixfiles/linuxhome/install/*" IBM Tivoli Storage Manager Command Line Backup/Archive Client Interface - Version 5, Release 2, Level 2.0 (c) Copyright by IBM Corporation and other(s) 1990, 2003. All Rights Reserved. Restore function invoked. Node Name: AIXROME Session established with server NPSRV2: Windows Server Version 5, Release 2, Level 2.0 Server date/time: 06/02/04 09:59:47 Last access: 06/02/04

09:56:34

ANS1247I Waiting for files from the server... Restoring 72 /sfs/sanfs/aixfiles/aixhome/inst.images [Done] Restoring 27,673,600 /sfs/sanfs/aixfiles/aixhome/inst.images/IP22727.tivoli.tsm.client.ba.32bit [Done] Restore processing finished. Total number of objects restored: 2 Total number of objects failed: 0 Total number of bytes transferred: 26.39 MB Data transfer time: 20.45 sec Network data transfer rate: 1,321.14 KB/sec Aggregate data transfer rate: 1,174.53 KB/sec Elapsed processing time: 00:00:23 IBM Tivoli Storage Manager Command Line Backup/Archive Client Interface - Version 5, Release 2, Level 2.0 (c) Copyright by IBM Corporation and other(s) 1990, 2003. All Rights Reserved. Restore function invoked. Node Name: AIXROME Session established with server NPSRV2: Windows Server Version 5, Release 2, Level 2.0 Server date/time: 06/02/04 10:00:10 Last access: 06/02/04

09:59:47

ANS1247I Waiting for files from the server... Restoring 72 /sfs/sanfs/lixfiles/linuxhome/install [Done] Restoring 696,679 /sfs/sanfs/lixfiles/linuxhome/install/TIVguid.i386.rpm [Done] < 680.40 KB> [ - ] Restore processing finished. Total number of objects restored: 2 Total number of objects failed: 0 Total number of bytes transferred: 680.40 KB Data transfer time: 0.36 sec Network data transfer rate: 1,877.42 KB/sec Aggregate data transfer rate: 135.87 KB/sec Elapsed processing time: 00:00:05

Chapter 12. Backing up SAN File System with Tivoli Storage Manager

389

4. We check whether the files have been restored to their original locations in Example 12-5.
Example 12-5 Check if files have been successfully restored Rome:/sfs/sanfs >ls -l /sfs/sanfs/lixfiles/linuxhome/install total 2048 -rw-rw-rw1 root system 696679 Jun 01 13:26 TIVguid.i386.rpm Rome:/sfs/sanfs >ls -l /sfs/sanfs/aixfiles/aixhome/inst.images total 55296 -rw-r----1 root system 27673600 Jun 01 14:38 IP22727.tivoli.tsm.client.ba.32bit

12.3.3 Backing up FlashCopy images with Tivoli Storage Manager the -snapshotroot option
Before we introduce an actual backup and restore scenario that uses -snapshotroot (the Tivoli Storage Manager option for backing up data), we will briefly explain the purpose of this Tivoli Storage Manager option. The -snapshotroot option can be used with Tivoli Storage Manager incremental and selective backups as well as archives. It helps to associate snapshot data that is created by any third-party application with a native FlashCopy capability, such as SAN File System FlashCopy, with the actual file space data that is stored on the Tivoli Storage Manager. The -snapshotroot option does not provide any functionality to take a FlashCopy (snapshot) image. It only helps to manage data that has been already created by a FlashCopy-capable software application. Our example explains how -snapshotroot works. Important: This section only introduces our example, highlighting any necessary considerations and steps that you need to take. We give more detailed instructions in Setting up the environment for snapshotroot-based Tivoli Storage Manager backup on page 392. Assume that we have a fileset called aixfiles, attached to directory /sfs/sanfs/aixfiles/aixhome. When we create a SAN File System FlashCopy image for this particular fileset, a subdirectory is created in the /sfs/sanfs/aixfiles/aixhome/.flashcopy directory. That subdirectory holds the snapshot of the actual files and directories stored in /sfs/sanfs/aixfiles/aixhome and its subdirectories. Example 12-6 shows two FlashCopy images that we created for the purpose of this scenario.
Example 12-6 SAN File System FlashCopy images in /sfs/sanfs/aixfiles/aixhome.flashcopy directory Rome:/sfs/sanfs/aixfiles/aixhome/.flashcopy /sfs/sanfs/aixfiles/aixhome/.flashcopy Rome:/sfs/sanfs/aixfiles/aixhome/.flashcopy total 2 d--------5 root system 120 d--------5 root system 120 >pwd >ls -l Jun 01 22:32 Image06-01-2004/ Jun 01 22:33 Image06-02-2004/

Now, in order to back up the SAN File System FlashCopy image using the Tivoli Storage Manager client, you would normally run the following command:
dsmc incr "/sfs/sanfs/aixfiles/aixhome/.flashcopy/Image06-01-2004/*" -subdir=yes

In this case, Tivoli Storage Manager client starts to process the data in the /sfs/sanfs/aixfiles/aixhome/.flashcopy/Image06-01-2004/ directory and its subdirectories.

390

Get More Out of Your SAN with IBM Tivoli Storage Manager

With the snapshotroot option, we cane to base the backup on the SAN File System FlashCopy image, while still preserving (from the Tivoli Storage Manager server perspective) the actual absolute directory structure and file names from which that particular SAN File System FlashCopy image originates. However, the main reason you might consider using a snapshotroot based backup approach is that it allows you to back up SAN File System FlashCopy images using Tivoli Storage Manager incremental methods. This requires you to add virtual mount point definitions into the Tivoli Storage Manager clients dsm.sys configuration file for: All the filesets you plan to back up Each and every SAN File System FlashCopy image that you create for any of your filesets In Example 12-7, you can see how we have defined virtual mount points in our dsm.sys configuration file.
Example 12-7 Virtual mount point definitions example virtualmountpoint virtualmountpoint virtualmountpoint /sfs/sanfs/aixfiles/aixhome /sfs/sanfs/aixfiles/aixhome/.flashcopy/Image06-01-2004 /sfs/sanfs/aixfiles/aixhome/.flashcopy/Image06-02-2004

Without these virtual mount point definitions, the Tivoli Storage Manager server would store all SAN File System related backups into a single file space (in our example, AIXRome /sfs), as shown in Example 12-8.
Example 12-8 Q FILESPACE command: no virtual mount point definitions tsm: NPSRV2>q filesp Node Name: AIXROME Filespace Name: /sfs FSID: 5 Platform: AIX Filespace Type: SANFS Is Filespace Unicode?: No Capacity (MB): 294,480.0 Pct Util: 3.7

If we, however, define a virtual mount point for our aixfiles fileset and also for all of our SAN File System FlashCopy images, and run a Tivoli Storage Manager backup, then the file space layout on the Tivoli Storage Manager server (output of the q filesp command) will now look as shown in Example 12-9.
Example 12-9 Q FILESPACE command: With virtual mount point definitions tsm: NPSRV2>q filesp Node Name: AIXROME Filespace Name: /sfs FSID: 5 Platform: AIX Filespace Type: SANFS Is Filespace Unicode?: No Capacity (MB): 294,480.0 Pct Util: 3.7 Node Name: AIXROME Filespace Name: /sfs/sanfs/aixfiles/aixhome FSID: 6 Platform: AIX Chapter 12. Backing up SAN File System with Tivoli Storage Manager

391

Filespace Type: Is Filespace Unicode?: Capacity (MB): Pct Util:

SANFS No 304,688.0 3.6

Node Name: AIXROME Filespace Name: /sfs/sanfs/aixfiles/aixhome/.flashcopy/Image06-01-2004 FSID: 7 Platform: AIX Filespace Type: SANFS Is Filespace Unicode?: No Capacity (MB): 304,688.0 Pct Util: 3.6 Node Name: AIXROME Filespace Name: /sfs/sanfs/aixfiles/aixhome/.flashcopy/Image06-02-2004 FSID: 8 Platform: AIX Filespace Type: SANFS Is Filespace Unicode?: No Capacity (MB): 304,688.0 Pct Util: 3.6

So far, we have explained the purpose of the -snapshotroot option and have outlined the role of Tivoli Storage Manager clients virtual mount points. Now, we describe how to back up SAN File System data using the -snapshotroot option.

Using the -snapshotroot option to back up SAN File System filesets


As mentioned earlier, you could back up a SAN File System FlashCopy image using a dsmc command with a syntax similar to the following, specifying the FlashCopy image directory:
dsmc incr "/sfs/sanfs/aixfiles/aixhome/.flashcopy/Image06-01-2004/*" -subdir=yes

However with the -snapshotroot backup approach, you do not specify FlashCopy image directory but instead the actual fileset data directory. The FlashCopy directory is then specified as the option for the -snapshotroot option, as shown here:
dsmc incr /sfs/sanfs/aixfiles/aixhome/ -snapshotroot=/sfs/sanfs/aixfiles/aixhome/.flashcopy /Image06-02-2004

Because we have now explained the concept behind backing up SAN File System data based on their FlashCopy images using the -snapshotroot Tivoli Storage Manager client option, we can now show a step-by-step scenario for this type of backup in our lab environment.

Setting up the environment for snapshotroot-based Tivoli Storage Manager backup


The -snapshotroot option for SAN File System is supported, at the time of writing, on Tivoli Storage Manager V5.2.3.1 and higher clients for AIX, Windows, Solaris, and Linux. To set up the environment for this option: 1. Make sure that you have a virtual mount point defined for your fileset in the Tivoli Storage Manager dsm.sys file. If you do not, create the following definition:
virtualmountpoint /sfs/sanfs/aixfiles/aixhome

392

Get More Out of Your SAN with IBM Tivoli Storage Manager

Note: If you are using a Windows client, the dsm.sys file is not present. Instead, you have to use Windows sharing to create a local share for the fileset directory, as follows:
net share WINfileset t:\winhome\win2kfiles\

You also need to create another local share for the directory location of the FlashCopy image to be backed up, as follows:
net share WINimage1 t:\winhome\win2kfiles\.flashcopy\Image1

Exclude the .flashcopy directory from Tivoli Storage Manager so the data is not backed up twice. Include the following in the dsm.opt file:
exclude.dir /.../.flashcopy

Then in the dsmc command, specify the share names, as follows:


dsmc inc \\WINWASHINGTON\Winfileset -snapshotroot=\\WINWASHINGTON\Image1

2. Create the SAN File System FlashCopy image. You can use either the SAN File System graphical console or the command line interface. In our example, we use the command line interface:
sfscli>mkimage -fileset aixfiles -dir Image06-01-2004 aixfiles_fcopy1

3. Add a new virtual mount point definition in dsm.sys file for the newly created SAN File System FlashCopy image in step 2:
virtualmountpoint /sfs/sanfs/aixfiles/aixhome/.flashcopy/Image06-01-2004

4. Make sure that the .flashcopy directory is excluded from normal Tivoli Storage Manager backups by adding the appropriate exclude.dir option into the dsm.sys file:
exclude.dir t:\...\.flashcopy

5. This step is for AIX only. If you are configuring this example on another client than AIX, skip this step. Add the testflag option to the dsm.sys file to prevent undesired object updates due to AIX LVM inode number differences between the actual and FlashCopy data:
testflag ignoreinodeupdate

Example 12-10 shows the completed dsm.sys file for our environment.
Example 12-10 Example of the dsm.sys file in our environment Rome:/usr/tivoli/tsm/client/ba/bin >cat dsm.sys SErvername config1 COMMmethod TCPip TCPPort 1500 TCPServeraddress 9.42.164.126 Nodename AIXRome Passwordaccess generate ***** added for SAN File System ***** testflag ignoreinodeupdate virtualmountpoint /sfs/sanfs/aixfiles/aixhome virtualmountpoint /sfs/sanfs/aixfiles/aixhome/.flashcopy/Image06-01-2004 virtualmountpoint /sfs/sanfs/aixfiles/aixhome/.flashcopy/Image06-02-2004

Chapter 12. Backing up SAN File System with Tivoli Storage Manager

393

6. Perform the Tivoli Storage Manager incremental, selective, or archive backup operation. In our case, we performed an incremental backup of the fileset, with the -snapshotroot option based on Image06-02-2004, as follows:
dsmc incr /sfs/sanfs/aixfiles/aixhome/\ \-snapshotroot=/sfs/sanfs/aixfiles/aixhome/.flashcopy/Image06-02-2004

7. Now that we have backed up the SAN File System data incrementally using the FlashCopy image, we can delete that FlashCopy image on MDS using the command line interface:
rmimage -fileset aixfiles aixfiles_fcopy1

The next section introduces the backup scenario that is based on the -snapshotroot option, which demonstrates how the Tivoli Storage Manager incremental backup using -snapshotroot really works.

Scenario: Backing up using the -snapshotroot option


Assume that we have a fileset named aixfiles and no SAN File System Flash Copy images have been created yet. The SAN File System filesets directory initially contains a file named file1.exe. To back up using the -snapshotroot option: 1. Create SAN File System Flash Copy image for fileset aixfiles, as shown in Example 12-11.
Example 12-11 Create SAN File System Flash Copy image sfscli> mkimage -fileset aixfiles -dir aixfiles-image-1 aixfiles-image-1 CMMNP5168I FlashCopy image aixfiles-image-1 on fileset aixfiles was created successfully

2. Add the virtual mount point definition to our DSM.SYS configuration file and run an incremental backup of the filesets data using the snapshotroot option, as shown in Example 12-12.
Example 12-12 Run Tivoli Storage Manager backup of the data Rome:/sfs/sanfs/aixfiles/aixhome >dsmc incr /sfs/sanfs/aixfiles/aixhome/ -snapshotroot=/sfs/sanfs/aixfiles/aixhome/.flashcopy/aixfiles-image-1 IBM Tivoli Storage Manager Command Line Backup/Archive Client Interface - Version 5, Release 2, Level 2.0 (c) Copyright by IBM Corporation and other(s) 1990, 2003. All Rights Reserved. Node Name: AIXROME Session established with server NPSRV2: Windows Server Version 5, Release 2, Level 2.0 Server date/time: 06/08/04 14:29:57 Last access: 06/08/04

14:29:05

Incremental backup of volume '/sfs/sanfs/aixfiles/aixhome/' Directory--> 48 /sfs/sanfs/aixfiles/aixhome/lost+found [Sent] Normal File--> 5,495,760 /sfs/sanfs/aixfiles/aixhome/file1.exe [Sent] Successful incremental backup of '/sfs/sanfs/aixfiles/aixhome/*' Total number of objects inspected: Total number of objects backed up: Total number of objects updated: Total number of objects rebound: Total number of objects deleted: Total number of objects expired: Total number of objects failed: Total number of bytes transferred: Data transfer time: 2 2 0 0 0 0 0 5.24 MB 0.44 sec

394

Get More Out of Your SAN with IBM Tivoli Storage Manager

Network data transfer rate: 11,973.98 KB/sec Aggregate data transfer rate: 1,775.06 KB/sec Objects compressed by: 0% Elapsed processing time: 00:00:03 Rome:/sfs/sanfs/aixfiles/aixhome >

The /sfs/sanfs/aixfiles/aixhome/file1.exe file was backed up by Tivoli Storage Manager using the SAN File System image in /sfs/sanfs/aixfiles/aixhome/.flashcopy/aixfiles-image-1/file1.exe. 3. Add a new file into the /sfs/sanfs/aixfiles/aixhome directory named file2.exe. 4. Create a new SAN File System FlashCopy image in the /sfs/sanfs/aixfiles/aixhome/.flashcopy/aixfiles-image-2 directory, as shown in Example 12-13.
Example 12-13 Creating a new FlashCopy image sfscli> mkimage -fileset aixfiles -dir aixfiles-image-2 aixfiles-image-2 CMMNP5168I FlashCopy image aixfiles-image-2 on fileset aixfiles was created successfully.

5. Add a new virtual mount point for the new SAN File System FlashCopy image aixfiles-image-2 (Example 12-14).
Example 12-14 Adding a new virtual mount point definition into DSM.SYS and run new backup Rome:/sfs/sanfs/aixfiles/aixhome >cat /usr/tivoli/tsm/client/ba/bin/dsm.sys SErvername config1 COMMmethod TCPip TCPPort 1500 TCPServeraddress 9.42.164.126 Nodename AIXRome Passwordaccess generate ***** added for SAN File System ***** testflag ignoreinodeupdate virtualmountpoint /sfs/sanfs/aixfiles/aixhome virtualmountpoint /sfs/sanfs/aixfiles/aixhome/.flashcopy/aixfiles-image-1 virtualmountpoint /sfs/sanfs/aixfiles/aixhome/.flashcopy/aixfiles-image-2

6. Run backup again, using the -snapshotroot option pointing to the latest Flashcopy image, aixfiles-image-2 (Example 12-15).
Example 12-15 Run backup again, this time using the aixfiles-image-2 image Rome:/sfs/sanfs/aixfiles/aixhome >dsmc incr /sfs/sanfs/aixfiles/aixhome/\ \-snapshotroot=/sfs/sanfs/aixfiles/aixhome/.flashcopy/aixfiles-image-2 IBM Tivoli Storage Manager Command Line Backup/Archive Client Interface - Version 5, Release 2, Level 2.0 (c) Copyright by IBM Corporation and other(s) 1990, 2003. All Rights Reserved. Node Name: AIXROME Session established with server NPSRV2: Windows Server Version 5, Release 2, Level 2.0 Server date/time: 06/08/04 14:45:17 Last access: 06/08/04

14:29:57

Incremental backup of volume '/sfs/sanfs/aixfiles/aixhome/' Normal File--> 5,495,760 /sfs/sanfs/aixfiles/aixhome/file2.exe [Sent] Successful incremental backup of '/sfs/sanfs/aixfiles/aixhome/*' Total number of objects inspected: Total number of objects backed up: 3 1

Chapter 12. Backing up SAN File System with Tivoli Storage Manager

395

Total number of objects updated: 0 Total number of objects rebound: 0 Total number of objects deleted: 0 Total number of objects expired: 0 Total number of objects failed: 0 Total number of bytes transferred: 5.24 MB Data transfer time: 0.40 sec Network data transfer rate: 13,141.99 KB/sec Aggregate data transfer rate: 1,771.75 KB/sec Objects compressed by: 0% Elapsed processing time: 00:00:03

As you can see, the /sfs/sanfs/aixfiles/aixhome directory was backed up incrementally, this time using the aixfiles-image-2 image. Therefore, we just backed up the newly added file - file2.exe. 7. Create the file3.exe file in the /sfs/sanfs/aixfiles/aixhome directory. 8. Make a SAN File System FlashCopy image named aixfiles-image-3, as shown in Example 12-16.
Example 12-16 Making another SAN File System FlashCopy image sfscli> mkimage -fileset aixfiles -dir aixfiles-image-3 aixfiles-image-3 CMMNP5168I FlashCopy image aixfiles-image-3 on fileset aixfiles was created successfully.

9. Add another file named file4.exe. 10.Run a backup, pointing the snapshotroot to the aixfiles-image-3 SAN File System FlashCopy image (do not forget to add a new virtual mount point for the aixfiles-image-3 image to the DSM.SYS configuration file). In this case, only the file3.exe is backed up and file4.exe should be ignored. Why? Because we added the file4.exe to the actual file system directory and did not generate a new SAN File System FlashCopy image afterwards. The SAN File System FlashCopy image aixfiles-image-3 does not contain the image of the file file4.exe, because the file was created after the image was taken. Therefore, file4.exe is not backed up. This is how the snapshotroot option works. In each case, the fileset is backed up incrementally, using the specified FlashCopy image as a base.
Example 12-17 Final backup Rome:/sfs/sanfs/aixfiles/aixhome >hotroot=/sfs/sanfs/aixfiles/aixhome/.flashcopy/aixfiles-image-3 IBM Tivoli Storage Manager Command Line Backup/Archive Client Interface - Version 5, Release 2, Level 2.0 (c) Copyright by IBM Corporation and other(s) 1990, 2003. All Rights Reserved. Node Name: AIXROME Session established with server NPSRV2: Windows Server Version 5, Release 2, Level 2.0 Server date/time: 06/08/04 15:07:56 Last access: 06/08/04 <

14:45:17

Incremental backup of volume '/sfs/sanfs/aixfiles/aixhome/' Normal File--> 5,495,760 /sfs/sanfs/aixfiles/aixhome/file3.exe [Sent] Successful incremental backup of '/sfs/sanfs/aixfiles/aixhome/*' Total Total Total Total Total number number number number number of of of of of objects objects objects objects objects inspected: backed up: updated: rebound: deleted: 4 1 0 0 0

396

Get More Out of Your SAN with IBM Tivoli Storage Manager

Total number of objects expired: 0 Total number of objects failed: 0 Total number of bytes transferred: 5.24 MB Data transfer time: 0.40 sec Network data transfer rate: 13,115.34 KB/sec Aggregate data transfer rate: 1,768.19 KB/sec Objects compressed by: 0% Elapsed processing time: 00:00:03

As you can see, our assumption that only the file3.exe file is backed up was right. The Tivoli Storage Manager backup client searches the actual data directory /sfs/sanfs/aixfiles/aixhome for existing objects to be backed up, but for the backup itself, it uses the SAN File System FlashCopy directory specified by the snapshotroot option, in our case, /sfs/sanfs/aixfiles/aixhome/aixfiles-image-3. This scenario also explains the role of the virtual mount point entries in the DSM.SYS configuration file. As you can see in Example 12-14 on page 395, there is one virtual mount point created for the /sfs/sanfs/aixfiles/aixhome directory. We need this option to say to the Tivoli Storage Manager server that it has to create and use a new separate file space for the /sfs/sanfs/aixfiles/aixhome directory. See the output of the q filesp command from the Tivoli Storage Manager command line interface shown in Example 12-18.
Example 12-18 Query filesp command output from command line interface tsm: NPSRV2>q filesp Node Name: AIXROME Filespace Name: /sfs/sanfs/aixfiles/aixhome FSID: 10 Platform: AIX Filespace Type: SANFS Is Filespace Unicode?: No Capacity (MB): 352,800.0 Pct Util: 8.1

Simply put, if you did not specify a virtual mount point for the /sfs/sanfs/aixfiles/aixhome directory (which is also the attach point of the SAN File System fileset aixfiles), and then ran a backup, the Tivoli Storage Manager file space name would be /sfs only (as shown in Example 12-8 on page 391) and you would not be able to run incremental backups using the snapshotroot option. So, why do we need virtual mount point entries in dsm.sys for all of our SAN File System FlashCopy images? The reason is that you can only specify a mount point to the snapshotroot option, not a directory. If the virtualmountpoint entry for the aixfiles-image-3 image was not made, and you tried to run a backup with the snapshotroot option pointing to the /sfs/sanfs/aixfiles/aixhome/.flashcopy/aixfiles-image-3 directory, Tivoli Storage Manager client would generate an error message, as shown in Example 12-19 below.
Example 12-19 Need for dsm.sys virtual mount point entries for SAN File System FlashCopy images Rome:/sfs/sanfs/aixfiles/aixhome >dsmc incr /sfs/sanfs/aixfiles/aixhome/ -snapshotroot=/sfs/sanfs/aixfiles/aixhome/.flashcopy/aixfiles-image-3 ANS7533E The specified drive '/sfs/sanfs/aixfiles/aixhome/.flashcopy/aixfiles-image-3' does not exist or is not a local drive.

Chapter 12. Backing up SAN File System with Tivoli Storage Manager

397

Conclusions
Using the snapshotroot option with your Tivoli Storage Manager backup client gives you the ability to use SAN File System FlashCopy images to back up data while still using the incremental backup method. In order to use the snapshotroot option, you need to add a virtualmountpoint entry for the actual fileset and also for each and every SAN File System FlashCopy image generated for that particular fileset. You can avoid the manual modification to your DSM.SYS file (in order to add a specific virtualmountpoint entry) by choosing the standard naming convention for your SAN File System FlashCopy images (Image-1, Image-2, Image-3, and so on). Because the SAN File System supports a maximum number of FlashCopy images of 32, you can predefine all your virtual mount points to your DSM.SYS configuration file and then automate the backup process using scripts.

12.4 Special environments


The next two examples show special considerations for SAN File System backup in large environments. An environment can be large in terms of the total size of data (for example, very large files) or the number of files to be transferred. In the first case, the bottleneck is most likely the data movement process. So, we can improve performance by increasing the number of Tivoli Storage Manager clients. In the second case (many files), the Tivoli Storage Manager server database is typically the bottleneck.

12.4.1 Large quantity of data


An example scenario is a SAN File System media environment where there can be several hundred terabytes stored in the user pools. The average file size is large. Where there are specific backup windows or required backup throughput to be met, consider dedicating several SAN File System clients as backup nodes (as many as you need to achieve the throughput) and installing the Tivoli Storage Manager Storage Agent for LAN-free data transfer on them. Figure 12-2 on page 382 illustrates this scenario. Beginning with Tivoli Storage Manager V5.3, you can back up the file data to the same node name using the Proxy Node feature. On the client, define node names as usual (for example, SANFS1, SANFS2, SANFS3) one for each physical Tivoli Storage Manager client. On the Tivoli Storage Manager server, using the Tivoli Storage Manager REGISTER NODE command, define a single virtual node name (for example, SFS) and also register the real node names of each of the Tivoli Storage Manager-clients for SAN File System (that is, SANFS1, SANFS2, SANFS3, and so forth). Then associate each of the real client node names with the proxy (virtual) node name using the GRANT PROXY command, for example:
GRANT PROXY SFS SANFS1 GRANT PROXY SFS SANFS2

Now, any of the SAN File System Tivoli Storage Manager clients can perform backup and restore equivalently, using the -asnodename parameter as follows:
dsmc -asnodename=SFS incr /filsystem1

By issuing this command for each fileset from a different Tivoli Storage Manager client, you can distribute the data movement load onto different machines and get the throughput as desired. For planning we recommend setting up schedules so that individual filesets or parts of filesets are backed up by particular Tivoli Storage Manager clients.

398

Get More Out of Your SAN with IBM Tivoli Storage Manager

Now, all the data is stored in Tivoli Storage Manager under a single node name. All clients see the same view of the backed up data (QUERY BACKUP command) and on the server, QUERY FILESPACE, QUERY OCCUPANCY, and similar commands show the data as all owned by the virtual node. Using the single node name makes it easier to back up different filespaces from different Tivoli Storage Manager clients and to change the configuration if necessary. When it comes to restore, you can restore the data from any of the Tivoli Storage Manager clients (that is, you do not need to know which of the clients originally backed up the files). Restriction: The throughput can only be as good as the bandwidth that is available from the user data LUNs. Watch for disk related bottlenecks.

12.4.2 Large amounts of files


If your SAN FIle System environment contains a large number of files (for example, several million), the Tivoli Storage Manager database might be the bottleneck for backup performance and scalability. With a large number of files, the metadata processing overhead becomes increasingly significant compared to the actual data transfer time. In this case, you can improve throughput by having multiple, dedicated Tivoli Storage Manager servers installed preferably on the backup SAN File System clients themselves. Then, each of these machines can backup file systems independently to a dedicated Tivoli Storage Manager database. You can choose whether to have a dedicated tape library attached to each server, or you can use Library Sharing and use a single tape library for all of the servers (Figure 12-8).

Pools User

System

Tape Library

SAN
"Production" SAN FS Clients

SAN FS Clients Tivoli Storage Manager Servers Tivoli Storage Manager Clients Library Sharing

LAN
Figure 12-8 Large amounts of files

In this scenario, because separate Tivoli Storage Manager servers are used, you do need to know which backup server is responsible for which fileset to find the data to restore.

Chapter 12. Backing up SAN File System with Tivoli Storage Manager

399

400

Get More Out of Your SAN with IBM Tivoli Storage Manager

13

Chapter 13.

General troubleshooting
This chapter provides some general guidelines on how to troubleshoot a Tivoli Storage Manager SAN-based environment. It helps you identify the topic or component of an error by following an easy-to-understand flow chart. Additional sources for help are also included. This chapter discusses the following topics: Introduction to troubleshooting Library and SAN troubleshooting Operating system and drivers Troubleshooting library sharing configurations

Copyright IBM Corp. 2005. All rights reserved.

401

13.1 Introduction to troubleshooting


For resolving tape drive or library related problems in your Tivoli Storage Manager installation, follow the steps outlined in the flow chart shown in Figure 13-1 on page 403. Todays SAN environments can be very complex and configurations can vary significantly. Therefore, it is not possible to cover every possible error situation you might encounter. This chapter gives some general guidelines and orientation to figure out which component is the source of the error. The troubleshooting process divides at the very beginning into two different tracks: Tivoli Storage Manager V5.3 environments using the SAN Discovery feature Tivoli Storage Manager environments prior to V5.3, or V5.3 where SAN Discovery is not used So, follow the track that is suitable for your environment and try to resolve the issue or identify the faulty component. Annotations for each step are given in the text. Additional resources for self-help support can be found on the Tivoli Storage Manager support Web site at:
http://www-306.ibm.com/software/sysmgmt/products/support/IBMTivoliStorageManager.html

402

Get More Out of Your SAN with IBM Tivoli Storage Manager

Tape / Library Problems

YES

SANDISCOVERY supported and enabled?

NO

q san 1.1

q path f=d 1.7

Q san shows device?

NO

Path points to the right Device? 1.8 YES

NO

update path 1.6

YES

Library and SAN 1.10 Test Device with mttest / lbtest / tapeutil 1.3

NO

Is correct device driver installed? 1.2

NO OK?

OS and Drivers YES 1.11

Test device with mttest / lbtest / tapeutil 1.3

NO

OK?

YES

YES

Is path online? Powercycle device 1.4 1.5

NO

update path 1.6

OK?

YES

NO

Contact Vendor 1.9

Problem solved

Figure 13-1 General troubleshooting flow chart

Chapter 13. General troubleshooting

403

13.1.1 Step 1.1: QUERY SAN command


Issue the QUERY SAN command at the Tivoli Storage Manager server and examine the output (Example 13-1).
Example 13-1 QUERY SAN tsm: AZOV_1>q san Device Type -------DRIVE LIBRARY DRIVE LIBRARY Vendor -------IBM IBM IBM IBM Product ---------------ULT3580-TD2 ULT3582-TL ULT3580-TD2 ULT3582-TL Serial Number ---------------1110176223 0000013108231000 1110177214 0000013108231000 Device -----------------/dev/rmt0 /dev/smc0 /dev/rmt1 /dev/smc1

tsm: AZOV_1>

The intention is to determine if the drive or changer device can (still) be seen by the Tivoli Storage Manager server. The QUERY SAN command initiates a SAN Discovery and shows any devices that can be seen in the SAN. If the output includes the device you are looking for, then the whole chain of SAN, zoning, and so forth is correct and you do not have to worry about it. If the device is missing or no devices at all appear, go to Library and SAN troubleshooting on page 409. For more information about paths, see Chapter 6, Configuring Storage Devices, Defining Devices and Paths in IBM Tivoli Storage Manager Administrators Guide for your Tivoli Storage Manager server platform.

13.1.2 Step 1.2: Is the correct device driver installed


If there is no device driver installed or if you are not sure, go to 13.3, Operating system and drivers on page 412.

13.1.3 Step 1.3: Test the device


Use the appropriate utility, depending on whether the Tivoli Storage Manager device driver or IBM tape device driver is used for the device in question. In general, IBM tape drives and libraries use the IBM tape device driver, and non-IBM devices use the Tivoli Storage Manager device driver.

Tivoli Storage Manager device driver


When you install the Tivoli Storage Manager device driver fileset, there are two commands you can use for troubleshooting devices that are under the Tivoli Storage Manager tape driver (mt and lb devices): mttest, for testing tape drives lbtest, for testing changer devices These commands are in the following directories: /usr/tivoli/tsm/devices/bin on AIX /opt/tivoli/tsm/devices/bin on other UNIX systems C:\program files\tivoli\tsm\device (for example) on Windows systems

404

Get More Out of Your SAN with IBM Tivoli Storage Manager

IBM tape driver


For IBM tape drives and libraries there is a utility called: tapeutil (AIX, Solaris) ntutil (Windows) IBMtapeutil (Linux), which is the equivalent to mttest/lbtest The usage is similar to either the Tivoli Storage Manager device driver utility or the IBM tape drive utility. You invoke the utility, define the device name on which to operate, open the device, and issue a command (for example, a query to the device). If everything works, the device is ready for use. Example 13-2 queries the element information about AIX /dev/rmt0 with tapeutil.
Example 13-2 tapeutil azov.almaden.ibm.com:/usr/tivoli/tsm/devices/bin# tapeutil 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: 1 Enter the device special file name (Example: /dev/rmt0): /dev/rmt0 Select mode (1=Read/Write, 2=Read Only, 3=Write Only, 4=Append): 1 Opening device... Hit <enter> to continue... Enter Selection for /dev/rmt0: 12 Getting element information... Number of Robots .............. First Robot Address ........... Number of Slots ............... First Slot Address ............ 1 1 22 4096

5. 6. 7. 8.

Inquiry Test Unit Ready Reserve Device Request Sense

9. 10. 11. Q.

Log Sense Page Mode Sense Page Release Device Quit Program

16. 17. 18. 19.

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

Chapter 13. General troubleshooting

405

Number of Import/Exports ...... First Import/Export Address ... Number of Drives .............. First Drive Address ........... Hit <enter> to continue... Enter Selection: q

1 16 2 256

azov.almaden.ibm.com:/usr/tivoli/tsm/devices/bin#

For more information about devices and drivers in Tivoli Storage Manager, see Chapter 5 in the IBM Tivoli Storage Manager Administrators Guide for your Tivoli Storage Manager server platform. For more information about IBM tape driver issues, see IBM SCSI Tape Drive, Medium Changer, and Library Device Drivers, User and Installation Guide, GC35-0154 at:
ftp://ftp.software.ibm.com/storage/devdrvr/Doc/

13.1.4 Step 1.4: Powercycle the device


If there are short outages in the SAN fabric or problems with a faulty cable or GBIC, the device might appear in the operating system but not report to tapeutil or mttest. In this case, the drive has probably hung, but the Fibre Channel interface might still work. To resolve this issue, powercycle (power off and power on) the drive. Either use the management interface of the library to do the powercycle, or if this is not possible, remove the power plug and reinsert. Wait a few minutes for the drive to complete its self-test cycle, and try to test it again. Figure 13-2 shows how to powercycle a drive in an IBM 3584 tape library.

Figure 13-2 Powercycle a drive in a 3584 library

406

Get More Out of Your SAN with IBM Tivoli Storage Manager

For more information about tape libraries see your vendors documentation. For information about IBM tape libraries see:
http://www-1.ibm.com/servers/storage/support/

13.1.5 Step 1.5: Confirm that the path is online


After an error condition has occurred, Tivoli Storage Manager might set a path to a tape drive or library to offline. It then stays offline until it is set manually to online again. To determine if a path is offline, use the Tivoli Storage Manager QUERY PATH command (Example 13-3). The example shows that the path from SENEGAL_STA to DRIVE1 is offline.
Example 13-3 Determine if path is offline tsm: AZOV_1>q path Source Name ----------AZOV_1 AZOV_1 AZOV_1 SENEGAL_STA SENEGAL_STA TONGA_1 TONGA_1 tsm: AZOV_1> Source Type ----------SERVER SERVER SERVER SERVER SERVER SERVER SERVER Destination Name ----------3582 DRIVE1 DRIVE2 DRIVE1 DRIVE2 DRIVE1 DRIVE2 Destination Type ----------LIBRARY DRIVE DRIVE DRIVE DRIVE DRIVE DRIVE On-Line ------Yes Yes Yes No Yes Yes Yes

For more information about paths, see Chapter 6 in the IBM Tivoli Storage Manager Administrators Guide for your Tivoli Storage Manager server platform.

13.1.6 Step 1.6: Update the path


To set a path online, use the UPDATE PATH command, as shown in Example 13-4.
Example 13-4 Update path tsm: AZOV_1>upd path senegal_sta drive1 srct=server destt=drive libr=3582 online =yes ANR1722I A path from SENEGAL_STA to 3582 DRIVE1 has been updated. tsm: AZOV_1>

If for any reason the device name has changed, update the path to point to the right drive (Example 13-5).
Example 13-5 Update path device name tsm: AZOV_1>update path senegal_sta drive1 srct=server destt=drive libr=3582 dev i=mt3.1.1.0 ANR1722I A path from SENEGAL_STA to 3582 DRIVE1 has been updated. tsm: AZOV_1>

For more information about paths, see Chapter 6 in the IBM Tivoli Storage Manager Administrators Guide for your Tivoli Storage Manager server platform.

Chapter 13. General troubleshooting

407

13.1.7 Step 1.7: q path f=d


To determine the device name that Tivoli Storage Manager uses for a tape drive, use the QUERY PATH command with the f=d parameter, as shown in Example 13-6.
Example 13-6 q path to get device name tsm: AZOV_1>q path senegal_sta drive1 f=d Source Name: Source Type: Destination Name: Destination Type: Library: Node Name: Device: External Manager: LUN: Initiator: Directory: On-Line: Last Update by (administrator): Last Update Date/Time: tsm: AZOV_1> SENEGAL_STA SERVER DRIVE1 DRIVE 3582 mt2.0.0.2

0 Yes ADMIN 03/31/05

15:12:28

If there is no path that matches the drive, you need to define one. For more information about paths, see Chapter 6 in the IBM Tivoli Storage Manager Administrators Guide for your Tivoli Storage Manager server platform.

13.1.8 Step 1. 8: Confirm that the path points to the correct device
Device names can change due to SAN reconfigurations. Depending on the platform used, you should use HBA persistent binding to bind the device name to a certain drive, or beginning with Tivoli Storage Manager V5.3, the SAN Discovery feature dynamically keeps track of device changes (see Chapter 9, Tivoli Storage Manager SAN Discovery on page 253). For more information about paths, see Chapter 6 in the IBM Tivoli Storage Manager Administrators Guide for your Tivoli Storage Manager server platform.

13.1.9 Step 1. 9: Contact the vendor


If all else fails, contact the vendor of your tape library, drive, server, SAN switch, or Tivoli Storage Manager software. You can find information about how to contact IBM at:
http://www.ibm.com/planetwide

Note that you need the IBM customer number and any hardware serial numbers to open a problem record.

408

Get More Out of Your SAN with IBM Tivoli Storage Manager

13.2 Library and SAN troubleshooting


Use the flow-chart in Figure 13-3 to resolve library or SAN-related problems.

Is device visible in SAN Nameserver? 2.1 YES Is Zoning correct? 2.3 YES

NO

Check cables Check Switch Port Powercycle Device 2.2

OK? NO

NO

Fix Zoning

Is Server visible in SAN Nameserver? 2.1

NO

Check cables Check Switch Port 2.2 OK? NO Check HBA Drivers and Firmware 2.6

Contact Vendor 2.7

YES

OK? NO Upgrade / Install Drivers and Firmware

NO

OK?

Figure 13-3 Library and SAN flow-chart

Chapter 13. General troubleshooting

409

Additional information for the different steps are given in the sections that follow. When you have finished these steps, go to 13.3, Operating system and drivers on page 412 and continue the process.

13.2.1 Step 2.1: Is the device visible in SAN Nameserver


The starting point in troubleshooting SAN problems is to check whether the device has logged in to the SAN fabric. To determine if the device has properly registered with the fabric nameserver, open the SAN switch management application, and list the nameserver entries. In our example, we use an IBM SAN switch 2005-B32. For Brocade switches, point your Web browser to the management IP address of the switch, and open the nameserver by clicking the icon in the lower left corner. Figure 13-4 shows the nameserver entries.

Figure 13-4 SAN switch nameserver

If a device appears in the list, it means it has properly registered with the SAN switch, and the cabling and physical should be OK. For additional information about SAN switches see the IBM Redbook Implementing an Open IBM SAN, SG24-6116 or your vendors documentation.

13.2.2 Step 2.2: Check cables for drive etc


If a device does not appear in the nameserver list, check the following: Is the drive powered on? Is there a cable connection? Have you used the appropriate cable (Short Wave or Long Wave, multi-mode, mono-mode, and so forth)? Is the switch port enabled? Is the switch port auto-sensing or fixed concerning speed (1 or 2 Gbps) or type (Gx)? Is the GBIC / SFP defective?

410

Get More Out of Your SAN with IBM Tivoli Storage Manager

For more information about configuring or troubleshooting SAN components, see the IBM Redbook Implementing an Open IBM SAN, SG24-6116, or vendor-specific information.

13.2.3 Step 2.3: Is the zoning correct


Many SAN-related problems are caused by incorrectly configured zoning. There are many different constraints regarding different environments, which can depend on: Is there only one server using a tape drive, or are multiple servers accessing a drive (for example, for library sharing or LAN-free)? Is the control path multipathed? Is the data path multipathed? Are there disk and tape devices in the SAN? Are there different servers platform in the SAN? For specific information about zoning see: Designing and Optimizing an IBM Storage Area Network, SG24-6419 IBM TotalStorage: SAN Product, Design, and Optimization Guide, SG24-6384 Implementing IBM Tape in UNIX Systems, SG24-6502 Implementing IBM Tape in Linux and Windows, SG24-6268

13.2.4 Step 2.1: Is the server visible in SAN Nameserver


You can follow the instructions in 13.2.1, Step 2.1: Is the device visible in SAN Nameserver on page 410 for this step.

13.2.5 Step 2.2: Check cables for server etc


You can follow the instructions in 13.2.2, Step 2.2: Check cables for drive etc on page 410 for this step.

13.2.6 Step 2.6: Check HBA drivers and firmware


Due to incompatibilities in HBA drivers and firmware with SAN switch models or firmware, it is often the case that the HBA drivers and firmware have to be updated. It is always recommended to use the highest supported level. To determine supported HBAs and driver and firmware levels for IBM products, see the IBM HBA tool at:
http://knowledge.storage.ibm.com/HBA/HBASearchTool

13.2.7 Step 2.7: Contact the vendor


If all else fails, contact the vendor of your tape library, drive, server, SAN switch, or Tivoli Storage Manager software. You can find information about how to contact IBM at:
http://www.ibm.com/planetwide

Note that you need the IBM customer number and any hardware serial numbers to open a problem record.

Chapter 13. General troubleshooting

411

13.3 Operating system and drivers


Follow the flow-chart in Figure 13-5 to resolve operating system related problems with storage devices.

NO

Is this an IBM device? 3.1

YES

Check TSM Device Driver 3.3

Check IBM Tape Device Driver 3.2

Is the right level installed? YES NO Install / Update Tivoli Storage Manager Device Driver

Is the right level installed?

NO Install / Update IBM Tape Device Driver

Discover New Devices 3.4

Devices visible to OS? 3.5

NO

Reboot Server

YES

OK?

NO

Contact Vendor 3.6

Figure 13-5 Operating system and drivers flow-chart

412

Get More Out of Your SAN with IBM Tivoli Storage Manager

Additional information is discussed in the sections that follow. When you have gathered the relevant information, if the problem still persists, return to the 13.1, Introduction to troubleshooting on page 402 and continue with the steps there.

13.3.1 Step 3.1: Is this an IBM device


For tape and changer device drivers, first determine whether your device is from IBM or from another vendor. Tivoli Storage Manager supports third-party products only through the Tivoli Storage Manager tape device driver. IBM devices are supported only with the IBM tape device driver. For information about your tape drive or library for AIX, HP, Sun, and Windows, see:
http://www-306.ibm.com/software/sysmgmt/products/support/IBM_TSM_Supported_Devices_for_ AIXHPSUNWIN.html

For Linux, see:


http://www-306.ibm.com/software/sysmgmt/products/support/IBM_TSM_Supported_Devices_for_ Linux.html

13.3.2 Step 3.2: Check the Tivoli Storage Manager device driver
The Tivoli Storage Manager tape device driver comes with the Tivoli Storage Manager server software. It is possible that device-related problems are fixed in a higher maintenance or patch level of Tivoli Storage Manager. See Tivoli Storage Manager support for details:
http://www-306.ibm.com/software/sysmgmt/products/support/IBMTivoliStorageManager.html

13.3.3 Step 3.3: Check the IBM tape device driver


You can download the IBM tape device driver from:
ftp://ftp.software.ibm.com/storage/devdrvr

It is always recommended to have the latest supported level installed. For more information about IBM tape driver issues, see the IBM SCSI Tape Drive, Medium Changer, and Library Device Drivers, User and Installation Guide, GC35-0154, at:
ftp://ftp.software.ibm.com/storage/devdrvr/Doc/

13.3.4 Step 3.4: Discover new devices


After changes in the SAN or the library, it might be necessary to scan the SAN in order for the operating system to recognize the new or changed devices. For information about how to scan for new devices, see 9.1, SAN device mapping on page 254 for details.

13.3.5 Step 3.5: Is the device visible to the operating system


It is important that the operating system of the Tivoli Storage Manager server or Storage Agent can see the necessary tape devices.

AIX
On AIX, use the following commands: lsdev -Cc tape for IBM devices (Example 13-7 on page 414) lsdev -Cc adsmtape for Tivoli Storage Manager devices (Example 13-8 on page 414)

Chapter 13. General troubleshooting

413

Example 13-7 List devices on AIX azov.almaden.ibm.com:/# lsdev -Cc tape rmt0 Available 1Z-08-02 IBM 3580 Ultrium rmt1 Available 1D-08-02 IBM 3580 Ultrium smc0 Available 1Z-08-02-PRI IBM 3582 Library smc1 Available 1D-08-02-ALT IBM 3582 Library azov.almaden.ibm.com:/# Tape Drive (FCP) Tape Drive (FCP) Medium Changer (FCP) Medium Changer (FCP)

Example 13-8 List Tivoli Storage Manager devices on AIX (root@poco) /usr/tivoli/tsm/devices/bin>lsdev -Ccadsmtape mt0 Available 1V-08-01 Tape Drive mt1 Available 1V-08-01 Tape Drive mt2 Defined 1V-08-01 Tape Drive mt3 Defined 1V-08-01 Tape Drive (root@poco) /usr/tivoli/tsm/devices/bin>

To determine the serial numbers, use the lscfg command (Example 13-9).
Example 13-9 List serial numbers in AIX azov.almaden.ibm.com:/# lscfg -vpl rmt0 rmt0 U0.1-P2-I4/Q1-W500308C140467003-L0 IBM 3580 Ultrium Tape Drive (FCP) Manufacturer................IBM Machine Type and Model......ULT3580-TD2 Serial Number...............1110176223 Device Specific.(FW)........4772 azov.almaden.ibm.com:/#

To determine the World Wide Names, IDs, and so forth, use the lsattr command (Example 13-10).
Example 13-10 List device attributes in AIX azov.almaden.ibm.com:/# lsattr -El rmt0 alt_pathing no Enable Alternate Pathing Support autoload no Use Autoloading Feature at End-of-Tape block_size 0 Block Size (0=Variable Length) compress yes Use Hardware Compression on Tape debug_trace no Debug Trace Logging Enabled devtype ULT3580Device Type location Location logging no Activate volume information logging lun_id 0x0 Logical Unit Number max_log_size 500 Maximum size of log file (in # of entries) new_name New Logical Name node_name 0x500308c140067003 World Wide Node Name primary_device rmt0 Primary Logical Device retain_reserve no Retain Reservation rew_immediate no Use Immediate Bit in Rewind Commands scsi_id 0x506cc SCSI Target ID space_mode SCSI Backward Space/Forward Space Record Mode trace_logging no Trace Logging Enabled trailer_labels no Trailer Label Processing ww_name 0x500308c140467003 World Wide Port Name azov.almaden.ibm.com:/# True True True True True False True True True True True False False False True True True True True False

414

Get More Out of Your SAN with IBM Tivoli Storage Manager

Linux
On Linux, use the following commands: cat /proc/scsi/IBM* for IBM devices (Example 13-11) autoconf or cat /proc/scsi/scsi for Tivoli Storage Manager devices (Example 13-12)
Example 13-11 List IBM tape devices on Linux tsmwi:/proc/scsi # cat IBM* IBMtape version: 1.5.3 IBMtape major number: 253 Attached Changer Devices: Number Model SN 0 03584L32 0000078185860401 1 03584L32 0000078185860401 IBMtape version: 1.5.3 IBMtape major number: 253 Attached Tape Devices: Number Model SN 0 ULT3580-TD2 1110207447 1 ULT3580-TD2 1110219543 tsmwi:/proc/scsi #

HBA QLogic Fibre Channel 2300 QLogic Fibre Channel 2300

FO Path Primary Alternate

HBA QLogic Fibre Channel 2300 QLogic Fibre Channel 2300

FO Path NA NA

Example 13-12 List Tivoli Storage Manager devices on Linux cadi:/opt/tivoli/tsm/devices/bin # ./autoconf The total numbers of devices on the system are 4. Tivoli Tape Drives: =================== Index Minor Host CHN 000 000 002 000 001 001 002 000 002 002 002 000 003 003 002 000

ID 000 001 002 003

LUN 000 000 000 000

Type 001 001 001 001

Vendor_ID STK STK 00048026 00048026

S/N 331002037903 331000048026 331000048026 331000048026

Product_ID 9840 9840 9840 9840

Rev. 1.34 1.34 1.34 1.34

cadi:/opt/tivoli/tsm/devices/bin # cadi:/proc/scsi # cat scsi Attached devices: Host: scsi2 Channel: 00 Id: 00 Lun: Vendor: STK Model: 9840 Type: Sequential-Access Host: scsi2 Channel: 00 Id: 01 Lun: Vendor: STK Model: 9840 Type: Sequential-Access Host: scsi2 Channel: 00 Id: 02 Lun: Vendor: IBM Model: 03592J1A Type: Sequential-Access Host: scsi2 Channel: 00 Id: 03 Lun: Vendor: IBM Model: 03592J1A Type: Sequential-Access cadi:/proc/scsi #

00 Rev: 1.34 ANSI SCSI revision: 03 00 Rev: 1.34 ANSI SCSI revision: 03 00 Rev: 04E6 ANSI SCSI revision: 03 00 Rev: 04E6 ANSI SCSI revision: 03

Chapter 13. General troubleshooting

415

Windows
On Windows, see Windows Device Manager under Tape Devices or Medium Changers (Figure 13-6), or use tsmdlst in the console subdirectory of the Tivoli Storage Manager installation (Example 13-13).

Figure 13-6 List tape devices on Windows

The output of tsmdlst gives you more information about devices, whether from IBM or any third-party vendor. You can determine the serial numbers and World Wide Names, as well as IDs, LUNs, and so forth.
Example 13-13 List tape devices in WIndows with tsmdlst C:\Program Files\Tivoli\tsm\console>tsmdlst Computer Name: TSM Device Driver: TONGA Not Running (TSM information may not be accurate)

TSM Name ID LUN Bus Port SSN WWN TSM Type D evice Identifier ---------------------------------------------------------------------------------------------------------mt0.0.0.2 0 0 0 2 1110177214 500308C140467006 LTO I BM ULT3580-TD2 4772 lb0.1.0.2 0 1 0 2 0000013108231000500308C140467006 LIBRARY IBM ULT3582-TL 237B mt1.0.0.2 1 0 0 2 1110176223 500308C140467003 LTO I BM ULT3580-TD2 4772 lb1.1.0.2 1 1 0 2 0000013108231000500308C140467003 LIBRARY IBM ULT3582-TL 237B C:\Program Files\Tivoli\tsm\console>

416

Get More Out of Your SAN with IBM Tivoli Storage Manager

Solaris
On Solaris, use the following commands: tapelist for IBM tape devices (Example 13-14) tsmdlst for all devices, IBM and third-party vendor (Example 13-15)
Example 13-14 List IBM devices on Solaris bash-2.03# tapelist IBM Tape Device Information : Instance : 6248 Special File : /dev/rmt/8st Device : 03592J1A Serial Number : 000001300117 TGT/LUN : 54/0 Ucode : 04E6 World Wide NN : 50050763020000C5 World Wide PN : 50050763024000C5 Dev Phy Path : /devices/pci@1f,4000/fibre-channel@2/IBMtape@36,0 Path Type : N/A --- more --Instance Special File Device Serial Number TGT/LUN Ucode World Wide NN World Wide PN Dev Phy Path Path Type : : : : : : : : : : 6254 /dev/rmt/9st 03592J1A 000001300114 55/0 04E6 50050763020000C7 50050763028000C7 /devices/pci@1f,4000/fibre-channel@2/IBMtape@37,0 N/A

--- more --bash-2.03# Example 13-15 List all devices on Solaris bash-2.03# ./tsmdlist IBM TIVOLI STORAGE MANAGER by IBM Device List Utility Program for Sun Solaris Licensed Materials - Property of IBM 5698-ISE (C) Copyright IBM Corporation 2004. All rights reserved. U.S. Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corporation. Inst ---3204 6 3203 Special File ------------/dev/rmt/2mt /dev/rmt/0mt /dev/rmt/1mt Vendor ------STK HP STK Product ------9840 C1537A 9840 Serial -----------331000048026 N/A 331002037903 Target -----9 5 8 LUN --0 0 0 World Wide Name --------------500104f00043eaa7 N/A 500104f00045cb26 Firmware -------1.34 L706 1.34

o Tape drive configuration information has been saved in mtinfo bash-2.03#

Chapter 13. General troubleshooting

417

For more information about IBM tape devices, see: Implementing IBM Tape in UNIX Systems, SG24-6502 Implementing IBM Tape in Linux and Windows, SG24-6268

13.3.6 Step 3.6: Contact the vendor


If all else fails, contact the vendor of your tape library, drive, server, SAN switch, or Tivoli Storage Manager software. You can find information about how to contact IBM at:
http://www.ibm.com/planetwide

Note that you need the IBM customer number and any hardware serial numbers to open a problem record.

13.4 Troubleshooting library sharing configurations


Here are some tips for troubleshooting a library sharing environment.

13.4.1 Re-synchronizing server-to-server communication


When setting up a Library Client, sometimes the shared library definition statement fails, as shown in Example 13-16. Usually this indicates a problem with the server-to-server communication.
Example 13-16 Define shared library failed tsm: SCAMP_1>define library 3494 libtype=shared primarylibmanager=poco_1 ANR2032E DEFINE LIBRARY: Command failed - internal server error detected. ANR9999D ThreadId<36> issued message 2032 from: ANS8001I Return code 4

To solve this problem, you need to synchronize the server-to-server communication. Use the UPDATE SERVER command on both the Library Client (as shown in Example 13-17) and the Library Manager (as shown in Example 13-18).
Example 13-17 Library Client: Synchronize the server-to-server communication tsm: SCAMP_1>upd server POCO_1 FORCESync=yes Do you wish to proceed? (Yes (Y)/No (N)) y ANR1662I Server POCO_1 updated Example 13-18 Library Manager: Synchronize the server-to-server communication tsm: POCO_1>upd server SCAMP_1 FORCESync=yes

Do you wish to proceed? (Yes (Y)/No (N)) y ANR1662I Server SCAMP_1 updated

418

Get More Out of Your SAN with IBM Tivoli Storage Manager

13.4.2 Define library path fails for IBM 3494 Tape Library
When defining a library path for an IBM 3494, you might get an I/O error, as shown in Example 13-19. Check the ibmatl.conf file. The Library Name in this file must be exactly the same as the value in the option DEVICE on the DEFINE PATH statement. In our example, we use the library name 3494c in the ibmatl.conf (as shown in Example 13-20), but we incorrectly tried to define the path with the device=3494b. To fix this problem, rerun the DEFINE PATH command with the correct DEVICE parameter.
Example 13-19 I/O error during the define path command tsm: SCAMP_1>DEFINE PATH scamp_1 3494b SRCTYPE=SERVER DESTTYPE=LIBRARY DEVICE=3494b ANR8418E DEFINE PATH: An I/O error occurred while accessing library 3494B. ANS8001I Return code 15. Example 13-20 Ibmatl.conf file # # (C) COPYRIGHT International Business Machines Corp. 1993, 1998 # 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. # # # This is the file which defines the 3494 libraries and how they are attached. # The format of this file is: # # Library name address identifier <address2> # 3494c 9.11.213.8 scamp

13.4.3 ACSLS volume already locked


After halting the Tivoli Storage Manager server application, removing all volume locks from ACSLS, and restarting the Tivoli Storage Manager server application, the following error message might be received when Tivoli Storage Manager attempts to access volumes in the ACSLS library:
ANR8860W Volume XXXX is already locked by...

The lack of a user ID in the above error message indicates a problem with ACSLS not retaining the user ID information. StorageTek has released fixes PTF760827 for ACSLS 6.0.1 and PUT0203 for ACSLS 6.1 to resolve this problem. Contact StorageTek to obtain these fixes. After the fix has been applied, follow these steps to reinitialize the volume locks: 1. Halt Tivoli Storage Manager server. 2. Clear all volume locks for Tivoli Storage Manager volumes using the ACSLS command clear lock. 3. Start the Tivoli Storage Manager server, ensuring that the ACSQUICKINIT option is set to no in the dsmserv.opt file. If multiple applications, including multiple Tivoli Storage Manager servers, are using the same library, then special care is needed when clearing the ACSLS locks to avoid volume ownership confusion. Contact StorageTek for more information related to the specific steps.
Chapter 13. General troubleshooting

419

Library initialization might take some time if there are many volumes to lock. The library should be ready for operation when you receive the following message in the Tivoli Storage Manager activity log:
ANR8850I ACSLS library <libraryname> is ready for operations.

13.4.4 ACSLS SSI Daemon requires correct name resolution


The Tivoli Storage Manager server uses the SSI background process to communicate with the ACSLS server. On start, the SSI obtains the local host name and then uses the configured name resolution service to obtain the IP address for this host name. Then it creates a socket for this IP address. SSI will not function if this host name is resolved to a non-local or non-existent IP address. Most likely, TCP/IP 68 (EADDRNOTAVAIL) is reported in such a case. To verify that the local host name can be resolved to a correct IP address, issue the nslookup <hostname> command from the UNIX prompt.

13.4.5 Cannot connect to a Windows Tivoli Storage Manager server instance


If we set up more than one Tivoli Storage Manager server instance on a Windows system using the install wizard (as shown in Figure 13-7), in some Tivoli Storage Manager versions, it creates a TCP/IP port conflict.

Figure 13-7 Windows: Add new Tivoli Storage Manager Server

Table 13-1 shows the TCP/IP port assignment after the second Tivoli Storage Manager server installation.
Table 13-1 TCP/IP port assignment after using the Windows wizard Purpose HTTPPort TCPPort TCPADMINPort TSM instance 1 1580 1500 1500 TSM instance 2 1581 1501 1500

In this case, we have to change the TCPADMINPORT option to a different TCP/IP port. Restart the Tivoli Storage Manager server to activate the new port assignment.

420

Get More Out of Your SAN with IBM Tivoli Storage Manager

Appendix A.

Understanding TCP/IP ports for LAN-free in Tivoli Storage Manager


There are several different TCP/IP port settings that might be used when configuring a LAN-free environment. If these settings are not defined properly, it can cause operations such as server-to-server or the running of the Storage Agent to fail. It can also become quite confusing when trying to incorporate all the different TCP/IP port settings. This appendix shows these different TCP/IP port related options and explains how they are used. It documents all these options in one spot, so that you do not have to read the various Tivoli Storage Manager manuals to understand how to use the options.

Copyright IBM Corp. 2005. All rights reserved.

421

Introduction to TCP/IP ports


You might find it necessary to change some TCP/IP ports from their default settings in order to have proper functionality or to avoid port conflicts with other applications. Whatever the case, it is important to understand the interactions that the port settings have with each other. Knowing which port numbers have to match up simplifies the setup. The key to understanding Tivoli Storage Manager TCP/IP ports is in understanding the way they interact. Figure A-1 shows how the TCP/IP ports match up. Note that not all of the ports are set at their default values. The purpose of using the specified port numbers is to show how the ports correlate. The sections that follow break down the different TCP/IP port definitions and their use.

TIVOLI STORAGE MANAGER SERVER


TIVOLI STORAGE MANAGER ADMINISTRATOR

dsmserv.opt
ADMINONCLIENTPORT NO

TCPADMINPort TCPport

1505 1500

STORAGE AGENT
(STA)

Register NodeLLADRESS=1501 (default)

CLIENT

SERVER-TO-SERVER COMMUNICATION OPTIONS SET SERVERLLADDRESS 1500 CROSSDEFINE YES DEFINE SERVER STALLADDRESS=1502

devconfig.out
DEFINE SERVER. LLADDRESS=1500

dsm.opt
TCPCLIENTPort TCPport LANFREETCPport TCPADMINPort 1501 1500 1502 1505 TCPport 1502

dsmsta.opt

Figure A-1 Matching TCPPORT settings

422

Get More Out of Your SAN with IBM Tivoli Storage Manager

TCP/IP port definitions


There are server ports, client ports, and Storage Agent ports. Note: For further details on any of the server options or commands, refer to the IBM Tivoli Storage Manager Administrators Reference for your Tivoli Storage Manager server platform.

Server ports
Server ports include the following: TCPPORT Specifies the TCP/IP port number on which the server TCP/IP communication driver waits for requests for client sessions. The type of sessions include client sessions and other sessions types such as, administrative sessions, server-to-server sessions, SNMP subagent sessions, Storage Agent sessions, Library Client sessions, managed server sessions, and event server sessions. Setting different ports for TCPPORT and TCPADMINPORT allows you to set one set of firewall rules for client sessions and another set of firewall rules for the other types of sessions The default port is 1500. TCPADMINPORT Specifies the TCP/IP port number on which the servers (or Storage Agents) TCP/IP communication driver waits for requests for the other types of client sessions, such as administrative sessions, server-to-server sessions, SNMP subagent sessions, Storage Agent sessions, Library Client sessions, managed server sessions and event server sessions. Setting different ports for TCPPORT and TCPADMINPORT allows you to set one set of firewall rules for client sessions and another set of firewall rules for the other types of sessions. The server option ADMINONCLIENTPORT must be set to NO in the server options file (dsmserv.opt) to use a separate port for TCPADMINPORT. The default is the same port used by the TCPPORT option. SERVERLLADDRESS The SERVERLLADDRESS parameter is part of the SET SERVERLLADDRESS command. This command is necessary when setting up server-to-server communication. It is used to set a low-level address of a server. Tivoli Storage Manager uses this address when you issue the DEFINE SERVER command with the CROSSDEFINE=YES option.This TCP/IP port address should match the TCPPORT setting within the server options file, in most cases. LLADDRESS The LLADDRESS option is a part of the DEFINE SERVER command. The DEFINE SERVER command is used when defining another server, to be used in server-to-server communications. This TCP/IP port address should generally match the TCPPORT server option of the target server. REGISTER NODEs LLADDRESS This option is used when you issue the REGISTER NODE or UPDATE NODE commands. This TCP/IP port address is used whenever the server contacts the client. This option must

Appendix A. Understanding TCP/IP ports for LAN-free in Tivoli Storage Manager

423

match the TCPCLIENTPORT option in the clients option file and is the same port the client has for server prompted sessions. The default is 1501.

Client ports
Client ports include the following: TCPCLIENTPORT The TCPCLIENTPORT option specifies a different TCP/IP port number, for the server to contact the client on, than the TCP/IP port that was used to make the first server contact. It is used when the schedmode option is set to server prompted. This port number should match the LLADDRESS used when registering a node. This option is only valid on Windows clients. The default is 1501. TCPPORT The TCPPORT option is the TCP/IP port address that client communicates with the Tivoli Storage Manager server on. It should match the TCPPORT option in the server options file. The default is 1500. LANFREETCPPORT The LANFREETCPPORT option is the TCP/IP port address used by the Storage Agent and client to communicate between. This option is valid when you specify a LANFREECOMMMETHOD of TCPIP. This option must match the TCPPORT option that is set within the Storage Agents option file. The default is 1500.

Storage Agent ports


The following Storage Agent ports are identical to those that are used on the Tivoli Storage Manager server (see Server ports on page 423): LLADDRESS TCPADMINPORT TCPPORT

424

Get More Out of Your SAN with IBM Tivoli Storage Manager

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 about ordering these publications, see How to get IBM Redbooks on page 426. Note that some of the documents referenced here might be available in softcopy only. Implementing an Open IBM SAN, SG24-6116 Introduction to Storage Area Network, SG24-5470 Designing and Optimizing an IBM Storage Area Network, SG24-6419 IBM TotalStorage: SAN Product, Design, and Optimization Guide, SG24-6384 Implementing IBM Tape in UNIX Systems, SG24-6502 Implementing IBM Tape in Linux and Windows, SG24-6268 IBM Tivoli Storage Manager Implementation Guide, SG24-5416 A Practical Guide to Tivoli SANergy, SG24-6146 IBM Tivoli Storage Manager in a Clustered Environment, SG24-6679

Other publications
These publications are also relevant as further information sources: IBM SCSI Tape Drive, Medium Changer, and Library Device Drivers, User and Installation Guide, GC35-0154 IBM Tivoli Storage Manager for Linux Administrators Guide, GC23-4690 IBM Tivoli Storage Manager for AIX Administrators Guide, GC32-0768 IBM Tivoli Storage Manager for AIX Installation Guide, GC32-1597 IBM TotalStorage Tape Device Drivers Installation and Users Guide, GC35-0154 IBM TotalStorage Enterprise Automated Tape Library (3494) Introduction and Planning Guide, GA32-0448 IBM Tivoli SANergy Administrators Guide, Version 3 Release 2, GC32-0740 IBM TotalStorage Tape Device Drivers Installation and Users Guide, GC35-0154 IBM TotalStorage Enterprise Automated Tape Library (3494) Introduction and Planning Guide, GA32-0448 IBM Tivoli Storage Manager - Data Protection for IBM ESS for mySAP Installation and Users Guide, SC33-8205

Copyright IBM Corp. 2005. All rights reserved.

425

How to get IBM Redbooks


You can search for, view, or download Redbooks, Redpapers, Hints and Tips, draft publications and Additional materials, as well as order hardcopy Redbooks or CD-ROMs, at:
ibm.com/redbooks

Help from IBM


IBM Support and downloads
ibm.com/support

IBM Global Services


ibm.com/services

426

Get More Out of Your SAN with IBM Tivoli Storage Manager

Index
Numerics
3494 AIX setup 96 automated tape library service 104 configuration file 97 configure LMCP instance 98 defatl 98 define in Tivoli Storage Manager 104 device class 124125 device driver 96, 103, 114 error diagnostics 114 ibmatl 109 ibmatl.conf 103, 110, 116 IBMtape 112 install drive 98 Library Manager 94, 96 library sharing 95 Linux device driver 109 Linux setup 109 Linux Tivoli Storage Manager definition 111 lmcpd 96, 110 medium changer 109, 114 private volume 124 remote console 94 scratch tape 124 scratch volume 124 Solaris configuration file 119 Solaris setup 114 Solaris Tivoli Storage Manager definition 117 special files 113, 117 start Windows service 104 tape categories 95 Windows drive installation 104 Windows setup 103 with Tivoli Storage Manager 95 3590 17 3592 17, 95 server 129, 131 Solaris configuration file 146 Solaris setup 142 Tivoli Storage Manager device class 154 Tivoli Storage Manager library sharing 129 Tivoli Storage Manager server options 151 Windows setup 134 ACSLS commands clear lock 419 query acs all 153 query drive 154 query scratch 155 AcsQuickInit 151 ACSSA 153 AcsTimeoutX 151 activity log 32, 35, 89, 125, 156, 251 Administration Center 73 AIX 3494 library sharing 96 ACSLS library sharing 131 alternate tape path support 52 concurrent I/O 294 configuration manager 101, 260 configure SCSI tape device 47 create device 98 delete devices 134 device driver 133 discover TSM devices 133 errpt 376 HACMP 294295, 372373 inittab 131 install STK library control 131 jfslog 299 Korn shell 298 list devices 50, 100, 134, 413 LVM 294 LVM mirroring 372 mkdev 98 mksysb 330 recreate VG 300 recreatevg 300 rescan for devices 50 show device attributes 51 SMIT 48, 96, 133 tapeutil 405 ALMS 12 alternate path 53 alternate path support 52, 64, 72 API 3 application server consolidation 380 Atape 47, 96, 98, 139 alternate path 52 atldd 96 availability 2 average file size 164

A
AcsAccessId 151 ACSDRVID 153 ACSID 153 AcsLockDrive 151 ACSLS 9, 128, 139 ACSDRVID 153 ACSID 153 ACSSA prompt 153 AIX setup 131 library client 129 library control 131, 134, 142 Linux setup 139 locked volumes 419 query drive 154 query volumes 155 Copyright IBM Corp. 2005. All rights reserved.

427

B
barcode 37, 91 BATCHSIZE 271 block size 9 BRTools 294

C
check in tapes 14, 81 checking in tapes 32 checkout tapes 30 client options 164, 191 client options file 164, 235 commands ASSIGN DEFMGMTCLASS 179, 226 AUDIT LIBRARY 37 BACKUP DB 29, 89, 125, 156 BACKUP DEWCONFIG 29 BACKUP VOLHISTORY 29 CHECKIN LIBVOLUME 32, 37, 84, 95, 124, 154 CHECKOUT LIBVOLUME 30 DEFINE COPYGROUP 179 DEFINE DEVCLASS 22, 124125, 154, 156 DEFINE DOMAIN 179, 226 DEFINE DRIVE 31, 124, 153 DEFINE LIBRARY 21, 31, 95, 111, 117, 124125, 153, 155 DEFINE MGMTCLASS 179, 226 DEFINE PATH 31, 104, 111, 117, 124125, 154155, 160, 190 DEFINE POLICYSET 179, 226 DEFINE SERVER 189, 235, 242 DEFINE STGPOOL 221 DELETE VOLHISTORY 2324 DISABLE SESSION 29 ENABLE SESSION 29 LABEL LIBVOLUME 84, 154 PING SERVER 28, 200 QUERY ACTLOG 30 QUERY DEVCLASS 220 QUERY DRIVE 39 QUERY LIBRARY 25, 220 QUERY LIBVOLUMES 22, 25, 31, 33, 126, 155, 157 QUERY MOUNT 3839, 203 QUERY NODE 229 QUERY PATH 190 QUERY SAN 8, 62, 7576, 87 QUERY SERVER 189 QUERY SEVER 235 QUERY STATUS 189, 234 QUERY STGPOOL 221 QUERY VOLHISTORY 23, 25 REGISTER NODE 181, 229 REPLY 84 SCSI RESERVE 21 SET SERVERHLADDRESS 234 SET SERVERLLADDRESS 234 SET SERVERNAME 234 SHOW LANFREE 8 tsmdlst 167168

UPDATE LIBRARY 21 UPDATE LIBVOLUME 24 UPDATE NODE 181, 189, 229, 249 VALIDATE LANFREE 8, 200201 concurrent I/O 294 configuration file 240 congested network 161 consolidation 380 control path failover 15, 45, 50 COPYTHREADS 271

D
data mover 5, 269 data path failover 16, 45 Data Protection for IBM ESS 6 Data Protection for IBM ESS for mySAP. See DP for IBM ESS for mySAP DATAREADPATH 189 DATAWRITEPATH 189 DB2 6, 293 db2admin 294 db2admin 294 define tape drive 31 define tape library 31 device class 78, 88, 124125, 154, 156, 213, 283 FILE 251 maximum file size 215 mount limit 22, 221 shared 219 device configuration 199 device driver 15, 45, 47, 63, 114, 139 Device Manager 416 device names 166 disk-only backup 294 DLL 103 DMP 254 DNS 377 DP for IBM ESS for mySAP 294 backup 330 backup server 295 backup types 329 brarchive 330 brbackup 328329, 331, 376 commands 329 configuration file 326, 328 db_disk category 299 diagnostic commands 376 disk-only backup 343 FlashBack restore 356 HACMP support 373 initRED.fct 326 initSID.fcs 319320 initSID.sap 300, 343 install 319 logging 376 LVM mirroring 372 multiple backup generations 374 offline_mirror NOCOPY backup 331 online INCR backup 343 post restore script 368

428

Get More Out of Your SAN with IBM Tivoli Storage Manager

post-install script 319 PostRestore.sh 368 pre restore script 359 PreRestore.sh 359 problem determination 376 production server 295 profile 300, 319320 restore 356 set passwords 328 SPLIT_OPTIONS 331 splitint 319, 329, 334, 355, 376 storage classes 299 tape backup 294 tdpessora 329, 343, 355356 tracing 376 verify backup status 343, 355 DP for mySAP brbackup 312 configuration files 317 install 302 DS4000 380 dsm.opt 235 dsmadmc 74 dsmserv.opt 255, 423 dsmsta 198, 241242 dsmsta.opt 198199, 240, 242 DVCID 257 dynamic load balancing 52

FlashCopy 6, 294, 296, 334, 346, 382 benefits 294 COPY 294, 330 INCR 294, 297, 330, 343 multiple target sets 374 NOCOPY 294, 330331 online_mirror 318 source volumes 298, 332 target set 373 target volume 328 target volumes 295, 298 flashed volumes 299

G
GBIC 406 global namespace 380, 382

H
HACMP 9, 21, 294295, 372373 HBA 16, 254, 259 HBAAPI 260 HBAs 45 HSM 3

I
IBM device driver 4647, 63, 68, 166, 404, 413 IBM Enterprise Storage Server. See ESS. IBM Tivoli Storage Manager for Space Management 3 IBM TotalStorage Enterprise Automated Tape Library. See 3494. ibmatl 109 ibmatl.conf 97, 110, 116, 419 IBMtape 112 IBMtape.conf 119 IBMtapeconfig 112, 260 IBMtaped 114 IBMtapeutil 113, 405 image backup 268 include statement 164, 166 init.ora 300 initSID.sap 300 inittab 131 installable file system 381 instant copy 6 inventory 37

E
element address 76 ENABLELANFREE 191, 193, 235 ENABLESERVERFREE 285 error diagnostic daemon 67 ESS 6, 294, 380 Copy Services 297298, 377 FlashBack 364 FlashCopy 296 flashed volumes 299 LSS 297298 LUNs 298 LVM mirroring 372 microcode level 297 multiple target sets 374 PPRC 299, 377 SDD 294 source volumes 298, 332 target volume 328 target volumes 294295, 298 extended copy command 267 extended copy functions 5

K
Korn shell 298

F
FAStT 380 file metadata 380 file drive 215, 219 file library 5, 215, 219 FlashBack 331, 364

L
LAN-based backup 4, 162 LAN-free 3 backup 398 client install 235 client options 191, 235 create Storage Agent 184 destination 160

Index

429

disk backup 5 enable 182 enable client 183, 235 enable client data movement 189, 249 flow of control 160 performance 162 planning 159 policy domain 222 port definition 191, 232, 421 ports 424 separate Storage Agent 192 shared memory communications 191, 236 Storage Agent port 184 storage pool 185 tape backup 4, 172 TDP clients 204 LAN-free backup 4 configuration 165 policy domain 174 Storage Agent 165 supported Storage Agent platforms 165 verify 200, 249 LAN-free validation 8 LANFREECOMMMETHOD 191, 193, 201, 235, 424 LANFREESHMPORT 191, 235 LANFREETCPPORT 191, 198, 201, 232, 235, 251, 424 LANFREETCPSERVERADDRESS 9, 172, 191 lbtest 404 LibAttach 134 Library 85 Library Client 7, 418 library control 139 library control path failover 15 library controller 14 library device driver 15 Library Manager 7 configure 74 library medium changer 44 library partitioning 12 library sharing 7, 13, 166, 418 3494 95, 122 ACSLS 130 command differences 37 components 14 configure Library Client 85 disaster recovery 20 failover 9 Library Client 1314, 36 Library Manager 1314, 20, 24, 160 manager and client interactions 40 requirements 19 SCSI 44, 73 library special file 15 license key 274 Linux /etc/modules.conf 64 /proc/scsi/IBMchanger 65 3494 configuration file 110 3494 device driver 109 3494 error diagnostics 114

3494 library sharing 109 ACSLS library sharing 139 alternate path support 64 autoconf 260 check for tape devices 112 configure SCSI tape device 63 configure tape drives 140 define 3494 library 111 ibmatl 109 ibmatl.conf 110 IBMtape 112 IBMtapeconfig 66, 260 IBMtapeutil 66, 405 install library control 139 install tape device driver 139 list modules 140 load modules 140 lsmod 140 modprobe 140 mt.conf 141 reconfigure tape devices 66, 112 SAN Discovery 260 show tape devices 63, 415 tape configuration file 141 tape device attributes 66 tape error diagnostic 67 tape special files 113, 142 YAST 110 LLADDRESS 250, 423 lmcpd 96, 110, 115 logical libraries 12 Logical Volume Storage Agent 268 LSS 298 LTO 44 LVM 294 LVSA 268

M
macro 32 management class 164, 166, 174, 226, 284 Management Console 61 MDC 208, 246, 249 MDS 381 medium changer 103, 114 metadata 380 Metadata server 381 mount retention 91 mttest 404, 406 multiple opens 58 multithreading 162 mySAP 6, 293 backint 296 backup 294, 330 backup logs 351 backup mode 343, 346 begin backup mode 346 brbackup 296, 298, 319, 331, 343 BRTools 294295 disk-only backup 330, 343 end backup mode 347

430

Get More Out of Your SAN with IBM Tivoli Storage Manager

FlashBack restore 356 flashed volumes 299 forward recovery 371, 374 HACMP environments 294 installation 300 LVM mirroring 372 multiple backup generations 374 offline mirror backup 331 online mirror INCR backup 343 prepare for online backup 346 recover database 371 redo log files 299 restore 296, 356 restore logs 363 shutdown database 333 SID 300 splitint 296, 328, 334 start database 334 tablespace files 299

remote console 94 Removable Storage Manager 167 rexec 295, 297 RS-232 96 RSCN 260261 RSM Windows 167

S
SAN 2 availability 2 cable 406, 410 determine device names 166 device discovery 8, 167, 186, 191, 241, 253, 404, 408 device mapping 8, 254 device mapping commands 255 discovery 8, 156, 167, 186, 191, 199, 241, 253, 404, 408 fabric 16 GBIC 406, 410 HBA 16 library sharing 13 multiple path 16 nameserver 410 performance 2 persistent binding 254, 272, 408 query devices 8, 255 scalability 2 SCSI library 44 show devices 87 show Tivoli Storage Manager devices 62 tape library connection 19 Tivoli Storage Manager functions 4 troubleshooting 401 zoning 46, 50, 411 SAN Data Gateway 5, 259, 269 SAN File System administration 381 architecture 381 backup with Tivoli Storage Manager 382 command line interface 382 FlashCopy 382 global namespace 380 LAN-free backup 398 MDS 381 Metadata server 381 SANDISCOVERY 8, 255 SANergy 3, 5 client 208 MDC 208, 246, 249 scalability 2 scratch tape 1314, 24, 40, 83, 95, 124, 218, 221 SCSI 257 reservation 21 reset 21 Solaris tape device driver 71 SCSI tape library 44 SCSI-3 5, 267, 270 SCSI-3 EXTENDED COPY 272 SDD 294 Index

N
NAS 3 Native Without 271 NDMP 3 network 161 NFS 295297 NONBLOCK 271, 283 Now we backup the files with 388 ntutil 405

O
OBF 269 open system connectivity 2 Oracle 6, 293 configuration files 300 init.ora 300 Original Block File 268

P
persistent binding 254, 272, 408 policy domain 174, 222, 226, 243 policy set 226 PPRC 299, 377 primary path 53 private tape 13, 83, 95, 124 ProLE 302 Proxy Node 398

Q
query SAN 255

R
RDAC 254 reclamation 40 recording format 89 Redbooks Web site 426 Contact us xix

431

SDG 5 server consolidation 380 server subsystem interface. See SSI. server-free activity log output 288 data format 283 enable client 285 enable on Tivoli Storage Manager 270 Tivoli Storage Manager requirements 272 server-free backup 5, 267 server-free backup and restore 286 server-free Data Movement 268 server-free data movement 269 server-free restore 289 SERVERHLADDRESS 234 SERVERLLADDRESS 423 server-to-server communication 7, 14, 19, 28, 73, 85, 123124, 150, 155, 182, 230, 234, 418 shared memory 191, 236 shared tape library 7 SID 300 SMIT 48, 96 snapshot 268 SNIA 272 Solaris 3494 configuration file 116 3494 device driver 114 3494 library sharing 114 ACSLS library sharing 142 alternate path support 72 autoconf 147, 261 configure SCSI tape devices 68 configure tape devices 147 display drive information 72 display tape information 149 ibmatl.conf 116 IBMtape.conf 69, 119 install IBMtape 118 install library control 142 library control path failover 72 list tape devices 121, 417 lmcpd 115 mtinfo 149 native tape device driver 71, 120 reload configuration 71 reload driver 121 SAN Discovery 261 special files 117 start lmcpd 117 tape configuration file 69, 119, 146 tape device driver 145 tapelist 72, 122 tapeutil 405 Tivoli Storage Manager 3494 definition 121 view library device 72 view tape device 71 space management 3 special file 45 split mirror 6 SQL 30

SSI 130131, 142, 420 event logger daemon 133 start 133, 144 Storage Agent 34, 7, 160, 240, 268 configure 193, 236 create 184 define 232 determine device names 166 device configuration 199 device configuration file 242 device driver 166 directory 199 dsmsta 198, 241242 dsmsta.opt 240, 242, 251 external 192 failover 9 halt 241242 install location 165 installation 166 LAN-free port 184 LANFREETCPSERVERADDRESS 172 list devices 168 manual start 198, 241 monitor 203 options file 198199, 240, 242, 251 run in foreground 242 SAN Discovery 198199, 242 server communication 199 service 197, 240, 242 start device driver 167 start service 241 stop 241242 storage pool 185 supported platforms 165 tape backup 172 TCP/IP port 201 TCPPORT 198199, 232, 240, 242, 251 tsmdlst 167168, 193 TSMSCSI 167 verify 200 Storage Area Network. See SAN. storage consolidation 380 storage pool 175, 185, 217, 221, 283 scratch volumes 218, 221 StorageTek 128 StorageTek Library Attach 134 StorWatch 273 SVC 380

T
tape categories 95 checkin 14 device driver 15 display contents 252 label 154 labelling 124 private volume 124 scratch volume 124 tape block size 9

432

Get More Out of Your SAN with IBM Tivoli Storage Manager

tape drive allocation 22 alternate path support 72 data path failover 16 define path 185, 262 device driver 63, 133, 135, 139, 166 device name 166 display path 190 dual port 17 element number 76, 257, 405 IBM device driver 46, 404 install 98 install on Solaris 145 Linux special file 142 mount limit 22 mount retention 91 native Solaris driver 120 recording format 89 reset 21 SCSI reservation 21 SCSI reset 21 serial number 125, 257, 263 Solaris configuration file 146 Solaris special files 117 test 404 tape drive special file 15 tape drive status 39 tape labels 81 tape library alternate path 52 alternate path support 64, 72 control path failover 15, 45, 50, 72 data path failover 45 delete volume 22 device driver 45, 63 device name 166 disable access 22 error recovery 52 medium changer 14, 44, 114 mount wait time 84 primary path 53 reset 21 SCSI 44 serial number 256 special file 15, 45, 113 supported by Tivoli Storage Manager 19 test 404 use 18 tape library access 14 tape library initialization 21 tape library partitioning 12 tape library sharing 7, 13 tape mount request 14 tape mounts 38 tapelist 122 tapeutil 405406 target reset 21 target volumes 294295 TCPADMINPORT 420, 423

TCPCLIENTPORT 424 TCPPORT 198199, 201, 232, 240, 251, 423424 TCPSERVERADDRESS 193 TDP for IBM ESS for mySAP backup server 296 brbackup 343 hardware and software requirements 297 production server 296 restore 296 supported disk systems 297 Tivoli SANergy 5 Tivoli Storage Manager 3, 382, 423 3493 library sharing 95 3494 configuration 122 3494 library sharing 122 AcsAccessid 151 AcsLockDrive 151 ACSLS initialization 151 ACSLS interface 142 ACSLS library sharing 129130 ACSLS options 151 ACSLS support 9 ACSLS timeout value 151 AcsQuickInit 151 AcsTimeoutX 151 activity log 30, 32, 35, 89, 125, 156, 251, 288 Administration Center 73 ADMINONCLIENTPORT 423 ample client options file 205 API 302 assign default management class 179 audit library 37 backup database 29, 89, 125, 156 backup device configuration 29 backup mySAP logs 351 backup SAN File System 382 backup volume history 29 barcode 37 BATCHSIZE 271 category numbers 95 check activity log 30 check in tapes 81 check server communication 28, 250 check volume label 37 checkin tapes 14, 32, 95, 124, 154 checkout tapes 30 client 3 client options 164, 191 client options file 164, 204, 235, 251, 285 command line interface 74 commands QUERY LIBVOLUMES 157 configure client 191 configure Library Client 85 configure Library Manager 74 configure SCSI library sharing 73 configure Storage Agent 193, 236 COPYTHREADS 271 create library 86 create new instance 28

Index

433

create Storage Agent 184 data mover 5, 269 database backup 20 DATAWRITEPATH option 189 dedicated Library Manager 24 dedicated tape library 18 default management class 226 define 3494 library 98, 104, 111, 117, 121 define ACSLS library 153 define copygroup 179 define datamover 284 define device class 78, 88, 124125, 154, 156, 283 define drive 153, 257, 283 define LAN-free disk path 249 define library 31, 95, 124125 define management class 179, 226 define path 31, 124, 190, 249, 256, 262, 283, 419 define policy domain 179, 226 define policy set 179, 226 define server 235 define Storage Agent 232 define storage pool 221, 283 define tape drive 31, 124, 257 define tape library 155, 283 define tape path 124125, 154155, 185, 190 delete library volume 22 delete volume history 23, 34 detect element number 257 determine device names 166 device class 78, 88, 124125, 154, 156, 213, 219, 283 device driver 136, 166, 404, 413 device name change 254 device names 166 device serial number 256257 device type 95 disable library access 22 disable sessions 29 display tape contents 252 display tape paths 190 drive allocation 22 drive element address 76 dsm.opt 235, 285 dsmadmc 74 dsmserv.opt 255, 423 element number detection 257 enable LAN-free data movement 182183, 189, 249 enable server-free backup 270 enable server-free data movement 282 enable sessions 29 ENABLELANFREE 191, 193, 235 ENABLESERVERFREE 285 ESS integration 294 Extended Edition 19, 130 failover 9 FILE device class 251 file drive 215, 219 file library 5, 215, 219 FlashCopy backup 6 FlashCopy integration 294

for SANs 167 HACMP failover 9 HSM 3 image backup 268 INCLUDE statements 164, 166 install Storage Agent 166 label tape 124, 154 LAN-based backup 4, 162 LAN-free backup 4 LAN-free client install 235 LAN-free client options 191 LAN-free destination 160 LAN-free disk backup 5, 208 LAN-free planning 159 LAN-free ports 201, 232 LAN-free tape backup 4, 172 LAN-free tasks 160 LANFREECOMMMETHOD 191, 193, 201, 235, 424 LANFREESHMPORT 191, 235 LANFREETCPPORT 191, 193, 198, 201, 232, 235, 251, 424 LANFREETCPSERVERADDRESS 9, 172, 191 lbtest 404 Library Client 7, 1314, 36, 165 library initialization 21 Library Manager 7, 1314, 20, 24, 94, 103, 109, 123, 130, 160, 165 library reset 21 library serial number 256 library sharing 7, 13, 130, 160, 166 library sharing commands 37 library sharing common tasks 20 library sharing failover 9 library sharing interactions 40 library sharing requirements 19 Linux tape configuration file 141 list devices 168 LLADDRESS 201, 250, 423 macro 32 management class 164, 166, 174, 226, 284 Management Console 61 match serial number 257 MAXSCRATCH 218 messages 259 migration 20 mixed device types 95 monitor Storage Agent 203 mount retention 91 mount volume 40, 160 mount wait time 84 mountlimit 22, 213, 221 move Library Manager 27 mttest 404 multithreading 162 mySAP backup 294 NONBLOCK 271 password 318 path to library 31 policy domain 174, 222, 226, 243 policy information 160

434

Get More Out of Your SAN with IBM Tivoli Storage Manager

policy set 226 ports 421 private tape 13, 83, 95, 124 progressive incremental backup 162 Proxy Node 398 proxy node access 398 query activity log 288 query device class 220 query drive 39 query library 220 query library volumes 25, 31, 33 query node 229 query SAN 255 query SAN devices 75, 87 query server 235 query status 234 query storage pool 221 query tape contents 252 query tape mounts 3839, 203, 252 query tape volumes 126 query tapes 155 query volume history 25 reclamation 20, 40 recording format 89 register node 181, 227, 229, 284, 398 release volume 40 reply to mount request 84 restore mySAP logs 363 resynchronize server communication 418 SAN device mapping 8, 254 SAN Discovery 8, 51, 76, 88, 125, 156, 167, 186, 191, 198, 241, 253, 255, 404, 408 SAN Discovery messages 259 SAN functions 4 SAN mapping commands 255 SANDISCOVERY 8, 255 scratch tape 1314, 24, 40, 83, 95, 124, 218, 221 SCSI library sharing configuration 73 SCSI tape library 44 separate Storage Agent 192 server 3, 160, 295, 297, 317 server address 201, 423 server communication options 189 server connectivity 200 server maintenance planning 20 server name 234 server options file 255 server resources 161 server-free backup 5, 267 server-free restore 289 server-to-server communication 7, 14, 19, 28, 73, 85, 123124, 150, 155, 182, 230, 234, 418 set server address 234 set server name 234 shared device class 219 shared memory 191, 236 shared tape library 7 show client backups 399 show device information 6162 show library information 25

show SAN devices 62 show servers 234 show tape mounts 38 show tape volumes 157 snapshot option 268 snapshotroot 390 Solaris tape configuration file 146 split mirror backup 6 SQL 30, 35 SQL commands 23 SSI 130131, 142, 420 SSI start 144 start device driver 167 start SSI daemon 133 Storage Agent 34, 7, 160, 165, 398 Storage Agent command line 203 Storage Agent communication 199 Storage Agent configuration 193 Storage Agent failover 9 Storage Agent monitoring 203 Storage Agent options 198199 Storage Agent options file 240, 242 Storage Agent port 184 Storage Agent SAN Discovery 198 storage pool 175, 185, 217, 221, 283 supported tape libraries 19 tape categories 95, 124 tape device details 149 tape device driver 139 tape drive allocation 22 tape drive recording format 89 tape labels 81 tape library sharing 7 tape mount request 14 tape mount retention 91 tape paths 190 tape serial number 257 TCP/IP ports 421 TCPADMINPORT 420, 423 TCPCLIENTPORT 424 TCPPORT 201, 251, 423424 TCPSERVERADDRESS 193 TDP LAN-free 204 test drives and libraries 404 tested LAN-free disk configurations 208 troubleshooting SAN setups 401 tsmdlist 149 tsmdlst 416 TSMSCSI 166167 update device configuration 263 update device definitions 254 update node 249 verify LAN-free path 200, 249 virtual mount point 391 virtual node 398 volume history 23, 25, 83 volume inventory 37 WORM scratch volumes 95 Tivoli Storage Manager commands ACTIVATE POLICYSET 284

Index

435

ASSIGN DEFMGMTCLASS 179, 226 AUDIT LIBRARY 37 BACKUP DB 29, 89, 125, 156 BACKUP DEVVCONFIG 29 BACKUP VOLHISTORY 29 CHECKIN LIBVOLUME 32, 37, 84, 95, 124, 154 CHECKOUT LIBVOLUME 30 DEFINE COPYGROUP 179, 284 DEFINE DATAMOVER 271, 284 DEFINE DEVCLASS 22, 124125, 154, 156, 283 define device class 219 DEFINE DISK 284 DEFINE DOMAIN 179, 226 DEFINE DRIVE 31, 124, 153, 257, 283 DEFINE LIBRARY 21, 31, 95, 111, 117, 124125, 153, 155, 256, 283 DEFINE MGMTCLASS 179, 226, 284 DEFINE PATH 31, 104, 111, 117, 124125, 154155, 160, 190, 249, 256, 262, 283284, 419 DEFINE POLICYSET 179, 226 DEFINE SERVER 189, 235, 242, 423 DEFINE STGPOOL 221, 283 DELETE VOLHISTORY 2324 DISABLE SESSION 29 ENABLE SESSION 29 GRANT PROXY 398 LABEL LIBVOLUME 84, 124, 154 PING SERVER 28, 200, 250 QUERY ACTLOG 30, 288 QUERY BACKUP 399 QUERY CONTENTS 252 QUERY DEVCLASS 220 QUERY DISKINFO 282 QUERY DRIVE 39 QUERY FILESPACE 399 QUERY LIBRARY 25, 220 QUERY LIBVOLUMES 22, 25, 31, 33, 126, 155 QUERY MOUNT 3839, 203, 252 QUERY NODE 229 QUERY OCCUPANCY 399 QUERY PATH 190, 407 QUERY PROCESS 288 QUERY SAN 8, 62, 7576, 87, 255, 279, 404 QUERY SERVER 189, 235, 250 QUERY STATUS 189, 234, 283 QUERY STGPOOL 221 QUERY VOLHISTORY 23, 25 QUERY VOLUME 252 REGISTER NODE 181, 229, 284, 398 REPLY 84 SCSI RESERVE 21 SET SERVERFREE 270, 282 SET SERVERHLADDRESS 234 SET SERVERLLADDRESS 234 SET SERVERNAME 234 SETOPT 255 SHOW LANFREE 8, 249 tsmdlst 167168 UPDATE LIBRARY 21 UPDATE LIBVOLUME 24

UPDATE NODE 181, 189, 229, 249 UPDATE PATH 407 UPDATE SERVER 418 VALIDATE LANFREE 8, 200201, 249250 Tivoli Storage Manager for SAN 167 Tivoli Storage Manager server options file 423 Tivoli System Automation 372 TotalStorage Productivity Center for Data 164 TPC for Data 164 troubleshooting 401, 418 TSM commands QUERY SAN 255 tsmdlist 149 tsmdlst 193, 416 TSMSCSI 166167 twin-tail configuration 12

U
UNC 246, 249

V
virtual file system 381 virtual mount point 391 virtual node 398 volume history 23, 83 VTS 96

W
Windows 3494 configuration file 103 3494 library sharing 103 ACSLS library sharing 134 automated tape library service 104 configure SCSI tape device 54 device driver 103, 135 Device Manager 61 display tape devices 416 drive special name 62 enable Tivoli Storage Manager device driver 167 IBM tape device driver 58 install 3494 device driver 104 install library control 134 install Tivoli Storage Manager device driver 136 library special name 62 Management Console 138 ntutil 405 SAN device mapping 259 World Wide Name 279 WORM 95 WWN 279 WWNN 254

Y
YAST 110

Z
zoning 46, 50, 411

436

Get More Out of Your SAN with IBM Tivoli Storage Manager

Get More Out of Your SAN with IBM Tivoli Storage Manager

Get More Out of Your SAN with IBM Tivoli Storage Manager
Get More Out of Your SAN with IBM Tivoli Storage Manager

(0.5 spine) 0.475<->0.873 250 <-> 459 pages

Get More Out of Your SAN with IBM Tivoli Storage Manager

Get More Out of Your SAN with IBM Tivoli Storage Manager

Get More Out of Your SAN with IBM Tivoli Storage Manager

Back cover

Get More Out of Your SAN with IBM Tivoli Storage Manager
Provides detailed planning, installation, and configuration scenarios Describes new features for Tivoli Storage Manager V5.3 Includes flowcharts for troubleshooting
Storage Area Networks (SANs) have changed the way that data is moved, stored, and managed, allowing you to access your data faster and more efficiently. IBM Tivoli Storage Manager allows you to exploit your SAN infrastructure to potentially provide increased performance, greater flexibility in configurations, and more efficient use of your hardware resources. This IBM Redbook describes the features of Tivoli Storage Manager, which can be deployed in a SAN. These features include LAN-free backup to tape and disk, tape library sharing, and server-free backup. It also discusses how to use Tivoli Storage Manager with other applications and hardware, such as STK libraries, mySAP, and IBM TotalStorage SAN File System. The emphasis of this information is on showing what can be done, why to do it, and how to do it. This book is written for people who are working for IBM, our clients, vendors, and consulting organizations and who want to understand how Tivoli Storage Manager fits into and enhances a SAN environment, as well as for those wanting detailed assistance in implementing Tivoli Storage Manager using SAN-attached storage.

INTERNATIONAL TECHNICAL SUPPORT ORGANIZATION

BUILDING TECHNICAL INFORMATION BASED ON PRACTICAL EXPERIENCE


IBM Redbooks are developed by the IBM International Technical Support Organization. Experts from IBM, Customers and Partners from around the world create timely technical information based on realistic scenarios. Specific recommendations are provided to help you implement IT solutions more effectively in your environment.

For more information: ibm.com/redbooks


SG24-6687-00 ISBN 0738491004

Вам также может понравиться