[Dovecot] Corrupted transaction log file

Timo Sirainen tss at iki.fi
Tue Oct 26 23:39:11 EEST 2010


On 26.10.2010, at 19.58, Andre Nathan wrote:

> I run dovecot 2.0.6 on a two-machine cluster using OCFS2 as the file
> system. I have some error messages like these in my log:
> 
> Oct 25 01:07:50 box5 dovecot: lmtp(8886,
> suporte=100br.com at lmtp1.prv.f1.k8.com.br): Error: Corrupted transaction
> log file /var/lib/imap/user/a3/suporte=100br.com/stor
> age/dovecot.map.index.log seq 29: Transaction log corrupted unexpectedly
> at 21536: Invalid size 0 (type=0) (sync_offset=21908)

Have you set mmap_disable=yes?

> These two accounts happen to be accessed simultaneously by a number of
> people, but there are similar errors for "normal" accounts too, just not
> the same amount of logs. Is it not considered safe to do this kind of
> simultaneous access in a distributed filesystem like OCFS2?

Only if it works correctly, and it doesn't really look like it is..

> Is there a way to fix this error? Would a "doveadm force-resync" do it?

Those errors should fix themselves automatically. Still, it's not very good if they keep happening. Sooner or later they will cause user visible problems.


More information about the dovecot mailing list