EMC® Avamar® 7.4 and Service Packs for IBM DB2
Total Page:16
File Type:pdf, Size:1020Kb
EMC® Avamar® 7.4 and Service Packs for IBM DB2 User Guide 302-003-182 REV 02 Copyright © 2001-2017 EMC Corporation All rights reserved. Published March 2017 Dell believes the information in this publication is accurate as of its publication date. The information is subject to change without notice. THE INFORMATION IN THIS PUBLICATION IS PROVIDED “AS-IS.“ DELL MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WITH RESPECT TO THE INFORMATION IN THIS PUBLICATION, AND SPECIFICALLY DISCLAIMS IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. USE, COPYING, AND DISTRIBUTION OF ANY DELL SOFTWARE DESCRIBED IN THIS PUBLICATION REQUIRES AN APPLICABLE SOFTWARE LICENSE. Dell, EMC, and other trademarks are trademarks of Dell Inc. or its subsidiaries. Other trademarks may be the property of their respective owners. Published in the USA. EMC Corporation Hopkinton, Massachusetts 01748-9103 1-508-435-1000 In North America 1-866-464-7381 www.EMC.com 2 EMC Avamar 7.4 and Service Packs for IBM DB2 User Guide CONTENTS Figures 7 Tables 9 Preface 11 Chapter 1 Introduction 15 Architecture................................................................................................16 Data Domain system support..........................................................16 Multiple DB2 versions on a single host............................................17 DPF support................................................................................... 17 Log files..........................................................................................17 Backup........................................................................................................ 17 Backup types..................................................................................17 Data deduplication optimization..................................................... 18 Restore and recovery..................................................................................18 Redirected restores........................................................................19 Table space restore and recovery from Avamar Administrator....... 19 Concurrent backups and restores...............................................................20 DB2 CLP support........................................................................................20 Database Partition Feature (DPF) backup and restore............................... 20 DPF backup................................................................................... 20 DPF restore and recovery.............................................................. 21 DB2 HADR backup and restore................................................................... 21 Archived log backup and restore.................................................................22 Multi-streaming.......................................................................................... 22 Chapter 2 Installation 23 Preparing to install the Avamar Plug-in for DB2......................................... 24 System requirements.....................................................................24 DB2 server requirements............................................................... 24 Downloading the software............................................................. 24 Installing the Avamar file system client..........................................25 Installing, upgrading, and uninstalling on HP-UX........................................ 25 Installing the Avamar Plug-in for DB2 on HP-UX........................... 25 Upgrading the Avamar Plug-in for DB2 on HP-UX......................... 26 Uninstalling the Avamar Plug-in for DB2 on HP-UX....................... 26 Installing, upgrading, and uninstalling on IBM AIX....................................... 27 Installing the Avamar Plug-in for DB2 on IBM AIX..........................27 Upgrading the Avamar Plug-in for DB2 on IBM AIX....................... 27 Uninstalling the Avamar Plug-in for DB2 on IBM AIX..................... 28 Installing, upgrading, and uninstalling on Linux........................................... 29 Installing the Avamar Plug-in for DB2 on Linux.............................. 29 Upgrading the Avamar Plug-in for DB2 on Linux............................30 Uninstalling the Avamar Plug-in for DB2 on Linux.......................... 31 Installing, upgrading, and uninstalling on Solaris..........................................31 EMC Avamar 7.4 and Service Packs for IBM DB2 User Guide 3 CONTENTS Installing the Avamar Plug-in for DB2 on Solaris............................ 32 Upgrading the Avamar Plug-in for DB2 on Solaris..........................33 Uninstalling the Avamar Plug-in for DB2 on Solaris........................33 Installing, upgrading, and uninstalling on Windows..................................... 34 Installing the Avamar Plug-in for DB2 on Windows........................ 34 Upgrading the Avamar Plug-in for DB2 on Windows......................35 Uninstalling the Avamar Plug-in for DB2 on Windows....................36 Chapter 3 Backup 37 Preparing the database for backup.............................................................38 Configuring automatic backups for DB2 transaction logs.............. 38 Creating the Avamar Plug-in for DB2 flag file................................ 38 Performing offline backups............................................................39 Performing online backups............................................................ 39 Performing on-demand backups.................................................................40 Scheduling backups....................................................................................42 Creating a dataset......................................................................... 42 Creating a group............................................................................45 Enabling scheduled backups.......................................................... 46 Monitoring backups.................................................................................... 47 Canceling backups......................................................................................47 Chapter 4 Restore and Recovery 49 Backup naming conventions....................................................................... 50 Backup labels and image names for a database backup................. 50 Backup labels and image names for log backups............................ 51 Restoring DB2 databases to the original location........................................ 51 Restoring offline backups...............................................................51 Restoring online backups that include archive logs........................54 Restoring online backups that do not include archive logs............. 57 Restoring only the archive logs......................................................59 Recovering a database................................................................... 61 Restoring DB2 databases to a different client............................................ 63 Setting flags for automatic storage databases...............................63 Rollforward after a redirected restore to a different host..............63 Restoring the database to a different client...................................64 Rolling the database forward......................................................... 68 Restoring table spaces in a stand-alone DB2 environment......................... 68 Recovering retired clients...........................................................................72 Disaster recovery........................................................................................74 Recovering the DB2 application..................................................... 74 Recovering the DB2 server............................................................ 75 Monitoring restores.................................................................................... 75 Canceling restores......................................................................................75 Chapter 5 High Availability and Clustering Solutions 77 Database Partition Feature (DPF) backup and restore............................... 78 Preparing for DPF backups............................................................ 78 Restoring and recovering DPF....................................................... 79 DB2 High Availability Disaster Recovery (HADR) backup and recovery......89 Preparing for HADR backups.........................................................89 Starting and stopping the Avamar client for DB2 HADR and changing HADR roles..................................................................... 91 HADR backups...............................................................................92 4 EMC Avamar 7.4 and Service Packs for IBM DB2 User Guide CONTENTS HADR restore and recovery...........................................................93 Removing the DB2 HADR client from Microsoft Windows............. 94 Removing the DB2 HADR client from UNIX and Linux................... 95 Chapter 6 Backup and Restore with DB2 CLP 97 Using DB2 CLP for backups and restores................................................... 98 Backup label and image names...................................................... 99 Avamar Plug-in for DB2 flag file configuration...............................99 Specifying DB2 vendor parameters............................................... 99 Using the Load command with the Copy Yes option.....................100 Backing up databases