From owner-freebsd-stable@FreeBSD.ORG Sat Mar 27 19:04:42 2010 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 3B8871065670 for ; Sat, 27 Mar 2010 19:04:42 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta03.westchester.pa.mail.comcast.net (qmta03.westchester.pa.mail.comcast.net [76.96.62.32]) by mx1.freebsd.org (Postfix) with ESMTP id DEEB18FC08 for ; Sat, 27 Mar 2010 19:04:41 +0000 (UTC) Received: from omta04.westchester.pa.mail.comcast.net ([76.96.62.35]) by qmta03.westchester.pa.mail.comcast.net with comcast id yHka1d0030ldTLk53K2iX2; Sat, 27 Mar 2010 19:02:42 +0000 Received: from koitsu.dyndns.org ([98.248.46.159]) by omta04.westchester.pa.mail.comcast.net with comcast id yK4h1d0023S48mS3QK4hnC; Sat, 27 Mar 2010 19:04:41 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id A0A859B436; Sat, 27 Mar 2010 12:04:39 -0700 (PDT) Date: Sat, 27 Mar 2010 12:04:39 -0700 From: Jeremy Chadwick To: freebsd-stable@freebsd.org Message-ID: <20100327190439.GA45830@icarus.home.lan> References: <4BAC879A.2040301@zirakzigil.org> <4931283F-5B5B-4368-BB40-20B5FEBF4E17@mac.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4931283F-5B5B-4368-BB40-20B5FEBF4E17@mac.com> User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: NFS lockd problem 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: Sat, 27 Mar 2010 19:04:42 -0000 On Sat, Mar 27, 2010 at 11:50:17AM -0700, Chuck Swiger wrote: > On Mar 26, 2010, at 3:08 AM, Giulio Ferro wrote: > > Outset: > > 1 NFS server (with lockd) > > 2 NFS client (with lockd) > > > > The clients serve several jails with apache, whose data (www) resides on the server > > If you need file locking to work reliably, you pretty much have to give up on using NFS + rpc.lockd and run against a local UFS filesystem. I thought fcntl(2) worked reliably/properly with NFS on FreeBSD? I remember reading somewhere how mixing locking types (fcntl vs. flock vs. lockf) causes major problems, but as long as the same locking method is used universally things should work...? -- | 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 |