![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
An delete operation of the logfiles is'nt good, I should use the Berkley Tools to delete old logfiles. But the Berkleytools are functionally only when the Openldap is stopped. But I can't stop the Openldap in the Production. |
|
On some Days I'm write so much Datas that the Backend produces 4 GB logfiles in 24 hours - that's to much - I have only an 5 GB HDD. And when the file system is full than stopped my application - isn't good. What can I do that no or not so much logfiles are written? |
#3
| |||
| |||
|
|
For a log file to be deleted, it must not be needed for recovery or transaction aborts. This means that there must be no transactions in progress that were started before the end of the log file, and there must be a checkpoint in a later log file. So the two things to check are that transactions aren't running for too long, and that checkpoints are running regularly. If that is the case, you'll get a list of logfiles that can safely be deleted by running db_archive in the environment directory. |
#4
| |||
| |||
|
#5
| |||
| |||
|
#6
| |||
| |||
|
#7
| |||
| |||
|
|
Hi, thanks for the hint. It helps !! I recompiled berkeley-db 4.2.52 and openldap 2.2.26 and now db_archive and db_stat -t works fine. One *big problem* is left: When i start slapd, db_stat -t shows that no transaction is active. But after the first ldapsearch or access to the OpenLDAP server via the perl API, there appears an active transaction. This transaction never vanishes. Thus, the db_archive never offers some more logfiles to be deleted. Do you have any hints/ideas ? |
![]() |
| Thread Tools | |
| Display Modes | |
| |