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

Re: (ITS#4864) -r option "redirects" to logfile, breaks replication



[please keep the ITS in CC]

Eubank, Chris LCS:EX wrote:
> Am running Solaris 10, and the version I stuck in the log.
> 
> When I created an "openldaprc" and used the variable for the
> replication log,

What is the "variable for the replication log"?  All one usually needs
to do is define a replogfile in slapd.conf(5)

> (which ends up obviously running the slurpd daemon
> with the -r switch),

Again: there's no need to use -r if replogfile is in slapd.conf(5); if
there is no replogfile in slapd.conf(5), slapd(8) will not generate any
log, so slurpd(8) will have nothing to do

> it sent the replication data to the logfile and
> not to the replication hosts being specified.

Who sent the replication data to the logfile?  slapd(8) is supposed to
write replication data to the file specified in replogfile
(sladp.conf(5)); slurpd(8) is supposed to read that file (whose
existence and location is known by parsing slapd.conf(5)), copy the
content it is able to process to its own replication log, which resides
in slurpd's working directory (default or passed with -t) and is called
slurpd.replog, send that content to the slaves, and remove the data that
has been handled from slapd's replication log.

This is how things are expected to work.  As you may see, -r never comes
into play; it's intended to be used to force slurpd processing of a
different file, which may be required for special purposes.  Do you have
any special needs, or are you simply trying to set up usual replication?

> Does that make more sense?

See comments above.

p.



Ing. Pierangelo Masarati
OpenLDAP Core Team

SysNet s.n.c.
Via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
------------------------------------------
Office:   +39.02.23998309
Mobile:   +39.333.4963172
Email:    pierangelo.masarati@sys-net.it
------------------------------------------