Hi
I am using the latest Openldap.
Software- Openldap 2.4.33
Server - RHEL 5.8 64 bit
When i do an Ldapsearch, Ldapadd, Ldapdelete , the log.00000000x files are getting generated in the directory folder.
To auto remove them i did add the " set_flags DB_LOG_AUTOREMOVE " to the DB_CONFIG file which is present in the directory folder itself.
And I am using crontab to add the new data on the daily bases, but the log.00000000x files which are generated are not being auto removed..?
Can anyone help me regarding this issue..?
Is there a need to restart the server before adding the new data on the daily bases..? If so why is it so..?
Thanks bhee
On Wed, 19 Dec 2012, BheeshmaManjunath wrote:
To auto remove them i did add the " set_flags DB_LOG_AUTOREMOVE " to the DB_CONFIG file which is present in the directory folder itself.
And I am using crontab to add the new data on the daily bases, but the log.00000000x files which are generated are not being auto removed..?
Logs can't be removed unless checkpoints are being taken. Have you turned on periodic checkpointing in slapd?
Philip Guenther
How do I check that whether its check point is turned on or not.?? And how do I turn it off..?
Thanks for your time
Thanks Bhee
On Dec 19, 2012, at 9:49 AM, Philip Guenther guenther+ldaptech@sendmail.com wrote:
On Wed, 19 Dec 2012, BheeshmaManjunath wrote:
To auto remove them i did add the " set_flags DB_LOG_AUTOREMOVE " to the DB_CONFIG file which is present in the directory folder itself.
And I am using crontab to add the new data on the daily bases, but the log.00000000x files which are generated are not being auto removed..?
Logs can't be removed unless checkpoints are being taken. Have you turned on periodic checkpointing in slapd?
Philip Guenther
On Wed, 19 Dec 2012, BheeshmaManjunath wrote:
How do I check that whether its check point is turned on or not.?? And how do I turn it off..?
man slapd-bdb
checkpoint <kbyte> <min> Specify the frequency for checkpointing the database transaction log. A checkpoint operation flushes the database buffers to disk and writes a checkpoint record in the log. The checkpoint will occur if either <kbyte> data has been written or <min> min- utes have passed since the last checkpoint. Both arguments default to zero, in which case they are ignored. When the <min> argument is non-zero, an internal task will run every <min> min- utes to perform the checkpoint. See the Berkeley DB reference guide for more details.
BheeshmaManjunath wrote:
Hi
I am using the latest Openldap.
Software- Openldap 2.4.33
Server - RHEL 5.8 64 bit
When i do an Ldapsearch, Ldapadd, Ldapdelete , the log.00000000x files are getting generated in the directory folder.
To auto remove them i did add the " set_flags DB_LOG_AUTOREMOVE " to the DB_CONFIG file which is present in the directory folder itself.
And I am using crontab to add the new data on the daily bases, but the log.00000000x files which are generated are not being auto removed..?
Can anyone help me regarding this issue..?
Is there a need to restart the server before adding the new data on the daily bases..? If so why is it so..?
No, there's no need to restart. But you must configure a checkpoint. Read the slapd-bdb(5) manpage.
openldap-technical@openldap.org