Trying Dovecot Replication with dsync

Minhas Listas todasminhaslistas at gmail.com
Thu Aug 14 20:40:27 UTC 2014


Hi,

I have a failover cluster for mail server with:
Ubuntu12.04 + DRBD (for block replication) + Ext4 filesystem
+ Dovecot-2.0.19-2 with Mdbox

It works fine with ~50k accounts. My cluster design:
http://adminlinux.com.br/cluster_design.txt

I plan to test Dovecot Replication with dsync to build an active/active
cluster with load balancing. Can anyone direct me to some literature? A
tutorial for example.

I'm installing a cluster (for tests) with Ubuntu 14.04 + Ext4 filesystem
(without Drbd) + Dovecot-2.2.9-1ubuntu2.1. My conf is in:
http://adminlinux.com.br/replication-doveconf.txt

I'm following this doc http://wiki2.dovecot.org/Replication but I'm getting
some errors:

1)
Aug 14 15:39:34 ceph1 dovecot: imap(account=domaintest.com): Error:
open(/var/run/dovecot/replication-notify-fifo) failed: Permission denied

What is the correct perms for /var/run/dovecot/replication-notify-fifo ?
Currently:
# ll /var/run/dovecot/replication-notify-fifo
prw------- 1 root root 0 Aug 14 15:57
/var/run/dovecot/replication-notify-fifo|

2)
Aug 14 16:02:34 ceph1 dovecot: dsync-server(account=domaintest.com): Error:
Couldn't create lock */var/lib/imap/account=domaintest.com
<http://domaintest.com>/*.dovecot-sync.lock: No such file or directory
Aug 14 16:02:34 ceph1 dovecot: dsync-local(account=domaintest.com): Error:
Couldn't create lock */var/lib/imap/account=domaintest.com
<http://domaintest.com>/*.dovecot-sync.lock: No such file or directory

In my production cluster, it is automatically created by dovecot when the
user performs the first login:
*/var/lib/imap/*<account> for INDEX
*/var/spool/imap/*<account> for Mdbox

Thanks!
-- 
Thiago Henrique


More information about the dovecot mailing list