From owner-freebsd-current@FreeBSD.ORG Sat May 2 21:21:57 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 41FC1106567B for ; Sat, 2 May 2009 21:21:57 +0000 (UTC) (envelope-from tmclaugh@sdf.lonestar.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2B9728FC0A; Sat, 2 May 2009 21:21:57 +0000 (UTC) (envelope-from tmclaugh@sdf.lonestar.org) Received: from straycat.dhs.org (root@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n42LLtUR007507; Sat, 2 May 2009 21:21:56 GMT (envelope-from tmclaugh@sdf.lonestar.org) Received: from tomcat.straycat.dhs.org (tomcat.straycat.dhs.org [192.168.3.130]) by straycat.dhs.org (8.14.1/8.14.1) with ESMTP id n42LLtVg019854; Sat, 2 May 2009 17:21:55 -0400 (EDT) Message-ID: <49FCB96E.1010604@sdf.lonestar.org> Date: Sat, 02 May 2009 17:21:50 -0400 From: Tom McLaughlin User-Agent: Thunderbird 2.0.0.21 (X11/20090320) MIME-Version: 1.0 To: Doug Rabson References: <49D851FC.4090103@sdf.lonestar.org> In-Reply-To: X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: current@freebsd.org Subject: Re: NFS lockd/statd lock up network connection X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 May 2009 21:21:57 -0000 Doug Rabson wrote, On 04/08/2009 03:20 PM: > On 5 Apr 2009, at 07:38, Tom McLaughlin wrote: > >> Hey, I have a recent -CURRENT box which has a mount exported from an >> OpenBSD NFS server. Recently I enabled lockd and statd on the machine >> but this has started to cause the network connection on the machine >> to lockup. I find the following in dmesg: >> >> nfs server exports:/mnt/raid0/net/home: lockd not responding >> nfs server exports:/mnt/raid0/net/home: lockd not responding >> nfs server exports:/mnt/raid0/net/home: lockd not responding >> nfs server exports:/mnt/raid0/net/home: lockd not responding >> nfs server exports:/mnt/raid0/net/home: lockd not responding >> nfs server exports:/mnt/raid0/net/home: lockd not responding >> nfs server exports:/mnt/raid0/net/home: lockd not responding >> nfs server exports:/mnt/raid0/net/home: lockd not responding >> NLM: failed to contact remote rpcbind, stat = 5, port = 28416 >> >> Additionally I see this when trying to restart netif: >> >> em0: Could not setup receive structures >> >> I've tried building with NFS_LEGACYRPC but that has not changed >> anything. Additionally I've tested this on 7-STABLE and while lockd >> still does not work (so, looks like I'll still have to work around >> my need for NFS locking) the network connection at least does not >> lock up. Is what I'm seeing evidence of some further problem? > > It looks as if lockd is not running on the server. The NFS locking > protocol needs it enabled at both ends. Also, NFS_LEGACYRPC won't > affect this - the record locking code always uses the new RPC code. Hi Doug, lockd is runing on both ends. The problem appears to be with the system running out of mbuf clusters when using lockd. [1] For now I'm mounting the particular mount with nolockd as an option to get around this. I've gotten errors with my -STABLE box using this mount with lockd enabled but at least the system didn't run out of mbuf clusters and lose all network connectivity. tom [1] http://lists.freebsd.org/pipermail/freebsd-current/2009-May/006433.html -- | tmclaugh at sdf.lonestar.org tmclaugh at FreeBSD.org | | FreeBSD http://www.FreeBSD.org |