Dell EMC IBM DB2 Database Agent · devices which are encapsulated Data Domain vDisk devices. When the DB2 admin triggers a backup the following occurs: Database agent tells DB2 database
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Backup and restore IBM DB2 environments with Dell EMC DB2 database agent. The database agent integrates directly into DB2 ACS to create snapshot based backups from primary storage to protection storage.
1. Enable vdisk and boost protocols in Data Domain. VDisk is a scsi protocol that allows Data Domain to create vDisk devices to store the DB2 database files being backed up in their native format which allows for faster restores.
a. Example: vdisk enable b. Example: ddboost enable
2. In Data Domain create a user for the vDisk Pool and Storage Unit the DB2 admin will be backing up to. a. Example: user add db2boost
3. Create a Storage Unit with a user assigned. The storage-unit is where logs and catalogs are stored. a. Example: ddboost storage-unit create db2boost user db2boost
4. Create a Data Domain vDisk Pool with same user as the Data Domain Storage Unit. The vDisk Pool is where the database files are stored as static images.
a. Example: vdisk pool create db2_vmax user db2boost
5. Create access group so the Data Domain FC HBA ports can see the VMAX DX ports a. Example: scsitarget group create vmax0312_dd5659 service vdisk b. Example: scsitarget group add vmax0312_dd5659 add <dx port initiators> c. Run this command in SYMCLIto discover what the DX port initiators are: symsan –sid <> list –sanports –
dx all –port all 6. In eCDM create a Protection Plan to automate the rest of the storage configuration for ProtectPoint. The steps
that will be automated are the following: a. Creation of vDisk device groups for backup and restore purposes b. Creation of vDisk devices that match in geometric size to the production LUNs being backed up in both
the restore and backup vdisk device group c. Adding the vDisk devices to the access group d. Encapsulation of the backup and restore vDisks on the VMAX FTS devices e. The establishment and link between the production devices and the backup encapsulated devices f. Placement of the encapsulated restore devices (vDisk restore devices) in a restore Storage Group on
VMAX 7. In eCDM create a Protection Plan like below. Make sure active protection is unchecked and provisioning is
checked. a. Set the credentials of the Data Domain Pool in eCDM, so eCDM can access the pool.
c. Tag the Data Domain pool (db2_vmax) and VMAX Storage Group (db2_bl) with the same tag, so eCDM knows where to create the vDisk devices on DD and the encapsulated devices on VMAX
d. Assign the Protection Plan created to VMAX Storage Group db2_bl by clicking the shield icon on the far right of the storage group
8. Validate the automated steps eCDM created on Data Domain either in the eCDM Activity Monitor in the UI or manually by doing the following:
a. eCDM created backup (eCDM_P1492118895679-db2_bl) device group and restore (eCDM_R1492118905188-db2_bl) device group
b. eCDM created 11 vDisk devices in both the restore and backup vDisk device-group that match in geometric size to the production db2 LUNs
This section will go over step by step the setup of XtremIO and Data Domain, so ProtectPoint DB2 database agent
backups and restore work successfully. At a glance we are manually doing the following steps, and using eCDM to
automate the rest as you can see in Table 1:
Table 2
1. Enable vdisk and boost protocols in Data Domain. VDisk is a scsi protocol that allows Data Domain to create
vDisk devices to store the DB2 database files being backed up in their native format which allows for faster restores.
a. Example: vdisk enable b. Example: ddboost enable
2. In Data Domain create a user for the vDisk Pool and Storage Unit the DB2 admin will be backing up to. a. Example: user add ppuser
3. Create a Storage Unit with a user assigned. The storage-unit is where logs and catalogs are stored. a. Example: ddboost storage-unit create db2boost user ppuser
4. Create a two Data Domain vDisk Pools with same user as the Data Domain Storage Unit. One pool is for the backups and the other pool is for the restore. The vDisk Pool is where the database files are stored as static images.
a. Example backup pool: vdisk pool create bl_xio_backup_ecdm user ppuser b. Example restore pool: vdisk pool create bl_xio_restore_ecdm user ppuser
Operation ProtectPoint eCDM 1.1
Install SAN connectivity, configure VMAX DX ports, zoning Manual Manual
Create user Manual Manual
Create DDBoost storage unit Manual Manual
Create DD vDisk Pool(s) Manual Manual
Create vDisk Devices of same geometry and size as primary LUNs Manual Automated
Create vDisk device group for backup and restore Manual Automated
Create access group and add initiators to group Manual Manual
Add devices to access group Manual Automated
Encapsulate the vDisk Devices to VMAX FTS devices Manual Automated
Establish and Link devices on VMAX Manual Automated
Register Data Domain, XtremIO, DD vDisk Pools, and XtremIO in
8. In eCDM create a Protection Plan to automate the rest of the storage configuration for ProtectPoint Technology. The steps that will be automated are the following:
a. Creation of vDisk device groups for backup and restore purposes b. Creation of vDisk devices that match in geometric size to the production LUNs being backed up in both
the restore and backup vdisk device group c. Adding the vDisk devices to the access group d. A Consistency Group in RecoverPoint with the XtremIO DB2 LUNs that were mapped to RecoverPoint.
9. In eCDM create a Protection Plan like below. Make sure active protection is unchecked and provisioning is checked.
a. Set the credentials of the Data Domain Pool in eCDM, so eCDM can access the pool.
b. Set the credentials of the Data Domain Pools (bl_xio158_backup_ecdm and bl_xio158_restore_ecdm) in eCDM, so it can create the vDisk devices and vDisk device groups.
c. Tag the Data Domain pools ((bl_xio158_backup_ecdm and bl_xio158_restore_ecdm) and XtremIO Consistency Group (bl_eCDM) with the same tag, so eCDM knows where to create the vDisk devices on Data Domain.
d. Assign the Protection Plan created to XtremIO Consistency Group bl_ecdm by clicking the shield icon on the far right of the storage group
Performing the registration of the device host '10.99.213.101' for DD
Boost user 'db2boost'.
Enter password:
Confirm password:
Logging in to the device host '10.99.213.101' with DD Boost
credentials.
Logging in to the device host '10.99.213.101' with DD Boost
credentials was successful.
Performing the registration of the device host '10.99.213.101' for DD
VDISK user 'ppuser'.
Enter password:
Confirm password:
Logging in to the device host '10.99.213.101' with DD VDISK
credentials.
Logging in to the device host '10.99.213.101' with DD VDISK
credentials was successful.
Lockbox directory is '/opt/dpsapps/common/lockbox'.
Device host '10.99.213.101' for DD Boost user 'db2boost' has been
registered in the lockbox.
Device host '10.99.213.101' for DD VDISK user 'ppuser' has been
registered in the lockbox.
6. Now setup DB2 backup utility parameters, VENDOROPT and LOGARCHOPT. a. As an example for this Database called PLUTO using the configuration file called db2inst1.cfg found in
/home/db2inst1/config. i. Make sure to include the “@” and run with the db2 userid.
db2 update db cfg for PLUTO using vendoropt @/home/db2inst1/db2.cfg
7. Ensure that VENDOROPT has been set by running:
db2 get db cfg for PLUTO | grep VENDOROPT
db2inst1@db2-01:~> db2 get db cfg for PLUTO | grep VENDOR