Continuous Data Protection for DB2

Similar documents
DB2 for z/os System Level Backup Update

DB2 for z/os: [Some] Backup and Recovery Utility Enhancements in V8/9/10

Effective Backups: Selecting the Right Backup Mechanism to Match the Business Requirement

DB2 for z/os: Disaster Recovery for the Rest of Us

Simplify and Improve Database Administration by Leveraging Your Storage System. Ron Haupert Rocket Software

DFSMShsm Fast Replication Technical Guide

IBM DB2 Recovery Expert June 11, 2015

IMS Disaster Recovery Overview

Best Practices for DB2 on z/os Backup and Recovery

TSM for Advanced Copy Services: Today and Tomorrow

Lisa Gundy IBM Corporation. Wednesday, March 12, 2014: 11:00 AM 12:00 PM Session 15077

Improving Microsoft SQL Server Recovery with EMC NetWorker and EMC RecoverPoint

Block-Level Incremental Backup

MySQL Enterprise Backup

Backup and Recovery Solutions for Exadata. Cor Beumer Storage Sales Specialist Oracle Nederland

Backup and Recovery Solutions for Exadata. Ľubomír Vaňo Principal Sales Consultant

EMC Backup and Recovery for Microsoft SQL Server 2008 Enabled by EMC Celerra Unified Storage

An Introduction to z/os DASD Backup and Archiving

IBM Tivoli Storage Manager Version Introduction to Data Protection Solutions IBM

IBM Replication Solutions for Business Continuity Part 1 of 2 TotalStorage Productivity Center for Replication (TPC-R) FlashCopy Manager/PPRC Manager

Agenda. Overview Configuring the database for basic Backup and Recovery Backing up your database Restore and Recovery Operations Managing your backups

Understanding Disk Storage in Tivoli Storage Manager

Oracle 11g Database Administration

DB2 for z/os Backup and Recovery: Basics, Best Practices, and What's New

IBM Tivoli Storage FlashCopy Manager Overview Wolfgang Hitzler Technical Sales IBM Tivoli Storage Management

Backup Solutions with Linux on System z and z/vm. Wilhelm Mild IT Architect IBM Germany mildw@de.ibm.com 2011 IBM Corporation

Big Data Disaster Recovery Performance

Objectif. Participant. Prérequis. Pédagogie. Oracle Database 11g - Administration Workshop II - LVC. 5 Jours [35 Heures]

<Insert Picture Here> RMAN Configuration and Performance Tuning Best Practices

EMC NETWORKER SNAPSHOT MANAGEMENT

Data Protection for Exchange: A Look Under the Hood

SHARE Lunch & Learn #15372

Backup and Recovery. What Backup, Recovery, and Disaster Recovery Mean to Your SQL Anywhere Databases

User Experience: BCPii, FlashCopy and Business Continuity

Tivoli Flashcopy Manager Update and Demonstration

Exploiting the Virtual Tape System for Enhanced Vaulting & Disaster Recovery A White Paper by Rocket Software. Version 2.

Storage System High-Availability & Disaster Recovery Overview [638]

HITACHI DATA SYSTEMS USER GORUP CONFERENCE 2013 MAINFRAME / ZOS WALTER AMSLER, SENIOR DIRECTOR JANUARY 23, 2013

REMOTE BACKUP-WHY SO VITAL?

Oracle Database 11g: Administration Workshop II

The Benefits of Continuous Data Protection (CDP) for IBM i and AIX Environments

Oracle Database 11g: Administration And Backup & Recover

Vodacom Managed Hosted Backups

IBM Storage Management within the Infrastructure Laura Guio Director, WW Storage Software Sales October 20, 2008

Recommendations from DB2 Health Check Studies: Speed of Recovery

Session 1494: IBM Tivoli Storage FlashCopy Manager

Mosaic Technology s IT Director s Series: Exchange Data Management: Why Tape, Disk, and Archiving Fall Short

