[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: syncrepl with accesslog database



John Morrissey wrote:
On Thu, Mar 13, 2008 at 12:53:04PM -0400, John Morrissey wrote:
I'm trying to replicate (with syncrepl) the bdb database generated by the
accesslog overlay. This is with 2.3.41 on both provider and consumer.
slapd complains:

do_syncrep2: rid 002 got empty syncUUID
do_syncrepl: rid 002 retrying (29 retries left)

Sure enough, the entry for my accesslog database's suffix doesn't have an
entryUUID:

dn: cn=log
objectClass: auditContainer
cn: log
structuralObjectClass: auditContainer
contextCSN: 20080313163024Z#000000#00#000000

lastmod is not explicitly enabled for this database, but slapd.conf(5)
says the default is on. I'm reasonably sure I didn't specify 'lastmod off'
for that database at the time it would have been created.

Given that my consumers are using delta-syncrepl (hence the accesslog), is
there any reason I can't/shouldn't replicate the accesslog itself, too?

I've poked at this a little more, and I'm still not sure why this accesslog db didn't get an entryUUID. Am I silly wanting to replicate the accesslog, or did I do something wrong during its initial configuration/creation?

Yes, it seems a bit silly to explicitly replicate it; that means the producer has to send its contents twice to each delta-sync consumer. Just configure an accesslog overlay on each consumer and let them regenerate the log locally.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/