Troubleshooting - DB2 iDataAgent
The following section provides information on troubleshooting restores.
- Restore Failures
- Viewing Restore Logs
- DB20011: Restore Fails with Permissions Issue
- DB20012: Target Database Cannot Access Latest Log Chain During a Cross-Machine Restore
- Recovering data associated with deleted clients and storage policies
- Vendor Code Troubleshooting
|Out of place restore failures|| The restore to a new database or another instance from the CommCell Console fails.
Do the following:
You can troubleshoot restores by checking the CLDb2Agent.log restore log located in <software installation path>\Log Files. You can also check details on the restore by issuing the db2ckrst DB2 command and then reviewing the output. The output for this command lists all of the backup images involved in the restore. The command syntax is as follows:
db2ckrst [-d <database name>] [-t <timestamp string>]
<database name> is the name of the database and <timestamp string> is a numerical value representing the backup image involved in the restore.
Timestamps are displayed in the Restore Options | Restore Arguments dialog box in the CommCell Browser.
In this example, the timestamp for the database image included in the command appears twice in the output — in the first line and in the last line. This indicates that this (delta or incremental) backup image was the last backup image in the backup cycle and therefore was restored first and then last among all of the backup images in the cycle.
db2ckrst -d db_one -t 20030224125749
might generate the following output:
Suggested restore order of images using timestamp 20030224125749
for database db_one
restore db db_one incremental taken at 20030224125749
restore db db_one incremental taken at 20030224124314
restore db db_one incremental taken at 20030224125211
restore db db_one incremental taken at 20030224125749
|DB2 iDataAgent issue with backup or restore - List of Items for Effective Troubleshooting||When you encounter a DB2 iDataAgent issue with backup or restore, provide the following information to the Customer Support for troubleshooting the issues:
In most cases, you may be required to send the DB2 applications db2diag.log. This log is not part of the NetApp Software components. It is the DB2 application database log file.
DB20011: Restore Fails with Permissions Issue
The restore fails due to issues accessing the SnapProtect registry, log files and base directories.
Run the Database Readiness Check.
When the DB2 log chain is being used during a cross-machine restore and the target database does not have access to the latest log chain, the log retrieval restore fails during the backup.
Prior to running the restore:
- Ensure the latest DB2 FixPack is installed on the target DB2 database.
- In the CommCell Console, delete the target database instance, which also removes references to previous data.
- Delete the database on the target server and recreate it.
- In the CommCell Console, re-create the instance and the backup set for the target database.
- Re-run the cross-machine restore to refresh the production database to the target database.
In a disaster recovery scenario, use the following procedure to recover data associated with the following entities:
- Deleted storage policy
- Deleted client, agent, backup set or instance
Before You Begin
This procedure can be performed when the following are available:
- You have a Disaster Recovery Backup that contains information on the entity that you are trying to restore. For example, if you wish to recover a storage policy (and the data associated with the storage policy) that was accidentally deleted, you must have a copy of the disaster recovery backup that was performed before deleting the storage policy.
- Media containing the data you wish to recover is available and not overwritten.
- If a CommCell Migration license was available in the CommServe when the disaster recovery backup was performed, no additional licenses are required. If not, obtain the following licenses:
- IP Address Change license
- CommCell Migration license
See License Administration for more details.
- A standby computer, which is used temporarily to build a CommServe.
Recovering Deleted Data
- Locate the latest Disaster Recovery Backup that contains the information on the entity (storage policy, client, agent, backup set or instance) you are trying to restore.
- Check the Phase 1 destination for the DR Set or use Restore by Jobs for CommServe DR Data to restore the data.
- If the job was pruned and you know the media containing the Disaster Recovery Backup, you can move the media in the Overwrite Protect Media Pool. See Accessing Aged Data for more information. You can then restore the appropriate DR Set associated with the job as described in Restore by Jobs for CommServe DR Data.
- If the job is pruned and you do not know the media containing the Disaster Recovery Backup, you can do one of the following:
- If you regularly run and have copies of the Data on Media and Aging Forecast report, you can check them to see if the appropriate media is available.
- If you do not have an appropriate report, and know the media that contains the DR Backup, catalog the media using Media Explorer. Once the cataloging process is completed, details of the data available in the media are displayed.
- On a standby computer, install the CommServe software. For more information on installing the CommServe, see Install the CommServe.
- Restore the CommServe database using the CommServe Disaster Recovery Tool from the Disaster Recovery Backup described in Step 1. (See CommServe Disaster Recovery Tool for step-by-step instructions.)
- Verify and ensure that the NetApp Client Event Manager NetApp Communications Service (EvMgrS) is running.
- If you did not have a CommCell Migration license available in the CommServe when the disaster recovery backup was performed, apply the IP Address Change license and the CommCell Migration license on the standby CommServe. See Activate Licenses for step-by-step instructions.
- Export the data associated with the affected clients from the standby CommServe as described in Export Data from the Source CommCell.
When you start the Command Line Interface to capture data, use the name of the standby CommServe in the -commcell argument.
- Import the exported data to the main CommServe as described in Import Data on the Destination CommCell.
This brings back the entity in the CommServe database and the entity is visible in the CommCell Browser. (Press F5 to refresh the CommCell Browser if the entity is not displayed after a successful merge.)
- You can now browse and restore the data from the appropriate entity.
As a precaution, mark media (tape media) associated with the source CommCell as READ ONLY before performing a data recovery operation in the destination CommCell.
- The requested backup image or log has been successfully restored.
- There is no action required.
- There was an I/O error.
- Check permissions on the DB2 archive paths..
- Verify the disk space on the host that the data is being restored to.
- There was a critical error.
11403590 304 05/12 18:03:18 1048366 Db2Check::SqlInfoPrint() - 0:
---- error report ----
app. message = backing up the database
line = 4804
file = ClDb2AgentLib.cpp
SQLCODE = -2079
SQL2079N An error was reported by the shared library
"/opt/simpana/Base64/libDb2Sbt.so". Return code: "30".
--- end error report ---
11403590 304 05/12 18:03:18 1048366 ClDb2Agent::DataBackup() - 1: SetPendingCauseAndEvent:DB2_SBTCRITICAL_ERROR
- Contact support with the following information ready to send.
- The database configurations,
- the db2dump directory,
- all crash dumps