Alternate Methods of TSM Disaster Recovery: Exploiting Export/Import Functionality

Oracle Database 10g: Backup and Recovery 1-2

Version 5.0. MIMIX ha1 and MIMIX ha Lite for IBM i5/os. Using MIMIX. Published: May 2008 level Copyrights, Trademarks, and Notices

Eloquence Training What s new in Eloquence B.08.00

Data Deduplication in Tivoli Storage Manager. Andrzej Bugowski Spała

How To Manage A Data Warehouse On A Database 2 For Linux And Unix

TECHNOLOGY OVERVIEW INTRONIS CLOUD BACKUP & RECOVERY

DB2 9 for LUW Advanced Database Recovery CL492; 4 days, Instructor-led

D12CBR Oracle Database 12c: Backup and Recovery Workshop NEW

FDR/UPSTREAM INNOVATION Data Processing Providing a Long Line of Solutions

Big Data Storage in the Cloud

How To Choose A Business Continuity Solution

WHITE PAPER. Oracle Backup and Recovery Essentials NFORMATION THAT EVERY ORACLE DATABASE ADMINISTRATOR SHOULD KNOW

Backup and Archiving Explained. White Paper

Virtualization, Business Continuation Plan & Disaster Recovery for EMS -By Ramanj Pamidi San Diego Gas & Electric

SQL-BackTrack the Smart DBA s Power Tool for Backup and Recovery

Application Backup and Restore using Fast Replication Services. Ron Ratcliffe March 13, 2012 Session Number 10973

Overview. Business value

17573: Availability and Time to Data How to Improve Your Resiliency and Meet Your SLAs

Oracle Database Backups and Disaster Autodesk

IBM Tivoli Storage FlashCopy Manager

Business Resilience for the On Demand World Yvette Ray Practice Executive Business Continuity and Resiliency Services

HA / DR Jargon Buster High Availability / Disaster Recovery

Exam : IBM : IBM NEDC Technical Leader. Version : R6.1

Computer Associates BrightStor CA-Vtape Virtual Tape System Software

SQL Server Storage Best Practice Discussion Dell EqualLogic

Running Successful Disaster Recovery Tests

Snapshot Point-in-time Copy in a Flash

Symantec NetBackup 7 Clients and Agents

IMS Disaster Recovery

Backup and Recovery by using SANWatch - Snapshot

Backup Exec Private Cloud Services. Planning and Deployment Guide

SQL SERVER ADVANCED PROTECTION AND FAST RECOVERY WITH DELL EQUALLOGIC AUTO SNAPSHOT MANAGER

SOLUTION BRIEF KEY CONSIDERATIONS FOR BACKUP AND RECOVERY

ROADMAP TO DEFINE A BACKUP STRATEGY FOR SAP APPLICATIONS Helps you to analyze and define a robust backup strategy

Whitepaper: Back Up SAP HANA and SUSE Linux Enterprise Server with SEP sesam. Copyright 2014 SEP

Restore and Recovery Tasks. Copyright 2009, Oracle. All rights reserved.

DBAs having to manage DB2 on multiple platforms will find this information essential.

Configuring Backup Settings. Copyright 2009, Oracle. All rights reserved.

Near-Instant Oracle Cloning with Syncsort AdvancedClient Technologies White Paper

WHITE PAPER. Oracle Backup and Recovery Essentials INFORMATION THAT EVERY ORACLE DATABASE ADMINISTRATOR SHOULD KNOW

Redefining Oracle Database Management

DISASTER RECOVERY BUSINESS CONTINUITY DISASTER AVOIDANCE STRATEGIES

Transcription:

Continuous Data Protection for DB2 zcdp for DB2 April 2010

Agenda IBM Systems and Technology Group Business Continuity Overview Introduction to Continuous Data Protection Overview Types DB2 Solution Fast Replication Overview SMS DFSMShsm Fast Replication Backup Fast Replication Recover 2 zcdp for DB2

