Hi
I have a replication problem: i use Refresh and Persist mode openldap 2.4.17 ( i test 2.4.19 same thing)
When the slave re init the communication with the master, because the master restart for example, and an entry is delete and recreate on the master, the new entry is delete on the slave but not add when the slave resynchronise .
for example i add
dn: msisdn=6666666660,suffix=0,dc=sfr.com msisdn: 6666666660 ApnOption: 5;1;1;1;1;0;0 ApnOption: 4;1;1;1;1;0;0 objectClass: msisdnobj structuralObjectClass: msisdnobj entryUUID: 6f8be02e-5d15-102e-9d25-8f1958adb04d creatorsName: cn=admin,cn=config createTimestamp: 20091103223905Z entryCSN: 20091103223905.082394Z#000000#001#000000 modifiersName: cn=admin,cn=config modifyTimestamp: 20091103223905Z entryDN: msisdn=6666666660,suffix=0,dc=sfr.com subschemaSubentry: cn=Subschema hasSubordinates: FALSE
i restart the master
and
and
delete msisdn=6666666660,suffix=0,dc=sfr.com
add : dn: msisdn=6666666660,suffix=0,dc=sfr.com msisdn: 6666666660 ApnOption: 5;2;2;2;2;0;0 ApnOption: 4;2;2;2;2;0;0 objectClass: msisdnobj structuralObjectClass: msisdnobj entryUUID: f150221e-5d15-102e-9d26-8f1958adb04d creatorsName: cn=admin,cn=config createTimestamp: 20091103224242Z entryCSN: 20091103224242.794679Z#000000#001#000000 modifiersName: cn=admin,cn=config modifyTimestamp: 20091103224242Z entryDN: msisdn=6666666660,suffix=0,dc=sfr.com subschemaSubentry: cn=Subschema hasSubordinates: FALSE
when the slave reconnect to the master : i can't see any entry for msisdn=6666666660,suffix=0,dc=sfr.com on the slave and see on the master log
Entry msisdn=6666666660,suffix=0,dc=sfr.com changed by peer, ignored
my conf on the master (i have 11 backend and two master in mirror mode configuration, the 10.143.73.9 is the vip master):
config.ldif
dn: cn=config objectClass: olcGlobal cn: config olcConfigFile: /etc/openldap/slapd.conf olcConfigDir: /etc/openldap/slapd.d olcArgsFile: /var/run/slapd.args olcAttributeOptions: lang- olcAuthzPolicy: none olcConcurrency: 0 olcConnMaxPending: 100 olcConnMaxPendingAuth: 1000 olcGentleHUP: FALSE olcIdleTimeout: 0 olcIndexSubstrIfMaxLen: 4 olcIndexSubstrIfMinLen: 2 olcIndexSubstrAnyLen: 4 olcIndexSubstrAnyStep: 2 olcIndexIntLen: 4 olcLocalSSF: 71 olcPidFile: /var/run/slapd.pid olcReadOnly: FALSE olcServerID: 1 olcSockbufMaxIncoming: 262143 olcSockbufMaxIncomingAuth: 16777215 olcThreads: 32 olcTLSCRLCheck: none olcTLSVerifyClient: never olcToolThreads: 16 olcWriteTimeout: 0 olcLogLevel: 0x1 0x4000 structuralObjectClass: olcGlobal entryUUID: 172e9a72-2c12-102e-9eca-fd5064191963 creatorsName: cn=config createTimestamp: 20090902134141Z entryCSN: 20090902134141.365317Z#000000#002#000000 modifiersName: cn=config modifyTimestamp: 20090902134141Z
cn=config/olcDatabase={2}hdb.ldif
dn: olcDatabase={2}hdb objectClass: olcDatabaseConfig objectClass: olcHdbConfig olcDatabase: {2}hdb olcSuffix: suffix=0,dc=sfr.com olcSubordinate: TRUE olcAddContentAcl: FALSE olcLastMod: TRUE olcMaxDerefDepth: 15 olcReadOnly: FALSE olcRootDN: cn=admin,cn=config olcSyncrepl: rid=001 provider=ldap://10.143.73.69 bindmethod=simple timeout=0 network-timeout=0 binddn="cn=admin,cn=config" credentials="secret" starttls= no searchbase="suffix=0,dc=sfr.com" scope=sub schemach ecking=on type=refreshAndPersist retry="60 +" olcMirrorMode: TRUE olcMonitoring: TRUE olcDbDirectory: /u10/openldap #olcDbCacheSize: 200000 olcDbConfig: {0}set_cachesize 0 10000 1 #olcDbConfig: {1}set_shm_key 1 olcDbConfig: {2}set_lg_regionmax 1048576 olcDbConfig: {3}set_lg_max 52428800 olcDbConfig: {4}set_lg_bsize 2097152 olcDbConfig: {5}set_tx_max 100 olcDbConfig: {6}set_lg_dir /u9/db-logs olcDbConfig: {7}set_flags DB_LOG_AUTOREMOVE olcDbNoSync: FALSE olcDbDirtyRead: FALSE olcDbIDLcacheSize: 0 olcDbIndex: objectClass eq olcDbIndex: entryUUID eq olcDbIndex: entryCSN eq olcDbIndex: contextCSN eq olcDbIndex: msisdn eq olcDbLinearIndex: FALSE olcDbMode: 0600 olcDbSearchStack: 16 #olcDbShmKey: 1 #olcDbCacheFree: 10000 olcDbDNcacheSize: 0 structuralObjectClass: olcHdbConfig entryUUID: 172fc906-2c12-102e-9ed1-fd5064191963 creatorsName: cn=config createTimestamp: 20090902134141Z entryCSN: 20090902134141.365317Z#000000#002#000000 modifiersName: cn=config modifyTimestamp: 20090902134141Z
my conf on the slave :
dn: cn=config objectClass: olcGlobal cn: config olcConfigFile: /etc/openldap/slapd.conf olcConfigDir: /etc/openldap/slapd.d olcArgsFile: /var/run/slapd.args olcAttributeOptions: lang- olcAuthzPolicy: none olcConcurrency: 0 olcConnMaxPending: 100 olcConnMaxPendingAuth: 1000 olcGentleHUP: FALSE olcIdleTimeout: 0 olcIndexSubstrIfMaxLen: 4 olcIndexSubstrIfMinLen: 2 olcIndexSubstrAnyLen: 4 olcIndexSubstrAnyStep: 2 olcIndexIntLen: 4 olcLocalSSF: 71 olcPidFile: /var/run/slapd.pid #olcReadOnly: FALSE olcReadOnly: TRUE olcSockbufMaxIncoming: 262143 olcSockbufMaxIncomingAuth: 16777215 olcThreads: 32 olcTLSCRLCheck: none olcTLSVerifyClient: never olcToolThreads: 16 olcWriteTimeout: 0 olcAllows: bind_v2 olcLogLevel: 0x1 0x4000 structuralObjectClass: olcGlobal entryUUID: 172e9a72-2c12-102e-9eca-fd5064191963 creatorsName: cn=config createTimestamp: 20090902134141Z entryCSN: 20090902134141.365317Z#000000#002#000000 modifiersName: cn=config modifyTimestamp: 20090902134141Z
cn=config/olcDatabase={2}hdb.ldif
dn: olcDatabase={2}hdb objectClass: olcDatabaseConfig objectClass: olcHdbConfig olcDatabase: {2}hdb olcSuffix: suffix=0,dc=sfr.com olcSubordinate: TRUE olcAddContentAcl: FALSE olcLastMod: TRUE olcMaxDerefDepth: 15 olcReadOnly: FALSE olcRootDN: cn=admin,cn=config olcSyncrepl: rid=001 provider=ldap://10.143.73.9 bindmethod=simple timeout=0 network-timeout=0 binddn="cn=admin,cn=config" credentials="secret" starttls= no searchbase="suffix=0,dc=sfr.com" scope=sub schemach ecking=on type=refreshAndPersist retry="60 +" olcUpdateRef: ldap://10.143.73.9 olcMonitoring: TRUE olcDbDirectory: /u10/openldap #olcDbCacheSize: 200000 olcDbConfig: {0}set_cachesize 0 10000 1 #olcDbConfig: {1}set_shm_key 1 olcDbConfig: {2}set_lg_regionmax 1048576 olcDbConfig: {3}set_lg_max 52428800 olcDbConfig: {4}set_lg_bsize 2097152 olcDbConfig: {5}set_tx_max 100 olcDbConfig: {6}set_lg_dir /u9/db-logs olcDbConfig: {7}set_flags DB_LOG_AUTOREMOVE olcDbNoSync: FALSE olcDbDirtyRead: FALSE olcDbIDLcacheSize: 0 olcDbIndex: objectClass eq olcDbIndex: entryUUID eq olcDbIndex: entryCSN eq olcDbIndex: contextCSN eq olcDbIndex: msisdn eq olcDbLinearIndex: FALSE olcDbMode: 0600 olcDbSearchStack: 16 #olcDbShmKey: 1 #olcDbCacheFree: 10000 olcDbDNcacheSize: 0 structuralObjectClass: olcHdbConfig entryUUID: 172fc906-2c12-102e-9ed1-fd5064191963 creatorsName: cn=config createTimestamp: 20090902134141Z entryCSN: 20090902134141.365317Z#000000#002#000000 modifiersName: cn=config modifyTimestamp: 20090902134141Z
regards,
Olivier
--On Friday, November 06, 2009 2:26 PM +0100 CHIROSSEL Olivier olivier.chirossel@sfr.com wrote:
Hi
I have a replication problem: i use Refresh and Persist mode openldap 2.4.17 ( i test 2.4.19 same thing)
Please file an ITS with your configuration information and an example scenario if possible to reproduce this easily.
Thanks!
--Quanah
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
openldap-software@openldap.org