Tuesday, 11 November 2014

Simple Steps to configure TDS Replication.

                   A lot of people have been asking me how TDS Replication works and what are the steps to configure it.

TDS or the Tivoli Directory Server is the IBM implementation of Lightweight Directory Access Protocol.

Its one the main components that are generally preferred to be used as a backend directory for most of the IBM related Products like ISIM and ISAM.

and Yes TDS does have the concept of High availability and Disaster Recovery, we call it as TDS replication.

Unlike HADR in DB2 we have the master to master replication and master-slave and slave-master replication which is similar to the primary-secondary and primary to primary configuration in DB2.

Below are the steps on how to configure tds replication between already existing two TDS servers:

1.Before you start the Replication configuration do make sure the SALT and SEED values are same in both the TDS Servers.
command to check the salt and seed values:
Go to ldap bin folder and run the command--
ldapsearch -D <username> -w <Password> -h <hostname/IP of the TDS server> -p <port number> -s base -b cn=crypto,cn=localhost cn=*
so the final command will look like this
ldapsearch -D <cn=root -w password -h mytdsserver -p 389 -s base -b cn=crypto,cn=localhost cn=*

Run this on both the server machines and take care that the ibm-slapdcrytosync and ibm-slapdcrytosalt are same for both the servers.

2.Copy the v3.modifiedschema file (from old LDAP server if doing migration) to both the servers.

3.Make sure you have the suffixes created with the same names it should be exact till the minute detail like the uppercase and lowercase characters.

4. To start the replication click on manage topology and select ADD subtree.

5. Browse for the entry.

6. Select the suffix entry for which replication is to be configured for Ex: dc-com.

7. click on Browse button and add the subtree like dc=com and the enter the master server ldap url and click OK.

8. Select the entry dc=com and click on show topology.

9. Select the server and click on Add master if you are configuring master replication.


10. Select the hostname and server ID of the second server for which replication is to be configured.


11.  Select the Credentials object and add the credentials of your choice.

12. Click on the Additional tab and Enter the Consumer credentials and click OK.

13. Now click OK on the message that is being displayed.

14.Select the location for credentials as dc=com and add the consumer credentials information.

15. Click ok on the message that is getting displayed.

16. With this the replication topology has been configured.

17. Now on clicking the manage topology it should show the proper replication structure as below.

18. Now export the data that is present in the primary LDAP using the command 
idsdb2ldif -o firstdata.ldif -S "dc=com" -I <TDSinstancename>

19. Now import the data that was exported from the first LDAP to the secondary LDAP using the command.
idsldif2db -r no -i firstdata.ldif -I <TDSinstancename>

20. After completing the export and import of LDIF data now click on manage queues and then select the secondary ldap server and click on the button SUSPEND/RESUME button.


With this the replication has been configured.

Hope this helps......... 

No comments:

Post a Comment