Business Continuity Overview Business Continuity Maintaining business operations in the event of an outage with processes and infrastructure that are responsive, highly available and scalable Three key characteristics Recovery Time Objective (RTO) The acceptable amount of time you can afford to be without your data Recovery Point Objective (RPO) The amount of data that can be acceptably recreated Backup Window Objective (BWO) The acceptable amount of time operations can be quiesced to create a copy 3 zcdp for DB2

Business Continuity Overview (continued) Most Business Continuity discussions focus on the Physical Loss perspective Power Outages, Fire, Natural Disasters, etc Much money & resources are spent to ensure high RPO and RTO if such a physical loss should occur 4 zcdp for DB2

Business Continuity Overview (continued) Responsiveness to Logical data loss is sometimes overshadowed Data corruption, User errors, Application errors, Localized data loss, etc - What are your RTO / RPO / BWO for these types of data loss? - Data-mirroring solutions do not help! The corruption is just instantly copied from the local site to the remote site Oops! - Not a question of if it will happen, but rather when it will happen 5 zcdp for DB2

Introduction to Continuous Data Protection Traditional Point-in-Time Backup Taken at specific time or data points Only captures data at the point of the backup Low RPO RTO varies Disk High Tape - Low BWO varies Point-in-Time Copy High Standard I/O Low Wouldn t it be nice to be able to recover to a point right before the data was corrupted? PIT Copy...6 Hours......6 Hours... 6 zcdp for DB2

Introduction to Continuous Data Protection (continued) Continuous Data Protection (CDP): Continuously captures all changes - Journaling combined with Point-in-Time copies Eliminates backup window - High BWO High RPO Generally High RTO - Low from tape PIT Copy...6 Hours......6 Hours... 7 zcdp for DB2

Types of Continuous Data Protection Block Based Capture done at storage level Time-ordered capture of every block write Capturing process does not understand the data Post processing may be required for a data consistent recovery True CDP Application Based Specific application journals every update Recovery is tightly integrated with the application Enables data consistent recovery True CDP File Based Runs on application host (Linux, AIX, Windows, etc) Backup created when file is written to disk Policies can be based on needs of various file types Near CDP 8 zcdp for DB2

zcdp for DB2 Application based CDP for DB2 on System z Joint solution between DFSMS and DB2 Solution based on Point-in-Time (PIT) backups combined with DB2 logging Eliminates need for DB2 Log Suspend Only Object-level creates, extends, renames and deletes are suspended Hundreds of volumes backed up in a matter of minutes Managed tape copies created from PIT copies Recovery at the System or Tablespace level Base Support: DB2 V8, z/os V1R5 (2003) Synergy between Software Group, Storage Software & Storage Hardware Enhanced Support: DB2 9, z/os V1R8, V1R11 & V1R12 9 zcdp for DB2

zcdp for DB2 HSM function that manages Point-in-Time copies Combined with DB2 BACKUP SYSTEM, provides non-disruptive backup and recovery to any point in time for DB2 databases and subsystems (SAP) Application CP Backup Onsite Offsite FlashCopy Dump to Tape Up to 5 copies and 85 Versions Automatic Expiration Multiple Disk Copies Recovery at all levels from either disk or tape! Entire copy pool, individual volumes and Individual data sets 10 zcdp for DB2

FlashCopy FlashCopy is a two-phase Backup Initialization phase: Establishes source->target relationship and immediately returns Copy phase: Tracks are physically copied in the background Source Volume Processing Traditional Copy Application Outage Source Processing Target Processing Source Volume Processing FlashCopy Relationship Established Source Processing Background Copy Target Processing FlashCopy Relationship Terminated 11 zcdp for DB2

FlashCopy Full Copy Source Target Time Source Target Bitmap FlashCopy command issued Relationship established Bitmap created Source immediately available for updates Source Target Bitmap In background, tracks are copied from source to target Bitmap updated as tracks are copied 12 zcdp for DB2

