From owner-freebsd-fs@FreeBSD.ORG Sun May 9 02:01:48 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 90DAF106566B for ; Sun, 9 May 2010 02:01:48 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta01.emeryville.ca.mail.comcast.net (qmta01.emeryville.ca.mail.comcast.net [76.96.30.16]) by mx1.freebsd.org (Postfix) with ESMTP id 731998FC15 for ; Sun, 9 May 2010 02:01:48 +0000 (UTC) Received: from omta20.emeryville.ca.mail.comcast.net ([76.96.30.87]) by qmta01.emeryville.ca.mail.comcast.net with comcast id FDfu1e0021smiN4A1E1oAA; Sun, 09 May 2010 02:01:48 +0000 Received: from koitsu.dyndns.org ([98.248.46.159]) by omta20.emeryville.ca.mail.comcast.net with comcast id FE1n1e0033S48mS8gE1ntT; Sun, 09 May 2010 02:01:48 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id CA1439B425; Sat, 8 May 2010 19:01:45 -0700 (PDT) Date: Sat, 8 May 2010 19:01:45 -0700 From: freebsd To: Rick Macklem Message-ID: <20100509020145.GA6725@icarus.home.lan> 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> <1273340061.16836.yuwen@exodus.cs.ccu.edu.tw> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-fs , Cheng-Lin Yang , lab Subject: Re: Struggling on NFS problem X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 May 2010 02:01:48 -0000 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 |