[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: bdb binary log files
I'm using openldap 2.4.11 on linux x86 system, with one database bdb
backend, with the following options in slapd.conf file:
database bdb
[..]
dbnosync
cachesize 1000
checkpoint 0 0
[..]
You should set non-zero checkpoints, or there is no guarantee that you
will have any data after unexpected shutdown.
Is it possible to disable bdb log.00000[0..n] files completely?
Yes, but that is a bad idea.
I can slapcat the database, then remove these, slapadd and reindex
database, and there's no logs, but is it possible to avoid creating
them? Or set up some limit of numer/size of them?
In your DB_CONFIG add
set_flags DB_LOG_AUTOREMOVE
This will cause transaction logs to be removed after they are no
longer necessary for db recovery. (typically 2-6 10MByte logs will
exist)
Additionally - when I have a "DB_CONFIG" file in /etc/ldap, and
a DB_CONFIG file in database storage dir, e.g. /var/lib/ldap, which
one is actually used? My guess'd be /var/lib/ldap/DB_CONFIG, but
I'd like to know for sure :-)
DB_CONFIG only configures BDB; it must be in the database environment
directory.
You can use symbolic links to point to it from other locations, however.
Matthew Backes
Symas Corporation
mbackes@symas.com