FlashCopy Full Copy (continued) Time Writes Reads Read I/Os Read of source comes directly from source Read of target If the track was already copied, then the I/O is from the target If the track was not copied, then the I/O is from the source Write I/Os to Source If track was already copied, direct write If track was not copied, first copy source track to target, then overwrite source track Source Target When background copy is complete, relationship is withdrawn Multiple concurrent relationships are allowed 13 zcdp for DB2

FlashCopy Options Full Copy Every track on the source volume is copied to the target volume Source volume can be in a relationship with multiple target volumes at the same time Flashback (Recovery) cannot be performed while there are active relationships* All background copies must be complete or withdrawn DFSMShsm QUERY COPYPOOL(cpname) command identifies which volumes have an active background copy V1R12 Fast Reverse Restore enhancement removes this restriction 14 zcdp for DB2

FlashCopy Options (continued) Incremental Copy Initial copy is a Full Copy Creates a persistent relationship Only one persistent relationship per source volume is allowed Additional nonpersistent relationships are allowed Subsequent copies only copy tracks that have changed since the last incremental copy Advantage Background copy does not have to rewrite unchanged data Can complete much quicker than a full background copy 15 zcdp for DB2

FlashCopy Options (continued) No Copy Full background copy is not performed Only changed tracks on source are copied to target volume Target volume is used as a cache to create a dump copy Advantage Target volumes can be shared among multiple copy pools Reduces number of required target volumes Disadvantages Most read I/Os against the target volume will be against the source volume Any read of a track that hasn t changed on the source volume will be done against the source volume V1R12 support disk recovery from NOCOPY Name: DSN$DSNDB0G$DB Versions: 2 Name: PRDATA Type: Pool Name: DSN$DSNDB0G$DB Backup Name: PAYBACK Versions: 2 Name: TEST Versions: 1 Name: XDATA Type: Pool Name: DSN$DSNDB0G$DB Backup Name: PAYBACK Versions: 2 Name: PAYBACK Type: Backup Backup Name: N/A Dump Tape Dump Tape 16 zcdp for DB2

FlashCopy Options in z/os V1R12 Space Efficient Volumes Space Efficient volumes don t take physical space until the space is actually needed Only a fraction of the space is required for target volumes License is required Valid when NOCOPY is the FlashCopy technique 17 zcdp for DB2

FlashCopy Options in z/os V1R12 HSM selects available Space Efficient target volumes when NOCOPY (VERSIONS=0) is selected Application CP Backup Onsite Offsite FlashCopy Dump to Tape Fully Provisioned 1 TByte copy pool needs 1 TByte of copy space Space Efficient Target Volumes 1 TByte copy pool that changes <10% in-between copies only needs 100 GBytes of target space 18 zcdp for DB2

SMS Constructs Copy pool SMS construct Defines which storage groups should be processed collectively for point-intime functions Copy pool backup storage group type Defines which volumes DFSMShsm may select as target volumes for point-intime backup versions Defined via ISMF and Naviquest 19 zcdp for DB2

SMS Enhancements (continued) Name: DSN$DSNDB0G$DB Versions: 2 Name: PRDATA Type: Pool Backup Name: PAYBACK Name: DSN$DSNDB0G$DB Versions: 2 Name: PAYBACK Type: Backup Backup Name: N/A Name: DSN$DSNDB0G$LG Versions: 2 Name: PRLOG Type: Pool Backup Copy Name: Pool PAYBACK Name: DSN$DSNDB0G$DB Versions: 2 DB2 copy pool names: DSN$location_name$DB DSN$location_name$LG 20 zcdp for DB2

