Koozali.org: home of the SME Server

Large number of files in /var/log/bdb , normal?

Offline Michail Pappas

  • *
  • 342
  • +1/-0
Large number of files in /var/log/bdb , normal?
« on: November 12, 2012, 01:37:50 PM »
Hello all,

running a plain 8.0 server in server-only mode, providing mostly POP-3 email for 170 users. A small number of them have webmail as well. No ibays or squid enabled/used.

I've stumbled to some 270 files of the format log.0000000XXX (from 001 to 270 or so), consuming some 3Gbytes, in /var/log/bdb. Is this normal? Do these require some sort of cleanup?

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Large number of files in /var/log/bdb , normal?
« Reply #1 on: November 12, 2012, 03:19:16 PM »
I've stumbled to some 270 files of the format log.0000000XXX (from 001 to 270 or so), consuming some 3Gbytes, in /var/log/bdb. Is this normal?

Doesn't sound like it.

Quote
Do these require some sort of cleanup?

Probably. Please open a bug report.

Offline Michail Pappas

  • *
  • 342
  • +1/-0
Re: Large number of files in /var/log/bdb , normal?
« Reply #2 on: November 13, 2012, 06:47:53 AM »
Thanks, I've opened bug report 7166.

Offline chris burnat

  • ****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Re: Large number of files in /var/log/bdb , normal?
« Reply #3 on: November 13, 2012, 07:29:04 AM »
Thanks, I've opened bug report 7166.

Checked this on my production box, been running for over 12 months, only a few users:

[root@gateway0 bdb]# uname -a
Linux gateway0 2.6.18-308.13.1.el5PAE #1 SMP Tue Aug 21 17:50:26 EDT 2012 i686 athlon i386 GNU/Linux

Please follow at Bugzilla.
Reprint of last comment there:
#only two files - same size as yours:
[root@gateway0 bdb]#  ls -laF /var/log/bdb/log.0000000001
-rw------- 1 ldap ldap 10485760 Sep 12 10:43 /var/log/bdb/log.0000000001
[root@gateway0 bdb]#  ls -laF /var/log/bdb/log.0000000002
-rw------- 1 ldap ldap 10485760 Sep 17 19:27 /var/log/bdb/log.0000000002

System is native Raid1 (2 disks) and no problems whatsoever, including reconfigure time etc.  It may be that your problem has nothing to do with the size of these logs.
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.