Establishing a recovery point and creating an archive log
About the archive log command
You can use the archive log creation program, ARMBLOG, to issue the appropriate archive log command and wait for the offload to finish.
For more information about ARMBLOG, see ARMBLOG—Archive log creation.
You can also issue the -ARCHIVE LOG command manually. If you issue the command manually, select the appropriate environment type in the following table and perform the associated step.
Environment | Step |
---|---|
Non-data-sharing | Issue the -ARCHIVE LOG command |
Data sharing | Issue an -ARCHIVE LOG, SCOPE(OBJECTSET) or -ARCHIVE LOG, MODE(QUIESCE) command on any one of the data sharing members |
Before you begin
To establish a recovery point, you need the following authorizations:
- To create the JCL: EXECUTE authority for BMC AMI Recovery Manager
- To execute the JCL:
- APF authority for ARMBCRC
- READ authority for BSDS data sets
- ALTER authority for the active log data sets
To establish a recovery point and create an archive log
- In the BMC AMI Recovery for Db2 Main Menu, select 3. DB2 Subsystem Toolbox.
- In the Db2 Subsystem Toolbox panel, select 8. Disaster Recovery Prep.
- In the Disaster Recovery panel, select 1. Establish a Recovery Point.
- In the Establish Recovery Point panel, choose the subsystem recovery point. For more information, see the following table.
Specify the ARMBLOG options as follows and press Enter:
- Number of times to check for offload complete (defaults to 5)
Number of seconds to wait before re-checking for offload complete (defaults to 180 seconds)
The System Resource Recovery and Maintenance panel is displayed again.
The System Resource Recovery and Maintenance panel is displayed again.
- At this point, you can generate the JCL to establish the recovery point, or you can wait until you have also set options for preparing the archive logs and subsystem recovery and then generate JCL for all three steps into a single job.
- To generate the job now, select Establish a Recovery Point (ARMBLOG or ARMBCRC), and then press Enter.
- To generate a single job for all three disaster recovery steps, set all options, then select 9. Generate ALL Disaster Recovery Jobs, and then press Enter.
- On the JCL Specification panel, enter a fully qualified output data set name. Be aware of the following information:
- The output data set is used for saving the JCL and must be cataloged. If not enclosed in quotes, the output data set will be prefixed by your TSO prefix.
- The job statement must contain a symbolic variable (&#) for the job number. See Output-data-sets-job-cards-and-symbolic-variables for more information.
Save the JCL data set or submit the job as required.
Option
Description
End of the archive log created using the ARMBLOG program
Generates JCL to run the ARMBLOG program, which performs an -ARCHIVE LOG command
The timestamp of the -ARCHIVE LOG command then becomes the point of recovery.
User specified timestamp, using the ARMBCRC program
Specifies a timestamp to be used as the point of recovery
When you recover to a user-specified timestamp, BMC AMI Recovery Manager generates multiple steps, as follows:
- The ARMBTSI program inserts the timestamp into the BMC AMI Recovery Manager coordinated disaster recovery (CRRDRPT) table.
- The ARMBCRC program converts this timestamp into a valid RBA or LRSN. If data sharing, multiple ARMBCRC steps are generated and are synchronized to begin after the ARMBTSI step completes.
- The ARMBLOG program issues an -ARCHIVE LOG command. If data sharing, this step is synchronized to begin after all ARMBCRC steps have been completed.
Last recovery point registered in the Coordinated Disaster recovery table (CRRDRPT)
Uses the most recent timestamp in the CRRDRPT table
This option generates multiple steps, as follows:
- The ARMBCRC program converts the timestamp into a valid RBA. If data sharing, multiple ARMBCRC steps are generated.
- The ARMBLOG program issues an -ARCHIVE LOG command. If data sharing, this step is synchronized to begin after all ARMBCRC steps have been completed.