SMS Enhancements (continued) New copy pool SMS construct Contains from 1 to 256 storage groups Backup processed at storage group level because it is a track-level function Requires data base data to be separated by storage groups Specifies the number of disk backup copies to maintain 0 85 copies DB2 limit is 50 Minimum of 2 copies is recommended Creation of new copy overwrites existing copy Storage group volumes dynamically retrieved at time of each backup Ensures that every volume is included in the backup copy 21 zcdp for DB2

SMS Enhancements (continued) New copy pool backup storage group type Defines candidate target volumes for DFSMShsm fast replication Cannot be assigned for allocation by SMS ACS selection routines Protects data from being overwritten For each source volume to be copied in a storage group: There must exist enough eligible target volumes in copy pool backup storage group to satisfy the needs of the # of specified backup versions 22 zcdp for DB2

DFSMShsm Support DFSMShsm invokes volume-level fast replication to create backup versions for sets of volumes DFSMShsm manages disk and tape copies Generic term of Fast Replication Multiple Point-in-Time copy functions supported by DFSMSdss FlashCopy SnapShot Any vendor disk that supports these interfaces 23 zcdp for DB2

Preparing for Fast Replication Backup PREPARE option provided to validate environment and reduce elapsed time of actual backup window When PREPARE is specified on FRBACKUP command: For each version > 0, DFSMShsm pre-assigns a target volume to each source volume in every storage group assigned to the copy pool Pairings are maintained in DFSMShsm control data sets The PREPARE function should be performed whenever there is a change in the environment, such as: Volumes are added to a storage group # of backup versions changes Storage groups are added to the copy pool If PREPARE is not performed, target volume selection occurs during backup window 24 zcdp for DB2

Preparing for Fast Replication Backup (continued) Name: DSN$DSNDB0G$DB Versions: 2 Name: PRDATA Type: Pool Backup Name: PAYBACK Name: DSN$DSNDB0G$DB Versions: 2 Name: DSN$DSNDB0G$LG Versions: 2 Name: PRLOG Type: Pool Backup Copy Name: PoolPAYBACK Name: DSN$DSNDB0G$DB Versions: 2 Fast Replication 'PREPARE' Name: PAYBACK Type: Backup Backup Name: N/A Version n Version n+1 25 zcdp for DB2

Creating a Fast Replication Backup DFSMShsm command - FRBACKUP FRBACKUP COPYPOOL(cpname) EXECUTE TOKEN(token) DB2 issues command programmatically via their Utility Command is considered successful only after a fast replication relationship has been established for every source volume If one or more volumes fail: Version is marked as a failure Failed version will be the target of the next FRBACKUP command Version number does NOT increment until successfully created 26 zcdp for DB2

Creating a Fast Replication Backup (continued) Name: DSN$DSNDB0G$DB Versions: 2 Name: PRDATA Type: Pool Backup Name: PAYBACK Name: DSN$DSNDB0G$DB Versions: 2 Name: DSN$DSNDB0G$LG Versions: 2 Name: PRLOG Type: Pool Backup Copy Name: PoolPAYBACK Name: DSN$DSNDB0G$DB Versions: 2 27 zcdp for DB2 Fast Replication 'EXECUTE' Catalog Capture* Name: PAYBACK Type: Backup Backup Name: N/A Version 1, 3, 5,... Version 2, 4, 6,... ML1 ML1 ML1 *V1R11 and higher

Creating a Fast Replication Backup (continued) Versions = 1 to 85 Default is to use FlashCopy Full for each source volume FCINCREMENTAL keyword used to specify a volume set for which FlashCopy Incremental should always be used FCINCREMENTAL only needs to be specified once Each time that volume set is Flashed, an Incremental copy is made Versions = 0 NOCOPY option is used to create FlashCopy Source to Target relationship is Withdrawn after the target volume is dumped to tape Target volumes are available to be used by different copy pools 28 zcdp for DB2

