Performing DB2 HADR Restores

You can perform an out-of-place restore for DB2 HADR scenarios.

Note: The destination target database path (Restore Options dialog box, General tab, Target Database path) and the destination storage path (Advanced Restore Options dialog box, Storage Path tab, Paths) must match the values that you used on the source.

Before You Begin

  • Configure the standby database to be in roll-forward pending state.

    On the standby database, edit the /etc/CommVaultRegistry/Galaxy/Instance001/Db2Agent/.properties file and add the following line, substituting the Db2_instance_name parameter with the standby instance name and the STANDBY_DB_NAME parameter with the standby database name.

    Note: The Db2_instance_name parameter must be in lower case and the STANDBY_DB_NAME parameter must be in upper case.

    <Db2_instance_name>_<STANDBY_DB_NAME>_sDb2RFPendingReqd Y

Procedure

  1. From the CommCell Browser, navigate to Client Computers > client > DB2 > instance.

  2. Right-click the backup_set, point to All Tasks and then click Browse and Restore.

    The Browse and Restore dialog box appears.

  3. On the Time Range tab, select Latest Backup and click View Content.

  4. Select the databases to restore and click Recover All Selected.

    The Restore Options dialog box appears.

  5. On the Recover Database tab, clear the Recover DB check box.

  6. On the Restore Arguments tab, in the Backup Images area, choose an option for selecting backup images:

    • To let the Commvault software select the latest backup images or the latest point-in-time backup images, based on the choice you made on the Time Range tab on the Browse and Restore dialog box, choose Auto Pick Backup Images.

    • To manually select a cycle of backup images, choose Select Backup Images. Select the images from the Available Images box, and then click > to move the selected images to the Selection box.

  7. On the General tab, specify the destination information.

    1. From the Destination Computer list, select the standby database server client.

    2. From the Destination Instance list, select the standby database instance name.

    3. In the Target Database Name box, type the standby database name.

    4. In the Target Database path, type the location of the standby database.

  8. Click Advanced.

    The Advanced Restore Options dialog box is displayed.

  9. Specify the storage path if you have an automatic database, or the redirect information if you have a non-automatic database:

  10. Database Type

    Procedure

    Automatic or Mixed Databases

    Note

    DB2 storage paths are displayed only if there are GUI backup jobs that have run for this database. You won't see storage paths displayed for third-party command line backup jobs.

    To specify the storage path, on the Storage Paths tab:

    1. Select the Redirect storage groups check box.

      The DB2 storage groups appear.

    2. From the Storage group box, select the DB2 storage group to view the existing path on the source database.

    3. In the Path box, select the path on the DB2 storage device.

      • To change a path for this storage group, click it, then click Edit. Type the changes to the path.

      • To add a path for this storage group, click Add, and then type the path.

    Non-Automatic Databases

    On the Redirect tab:

    1. Select the Redirect All Table Spaces/Database to check box

    2. Enter the path to redirect the tablespaces and database.

      Note

      The path must contain 'SQL0001.

  11. Click OK to close the Advanced Restore Options dialog box.

  12. Click OK to close the Restore Options dialog box.

Loading...