On 24/09/2011 01:43, Howard Chu wrote:
Sébastien Bernard wrote:
Hi,
I've setup a multimaster cluster composed of two machine (in my example 192.168.0.204 and 192.168.0.197). Everything is working ok and both side are replicating ok.
However, I've a problem I'd like to submit to your sagacity.
When I put down a server, and modify the other server (delete or add), when the first server comes back, the modifications are not pushed in the old server. Server 1 says Entry cn=seb,ou=orgunit,o=org,dc=example,dc=com changed by peer, ignored
You have not provided enough useful information (OpenLDAP version, exact server configurations, which one is "server 1" in your description) to be certain. But most likely you have not configured their ServerIDs correctly.
OpenLDAP is 2.4.26-2 from fedora. I'll include the cn=config tree I have. The cn=config is replicated between both servers (as stated in the chap 18 of the admin guide). Server 1 is 192.168.0.204. Server 2 is 192.168.0.197. I used server 1 to import all the nodes.
Configuration is included as attachement. All I can say is that I tried to follow the instruction in the guide.
I did not pretend I fully understood what I was doing, but I managed to have replication both ways working.
A few points stays in the dark, like the numbering of the rid for replication: are the rid per branch or global to the slapd ? Should one assign with an incremental policy ?
Next the ServerIds are only declared in the cn=config node. Shouldn't they be declared in the dc=aaa,dc=fr branch ?
Sincerely
Seb