Creating a Fast Replication Backup (continued) Name: DSN$DSNDB0G$DB Versions: 2 Name: PRDATA Type: Pool Backup Name: PAYBACK Name: DSN$DSNDB0G$DB Versions: 2 Name: DSN$DSNDB0G$LG Versions: 2 Fast Replication 'EXECUTE' Name: PAYBACK Type: Backup Backup Name: N/A Incremental Copies Create at Noon Create at Midnight Name: PRLOG Type: Pool Backup Copy Name: PoolPAYBACK Name: DSN$DSNDB0G$DB Versions: 2 Full Copies 29 zcdp for DB2

Query IBM Systems and Technology Group QUERY COPYPOOL indicates background copy percent complete ARC1820I THE FOLLOWING VOLUMES IN COPY POOL CP1, VERSION 003, HAVE AN ACTIVE FLASHCOPY BACKGROUND COPY ARC1820I (CONT.) SGNAME FR-PRIMARY FR-BACKUP PCT-COMP ARC1820I (CONT.) SGRP1 SRC01B TGT01B 70 ARC1820I (CONT.) SGRP1 SRC02B TGT02B 80 30 zcdp for DB2

Fast Replication Backup Tape Support DFSMShsm manages copying FlashCopy target volumes to tape By command, immediately after FlashCopy version is created By command, some time after the FlashCopy version is created During Automatic Dump window Tape copies are Dump copies DFSMSdss Full-volume physical dump Existing DFSMShsm Dump function used to create copies Dump Classes used to define policies Maintain up to 85 versions Up to 5 copies per version 31 zcdp for DB2

Fast Replication Backup Tape Support (continued) Dump Class Example Name: ONSITE Copy that is kept onsite Frequency: 0 Create as often as necessary Retain: 10 Days Keep for ten days Stacking: 10 Max volumes on single tape (Higher level of recovery parallelism) Encryption: Yes Use software encryption on tape Name: OFFSITE Copy that is taken offsite Frequency: 7 Create once a week Retain: NOLIMIT Let the copy roll-off Stacking: 255 255 volumes on single tape Encryption: Yes Recommendation Define new dump classes for fast replication 32 zcdp for DB2

Example Step 1: Version 1 is created with FlashCopy to disk followed by Dumping target volumes to tape. Name: PAYROLL Versions: 2 Fast Replication EXECUTE Name: PAYBACK Type: Backup Version 1 Fast Replication DUMP Dump Tape Version 1 Unused Step 2: Version 2 is created with FlashCopy to disk only. Name: PAYROLL Versions: 2 Fast Replication EXECUTE Name: PAYBACK Type: Backup Version 2 Dump Tape Version 1 Version 1 33 zcdp for DB2

Example (continued) Name: PAYROLL Versions: 2 Name: PAYBACK Type: Backup Fast Replication EXECUTE Version 3 Fast Replication DUMP Dump Tape Version 3 Step 3: Version 3 is created with FlashCopy to disk followed by Dumping target volumes to tape. Version 2 Dump Tape Notice that Version 1 disk copy was overlaid to create Version 3 Version 1 34 zcdp for DB2

Example (continued) Name: PAYROLL Versions: 2 Name: PAYBACK Type: Backup Fast Replication EXECUTE Version n Fast Replication DUMP Dump Tape Version n Step n: Version n is created with FlashCopy to disk followed by Dumping target volumes to tape. There is a dump tape for every other version Version n-1 Dump Tape Version n-2... Dump Tape Version 3 Dump Tape Version 1 35 zcdp for DB2

Fast Replication Backup Tape Support (continued) FRBACKUP COPYPOOL(cpname) DUMP After FlashCopy relationships are successfully established for every source volume, DFSMShsm dumps the target volumes to tape Target volumes are DFSMSdss dump conditioned volumes When dump conditioned volumes are dumped to tape, the tape will look as if the source volume was dumped directly DFSMShsm records will show the dump tape as a dump of the source volume, not the target volume Recovery is done directly back to the source! Incremental FlashCopy Reduces Read I/Os against production volumes for Dump processing For performance reasons, some customers wait until background copy is complete before beginning dump copy of target volumes 36 zcdp for DB2

