Monitoring the disaster recovery solution

After a successful setup, you can monitor the status of the primary and secondary system with the command line or the web console.

Procedure

  • Use the following command to view the status of both systems:
    apdr status --all
    Example output:
    [apuser@node0101 ~]$ apdr status --all
    Getting APDR  status
    =================================Primary Status=================================
    State:                                              AVAILABLE
    DB State:                                           AVAILABLE
    Node Name:                                         sail74-t07
    Node IP:                                         9.32.246.212
    Node TimeZone:                                            EDT
    ==============================Snapshot Job Status===============================
    Currently Running Job Details:
    Job Interval(in Minutes):                                 720
    Status:                                               SUCCESS
    
    Previous Job Details:         
    Status:                                                FAILED
    Started at (UTC):                         2018-09-05 09:56:38
    Last Good Job started at (UTC)            2018-09-05 18:20:05
    
    
    --------------------------------------------------------------------------------
    ================================Secondary Status================================
    State:                                              AVAILABLE
    DB State:                                         UNAVAILABLE
    Node Name:                                         sail75-t07
    Node IP:                                         9.32.246.220
    Node TimeZone:                                            EDT
    ========================Snapshot Recovery Point Details=========================
    Availability Status:                                AVAILABLE
    Recovery Point (UTC):                     2018-09-05 18:20:05
    Latest job started at (UTC)               2018-09-05 18:20:05
    --------------------------------------------------------------------------------
    
  • Use the apdr status --replqueue to check the replication queues of the service:
    
    [apuser@node0101 cli]# apdr status --replqueue
    Directory                                                         Queue Status        Sync Status
    /opt/ibm/appliance/storage/head/home/db2inst1/db2/keystore        Ready               In-Sync
    /opt/ibm/appliance/storage/data/db2inst1                          Ready               In-Sync
    /opt/ibm/appliance/storage/local/db2inst1                         Ready               In-Sync
    /opt/ibm/appliance/storage/scratch/db2archive                     Ready               In-Sync
    Note: There are three states possible: Ready, Starting and Down. While in Ready, file set is in a normal state. Starting means the start of the initial sync. Down means that a file set has an issue.
  • Use the web console widget for monitoring the status of both the primary and secondary system, their connection, time stamp of the last recovery point, and the date for next scheduled snapshot. To add the widget to your home page:
    1. Open the home page and click Personalize.
    2. Find the File System Disaster Recovery widget and click Add.
  • Use the apdr clean --snapshot command from time to time to remove older snapshots to conserve the space in the IAS file systems.