[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: berkeleydb logfiles

--On Tuesday, May 31, 2005 1:03 PM -0400 Francis Swasey <Frank.Swasey@uvm.edu> wrote:

On 5/31/05 12:37 PM, Jonathan Higgins wrote:

I want to clean up these log files. I have several replicas, and could roll downtime between the systems.

I am assuming the process will be to shutdown slapd, slapcat the data,
ace(delete) the openldap-data files + logs, and then slapadd, then start
slapd back up.

Uhm... no... I assume you have db_archive (or depending on how your slapd was built, perhaps it is named slapd_db_archive). If you check its manpage will tell you how to safely delete the log files which are no longer needed without having to shutdown your servers at all.


# Automatically remove log files that are no longer needed.

to your DB_CONFIG file is a nice way to deal with them.


-- Quanah Gibson-Mount Principal Software Developer ITSS/Shared Services Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html