RE: Cyrus & Berkeley db3 error

From: Chris Twa <support_at_no.spam.please>
Date: Wed Jan 23 2008 - 13:56:48 CST

Check:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-k
ernel-limits.html

fstat will list active files by pid while sysctl kern.openfiles will
describe the files in use by the kernel.

Chris Twa

Saskaweb IT Solutions

-----Original Message-----
From: owner-linux@slg.org [mailto:owner-linux@slg.org] On Behalf Of Tim
Schneider
Sent: Wednesday, January 23, 2008 12:40 PM
To: linux@slg.org
Subject: Cyrus & Berkeley db3 error

Got my cyrus imap with sasl and sieve up and running now thanks to Steve
for the help.

Today I logged in just to let people know that I may be late arriving to
the meeting tonight and I noticed that I had not received any email for
about 1 1/2 hours. There should have been many spam.

So I check the server and find that the /var/imap/db berkeley database
is corrupt.

I found this log entry:
Jan 23 10:41:16 ibm lmtpunix[17244]: DBERROR db3:
/var/imap/db/log.0000000001: log file open failed: Too many open files
in system Jan 23 10:41:16 ibm lmtpunix[17244]: DBERROR db3: PANIC: Too
many open files in system Jan 23 10:41:16 ibm lmtpunix[17244]: DBERROR:
critical database situation

So could someone give me a crash course on FreeBSD system management as
far as it pertains to finding the setting that limits the number of open
files and maybe listing open files. Is there a common, easy fix for
this issue.

I was able to recover the database with:
/usr/local/bin/db3_recover -vh /var/imap/db

Thanks,
Received on Wed Jan 23 13:57:00 2008

This archive was generated by hypermail 2.1.8 : Wed Jan 23 2008 - 13:57:05 CST