Op 14-12-15 om 19:39 schreef Marcin Janowski:
Hello, one month ago I moved my smtp and imap server to other environment with /var/vmail on NFS. After this move i have warnings about too long "Locking transaction log", but today i have errors about "fcntl(write-lock) locking failed ". What this means?
And this is errors from few day:
2015-12-14 15:33:35 1450103615 Dec 14 15:32:44 smtp-atena dovecot: imap(...): Error: fcntl(write-lock) locking failed for file /var/vmail/.../Maildir/dovecot.index.log: No locks available
We've had locking issues also. When I check your config I don't see any nfs specific configuration options. Please check http://wiki2.dovecot.org/NFS first. We have thought to find a solution by using dotlock in our multi Dovecot server setup, because fcntl didn't work at all on our OpenIndiana ZFS solution. We still had issues then and found out that, while we've set Dovecot to use dotlocks exclusively, it would still use fcntl sometimes. (Mail handling was slow, had to wait for lock timeouts) So now we've ended up by telling Dovecot not to use locking at all by setting "mail_nfs_storage = no" and "mail_nfs_index = no". That way it works, but when you have multiple servers handling your email, you may get issues accessing one mailbox by two or more Dovecot servers simultaneously. You should use Dovecot director to solve that problem.
Regards, Frido