Since we usually want redundancy, I've set up a second ldapserver and I'd like them to be in a master/master setup for replication. So here is how I configured it:
First we'll have to create a replication manager that exists on every node which is used for the replication only! Run this on all nodes that should be part of the LDAP-Cluster, in my case it's just 2.
If you are done, press CTRL+D to end the user input.
1. Open the 389-DS-Console expand the 'Server Group' Folder.
2. Click on 'Directory Server (ldap01).
3. Click the 'Open' Button which is located in the right upper corner.
4. Click on the 'Configuration' Tab
5. Expand the 'Replication' Folder and right click on the userRoot and select 'New Replication Agreement'
6. Select an agreement Name and set a description
First we'll have to create a replication manager that exists on every node which is used for the replication only! Run this on all nodes that should be part of the LDAP-Cluster, in my case it's just 2.
If you are done, press CTRL+D to end the user input.
[root@ldap01 ~]# ldapmodify -x -D "cn=Directory Manager" -w directory_manager_password
dn: cn=replication manager,cn=config
changetype: add
objectclass: top
objectclass: person
cn: Replication Manager
sn: Manager
userPassword: replication_manager_password
[root@ldap02 ~]# ldapmodify -x -D "cn=Directory Manager" -w directory_manager_password
dn: cn=replication manager,cn=config
changetype: add
objectclass: top
objectclass: person
cn: Replication Manager
sn: Manager
userPassword: replication_manager_password
Now comes the easier part, creating replication agreements. 389-DS has a nice graphical UI which does the dirty work for you. Again repeat that for every node.1. Open the 389-DS-Console expand the 'Server Group' Folder.
2. Click on 'Directory Server (ldap01).
3. Click the 'Open' Button which is located in the right upper corner.
4. Click on the 'Configuration' Tab
5. Expand the 'Replication' Folder and right click on the userRoot and select 'New Replication Agreement'
6. Select an agreement Name and set a description
7. Click next and select your consumer (other node, in my case ldap02.archyslife.lan). To select them, click on the 'Other' button and enter the hostname and port. Enter the Replication manager to bind to. If you are done, click 'Next'.
8. Click 'Next'
9. Click Next
10. Set the radio-button to 'Create consumer initialization file' and click on 'Next'.
11. Repeat this process for NetscapeRoot.
12. You'll now have 2 replication agreements and your Replication Folder should look like this:
13. To start the replication to your new LDAP-Server, right clik on one of these replication agreements and select 'Initialize consumer'.
14. You'll be greeted with a pop-up message that will ask you for confirmation. If you are sure that you've selected the right Node, click yes. Be aware: All data on the destination node will be replaced by the data from the source (the node you've picked).
The multi master replication is now complete.
Freel free to comment and / or suggest a topic.
Comments
Post a Comment