Dear All , I face a problem as below environment.
a.) 4 x Openldap 2.4.8 which's config as N-Way Multi-Master.
b.) 4 x XEN Guest host Server running CentOS 5.1 & DB-4.6.21
c.) 4 x XEN Server running time sync every 5 min.
d.) Each of the Openldap Database stored information such as:
1. Postfix e-mail account / aliases config
2. Pam-LDAP account entry
3. E-mail Address Book
e.) All LDAP Server under the same Local Area Network
Config file which's N-Ray Multi-Master related.
/usr/local/etc/openldap/slapd.conf
For Host A = serverID1 = HOSTA.TEST.COM
For Host B = serverID2 = HOSTB.TEST.COM
For Host C = serverID3 = HOSTC.TEST.COM
For Host D = serverID4 = HOSTD.TEST.COM
Below is my case details.
1. There is no problems when I add / remove e-mail related information entry one by one. Each openldap Server could replicate information ( Add / Remove entry ) in short.
2. There is no problems when I add / remove PAM-LDAP login related infomation entry one by one. Each openldap Server could replicate information ( Add / Remove entry ) in short.
3. Thee is no problems when I add / remove e-mail address book entry one by one. each Openldap Server could replicate information ( Add / Remove entry ) in short.
Problems I found:
1. When I try to " mass import " E-mail address book from a LDIF file ( 200K LDIF entry which's include 1800 x cn entry ) on HOSTA , HOSTB / HOSTC / HOSTD only able to replicate around 600 ~ 1300 OR some times it could related all the 1800 entry of address book OR the openldap will shown as segment fault and services stop by itself.
2. If HOST A / B / C / D have 1800 LDAP Address book entry under ou=AddressBook,dc=test,dc=com , then I try to delete those 1800 entry. Host A could deleted those 1800 entry in short. But Host B / C / D can't replicate the entry that I delete on HOSTA by itself.
That's mean my N-Ray Multi-Master config can't 100% replicate itself database to the other database IF i " MASS INPORT " or " MASS DELETE " entry.
Question:
a) Is that normal for this case ?
b) I'm by using slapd.conf to STARTUP the slapd. And I also try to make use of -F /usr/local/etc/openldap/slapd.d to STARTUP the slapd. Both didn't have different, just want to know. If I am looking for N-Ray Multi-Master. By using slapd.conf OR slapd.d should be the best choice ?
c) What kind of log i should provide in this mail list could help for you all , and get help to debug my case ?
-d 256 OR -d 1024 while I startup the slapd ?
Many thanks for your create help , since N-Ray Multi-Master is new for me , so looking forward all of your help.
And looking forward all of your reply.
Thanks
Below is by DB_CONFIG on HOSTA / HOSTB / HOSTC / HOSTD
========================================================
# one 0.25 GB cache set_cachesize 0 268435456 1
# Data Directory #set_data_dir db
# Transaction Log settings set_lg_regionmax 262144 set_lg_bsize 2097152 #set_lg_dir logs ==========================================================
Config Symantec which's N-Ray Multi-Master Related.
===================================================
HOSTA:
serverID1
mirrormode on syncrepl rid=2 provider=ldap://HOSTB.TEST.COM bindmethod=simple binddn="cn=manager,dc=test,dc=com" credentials=secret searchbase="dc=test,dc=com" schemachecking=on type=refreshAndPersist retry="60 +"
syncrepl rid=3 provider=ldap://HOSTC.TEST.COM bindmethod=simple binddn="cn=manager,dc=test,dc=com" credentials=secret searchbase="dc=test,dc=com" schemachecking=on type=refreshAndPersist retry="60 +"
syncrepl rid=4 provider=ldap://HOSTD.TEST.COM bindmethod=simple binddn="cn=manager,dc=test,dc=com" credentials=secret searchbase="dc=test,dc=com" schemachecking=on type=refreshAndPersist retry="60 +" ===================================================
HOSTB:
serverID2
mirrormode on syncrepl rid=1 provider=ldap://HOSTA.TEST.COM bindmethod=simple binddn="cn=manager,dc=test,dc=com" credentials=secret searchbase="dc=test,dc=com" schemachecking=on type=refreshAndPersist retry="60 +"
syncrepl rid=3 provider=ldap://HOSTC.TEST.COM bindmethod=simple binddn="cn=manager,dc=test,dc=com" credentials=secret searchbase="dc=test,dc=com" schemachecking=on type=refreshAndPersist retry="60 +"
syncrepl rid=4 provider=ldap://HOSTD.TEST.COM bindmethod=simple binddn="cn=manager,dc=test,dc=com" credentials=secret searchbase="dc=test,dc=com" schemachecking=on type=refreshAndPersist retry="60 +"
====================================================
HOSTC:
serverID3
mirrormode on syncrepl rid=1 provider=ldap://HOSTA.TEST.COM bindmethod=simple binddn="cn=manager,dc=test,dc=com" credentials=secret searchbase="dc=test,dc=com" schemachecking=on type=refreshAndPersist retry="60 +"
syncrepl rid=2 provider=ldap://HOSTB.TEST.COM bindmethod=simple binddn="cn=manager,dc=test,dc=com" credentials=secret searchbase="dc=test,dc=com" schemachecking=on type=refreshAndPersist retry="60 +"
syncrepl rid=4 provider=ldap://HOSTD.TEST.COM bindmethod=simple binddn="cn=manager,dc=test,dc=com" credentials=secret searchbase="dc=test,dc=com" schemachecking=on type=refreshAndPersist retry="60 +"
============================================
HOSTD:
serverID4
mirrormode on syncrepl rid=1 provider=ldap://HOSTA.TEST.COM bindmethod=simple binddn="cn=manager,dc=test,dc=com" credentials=secret searchbase="dc=test,dc=com" schemachecking=on type=refreshAndPersist retry="60 +"
syncrepl rid=2 provider=ldap://HOSTB.TEST.COM bindmethod=simple binddn="cn=manager,dc=test,dc=com" credentials=secret searchbase="dc=test,dc=com" schemachecking=on type=refreshAndPersist retry="60 +"
syncrepl rid=3 provider=ldap://HOSTC.TEST.COM bindmethod=simple binddn="cn=manager,dc=test,dc=com" credentials=secret searchbase="dc=test,dc=com" schemachecking=on type=refreshAndPersist retry="60 +"
===================================================== _________________________________________________________________ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.a...
The only thing different should be the serverID, the syncrepl statements should be all the same, i.e. all 4 servers have all 4 syncrepl sections, even including it's own on.
openldap-software@openldap.org