Unit 8: Database and Storage Pool Backup and Recovery.

Slides:



Advertisements
Similar presentations
11 BACKING UP AND RESTORING DATA Chapter 4. Chapter 4: BACKING UP AND RESTORING DATA2 CHAPTER OVERVIEW Describe the various types of hardware used to.
Advertisements

FlareCo Ltd ALTER DATABASE AdventureWorks SET PARTNER FORCE_SERVICE_ALLOW_DATA_LOSS Slide 1.
Chapter 12 - Backup and Disaster Recovery1 Ch. 12 – Backups and Disaster Recovery MIS 431 – Created Spring 2006.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 12: Managing and Implementing Backups and Disaster Recovery.
CN2140 Server II Kemtis Kunanuraksapong MSIS with Distinction MCT, MCITP, MCTS, MCDST, MCP, A+
Backup and Recovery (2) Oracle 10g CAP364 1 Hebah ElGibreen.
 Mechanism for restoring a database quickly and accurately after loss or damage  RESPONSIBILITY OF ?????  Recovery facilities: Backup Facilities Backup.
 Mechanism for restoring a database quickly and accurately after loss or damage  RESPONSIBILITY OF ?????  Recovery facilities: Backup Facilities Backup.
Backup and Recovery Part 1.
Chapter 5 Configuring the RMAN Environment. Objectives Show command to see existing settings Configure command to change settings Backing up the controlfile.
Oracle9i Database Administrator: Implementation and Administration
Backup Concepts. Introduction Backup and recovery procedures protect your database against data loss and reconstruct the data, should loss occur. The.
Agenda  Overview  Configuring the database for basic Backup and Recovery  Backing up your database  Restore and Recovery Operations  Managing your.
Maintaining Windows Server 2008 File Services
Module 8 Implementing Backup and Recovery. Module Overview Planning Backup and Recovery Backing Up Exchange Server 2010 Restoring Exchange Server 2010.
Module 12: Planning for and Recovering from Disasters.
IBM TotalStorage ® IBM logo must not be moved, added to, or altered in any way. © 2007 IBM Corporation Break through with IBM TotalStorage Business Continuity.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Windows Server 2003 資料備份與還原 林寶森
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 14: Problem Recovery.
1 Objectives Discuss the Windows Printer Model and how it is implemented in Windows Server 2008 Install the Print Services components of Windows Server.
Backup & Recovery 1.
November 2009 Network Disaster Recovery October 2014.
SQL Server 2008 Implementation and Maintenance Chapter 7: Performing Backups and Restores.
PPOUG, 05-OCT-01 Agenda RMAN Architecture Why Use RMAN? Implementation Decisions RMAN Oracle9i New Features.
Course 6425A Module 9: Implementing an Active Directory Domain Services Maintenance Plan Presentation: 55 minutes Lab: 75 minutes This module helps students.
Business Continuity and Disaster Recovery Chapter 8 Part 2 Pages 914 to 945.
Recovery Manager Overview Target Database Recovery Catalog Database Enterprise Manager Recovery Manager (RMAN) Media Options Server Session.
5 Copyright © 2004, Oracle. All rights reserved. Using Recovery Manager.
Chapter 7 Making Backups with RMAN. Objectives Explain backup sets and image copies RMAN Backup modes’ Types of files backed up Backup destinations Specifying.
Chapter Fourteen Windows XP Professional Fault Tolerance.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Chapter 18: Windows Server 2008 R2 and Active Directory Backup and Maintenance BAI617.
Chapter 9 Scripting RMAN. Background Authors felt that scripting was a topic not covered well Authors wanted to cover both Unix/Linux and Windows environments.
15 Copyright © 2005, Oracle. All rights reserved. Performing Database Backups.
Chapter 8 Implementing Disaster Recovery and High Availability Hands-On Virtual Computing.
Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.
Module 12: Managing Disaster Recovery. Overview Preparing for Disaster Recovery Backing Up Data Scheduling Backup Jobs Restoring Data Configuring Shadow.
Maintaining File Services. Shadow Copies of Shared Folders Automatically retains copies of files on a server from specific points in time Prevents administrators.
DB-2: OpenEdge® Replication: How to get Home in Time … Brian Bowman Sr. Solutions Engineer Sandy Caiado Sr. Solutions Engineer.
Module 9 Planning a Disaster Recovery Solution. Module Overview Planning for Disaster Mitigation Planning Exchange Server Backup Planning Exchange Server.
15 Copyright © 2007, Oracle. All rights reserved. Performing Database Backups.
Module 6 Backup of SQL Server 2008 R2 Databases. Module Overview Backing up Databases and Transaction Logs Managing Database Backups Working with Backup.
7202ICT – Database Administration
Mark A. Magumba Storage Management. What is storage An electronic place where computer may store data and instructions for retrieval The objective of.
11 DISASTER RECOVERY Chapter 13. Chapter 13: DISASTER RECOVERY2 OVERVIEW  Back up server data using the Backup utility and the Ntbackup command  Restore.
1 Week #10Business Continuity Backing Up Data Configuring Shadow Copies Providing Server and Service Availability.
High Availability in DB2 Nishant Sinha
3 Copyright © 2006, Oracle. All rights reserved. Using Recovery Manager.
2 Copyright © 2007, Oracle. All rights reserved. Configuring for Recoverability.
2 Copyright © 2006, Oracle. All rights reserved. Configuring Recovery Manager.
Unit 1: IBM Tivoli Storage Manager 5.1 Overview. 2 Objectives Upon the completion of this unit, you will be able to: Identify the purpose of IBM Tivoli.
Protecting data with ITSM: Tips for an Administrator Presentation By Charles Kaetz
Basic Guide to Computer Backups Eric Moore Computer Users Group of Greeley September 13, 2008.
Local Area Networks, 3rd Edition David A. Stamper
Database recovery contd…
Answer to Summary Questions
Basic Guide to Computer Backups
Integrating Disk into Backup for Faster Restores
Database Administration
Tivoli Storage Manager Product Family
Managing Multi-User Databases
Maintaining Windows Server 2008 File Services
A Technical Overview of Microsoft® SQL Server™ 2005 High Availability Beta 2 Matthew Stephen IT Pro Evangelist (SQL Server)
Acutelearn Technologies Tivoli Storage Manager(TSM) Training Tivoli Storage Manager Basics: Tivoli Storage Manager Overview Tivoli Storage Manager concepts.
Oracle9i Database Administrator: Implementation and Administration
Database Backup and recovery
Performing Database Recovery
Using the Cloud for Backup, Archiving & Disaster Recovery
IBM Tivoli Storage Manager
Presentation transcript:

