--On Friday, January 8, 2021 12:51 AM +0000 paul.jc@yahoo.com wrote:
Hello all,
I am migrating to delta-syncrepl and have a couple questions.
I currently back-up my data.mdb file for restore purposes (using mdb_copy). Now that I am using delta-syncrepl, do I also need to be concerned with the accesslog data.mdb file in the event of a restore?
What is the sync behavior of a consumer if it is configured to use delta-syncrepl and the provider is restored but not the accesslog?(i.e. the accesslog would be new on initial start of slapd after a restore)?
Files in question: /var/lib/ldap/data.mdb /var/lib/ldap/accesslog/data.mdb
Hi Paul,
The accesslog database is tied to the primary database for a specific point of time. I.e., the only way to generate an accesslog DB export that can be safely restored is if slapd is stopped, and both the primary database and the accesslog database are exported. The main purpose of accesslog DB exports is to be able to audit what happened at a specific point in time if replication issues are encountered. The other purpose would be for when doing a migration from system A to system B in a controlled manner where slapd is stopped as previously noted.
If the provider's primary DB is restored and there is no accesslog DB existing, the provider will generate a new empty accesslog DB, from which point any new changes will be written. If a consumer that is generally in sync with the provider connects, it will do a "mini REFRESH" to ensure it has all changes from the point at which it last received a given change from the provider.
I would note that in an MPR environment, other providers (say B,C,D) would have the changes they received from provider A in their accesslog as long as their DBs haven't been reset, so it provides a mechanism for consumers to stay up to date with where "A" was at prior to its regeneration (as long as B,C,D have not also had their accesslog DBs reset).
Hope that helps!
Regards, Quanah
--
Quanah Gibson-Mount Product Architect Symas Corporation Packaged, certified, and supported LDAP solutions powered by OpenLDAP: http://www.symas.com