[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
N-Way Replication works first time only
- To: openldap-software@openldap.org
- Subject: N-Way Replication works first time only
- From: Calos Lopez <mersc2008@gmail.com>
- Date: Mon, 22 Jun 2009 00:12:17 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=x3T5Zs1UlAcEc+lb/dj3sFxlB4dqY/XoADvuWJuoCek=; b=HYpRwgsJBUy6Foks3IwTuODuljDUfC8JCNqbkTCPK25UcjHiCuO/ZwuOg8V0UzSdXe fqg8sEW989p7QkF0BRPuLFsHPIiHLsI3iTsnXLKKrbbGnGx8xa1MEoLE/kHT2wO+AKJx 8+GPIfBfvFxasRKNtn6DcEjDeQZum1oHHpLlo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=OE4YMK8NF21goycQlF2r4zzcJceUpUQd9YofzUn8DE+iljsx0Q4b46aAihbGQMm58S QiaimPMrSEPpgW6Iy6yxep2+O7X+mdMtt1aUQESMkp05Xn9ZSSZVQWmVYRIlZWZ4cBA9 l0wh1W0eJe1QBN6a/jTnxYXubjjKuJVd273zw=
Hi there again,
I'm running OpenLDAP 2.4.11.
I followed the 18.3.3. N-Way Multi-Master on the
http://www.openldap.org/doc/admin24/replication.html#N-Way%20Multi-Master
documentation.
I setup only two servers. When I run the new configuration on the
first change in one server is replicated to the other server. After
that all changes that I made are not replicated. What can be causing
this problem?
Here is the configuration that I used for cn=config:
dn: cn=module{0},cn=config
changetype: modify
add: olcModuleLoad
olcModuleLoad: syncprov
dn: cn=config
changetype: modify
replace: olcServerID
olcServerID: 1 ldap://192.168.139.10
olcServerID: 2 ldap://192.168.139.11
dn: olcOverlay=syncprov,olcDatabase={0}config,cn=config
changetype: add
objectClass: olcOverlayConfig
objectClass: olcSyncProvConfig
olcOverlay: syncprov
dn: olcDatabase={0}config,cn=config
changetype: modify
add: olcSyncRepl
olcSyncRepl: rid=001 provider=ldap://192.168.139.10
binddn="cn=admin,cn=config" bindmethod=simple credentials="ii"
searchbase="cn=config" type=refreshAndPersist retry="5 10 10 +"
timeout=1
olcSyncRepl: rid=002 provider=ldap://192.168.139.11
binddn="cn=admin,cn=config" bindmethod=simple credentials="ii"
searchbase="cn=config" type=refreshAndPersist retry="5 10 10 +"
timeout=1
-
add: olcMirrorMode
olcMirrorMode: TRUE
And the configuration for bdb database
dn: olcDatabase={1}bdb,cn=config
changetype: modify
add: olcRootDN
olcRootDN: cn=admin,dc=arquis,dc=local
-
add: olcSyncRepl
olcSyncRepl: rid=003 provider=ldap://192.168.139.10
binddn="cn=admin,dc=arquis,dc=local" bindmethod=simple
credentials="ii" searchbase="dc=arquis,dc=local" type=refreshOnly
interval=00:00:00:10 retry="5 10 10 +" timeout=1
olcSyncRepl: rid=004 provider=ldap://192.168.139.11
binddn="cn=admin,dc=arquis,dc=local" bindmethod=simple
credentials="ii" searchbase="dc=arquis,dc=local" type=refreshOnly
interval=00:00:00:10 retry="5 10 10 +" timeout=1
-
add: olcMirrorMode
olcMirrorMode: TRUE
dn: olcOverlay=syncprov,olcDatabase={1}bdb,cn=config
changetype: add
objectClass: olcOverlayConfig
objectClass: olcSyncProvConfig
olcOverlay: syncprov
Here is some output debug:
root@ubuntu:~# /usr/sbin/slapd -d 16384
@(#) $OpenLDAP: slapd 2.4.11 (Nov 8 2008 09:42:18) $
buildd@palmer:/build/buildd/openldap-2.4.11/debian/build/servers/slapd
slapd starting
do_syncrep2: rid=004 LDAP_RES_SEARCH_RESULT
do_syncrep2: rid=002 LDAP_RES_INTERMEDIATE - REFRESH_DELETE
do_syncrep2: rid=003 LDAP_RES_SEARCH_RESULT
do_syncrep2: rid=001 LDAP_RES_INTERMEDIATE - REFRESH_DELETE
That's equal to the output of the 2nd server:
root@ubuntu:~# /usr/sbin/slapd -d 16384
@(#) $OpenLDAP: slapd 2.4.11 (Nov 8 2008 09:42:18) $
buildd@palmer:/build/buildd/openldap-2.4.11/debian/build/servers/slapd
slapd starting
do_syncrep2: rid=003 LDAP_RES_SEARCH_RESULT
do_syncrep2: rid=001 LDAP_RES_INTERMEDIATE - REFRESH_DELETE
do_syncrep2: rid=004 LDAP_RES_SEARCH_RESULT
do_syncrep2: rid=002 LDAP_RES_INTERMEDIATE - REFRESH_DELETE
do_syncrep2: rid=004 LDAP_RES_SEARCH_RESULT
do_syncrep2: rid=003 LDAP_RES_SEARCH_RESULT
Thanks in advances