Unit 8: Database and Storage Pool Backup and Recovery

2 Objectives Upon completion of this unit, you will be able to: Backup and recover the Storage Manager database. Backup and recover the storage pools.

3 TSM Server Backup Facilities TSM SERVER ONSITEONSITE Copy Storage Pools Database Backups Database Rec Log Database Mirror Rec Log Mirror Database Backups Copy Stg Pools OFFSITEOFFSITE

4 TSM Database Backup Objectives Backup without interruption of services. Multiple options to initiate database backup. Disaster recovery support. Restore to most recent state. Restore to a specific point in time. Restore an individual database volume. DB Snapshot backup. System object support.

5 IBM Tivoli Storage Manager Database Backup Types of database backups Full backup Incremental backups (default) Database Out-of Band (Snapshot) backup Full backup when required Database has never been backed up. Maximum incremental backups reached. Database has been extended or reduced. Recovery log mode changed to roll forward (default = normal) full TSM DB Up to 32 Incremental backups "Database backup series"

6 Storage Manager Database Backup – Full Versus Incremental TIMETIME Full only orfull plus incremental 1st backup 2nd backup 3rd backup Full backups take longer to run than incremental backups. Recovery time is faster with full backup only.

7 Database Out-of-Band (Snapshot) Backup Does not interrupt the normal backup series. Can be taken off-site. Normal backup series stays onsite for availability. Is integrated into Disaster Recovery Manager processing as well as volume history processing. TSM Database

8 Storage Manager Database Backup Command BAckup DB DEVclass=devclassname Type=Incremental / Full / DBSnapshot VOLumenames=volname(s) Scratch=Yes/NoWait=No/Yes Storage Manager SERVER DB Vol History Rec Log Devconfig

