Date: Sat, 8 May 2010 19:01:45 -0700 From: freebsd <freebsd@jdc.parodius.com> To: Rick Macklem <rmacklem@uoguelph.ca> Cc: freebsd-fs <freebsd-fs@freebsd.org>, Cheng-Lin Yang <yuwen@exodus.cs.ccu.edu.tw>, lab <lab@cs.ccu.edu.tw> Subject: Re: Struggling on NFS problem Message-ID: <20100509020145.GA6725@icarus.home.lan> In-Reply-To: <Pine.GSO.4.63.1005082107500.21829@muncher.cs.uoguelph.ca> References: <1272960060.34062.yuwen@exodus.cs.ccu.edu.tw> <4BDFE843.7050600@fuujingroup.com> <1273022040.28218.yuwen@exodus.cs.ccu.edu.tw> <20100505013136.GA48843@icarus.home.lan> <1273026479.56161.yuwen@exodus.cs.ccu.edu.tw> <Pine.GSO.4.63.1005051108160.15889@muncher.cs.uoguelph.ca> <1273340061.16836.yuwen@exodus.cs.ccu.edu.tw> <Pine.GSO.4.63.1005082107500.21829@muncher.cs.uoguelph.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, May 08, 2010 at 09:17:54PM -0400, Rick Macklem wrote: > >May 8 21:46:24 mail dovecot: IMAP(USERID): fcntl(write-lock) locking failed for file cshome/professor/USERID/Maildir/.OLD2/dovecot.index.log: Operation not supported > >May 8 21:46:24 mail dovecot: IMAP(USERID): mail_index_wait_lock_fd() failed with file cshome/professor/USERID/Maildir/.OLD2/dovecot.index.log: Operation not supported > >May 8 21:46:24 mail dovecot: IMAP(USERID): fcntl(write-lock) locking failed for file cshome/professor/USERID/Maildir/.OLD2/dovecot.index.log: Operation not supported > >May 8 21:46:24 mail dovecot: IMAP(USERID): mail_index_wait_lock_fd() failed with file /cshome/professor/USERID/Maildir/.OLD2/dovecot.index.log: Operation not supported > >==== > > > >Could you please kindly take a look on this new issue? Thank you. :) > > > If the files used by dovecot are not being concurrently accessed by > other NFS clients, your best bet is to use the "nolockd" option on > the mount command for dovecot. (If doevcot is a Linux client, there > is a similar mount option, which I think is called "nolock" but > can't remember for sure.) Dovecot is an IMAP/POP3 server/daemon. Dovecot is attempting to perform an fcntl() lock on its indexing files. This is happening when one of the OPs users attempts to modify their IMAP mailbox called "OLD2". The Dovecot folks advocate use of dotlocks instead of fcntl() in situations like the above. The OP should set lock_method = dotlock in his dovecot.conf and the problem should go away. If the OP is using Dovecot prior to 1.1, he should consider setting dotlock_use_excl = yes as well (which sets the O_EXCL flag when calling open(2)). All of this is covered in the Dovecot NFS-related documentation: http://wiki.dovecot.org/MailLocation/SharedDisk There are also some other configuration options which are badly described, such as "mail_nfs_storage" and "mail_nfs_index". I have no idea what these do; the descriptions are ambiguous: http://wiki.dovecot.org/MainConfig#Mail_processes -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100509020145.GA6725>