From owner-freebsd-current Sun Dec 8 17:10:26 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D022B37B401 for ; Sun, 8 Dec 2002 17:10:24 -0800 (PST) Received: from mail.allcaps.org (allcaps.org [216.240.173.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 411E343EBE for ; Sun, 8 Dec 2002 17:10:24 -0800 (PST) (envelope-from bsder@mail.allcaps.org) Received: from mail.allcaps.org (localhost [127.0.0.1]) by mail.allcaps.org (Postfix) with ESMTP id 4092893069; Sun, 8 Dec 2002 20:10:22 -0500 (EST) Received: from localhost (bsder@localhost) by mail.allcaps.org (8.12.5/8.12.5/Submit) with ESMTP id gB91ALZN015851; Sun, 8 Dec 2002 17:10:22 -0800 Date: Sun, 8 Dec 2002 17:10:21 -0800 (PST) From: bsder@mail.allcaps.org To: Chris BeHanna Cc: current@freebsd.org Subject: Re: NFS Locking Problems (Was: Re: I'm impressed, but ...) In-Reply-To: <200212081859.30520.chris@pennasoft.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 8 Dec 2002, Chris BeHanna wrote: > > Locking is always a problem over NFS :-/ It's one of the reasons I'm using > > maildirs instead of normal happy mboxes. NFS locking is a problem on 4.X. NFS locks work on -current and have for about a year. FreeBSD -current NFS locks work with both FreeBSD and Solaris clients and servers. FreeBSD -current NFS locks are known to fail with Linux and the problem seems to be on the Linux side (At least that's what I will maintain until someone proves otherwise ;) ) The first bug report on the rpc.lockd rewrite was someone using NFS locking on mboxes (FreeBSD client and Solaris server). Consequently, we know that even mbox locking works in at least one situation. > To be fair, I only recently read (here) that rpc.lockd has to > run on the client side as well as on the server side, and I have > not yet repeated my tests. That's on my List of Things to Do RSN. In order to honor NFS locks, *all* NFS machines must run rpc.lockd or its equivalent. NFS file locking is not part of the NFS protocol, it has its own protocol for the purpose which uses RPC. FreeBSD NFS locking on -current also seems to require rpc.statd on both NFS clients and servers as well. This is the daemon which recovers locks when an NFS server crashes. I need to look at the standard and see if this is really required or could be made optional. -a To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message