9 Storage Manager Database Backup Related Commands Query DB Format = Detail Query VOLHistory Pct. Util: xx% Date/Time: 04/22/ :04:01 Max Pct. Util: xx% Volume Type: BACKUPFULL Incremental since last full: x Backup Series: 3 Changed since last backup (MB) xxx Backup Operation: 0 Volume Seq: 1 Device Class: TESTBUDB Volume Name: D:\TSM\SERVER\ DBB DELete VOLHistory TODate=TODAY -7 Type=DBBackup

10 Storage Manager Database Backup and Recovery: Database Recovery Point-in-time recovery Up to 32 Incrementals1 Full Recovery to most current state Up to 32 Incrementals1 Full LOG Roll Forward Single database volume recovery Up to 32 Incrementals1 Full LOG Roll Forward

11 Database Recovery Considerations + Smaller size for recovery log. + No auditing of database required after restore. - Cannot restore to most recent state. - Single database volume cannot be restored. - Auditing of storage pools required after restore. Point-in-time recovery Up to 32 Incrementals1 Full

12 Database Recovery Considerations (cont.) + Database can be restored to most recent state. + No auditing of database and storage pools required after database stored. + Single database volume can be restored. - Larger recovery log. - Mirrored recovery log consumes additional disk space. Roll-forward recovery to most current state Up to 32 Incrementals1 Full LOG Roll Forward Mirroring + Roll-forward = Comprehensive Protection

13 Database Recovery – Restore Command volume history files device configuration TSM database volume history files device configuration Backup volhist Backup devcnfg

14 Restoring the Server Current copies of the following items will enable you to restore your server: volhist.out devcnfg.out dsmserv.opt dsmserv.dsk database backup storage pool backup

15 Database Recovery – Restore Command Examples Restoring a database to its most current state: DSMSERV RESTORE DB Preview=No|Yes Restoring a single database volume to its most current state: DSMSERV RESTORE DB DBVolume=volname Preview=No|Yes Restoring a database to a specific point in time - history file available: DSMSERV RESTORE DB TODate=date TOTime=time Source=DBBackup / DBSnapshot Preview=No|Yes Restoring a database to a specific point in time - history file unavailable: DSMSERV RESTORE DB DEVclass=DEVCLASSNAME VOLumename=volname COMMIT=No|Yes

16 Initiating Database Backup Scheduling backups BACKUP DB command Recommended way to do backups Specifying automatic backups DEFINE DBBACKUPTRIGGER command Based on recovery log threshold Complements the schedule backups Safety valve: Ensures you do not run out of log space Only with roll-forward mode Running manual backups Can be taken at any time

17 DBBACKUPTRIGGER and Log Mode DEFine DBBackuptrigger DEVclass=devclassname LOGFullpct=percentage (50% default) NUMINCremental=number (6 default) Query Status Server Name : TSM. Log Mode : Roll forward. TSM SERVER DB

18 Recommendations Preferred alternative: use roll-forward recovery mode. Complement with database mirroring for 24 hours, 7 days environment. Use recovery log mirroring. Define volume history and device class backup files. Backup database using administrator scheduling facility. Complement with automatic backup trigger. Schedule database backup together with storage pool backup. Store backup volumes off-site. Store backup of DSMSERV.OPT and DSMSERV.DSK off- site.

19 Storage Pool Backup and Recovery Objectives Backup without interruption of service. Restore one volume in a storage pool. Restore a complete storage pool. Disaster recovery support. Automatically switch to duplicate copy if primary file is damaged.

20 Backup of Storage Pool Files Copy storage pool Sequential only Multiple primary pools can use one copy pool Recommended backup entire primary storage pool hierarchy to same copy pool Backup to copy pool Asynchronous from client backup File level granularity Incremental backup of files Initiate backup Manually with command or GUI Automatically with administrative command scheduling Once per primary pool Primary Storage Pool Copy Storage Pool BACKUP STGpool primarypool copypool

21 Backup of Storage Pool Files (cont.) Used to support both media and disaster recovery. Backup initiated for each copy using different copy pool targets. Volumes stored on-site Used for media failure. Files automatically accessed if primary copy damaged. Volumes stored off-site Used for disaster. Files never automatically accessed. Stored together with database backup. ON-site volumesOFF-site volumes Primary Pool Hierarchy Copy Pools

22 Define a Copy Storage Pool Define STG poolname devclassname Pooltype=COPY DESC=description ACCESS=READWRITE COLLOCATE=NO|YES RECLAIM=100% MAXSCRATCH=value (represents % empty) DEF VOLUME poolname volname ON-site volumesOFF-site volumes Copy Pools

