From owner-freebsd-stable@FreeBSD.ORG Thu Sep 4 17:16:35 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4E70B1065670 for ; Thu, 4 Sep 2008 17:16:35 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA05.emeryville.ca.mail.comcast.net (qmta05.emeryville.ca.mail.comcast.net [76.96.30.48]) by mx1.freebsd.org (Postfix) with ESMTP id 2FBA78FC12 for ; Thu, 4 Sep 2008 17:16:34 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA13.emeryville.ca.mail.comcast.net ([76.96.30.52]) by QMTA05.emeryville.ca.mail.comcast.net with comcast id Abyh1a00117UAYkA5hGaL0; Thu, 04 Sep 2008 17:16:34 +0000 Received: from koitsu.dyndns.org ([67.180.253.227]) by OMTA13.emeryville.ca.mail.comcast.net with comcast id AhGa1a0024v8bD78ZhGacv; Thu, 04 Sep 2008 17:16:34 +0000 X-Authority-Analysis: v=1.0 c=1 a=NC1iuFMh3X0A:10 a=T5snhZUyj2QA:10 a=gmDo1nssAAAA:8 a=6I5d2MoRAAAA:8 a=Aziwk6T4AAAA:8 a=QycZ5dHgAAAA:8 a=_r7PcVHvJUdhT-AtyjcA:9 a=UtAHqVwFOiSAJzqan1kA:7 a=YAXEQ4mjCkCq_pPft8tFZjIHEowA:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id EE3AD17B822; Thu, 4 Sep 2008 10:16:33 -0700 (PDT) Date: Thu, 4 Sep 2008 10:16:33 -0700 From: Jeremy Chadwick To: Tim Chen Message-ID: <20080904171633.GA22946@icarus.home.lan> References: <1f51039c0809040911oe4409b5ibe3f4dcf53528407@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1f51039c0809040911oe4409b5ibe3f4dcf53528407@mail.gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-stable@freebsd.org Subject: Re: How to disable NFS fnctl in /etc/fstab? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Sep 2008 17:16:35 -0000 On Fri, Sep 05, 2008 at 12:11:20AM +0800, Tim Chen wrote: > By the way, since the machine is running as a mail server which > install postfix,courier-imap, will it happen any kind of data > corruption due to NFS fnctl lock disabled? Regarding postfix, you will probably need dotlocking enabled during mailbox delivery. http://www.postfix.org/NFS_README.html Regarding courier-imap (have you considered dovecot?), you might want to see commit revision 1.4.3 to the Makefile, indicating fcntl is required to build the port on an NFS mount, so fcntl is forced: http://www.freebsd.org/cgi/cvsweb.cgi/ports/mail/courier-imap/Makefile Be sure to look at line 65 of the Makefile. Regarding courier-imap itself, I believe it can be configured to use dotlocks, but I can't find any documentation on this (I'm searching Google though). Finally, this seems relevant (arguing "do not disable fcntl over NFS!"), as something I happened to be reading earlier today; see "Why is NFS so slow?": http://www.fefe.de/muttfaq/faq.html#common-problems Personally, I think you're asking for trouble disabling fcntl on NFS; the fact you're having to (more or less) reverse-engineer all this software to find out if it's compatible with that scenario is added proof. The fact you're doing this on a mail server running an MDA is even more scary. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |