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.
Adding:
# Automatically remove log files that are no longer needed. set_flags DB_LOG_AUTOREMOVE
to your DB_CONFIG file is a nice way to deal with them.
--Quanah
-- Quanah Gibson-Mount Principal Software Developer ITSS/Shared Services Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html