Unconfiguring a master/replica configuration

There are several ways to remove a replica server from a master (supplier)/replica (consumer) topology. You can use the command provided here to remove all master/replica information by unconfiguring the ldap server's database on both machines and reconfiguring.

About this task

idsucfgdb -I <instance_name>
A message box will display, asking you if you want to remove the database and the database instance. Click Yes.
Note: This process unconfigures the entire database on the replica server and all data will be lost.

Alternately, use the following steps to remove your replica from the topology. With this option, you are required to unconfigure and reconfigure one server only (replica):

Procedure

  1. Stop the replica server.
  2. Suspend the master server.
  3. Remove supplier information from your master server. Go to Replication management–> Manage topology.
  4. Delete a replica server.
    1. Click Show topology.
    2. Select a replica.
    3. Click Delete.
  5. Delete a master server.
    1. Click Show topology.
    2. Select a master.
    3. Click Delete.
  6. Remove a subtree from master server.
    1. Click Show topology.
    2. Select a subtree.
    3. Select Delete subtree from the drop-down list.
    4. Click Go.
  7. Remove credentials from a master server.
    1. Click Manage credentials.
    2. Select a subtree.
    3. Click Show credentials.
    4. Select credentials.
    5. Click Delete.
    6. Click OK.
  8. Run the following command on the replica server to unconfigure the database and remove all data: idsucfgdb -I <instance_name> A message box will display, asking you if you want to remove the database and the database instance. Click Yes. Allinformation or entries will be lost in each of your databases.

Results

You can also do the following steps to unconfigure your replica server without unconfiguring your entire database:

  1. Remove supplier information from your master server. Go to Replication management–> Manage topology.
  2. Delete replica server.
    1. Click Show topology.
    2. Select a replica.
    3. Click Delete.
  3. Delete master server.
    1. Click Show topology.
    2. Select a master.
    3. Click Delete.
  4. Remove subtree from master server.
    1. Click Show topology.
    2. Select a subtree.
    3. Select Delete subtree from the drop-down list.
    4. Click Go.
  5. Remove credentials from the master server.
    1. Click Manage credentials.
    2. Select a subtree.
    3. Click Show credentials.
    4. Select credentials.
    5. Click Delete.
    6. Click OK.
  6. Remove the credentials from the replica server.
    1. Click Manage credentials.
    2. Select a subtree.
    3. Click Show credentials.
    4. Select credentials.
    5. Click Delete.
    6. Click OK.
  7. Remove supplier information from your replica server. Click Manage replication properties. Click Delete.
  8. Go to Directory management.
  9. Select the subtree and expand.
  10. Select ibm-replica Group=default and expand.
  11. Select the replicaSubentry entry and expand.
  12. Delete all agreements.
  13. Collapse and delete replicaSubentry entry.
  14. Collapse and delete ibm-replica Group=default.
  15. Select the subtree. From the drop-down list, select Delete auxiliary objectclass and click Go.
  16. A new panel is displayed. In this panel, select the ibm-replicationContext and click Delete.
  17. Click OK.
  18. Confirm your server no longer has replication information by performing the following searches on the replica server. Nothing should be returned for the second search.If an empty container is returned for the first search, that is acceptable.idsldapsearch -D cn=root -w secret -b " " -s sub objectclass=ibm-repl*This operation will return any replication topology that remains in the directory.Note: You can perform this step on the master if there are no replicas left in the topology.