[Dovecot] Linux, Maildir over NFS, Locking problems
Hi,
I am having problems with file locks with my NFS mounted Maildir setup.
NFS Client/IMAP Server is RHEL3 clone whitebox and NFS server is a
Fedora Core 2 system. Both are running lockd as far as I can tell.
dovecot is installed with Dag's latest dovecot RPMs for RHEL3. Time is
synced between the two systems.
Here is the pertinent log file entry
dovecot: Dovecot starting up Apr 7 11:17:42 sentry imap(tmartin): /home/tmartin/Maildir/.subscriptions failed with subscription file file_wait_lock(): No locks available
Now what I can find in nfs.txt is that I need to use fnctl is this
".customflags and .subscriptions files require fcntl() locking currently. Many NFS servers don't support it, at least without a separate lockd daemon. These will be fixed later to be NFS-safe by default."
My question is am I using fcntl? The only reference I can find in the config refers to mbox formats, but I am using maildir. Setting the one reference to fcntl does not seem to have any effect. Is there a configuration setting to tell the server to use fcntl locks or a way to tell if it is trying to use fcntl locks?
Thanks for any tips,
Terrence
I should mention I am using dovecot version
dovecot-0.99.14-1.1.el3.rf
Terrence
Terrence Martin wrote:
Hi,
I am having problems with file locks with my NFS mounted Maildir setup.
NFS Client/IMAP Server is RHEL3 clone whitebox and NFS server is a Fedora Core 2 system. Both are running lockd as far as I can tell.
dovecot is installed with Dag's latest dovecot RPMs for RHEL3. Time is synced between the two systems.Here is the pertinent log file entry
dovecot: Dovecot starting up Apr 7 11:17:42 sentry imap(tmartin): /home/tmartin/Maildir/.subscriptions failed with subscription file file_wait_lock(): No locks available
Now what I can find in nfs.txt is that I need to use fnctl is this
".customflags and .subscriptions files require fcntl() locking currently. Many NFS servers don't support it, at least without a separate lockd daemon. These will be fixed later to be NFS-safe by default."
My question is am I using fcntl? The only reference I can find in the config refers to mbox formats, but I am using maildir. Setting the one reference to fcntl does not seem to have any effect. Is there a configuration setting to tell the server to use fcntl locks or a way to tell if it is trying to use fcntl locks? Thanks for any tips,
Terrence
On Thu, 2005-04-07 at 11:30 -0700, Terrence Martin wrote:
I should mention I am using dovecot version
dovecot-0.99.14-1.1.el3.rf
Don't bother trying to get it working with 0.99.x.
1.0-stable works somewhat better with NFS and 1.0-tests even better, but still not perfect. With them you should use:
mmap_disable = yes lock_method = dotlock
I grabbed the latest stable and yes it works better.
I actually left these
mmap_disable = yes lock_method = dotlock
With the default, presumbly no and fcntl respective? So far it works. Should I change it anyway?
Terrence
Timo Sirainen wrote:
On Thu, 2005-04-07 at 11:30 -0700, Terrence Martin wrote:
I should mention I am using dovecot version
dovecot-0.99.14-1.1.el3.rf
Don't bother trying to get it working with 0.99.x.
1.0-stable works somewhat better with NFS and 1.0-tests even better, but still not perfect. With them you should use:
mmap_disable = yes lock_method = dotlock
On Thu, 2005-04-07 at 16:33 -0700, Terrence Martin wrote:
I grabbed the latest stable and yes it works better.
I actually left these
mmap_disable = yes lock_method = dotlock
With the default, presumbly no and fcntl respective? So far it works. Should I change it anyway?
Wonder why, since your error message was about fcntl locking last time. Unless you've put index files in local disk instead of NFS? Then the default settings are fine.
If you're using multiple computers, you could try having indexes in NFS as well to improve performance, then those settings are required. But it's not as stable..
participants (2)
-
Terrence Martin
-
Timo Sirainen