330 Solving Operational Business Intelligence with InfoSphere Warehouse Advanced Edition
MBKB028I [bluejay07] [4] The utility will build the partition 4 backup image taken at
20120710085844 (type FULL ONLINE DATABASE, device DISK)
MBKB021I [bluejay07] [4] The partition 4 backup image taken at 20120710084707 is
involved in the merge (type FULL ONLINE DATABASE, device DISK)
MBKB010I [bluejay07] MBK merge step end : 09:00:50.544.
MBKB054I MBK run step end : 09:01:06.417.
MBKI441I MBK successfully ended
8.7.5 DB2 Merge Backup with Tivoli Storage Manager
DB2 Merge Backup supports Tivoli Storage Manager (TSM) and DB2 software
integration with TSM. This allows DB2 Merge Backup to interface with TSM when
creating a merged backup image. The merged backup image is written back to
TSM. Your implementation of TSM policy determines the behavior; discuss this
with your TSM administrator.
DB2 Merge Backup locates and stages each backup image required to create
the merged backup on disk before writing back to TSM. To help avoid contention
for tape drives, DB2 Merge Backup accesses the backup images on TSM using
the same pattern in which they were created. This is done in an attempt to avoid
(tape drive) contention on TSM, and assumes that the original backup pattern
took the most efficient approach to resource usage on TSM. This approach also
helps ensure an efficient use of staging area disk storage capacity.
Avoid contention for tape drives by scheduling DB2 Merge Backup tasks at a
separate time to that of other operations, such as incremental backup, that write
to tape.
Note that where TSM volume read and write is not enabled, DB2 Merge Backup
has to stage the new full database backup image to disk before writing back to
tape on TSM. Discuss this configuration with your TSM administrator.
Compressed backup images on TSM must be uncompressed before they can be
merged with the new merged backup.
Example 8-19 on page 331 shows the initial regular full database backup to TSM
and also shows a backup cycle for the week.
Tip: Avoid contention for tape drives when using DB2 Merge Backup in
conjunction with TSM; ensure that no other backup or restore operations are
running at the same time as db2mbk.
Chapter 8. Building a corporate backup and recovery strategy 331
Example 8-19 Creating a merged backup
-- Saturday. Initial Full database backup (which could also be the last merged
backup)
time db2 "backup database CUSTINSDB on all dbpartitionnums online USE TSM "
-- Incremental delta backup. Sunday/Monday/Tuesday/Thursday/Friday.
time db2 "backup database CUSTINSDB on all dbpartitionnums online incremental
delta USE TSM include logs"
-- Incremental backup. Wednesday.
time db2 "backup database CUSTINSDB on all dbpartitionnums online incremental
USE TSM include logs”
-- Merge backup. Saturday
db2mbk -i db2inst1 -f merge_TSM_backup.ctl
Example 8-20 shows the contents of the control file required to create a new
merged online database backup using TSM.
Example 8-20 Control file for merged TSM backup
-- Control file contents
MERGE DATABASE CSTINSDB
OUTPUT USE TSM
Example 8-21 shows the output data from db2mbk when creating the merged
backup for the Example 8-19 scenario.
Example 8-21 Creating merged backup using TSM
MBKM031I DB2 Merge Backup for Linux, UNIX, and Windows 01.01.100(120405) 64 bits
07/10/12 (AIX bluejay06 1 6 00CE23234C00)
----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+---
-9----+----10----+----11----+----12----+----13--
000001 merge database CUSTINSDB
000002 OUTPUT USE TSM
000003
MBKB005I MBK control step start : 09:46:45.653.
MBKB005I [0] MBK control step start : 09:46:45.690.
MBKB006I [0] MBK control step end : 09:48:12.937.
MBKB006I [bluejay07] [1] MBK control step end : 09:47:57.297.
MBKB005I [bluejay07] [2] MBK control step start : 09:47:57.297.
MBKB006I [bluejay07] [2] MBK control step end : 09:49:20.486.
MBKB005I [bluejay07] [3] MBK control step start : 09:49:20.486.
MBKB006I [bluejay07] [3] MBK control step end : 09:50:33.054.
MBKB005I [bluejay07] [4] MBK control step start : 09:50:33.054.
MBKB006I [bluejay07] [4] MBK control step end : 09:51:52.536.
MBKB006I MBK control step end : 09:52:08.409.

Get Solving Operational Business Intelligence with InfoSphere Warehouse Advanced Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.