When a database host is damaged or destroyed, you can restore the database to a new host.
The Commvault software waits 2 minutes for the IntelliSnap operation to complete. If the job does not complete when this time expires, the Commvault software marks the job as failed and brings the database out of the quiesced state. You can set this to a higher value to allow more time for the job to complete. For more information, see Configuring the time the Commvault Software Waits for the IntelliSnap Operation.
Note
When you restore a backup to a new host, if the target DB2 database does not exist, then the Commvault software creates it.
Before You Begin
-
Create and configure a DB2 instance on the CommCell Console at the source and destination clients.
-
Verify the following requirements:
-
The operating system on the destination client is the same as the operating system on the source client.
-
The DB2 application on the destination client is the same version or a later version of the DB2 application on the source client.
-
The DB2 user has sufficient rights to restore the database.
-
The number of storage paths on the destination must be equal to or less than the number of storage paths on the source, because the Commvault software provides a source to destination mapping to restore and relocate.
-
The user and group IDs on the source and destination are the same.
-
-
On Windows computers, verify that no databases exist on the destination directory. If databases exist on the destination directory, then the restore operation destroys the databases because the SQLDBDIR information from the source database overwrites the destination information.
Procedure
-
From the CommCell Browser, expand Client Computers > client > DB2 > instance.
-
Right-click the backup_set, point to All Tasks, and then click Browse and Restore.
The Browse and Restore dialog box appears.
-
On the Time Range tab, select Latest Backup, and then click View Content.
-
Optional: Use non-default browse and restore options. See Browse and Restore.
-
From the Browse window, select the data to restore in the right pane, and then click Recover All Selected.
The Restore Options dialog box appears.
-
On the General tab, select the following options:
-
Select the Entire Database option.
-
From the Destination Computer list, select the destination client name.
-
from the Destination Instance list, select the destination instance.
-
To change the target database name and location, in the Target Database Path box, type the new path.
For Windows clients, the target database path is the drive letter (for example, E:\).
-
-
Optional: Recover the database after the restore. On the Recover tab, select the Recover Database check box.
-
Click OK.
What to Do Next
When the original database is removed from the DB2 system, after the redirect restore operation on the same instance of the same host, you must manually clean the original data files on the source.