From owner-freebsd-current Fri Mar 14 18:14:58 2003 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 A972437B404 for ; Fri, 14 Mar 2003 18:14:56 -0800 (PST) Received: from mail.allcaps.org (allcaps.org [216.240.173.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A2E643FA3 for ; Fri, 14 Mar 2003 18:14:56 -0800 (PST) (envelope-from bsder@allcaps.org) Received: from mail.allcaps.org (localhost [127.0.0.1]) by mail.allcaps.org (Postfix) with ESMTP id CFDF392FAF; Fri, 14 Mar 2003 21:14:59 -0500 (EST) Received: from localhost (bsder@localhost) by mail.allcaps.org (8.12.5/8.12.5/Submit) with ESMTP id h2F2Exu3028797; Fri, 14 Mar 2003 18:14:59 -0800 X-Authentication-Warning: mail.allcaps.org: bsder owned process doing -bs Date: Fri, 14 Mar 2003 18:14:59 -0800 (PST) From: "Andrew P. Lentvorski, Jr." To: Steve Sizemore Cc: current@freebsd.org Subject: Re: NFS file unlocking problem In-Reply-To: <20030314062537.GB37608@math.berkeley.edu> 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 Thu, 13 Mar 2003, Steve Sizemore wrote: > Running RELENG_5_0 as nfs server with a Solaris 2.5 client. > rpc.statd and rpc.lockd both running on FreeBSD, lockd and > statd both running on Solaris. Locking a file (flock) works > fine, but when an attempt to unlock it is made, the client > session hangs. The program is typically (but not always) > uninterruptible, and I have to kill the login session. That's ... odd. However, the Solaris rpc.lockd does some strange caching that can lead to asymmetric behavior. In addition, you are running Solaris 2.5 which qualifies as practically prehistoric in computer time. That's going to activate some old mechanisms which FreeBSD may or may not support. Several areas are suspect: 1) RPC can't agree on a protocol version with Solaris 2.5 2) NFS can't agree on a protocol version with Solaris 2.5 3) The lock attempt itself is broken The last time a hang like this happened I believe that it was an issue in not returning the correct rejection notice during an RPC negotiation. I recommend using ethereal to create a trace file. This is going to be tough to debug as I don't have access to a Solaris 2.5 machine to test the interaction and see what is going on. -a To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message