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

Re: new admin guide draft

--On Thursday, September 25, 2003 2:26 PM -0400 Jonghyuk Choi <jongchoi@us.ibm.com> wrote:

What I have in mind is the combinations of three options in slapdadd.

slapadd -p : promote  : if syncrepl%d entries are found
                                         find maximum cookie value out
the syncreplCookie stored in them,
                                         and create an ldapsync entry
containing the maximum cookie value.
                                         do not add the syncrepl%d
entries in the provider replica.
                                     else if ldapsync entry is found
                                          add it to the provider replica
as is.

slapadd -r : demote : if ldapsync entry is found (provider->consumer)
                                       create syncrepl%d entries having
the contextCSN stored in the ldapsync entry.
                                  else if syncrepl%d entries are found
                                       add them to the consumer replica
as is.

-w : if -w option is used in addition to -p / -r,
                 slapadd will recalculate the contextCSN and
syncreplCookie in the
                 ldapsync and syncrepl%d entries respectively,
                 based on the entryCSN of the entries.

(hard to find appropriate letters left available in the slaptool

Hm, does this rely on master/replica's being up when the slapadd command is run? What if I'm loading all the systems simultaneously, so nothing is running? From what you've said about the datastore, much of what I was thinking on this matter doesn't actually matter, because it can't be tracking as much information as I'd need it to, but I'll throw the question out for discussion. ;)

In the slapadd description above assumes that master/replica being down when slapadd is run. The syncrepl and ldapsync entries are searched for in the input ldif file not from the running directory.

Ah, that makes a lot of sense... I like this idea, and would be happy to test it.


Quanah Gibson-Mount
Principal Software Developer
ITSS/TSS/Computing Systems
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html