Hello Team,
I am facing an issue with multi-master replication.
After Multi-Master configuration when I add entry it is susccessfully replicating only one time second time it is not repplicating. what could be the reson. below is the logs (stat and -1)
stat logs from one server when I add entry in server 2
Jun 20 11:37:06 vm2 slapd[1559]: conn=-1 fd=21 ACCEPT from IP= 192.168.122.87:46965 (IP=0.0.0.0:389) Jun 20 11:37:06 vm2 slapd[1559]: do_syncrep2: rid=005 LDAP_RES_INTERMEDIATE - SYNC_ID_SET Jun 20 11:37:06 vm2 slapd[1559]: do_syncrep2: rid=005 LDAP_RES_SEARCH_RESULT Jun 20 11:37:06 vm2 slapd[1559]: do_syncrep2: rid=005 cookie=rid=005,csn=20130620073703.737390Z#000000#000#000000 Jun 20 11:37:06 vm2 slapd[1559]: nonpresent_callback: rid=005 present UUID 0cbd9aa0-6dba-1032-8208-dff4fce29a41, dn dc=emb,dc=slb,dc=com Jun 20 11:37:06 vm2 slapd[1559]: nonpresent_callback: rid=005 present UUID 0cbe2902-6dba-1032-8209-dff4fce29a41, dn cn=admin,dc=emb,dc=slb,dc=com Jun 20 11:37:06 vm2 slapd[1559]: nonpresent_callback: rid=005 present UUID 5c8269b0-6dc1-1032-80e1-8fddbab869b5, dn ou=Groups,dc=emb,dc=slb,dc=com Jun 20 11:37:06 vm2 slapd[1559]: slap_queue_csn: queing 0x7f5f10109b40 20130620073703.737390Z#000000#000#000000 Jun 20 11:37:06 vm2 slapd[1559]: slap_graduate_commit_csn: removing 0x7f5f1010b540 20130620073703.737390Z#000000#000#000000 Jun 20 11:37:14 vm2 slapd[1559]: conn=1013 fd=19 ACCEPT from IP= 192.168.122.199:35866 (IP=0.0.0.0:389) Jun 20 11:37:14 vm2 slapd[1559]: conn=1013 op=0 BIND dn="cn=admin,dc=emb,dc=slb,dc=com" method=128 Jun 20 11:37:14 vm2 slapd[1559]: conn=1013 op=0 BIND dn="cn=admin,dc=emb,dc=slb,dc=com" mech=SIMPLE ssf=0 Jun 20 11:37:14 vm2 slapd[1559]: conn=1013 op=0 RESULT tag=97 err=0 text= Jun 20 11:37:14 vm2 slapd[1559]: conn=1013 op=1 SRCH base="dc=emb,dc=slb,dc=com" scope=2 deref=0 filter="(objectClass=*)" Jun 20 11:37:14 vm2 slapd[1559]: conn=1013 op=1 SRCH attr=* + Jun 20 11:37:14 vm2 slapd[1559]: conn=1013 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text= Jun 20 11:37:14 vm2 slapd[1559]: conn=1013 op=2 UNBIND Jun 20 11:37:14 vm2 slapd[1559]: conn=1013 fd=19 closed
loglevel -1 enabled and below are the logs from the server1 when I add entry in server2
Jun 20 16:30:13 vm2 slapd[13074]: => access_allowed: search access to "dc=emb,dc=slb,dc=com" "entryCSN" requested Jun 20 16:30:13 vm2 slapd[13074]: <= root access granted Jun 20 16:30:13 vm2 slapd[13074]: => access_allowed: search access granted by manage(=mwrscxd) Jun 20 16:30:13 vm2 slapd[13074]: <= test_filter 6 Jun 20 16:30:13 vm2 slapd[13074]: <= test_filter_and 6 Jun 20 16:30:13 vm2 slapd[13074]: <= test_filter 6 Jun 20 16:30:13 vm2 slapd[13074]: nonpresent_callback: rid=005 present UUID b49be142-6dd7-1032-821e-bd2e8e19723c, dn dc=emb,dc=slb,dc=com Jun 20 16:30:13 vm2 slapd[13074]: => test_filter Jun 20 16:30:13 vm2 slapd[13074]: AND Jun 20 16:30:13 vm2 slapd[13074]: => test_filter_and Jun 20 16:30:13 vm2 slapd[13074]: => test_filter Jun 20 16:30:13 vm2 slapd[13074]: LE Jun 20 16:30:13 vm2 slapd[13074]: => access_allowed: search access to "cn=admin,dc=emb,dc=slb,dc=com" "entryCSN" requested Jun 20 16:30:13 vm2 slapd[13074]: <= root access granted Jun 20 16:30:13 vm2 slapd[13074]: => access_allowed: search access granted by manage(=mwrscxd) Jun 20 16:30:13 vm2 slapd[13074]: <= test_filter 6 Jun 20 16:30:13 vm2 slapd[13074]: <= test_filter_and 6 Jun 20 16:30:13 vm2 slapd[13074]: <= test_filter 6 Jun 20 16:30:13 vm2 slapd[13074]: nonpresent_callback: rid=005 present UUID b49c7e5e-6dd7-1032-821f-bd2e8e19723c, dn cn=admin,dc=emb,dc=slb,dc=com Jun 20 16:30:13 vm2 slapd[13074]: => test_filter Jun 20 16:30:13 vm2 slapd[13074]: AND Jun 20 16:30:13 vm2 slapd[13074]: => test_filter_and Jun 20 16:30:13 vm2 slapd[13074]: => test_filter Jun 20 16:30:13 vm2 slapd[13074]: LE Jun 20 16:30:13 vm2 slapd[13074]: => access_allowed: search access to "ou=Groups4,dc=emb,dc=slb,dc=com" "entryCSN" requested Jun 20 16:30:13 vm2 slapd[13074]: <= root access granted Jun 20 16:30:13 vm2 slapd[13074]: => access_allowed: search access granted by manage(=mwrscxd) Jun 20 16:30:13 vm2 slapd[13074]: <= test_filter 6 Jun 20 16:30:13 vm2 slapd[13074]: <= test_filter_and 6 Jun 20 16:30:13 vm2 slapd[13074]: <= test_filter 6 Jun 20 16:30:13 vm2 slapd[13074]: nonpresent_callback: rid=005 present UUID 3e8b5198-6dd9-1032-8006-655e62f4c8e4, dn ou=Groups4,dc=emb,dc=slb,dc=com Jun 20 16:30:13 vm2 slapd[13074]: => test_filter Jun 20 16:30:13 vm2 slapd[13074]: AND Jun 20 16:30:13 vm2 slapd[13074]: => test_filter_and Jun 20 16:30:13 vm2 slapd[13074]: => test_filter
ANybody please help me to solve this issue.
Operating system Ubuntu 12.04 OpenLDAP version: openldap-2.4.28 (Debian build)
Note:- When I try to delete /var/lib/ldap/* and start one server it is able to replicate but after that again stoped for any new entry or any changes in another server.
--On June 20, 2013 4:32:23 PM +0400 25Dollar Tech 25dollartechhelp@gmail.com wrote:
Hello Team,
I am facing an issue with multi-master replication. Operating system Ubuntu 12.04 OpenLDAP version: openldap-2.4.28 (Debian build)
I would advise you to run a current version of OpenLDAP which has multiple fixes to MMR.
--Quanah
openldap-technical@openldap.org