Testing the recovery appliance

You can test that the recovery appliance in a disaster recovery configuration is operating correctly without disrupting the main site.

About this task

You test the recovery appliance by disabling the replication interface between main and recovery appliances. You make the secondary queue manager into the primary and remove it from the disaster recovery configuration. You can then test the stand-alone queue manager. After testing is complete, you restore the replication interface and delete the queue manager. You then re-create the queue manager as the secondary queue manager in the disaster recovery configuration.

Note: The procedure assumes you are using the default eth20 as the replication interface. If you specified a different interface for replication when you created the DR configuration, substitute that interface in the instructions.

Procedure

  1. Disable the replication link on the recovery appliance:
    # ethernet eth20
    Modify Ethernet Interface configuration
    # admin-state disabled
    # exit
    
    You can now work on the recovery appliance without affecting the main appliance.
  2. On the recovery appliance, make the queue manager the primary:
    makedrprimary -m QMname
    
    Where QMname is the name of the queue manager.
  3. Remove the queue manager from the disaster recovery configuration:
    dltdrprimary -m QMname
    
  4. Start the queue manager:
    strmqm QMname
    
  5. Connect applications to the queue manager and test that they work as expected.
  6. End the queue manager:
    endmqm QMname
    
  7. Delete the queue manager:
    dltmqm QMname
    
  8. Restore the replication link between the main and recovery appliances:
    # ethernet eth20
    Modify Ethernet Interface configuration
    # admin-state enabled
    # exit
    
  9. On the main appliance, run the dspdrsecondary command to retrieve the crtdrsecondary command that you used when you first configured disaster recovery. Run the resulting crtdrsecondary command on the recovery appliance to recreate the secondary queue manager. The primary queue manager on the main appliance synchronizes its data with the secondary queue manager to bring it up to date.