Hello,
I have 2 openldap servers running on Ubuntu 12.04. One is the primary and the other is a slave. My problem is that ldap keeps dumping files into that directory log.00000000001 then log.000000002 and so on thus filling up the drive. Is it safe to remove these logs? How do i know which one it is still using. Ideally it would be great for the server to automatically remove the log once it was done using it. I could set up a cronjob to prune it but I don't know how far back it needs to the logs to be.
Any ideas?
Thanks
--On Monday, September 23, 2013 3:13 PM -0500 Steve Herrera sherrera@fsmail.bradley.edu wrote:
Hello,
I have 2 openldap servers running on Ubuntu 12.04. One is the primary and the other is a slave. My problem is that ldap keeps dumping files into that directory log.00000000001 then log.000000002 and so on thus filling up the drive. Is it safe to remove these logs? How do i know which one it is still using. Ideally it would be great for the server to automatically remove the log once it was done using it. I could set up a cronjob to prune it but I don't know how far back it needs to the logs to be.
Those are BDB logs. If you have a checkpoint defined in your slapd config, you can enable automatic log deletion of unused files by properly configuring your DB_CONFIG file for your BDB database.
--Quanah
--
Quanah Gibson-Mount Lead Engineer Zimbra Software, LLC -------------------- Zimbra :: the leader in open source messaging and collaboration
Steve Herrera wrote:
I have 2 openldap servers running on Ubuntu 12.04. One is the primary and the other is a slave. My problem is that ldap keeps dumping files into that directory log.00000000001 then log.000000002 and so on thus filling up the drive. Is it safe to remove these logs? How do i know which one it is still using. Ideally it would be great for the server to automatically remove the log once it was done using it. I could set up a cronjob to prune it but I don't know how far back it needs to the logs to be.
http://www.openldap.org/faq/data/cache/738.html
Ciao, Michael.
On Mon, 23 Sep 2013, Steve Herrera wrote:
Hello,
I have 2 openldap servers running on Ubuntu 12.04. One is the primary and the other is a slave. My problem is that ldap keeps dumping files into that directory log.00000000001 then log.000000002 and so on thus filling up the drive. Is it safe to remove these logs? How do i know which one it is still using. Ideally it would be great for the server to automatically remove the log once it was done using it. I could set up a cronjob to prune it but I don't know how far back it needs to the logs to be.
Any ideas?
BDB transaction logs. See DB_LOG_AUTOREMOVE.
Thank you. I will configure the DB_CONFIG file for DB log autoremove. I did not know that was available. Thanks again.
Steve Herrera System Administration Bradley University Phone: 309 / 677-2336 FAX: 309 / 677-3460 Email: *sherrera@fsmail.bradley.edu*
On Mon, Sep 23, 2013 at 3:57 PM, Aaron Richton richton@nbcs.rutgers.eduwrote:
On Mon, 23 Sep 2013, Steve Herrera wrote:
Hello,
I have 2 openldap servers running on Ubuntu 12.04. One is the primary and the other is a slave. My problem is that ldap keeps dumping files into that directory log.00000000001 then log.000000002 and so on thus filling up the drive. Is it safe to remove these logs? How do i know which one it is still using. Ideally it would be great for the server to automatically remove the log once it was done using it. I could set up a cronjob to prune it but I don't know how far back it needs to the logs to be.
Any ideas?
BDB transaction logs. See DB_LOG_AUTOREMOVE.
http://www.openldap.org/faq/**data/cache/738.htmlhttp://www.openldap.org/faq/data/cache/738.html
openldap-technical@openldap.org