23 Backing Up Storage Pool Hierarchy ON-site volumesOFF-site volumes Primary-dsk Copy Pools Primary-tape Backup STGpool primarypool copypool MAXPRocess=1 Preview=NO/YES

24 Handling Off-site Volumes Set access mode to OFFsite Use location NO MOUNT REQUEST UPDate Volume Volname ACCess=Offsite Location=‘Vault’ ON-site volumes Primary-DSK Copy Pools Primary-TAPE OFF- site vo lumes

25 Reclamation of Off-site Volumes ON-site OFF-site Reclamation 100% file A file B file A file B file A..... How? INSTALLINSTALL CUSTOMICUSTOMI From: Focal Point To: Server 011 Software Package FRAGILE Query VOLume UPDate VOLume

26 Restore of Storage Pool Files Copy Pool Storage Pool Damaged FilesDamaged Volumes Damaged volumes within a storage pool FilesVolume

27 Accessing Damaged Files Storage Manager automatically access copy storage pool file if volume is on-site. Run RESTORE storage pool periodically to restore damaged files. Periodically check for damaged file using AUDIT volume. Copy Storage Pool with On-site Volumes Primary Storage Pool File D marked damaged A C B DB A DC

28 Recovering from a Media Loss Use to restore a damaged volume in a primary storage pool. All backed-up files located on damaged volume are restored from copy storage pool. Files remaining on damaged volume after restore Analyze cause for your situation Can delete files using DELETE VOLUME3

29 Restore Volume Command RESTORE Volume volname COPYstgpool=copypool NEWstgpool=newprimarypool MAXPRocess=numprocesses (1) Preview=No/Yes Wait=No|Yes RESTORE Volume VOL2 MAXP=2 Storage Manager SERVER DB VOL1VOL2VOL3 CPYVO1CPYVO2CPYVO3 Primary Storage PoolCopy Storage Pool FILES

30 Recovering from a Major Media Loss Used to restore a damaged volume in a primary storage pool. Only volumes with an access mode of Destroyed are restored. Damaged files on other volumes in primary pool are also restored. Files restored to other volumes in primary storage pool. Files remaining on damaged volume after restore Analyze cause for your situation Can delete files using DELETE VOLUME VOL1 VOL3 VOL2 VOL4 Primary Storage Pool Copy Storage Pool VOL2 and VOL3 are damaged RESTORE STGPOOL poolname

31 Restore Storage Pool Command UPDATE VOLume volumename Access=DESTROYED RESTORE STGpool primarypool COPYstgpool=copypool NEWstgpool=newprimarypool MAXPRocess=numprocesses Preview=No|Yes Wait=No|Yes RESTORE STG PRIMARY Storage Manager SERVER DB Primary Storage PoolCopy Storage Pool FILES VOL1VOL2 VOL3 VOL4 CPYVO1CPYVO2 CPYVO3 CPYVO4

32 Recover Storage Pool Volumes Using Off-site Volumes Determine the copy pool volumes needed to restore. Set the access mode of the copy volumes UNAVAILABLE. Bring the identified volumes to the on-site location. Set the access mode to READO. Restore the destroyed files. Set the access mode of the volumes to OFFSITE. Return the volumes to the off-site location. CHECKLIST

33 Maintaining the Integrity of Files AUDIT VOLUME

34 Backup and Recovery Recommendations Backup entire primary storage pool hierarchy to same copy pools. Consider using at least one copy pool for on-site recovery and one for disaster recovery. Use administrative command scheduling to automate storage pool backups. Backup up database and storage pools together. Backup storage pool first Save the volume history and device configuration file (Send off-site along with the DSMSERV.OPT and DSMSERV.DSK). Consider running AUDIT VOLUME to mark damaged files. Run RESTORE STGPOOL periodically to replace damaged files.

35 Protecting Your Database and Storage Pool Create a copy storage pool. Do a back up of the primary storage pools to the copy storage pool. Do the following daily: Do a back up of the primary storage pools to copy storage pools. Back up the database. Save the volume history file and the device configuration file. Move off-site storage pool volumes, database backup volume history file, and the device configuration file. Consider implementing Disaster Recovery Manager (DRM)

36 Student Exercise

37 Summary You should now be able to: Backup and recover the Storage Manager database. Backup and recover the storage pools.