ctl_cyrusdb using 99& CPU
Steinar Bang
sb at dod.no
Thu Nov 15 15:33:32 EST 2007
Platform: Intel Pentium II,
debian etch,
cyrus21-imapd 2.1.18-5.1
When starting up cyrus with
/etc/init.d/cyrus21 start
the only cyrus process running is
/usr/sbin/ctl_cyrusdb -r
and it's running using ~99% CPU, but with little memory and disk use
What's printed in /var/log/syslog is:
Nov 15 21:16:04 doohan cyrus/master[12790]: process started
Nov 15 21:16:04 doohan cyrus/master[12791]: about to exec /usr/sbin/ctl_cyrusdb
Nov 15 21:16:04 doohan cyrus/ctl_cyrusdb[12791]: recovering cyrus databases
I've left the process for the entire day today, and it still didn't
complete.
When I stop cyrus with
/etc/init.d/cyrus21 stop
ctl_cyrusdb continues to run with the same high CPU use.
When I start cyrus again with
/etc/init.d/cyrus21 start
I see the following in the syslog:
Nov 15 21:29:11 doohan cyrus/master[12843]: process started
Nov 15 21:29:11 doohan cyrus/master[12844]: about to exec /usr/sbin/ctl_cyrusdb
Nov 15 21:29:11 doohan cyrus/ctl_cyrusdb[12844]: recovering cyrus databases
Nov 15 21:29:12 doohan cyrus/ctl_cyrusdb[12791]: DBERROR: dbenv->open '/var/lib/cyrus/db' failed: DB_RUNRECOVERY: Fatal error, run database recovery
Nov 15 21:29:12 doohan cyrus/ctl_cyrusdb[12791]: DBERROR: init /var/lib/cyrus/db: cyrusdb error
Nov 15 21:29:12 doohan cyrus/ctl_cyrusdb[12791]: done recovering cyrus databases
and the only process running is a new ctl_cyrusdb process (with a new
PID), still with a high CPU usage.
I've run cyrrecover as user cyrus, and it ran without an error, but it
didn't help with the problem. Still the only process that runs is
ctl_cyrusdb, and the same DBERROR message in syslog when starting cyrus
after stopping it.
Does anyone know what causes this? Is there some diagnosis or log I
havent found? I've run cyrreconstruct without any argument, and it
seemed to work on all IMAP folders. Should I have used an argument?
Thanx!
- Steinar
More information about the Info-cyrus
mailing list