- 论坛徽章:
- 0
|
windows 下的LDAP:日志问题
I assume you are using BDB 4.2.52 with necessary patches, never use BDB 4.3.XX as OpenLDAP.org developers has not tested it fully.
[root@host /var/lib/ldap]# file log.0000000001
log.0000000001: data
This file is NOT a textual log file, it is part of the OpenLDAP database log file, please do not anyhow remove it.
To "autoremove" un-wanted/outdated BDB log files:
1) Add a "checkpoint" directive to slapd.conf, eg:
checkpoint 256 15
2) Add a "set_flags DB_LOG_AUTOREMOVE" directive to DB_CONFIG (in OpenLDAP data files directory, eg: /var/lib/ldap)
set_flags DB_LOG_AUTOREMOVE
3) Restart slapd.
Gary
See "man slapd-bdb" for more info
===
checkpoint <kbyte>; <min>;
Specify the frequency for checkpointing the database transaction
log upon updating of the database. A checkpoint flushes the
database buffers to disk and writes a checkpoint record in the
log. Upon a database update, a checkpoint will occur if either
<kbyte>; data has been written or <min>; minutes have passed since
the last checkpoint. Both arguments default to zero, in which
case they are ignored. Note: checkpointing by this directive
occurs only upon execution of a database update. If one desires
checkpointing to occur otherwise, db_checkpoint(1) or some other
external process should be used to cause a database checkpoint
to be taken. See the Berkeley DB reference guide for more
details.
===
See this post in OpenLDAP SW mail list:
http://www.openldap.org/lists/openldap-software/200412/msg00104.html |
|