Fast Replication Backup Tape Support (continued) FRBACKUP COPYPOOL(cpname) DUMPONLY Does NOT establish FlashCopy relationships, ONLY creates a dump copy of an existing disk copy Use this command to Create the dump copy at a time other than when the FlashCopy is created Create additional dump copies Retry failed dump copies only dumps previous failures Default is to dump Generation 0 Most recent disk copy GENERATION(gennum) VERSION(vernum) DATE(date) TOKEN(token) The disk copy must be Valid to issue DUMPONLY against it 37 zcdp for DB2

Fast Replication Backup Tape Support (continued) definition determines if target volumes are dumped during Automatic Dump window Dumps Generation(0) only If Generation(0) disk copy is failed, then copy pool is not dumped volumes are processed before storage groups and nonsms volumes System Affinity can be specified in copy pool definition Dump workload is spread across systems Using Automatic Dump is a good way to create a single daily tape copy when multiple FlashCopies are created throughout the day 38 zcdp for DB2

Fast Replication Backup Tape Support (continued) Backup FRBACKUP FRBACKUP 12 6 am pm 12 pm Backup Day 1 FRBACKUP FRBACKUP 12 6 am pm Backup 6 pm ONSITE OFFSITE Backup AutoDump 10pm Backup FRBACKUP FRBACKUP 12 6 am pm 8 am Backup Day 2 FRBACKUP FRBACKUP 12 6 am pm 12 pm Backup FRBACKUP FRBACKUP 12 6 am pm 6 pm Backup ONSITE AutoDump 10pm 39 zcdp for DB2

Data Integrity Once a dump copy has started, DFSMShsm prevents the target volumes from being overlaid with a new FlashCopy until all volumes have been dumped successfully Overlaying the target volumes in the middle of the dump creates a data integrity exposure. Once the target volumes have been overlaid, it is impossible to complete a dump copy! DFSMShsm prevents these! Withdrawing a background copy while creating a dump copy creates a data integrity exposure DFSMShsm prevents this! 40 zcdp for DB2

Recovering a Fast Replication Backup Target volumes cannot be used as a source volume Dump conditioned volumes DFSMShsm FRRECOV command must be used to recover target disk volume back to the source Data is immediately available after the FlashCopy initialization completes (High RTO!) DB2 fast log apply can begin within minutes FRRECOV COPYPOOL(cpname) VERIFY(Y) Recovers all of the volumes from the named copy pool FRRECOV DSNAME(dsname1, dsname2, ) REPLACE Recovers one or more data sets Prefers disk recovery if both disk and tape are available 41 zcdp for DB2

Recovering a Fast Replication Backup recovery from tape Prior to V1R12, HSM would only recover an entire copy pool from disk DB2 or native DSS had to be used to recover from tape In z/os V1R12 DFSMShsm supports recovery of entire copy pool from tape Made possible with the multitask recovery from dump tape support Fast Replication tape copies are full-volume dump copies that represent the time that FlashCopy disk copy was created Enables solution to be used for Disaster Recovery 42 zcdp for DB2

Recovering a Fast Replication Backup Retry Logic If there is an error recovering one or more volumes X X Recover From Tape Correct the problem Reissue the FRRECOV command DFSMShsm will only process those volumes that previously failed LIST COPYPOOL output indicates if a particular version recovery is resumable X X Recover From Tape RESUME(NO) option to retry all volumes (YES) is the default 43 zcdp for DB2

Space Efficient FlashCopy w/ FRR Application CP Backup Onsite Offsite FlashCopy With Fast Reverse Restore In addition to being able to recover from tape, a disk recovery can be performed! 44 zcdp for DB2

