Logs in openldap/authdata ?

Affichage de 13 messages sur 3
Logs in openldap/authdata ? Pascal Robert 21/01/16 13:32
Hi guys,

Can’t find anything on Google or the list archives about this, hence the post. /var/db/openldap/authdata is using 48 GB, and 99% of this space is used for logs, who are in BDB format. Can logs older than 30 days be purged? I have logs in there from July 2014.

Thanks.

_____________________________________________________
MacEnterprise, Inc
http://www.macenterprise.org

Subscription Options and Archives
http://lists.psu.edu/archives/macenterprise.html
Re: Logs in openldap/authdata ? Stuart Ramdeen 21/01/16 13:40
Sounds to me like you are missing your DB_CONFIG file. This often
happens if a database is restored and the file gets forgotten.
Here is the default file from a 10.10.5 server box:

cat /var/db/openldap/authdata/DB_CONFIG
set_cachesize 0 134217728 1
set_flags DB_LOG_AUTOREMOVE
set_lk_max_locks 10000

I believe this file has remained the same since the 10.6 days.

It should automatically prune out the log files if you have this file in
place. I had to deal with a server the other day that had over 200GB of
logs in there. It was quite sluggish to say the least!

You can use db_archive -d to prune out log files that are no longer
necessary. Take a backup of them first and then blow them away.

Hope that helps

Stuart
--

Toucan Computing Ltd
The RSA Island Centre, 14-16 Island Centre Way, Enfield, Middlesex, EN3
6GS
Tel: 020 8351 5111   Fax: 020 8351 5112   www.toucancomputing.co.uk

Registered in England and Wales No: 3185327  Registered address as
stated
Re: Logs in openldap/authdata ? Pascal Robert 22/01/16 05:39
> Le 2016-01-21 à 16:40, Stuart Ramdeen <stu...@toucancomputing.co.uk> a écrit :
>
> Sounds to me like you are missing your DB_CONFIG file. This often happens if a database is restored and the file gets forgotten.
> Here is the default file from a 10.10.5 server box:
>
> cat /var/db/openldap/authdata/DB_CONFIG

Well, that file on my OD master is empty, but it’s not empty on the slave. That would explain everything (except why it’s empty).