high-availability Cyrus (i.e. glusterfs)?

Tomasz Chmielewski mangoo at wpkg.org
Tue Sep 28 20:57:18 EDT 2010


On 28.09.2010 12:55, Bron Gondwana wrote:
> On Tue, Sep 28, 2010 at 12:13:14PM +0200, Tomasz Chmielewski wrote:
>> On 28.09.2010 11:55, Michael Menge wrote:
>>
>>> Replication was introduced in 2.3.x. There are other features in 2.3.x
>>> I don't want to live with out (e.g. delayed expunge). There was a
>>> diskussion on the lists about that Debian wants to upgrade cyrus.
>>> The main problem is the upgrade path (update of BDB Databases).
>>
>> Assuming I start with empty mail pool (no accounts) - how can I trigger
>> the creation of Cyrus databases (in skiplist format - I assume adding
>> relevant skiplist info to the config file is not enough)?
> 
> All databases will create automatically upon use.  Just set the type
> in the config file.

Hmm - I added this to imapd.conf:

annotation_db: skiplist
duplicate_db: skiplist
mboxlist_db: skiplist
ptscache_db: skiplist
quota_db: skiplist
seenstate_db: skiplist
tlscache_db: skiplist


When starting cyrus, I have this:

Sep 29 02:53:48 omega cyrus/master[1089]: process started
Sep 29 02:53:48 omega cyrus/ctl_cyrusdb[1090]: recovering cyrus databases
Sep 29 02:53:48 omega cyrus/ctl_cyrusdb[1090]: done recovering cyrus databases
Sep 29 02:53:49 omega cyrus/cyr_expire[1091]: DBERROR db4: Program version 4.2 doesn't match environment version
Sep 29 02:53:49 omega cyrus/cyr_expire[1091]: DBERROR: dbenv->open '/shared/var/lib/cyrus/db' failed: Invalid argument
Sep 29 02:53:49 omega cyrus/cyr_expire[1091]: DBERROR: init() on berkeley
Sep 29 02:53:49 omega cyrus/cyr_expire[1091]: duplicate_prune: pruning back 3 days
Sep 29 02:53:49 omega cyrus/cyr_expire[1091]: duplicate_prune: purged 0 out of 0 entries
Sep 29 02:53:49 omega cyrus/cyr_expire[1091]: expunged 0 out of 0 messages from 0 mailboxes
Sep 29 02:53:49 omega cyrus/tls_prune[1092]: tls_prune: purged 0 out of 0 entries
Sep 29 02:53:49 omega cyrus/master[1089]: ready for work
Sep 29 02:53:49 omega cyrus/ctl_cyrusdb[1093]: checkpointing cyrus databases
Sep 29 02:53:49 omega cyrus/ctl_cyrusdb[1093]: done checkpointing cyrus databases


# file /shared/var/lib/cyrus/db/*
/shared/var/lib/cyrus/db/__db.001:       data
/shared/var/lib/cyrus/db/__db.002:       data
/shared/var/lib/cyrus/db/__db.003:       data
/shared/var/lib/cyrus/db/__db.004:       data
/shared/var/lib/cyrus/db/__db.005:       data
/shared/var/lib/cyrus/db/log.0000000001: Berkeley DB (Log, version 8, native byte-order)
/shared/var/lib/cyrus/db/skipstamp:      data


The error and "Berkeley DB" log file is there even if I empty this directory, and start Cyrus.

Did I miss some value in imapd.conf?



-- 
Tomasz Chmielewski
http://wpkg.org


More information about the Info-cyrus mailing list