Preserve Mirror Support OA24814 (V1R9) Preserve Mirror Support SPE Remote Pair FlashCopy DS8000 Support Technical Information section of announcement letter ENUS109-119, located at http://www-01.ibm.com/common/ssi FlashCopy to PPRC Primary volume while maintaining Full Duplex Function is RPQ (Request Price Quote)! Fast Reverse Restore cannot be used in this environment Local Site Remote Site Application CP Backup FlashCopy Metro Mirror FlashCopy Dump to Tape PtP VTS 45 zcdp for DB2

Summary IBM solution for Continuous Data Protection Cross-Product synergy Future enhancements will exploit new advanced features of Disk References Casebook: DB2 backup, recovery and cloning for SAP environments https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0b13d2b-0a89-2b10-918b-bc7aff0a1905 z/os Host Topics Issue 16, February 2007 Redbook: DFSMShsm Fast Replication Technical Guide 46 zcdp for DB2

Backup Slides DB2 Utilities for invoking FRBACKUP 47 zcdp for DB2

DB2 System Level Backup DB2 V8 utility: BACKUP SYSTEM Takes system-level copies of data and logs Exploits copy pool construct of z/os V1R5 Prereq: DB2 data sets SMS managed & organized in storage groups Considers complete DB2 database as entity Perfectly suited for SAP No downtime necessary Write log activity is NOT suspended Always "dirty" consistent state established during recovery 48 zcdp for DB2

DB2 System Level Backup BACKUP SYSTEM FULL Copies entire DB subsystem. Two copy pools: "Database" : User data, catalog, directory, assoc. ICF catalogs "Log": Active log, BSDS, associated ICF catalogs Records Recover Based Log Point (RBLP) BACKUP SYSTEM DATA ONLY Copies database copy pool only Compatible with any other DB2 utility 49 zcdp for DB2

DB2 BACKUP SYSTEM FRBACKUP 50 zcdp for DB2

DB2 BACKUP SYSTEM 51 zcdp for DB2

DB2 System Level Restore New DB2 V8 utility: RESTORE SYSTEM Recovers DB2 subsystem to arbitrary PIT Use DFSMShsm FRRECOV command to recover just to PIT backup was created Uses database copy pool Two Phase Process: Restore Phase: Recover database volumes from the last Backup version prior to the recovery point Helpful hint Unallocate catalogs, otherwise recovery of those particular volumes will fail Log Apply Phase: Apply log records to recover database object to the arbitrary PIT Uses Fast Log Apply 52 zcdp for DB2

DB2 RESTORE SYSTEM 1 Identify Recovery Point Name: DB2BKUP Type: Backup Version n Fast Replication Recover Name: DSN$DSNDB0G$DB Name: DB2DATA Apply Log 2 Recover appropriate PIT copy (May be from disk or tape. Disk provides low RTO while tape will be a higher RTO). 3 Apply log records up to Recovery Point 53 zcdp for DB2

DB2 RESTORE SYSTEM TOKEN RBA1 COPY COPY1 DFSMShsm BSDS COPY1 RBA1 COPY2 RBAh RBAh RBAn COPY2 COPY3 'copy target' SG1 'copy target' SG2 COPY3 RBAn SYSPITR=RBAk COPY1 COPY2 COPY3 LOG1 LOG2 RBAh is returned FRRECOV COPYPOOL(DSN$DSNDB0G$DB') token(rbah) SYSPITR=RBAk u1 u2 u3 u4 u5 u6 u7 u8 u9 u10 u11 RBLP: RBA1 RBLP: RBAh Log Apply RBAk RBLP: RBAn RESTORE SYSTEM DB2 DBs Log Scan 54 zcdp for DB2

DB2 9 Enhancements RESTORE utility recovers individual tablespaces from system-level backups Recover to arbitrary PIT Reduced need for image copies RESTORE SYSTEM supports backups on tape Uses most recent backup before PIT target point May reside on disk or tape Default is to recover from disk New options to control restore FROMDUMP: only consider backups on tape TAPEUNITS: maximum number of tape drives to allocate 55 zcdp for DB2