[Dovecot] Corrupted transaction log file

Andre Nathan andre at digirati.com.br
Tue Oct 26 20:58:08 EEST 2010


Hello

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)

Oct 25 01:07:50 box5 dovecot: lmtp(8886,
suporte=100br.com at lmtp1.prv.f1.k8.com.br): Error:
Index /var/lib/imap/user/a3/suporte=100br.com/storage/dovecot.map.index:
Lost log for seq=29 offset=21796

Oct 25 01:07:55 box5 dovecot: lmtp(8885,
suporte=100br.com at lmtp1.prv.f1.k8.com.br): Error: Log synchronization
error at seq=30,offset=312 for /var/lib/imap/user/a3/su
porte=100br.com/storage/dovecot.map.index: Append with UID 5404, but
next_uid = 5405

Oct 25 02:37:53 box5 dovecot: lmtp(8885,
suporte=hostnet.com.br at lmtp1.prv.f1.k8.com.br): Error: Log
synchronization error at seq=47,offset=22944
for /var/lib/imap/user/03/suporte=hostnet.com.br/storage/dovecot.map.index: Extension record update for invalid uid=21815


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?

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

Thanks,
Andre



More information about the dovecot mailing list