--On Thursday, February 16, 2012 2:23 PM -0500 Aaron Bennett abennett@clarku.edu wrote:
Hi,
I'm preparing to rollout 2.4.28 with n-way multimaster (in this case, it's really 2-way multimaster but could become more), and I'm looking to clarify what the exact canonical way to force a full refresh. Here's what I've come up with:
First, I would *strongly* advise you to download 2.4.29 plus the following patches, as they fix issues with Syncrepl, since I'm guessing you are not using delta-syncrepl based MMR.
By "full refresh" I mean, blow away whatever is on machine Y with whatever's on machine X.
olcServerID: 1 ldaps://animal.clarku.edu
olcServerID: 2 ldaps://zoot.clarku.edu
olcSyncrepl: {0}rid=001 provider=ldaps://animal.clarku.edu binddn="DN OF REPLICATION USER" bindmethod=simple credentials=<PASSWORD> searchbase="dc=clarku,dc=edu" type=refreshAndPersist retry="5 5 300 5" timeout=1
olcSyncrepl: {1}rid=002 provider=ldaps://zoot.clarku.edu binddn="DN OF REPLICATION USER " bindmethod=simple credentials=<PASSWORD> searchbase="dc=clarku,dc=edu" type=refreshAndPersist retry="5 5 300 5" timeout=1
Stop slapd on zoot.
slapcat > ocrap-backup.ldif
rm –rf /var/lib/ldap/* on zoot
SLAPD_OPTIONS="-c \"rid=001,sid=001\"" /etc/init.d/slapd
start
Then wait and it will refresh.
Is this correct? Is there some easier way? Is there a way to do it without the rm –rf ? After it's done, do I need to restart slapd again without the –c option?
You definitely have to do the rm -rf to remove the old DB. I would suggest, however, that you just slapcat the other master and load the data in to your the one you are updating, that will significantly reduce the time to sync.
--Quanah
--
Quanah Gibson-Mount Sr. Member of Technical Staff Zimbra, Inc A Division of VMware, Inc. -------------------- Zimbra :: the leader in open source messaging and collaboration