cyrus-imapd exporting databases failed on shutdown - deliver.db.skiplist 2048M

Pongrácz István pongracz.istvan at gmail.com
Sat Jun 20 15:04:52 EDT 2020


Hi,

I run into a problem on an old clearos server, where the cyrus shutdown
always failed at step exporting databases.
As I checked the situation using ps ax on an other console, I found
that, it was exporting deliver.db.skiplist file, which failed after a
loooong time (some minutes).
I checked that file on the filesystem, I saw the file size is 2048MB,
which seems a limit for me and I suspect the problem should be that,
the 32 bit cyrus cannot write more data to that file and caused the
problem.
As I read the db_export.log, that confirmed my theory, file size limit
exceeded.

This kind of issue causes long hangup at system shutdown and I guess
causes other potential problems, as this file could be truncated and
useless.

My question, do you have any idea/hint, what to do to get it work?
For example, changing export.db format to something else? (How?)
Thank you!

I copied some important information below, please check it.

db_export.log:
cvt_cyrusdb_all version: 1.2.1db_checkpoint: open: No such file or
directory/usr/lib/cyrus-imapd/cvt_cyrusdb_all: line 199:  9150 File
size limit exceeded$cvt_cyrusdb "$target" "$old_db"
"${target}.skiplist" skiplistERROR: unable to convert
/var/lib/imap/deliver.db from berkeley to skiplistremoved
`/var/lib/imap/db/log.0000000001'removed
`/var/lib/imap/db/__db.001'removed `/var/lib/imap/db/__db.002'removed
`/var/lib/imap/db/__db.003'removed `/var/lib/imap/db/__db.004'removed
`/var/lib/imap/db/__db.005'removed `/var/lib/imap/db/__db.006'removed
`/var/lib/imap/db/__db.007'removed `/var/lib/imap/db/__db.008'removed
`/var/lib/imap/db/__db.009'removed `/var/lib/imap/db/__db.010'removed
`/var/lib/imap/db/__db.011'removed `/var/lib/imap/db/__db.012'

The system details:
 * Clearos 5.2 32 bit
 * Cyrus is 2.3.11
 * kernel 2.6.18-308.1.1.v5
 * filesystem is ext3 (no problem to write 200-300GB into a single
file)
 * size of email folder (/var/spool/imap/*): 1007 GB
 * size of /var/lib/imap/deliver.db 48MB

Other interesting config files:


db.cfg.cache content
annotation_db=skiplistduplicate_db=berkeleymboxkey_db=skiplistmboxlist_
db=skiplistptscache_db=berkeleyquota_db=quotalegacyseenstate_db=skiplis
tsieve_version=2.2.3subscription_db=flattlscache_db=berkeley


/var/lib/imap/db/DB_CONFIG
set_cachesize 0 8388608 8set_lg_regionmax 5242880set_lg_bsize 8097152



Thank you!

István (Steve)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20200620/6ffd1a40/attachment.html>


More information about the Info-cyrus mailing list