Hello thereMy DB_CONFIG looks like this set_cachesize 0 716800 0set_lg_bsize 2097512set_lg_dir /usr/local/var/openldap-logsset_flags DB_LOG_AUTOREMOVE Recently , we have few batch processes running in the LDAP server for Datawarehouse groups and other apps and this is causing DB logs to grow . When I do a ls -l the size of the logs are almost 4GB in size. This is causing trouble and we don't want this many logs. How do I limit the log size so that it doesn't exceed lets say 1 GB . These DB logs are of very little importance to us. We periodically do a backup using slapcat and we can use this in case we have a fatal crash .Please throw some light on how to limit these DB logs . Thanks Jeevan
--On Monday, August 12, 2013 4:49 PM +0000 jeevan kc jeev_biz@hotmail.com wrote:
Hello there My DB_CONFIG looks like this
set_cachesize 0 716800 0 set_lg_bsize 2097512 set_lg_dir /usr/local/var/openldap-logs set_flags DB_LOG_AUTOREMOVE
Recently , we have few batch processes running in the LDAP server for Datawarehouse groups and other apps and this is causing DB logs to grow . When I do a ls -l the size of the logs are almost 4GB in size. This is causing trouble and we don't want this many logs. How do I limit the log size so that it doesn't exceed lets say 1 GB . These DB logs are of very little importance to us. We periodically do a backup using slapcat and we can use this in case we have a fatal crash . Please throw some light on how to limit these DB logs . Thanks Jeevan
OpenLDAP version? BDB version? Do you have a BDB checkpoint setting?
--Quanah
--
Quanah Gibson-Mount Lead Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
Thanks for the replyOpenldap 2.4.30 BDb 4.8.30And no I don't have BDB checkpoint setting.
Jeevan
Date: Mon, 12 Aug 2013 10:05:50 -0700 From: quanah@zimbra.com To: jeev_biz@hotmail.com; openldap-technical@openldap.org Subject: Re: DB config and log files
--On Monday, August 12, 2013 4:49 PM +0000 jeevan kc jeev_biz@hotmail.com wrote:
Hello there My DB_CONFIG looks like this
set_cachesize 0 716800 0 set_lg_bsize 2097512 set_lg_dir /usr/local/var/openldap-logs set_flags DB_LOG_AUTOREMOVE
Recently , we have few batch processes running in the LDAP server for Datawarehouse groups and other apps and this is causing DB logs to grow . When I do a ls -l the size of the logs are almost 4GB in size. This is causing trouble and we don't want this many logs. How do I limit the log size so that it doesn't exceed lets say 1 GB . These DB logs are of very little importance to us. We periodically do a backup using slapcat and we can use this in case we have a fatal crash . Please throw some light on how to limit these DB logs . Thanks Jeevan
OpenLDAP version? BDB version? Do you have a BDB checkpoint setting?
--Quanah
--
Quanah Gibson-Mount Lead Engineer Zimbra, Inc
Zimbra :: the leader in open source messaging and collaboration
--On Monday, August 12, 2013 5:18 PM +0000 jeevan kc jeev_biz@hotmail.com wrote:
Thanks for the reply Openldap 2.4.30 BDb 4.8.30 And no I don't have BDB checkpoint setting.
Set a checkpoint.
--Quanah
--
Quanah Gibson-Mount Lead Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
On Mon, 12 Aug 2013, jeevan kc wrote:
Hello thereMy DB_CONFIG looks like this set_cachesize 0 716800 0 set_lg_bsize 2097512 set_lg_dir /usr/local/var/openldap-logs set_flags DB_LOG_AUTOREMOVE
Recently , we have few batch processes running in the LDAP server for Datawarehouse groups and other apps and this is causing DB logs to grow . When I do a ls -l the size of the logs are almost 4GB in size. This is causing trouble and we don't want this many logs. How do I limit the log size so that it doesn't exceed lets say 1 GB . These DB logs are of very little importance to us. We periodically do a backup using slapcat and we can use this in case we have a fatal crash . Please throw some light on how to limit these DB logs . Thanks
Please see the Oracle documentation relating to set_lg_max, and the slapd-bdb(5) / OpenLDAP resources relating to checkpointing.
Jeevan
openldap-technical@openldap.org