Uninstalling file system replication

If the file system based disaster recovery solution (APDR) is no longer required, you can disable the feature in versions 1.0.21.0 and above of IAS.

About this task

You can use the apdr clean feature to remove the file system based disaster recovery solution.

Procedure

  1. Ensure that a valid recovery point is available on the secondary system:
    apdr status
    • If there is no valid recovery point available, take a snapshot on the primary system.
      Warning: Without a valid recovery point, Db2 Warehouse cannot be brought up on the secondary system.
  2. Bring down the primary and secondary systems:
    apstop -a
  3. On the secondary system, run the apdr failover command.
  4. Run the apdr failover -s command to monitor the failover process.
  5. Once the failover is completed, begin the clean up process on the secondary system to.
    Run the apdr clean -a command:
    [root@unpeg-node0101 cli]# apdr clean -a
    Getting APDR status
    Deleting filesets. 
    Successfully submitted a clean job at primary
    The id of the job is: 18
    You can use 'apdr clean --status 18' to see the status of this job

    Note the ID number the command returns. You can use the number to monitor the progress of the apdr clean command.

  6. Run apdr clean -s <id> to monitor the progress.
    Example:
    [root@unpeg-node0101 cli]# apdr clean -s 18
    Checking status of clean up job. 
    STATUS: SUCCEEDED
    FILESET                                                     STATUS                                                      
    ERROR                                                       LEFTOVER FILES                                              
    /opt/ibm/appliance/storage/scratch/db2archive               CLEANED                                                                                                                 []                                                          
    /opt/ibm/appliance/storage/head/home/db2inst1/db2/keystore  CLEANED                                                                                                                 []                                                          
    /opt/ibm/appliance/storage/data/db2inst1                    CLEANED                                                                                                                 []                                                          
    /opt/ibm/appliance/storage/local/db2inst1                   CLEANED                                                                                                                 []                                                          
    SECONDARY STATUS: SUCCEEDED
    FILESET                                                     STATUS                                                      
    ERROR                                                       LEFTOVER FILES                                              
    /opt/ibm/appliance/storage/scratch/db2archive               CLEANED                                                                                                                 []                                                          
    /opt/ibm/appliance/storage/head/home/db2inst1/db2/keystore  CLEANED                                                                                                                 []                                                          
    /opt/ibm/appliance/storage/data/db2inst1                    CLEANED                                                                                                                 []                                                          
    /opt/ibm/appliance/storage/local/db2inst1                   CLEANED                         
  7. Once the apdr clean command completes successfully, bring back the primary and secondary systems:
    apstart

    After apdr clean completes, Filesystem replication will be disabled on the primary and secondary system. No database changes on either of the systems will be replicated. From this point onwards, each system can be used as a standalone IAS system.