From owner-freebsd-questions@FreeBSD.ORG Sun Mar 25 20:40:18 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 53BC2106564A for ; Sun, 25 Mar 2012 20:40:18 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from email2.allantgroup.com (email2.emsphone.com [199.67.51.116]) by mx1.freebsd.org (Postfix) with ESMTP id F132D8FC27 for ; Sun, 25 Mar 2012 20:40:17 +0000 (UTC) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by email2.allantgroup.com (8.14.4/8.14.4) with ESMTP id q2PKZiII018943 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 25 Mar 2012 15:35:44 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.5/8.14.5) with ESMTP id q2PKZh9D075082 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 25 Mar 2012 15:35:43 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.5/8.14.5/Submit) id q2PKZhVH075071; Sun, 25 Mar 2012 15:35:43 -0500 (CDT) (envelope-from dan) Date: Sun, 25 Mar 2012 15:35:43 -0500 From: Dan Nelson To: Christoph Egger Message-ID: <20120325203542.GA55964@dan.emsphone.com> References: <87zkb4lr1y.fsf@hepworth.siccegge.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87zkb4lr1y.fsf@hepworth.siccegge.de> X-OS: FreeBSD 8.2-STABLE User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: clamav-milter 0.97.2 at email2.allantgroup.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (email2.allantgroup.com [199.67.51.78]); Sun, 25 Mar 2012 15:35:44 -0500 (CDT) X-Scanned-By: MIMEDefang 2.68 on 199.67.51.78 Cc: freebsd-questions@freebsd.org Subject: Re: NFS locking and linux NFS server X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Mar 2012 20:40:18 -0000 In the last episode (Mar 25), Christoph Egger said: > Hi all! > > I have a Linux Host (2.6.32 kernel, Debian stable) providong NFS > shares. Locking files on that share works fine for linux clients [0] > while it fails on a freebsd 9.0-STABLE system. The interwebs indicate > there have been problems witha buggy linux implementation back in 2006 > but no more hits for that problem in recent times so I assume it's > fixed? > > root@freebsd /mnt/ > 11:27 0 # kldstat -v | grep nfs > 341 nfscommon > 386 nfslockd > 344 nfsd > 385 nfssvc > 342 nfs > 343 nfscl > 384 nfslock > > root@freebsd /mnt/ > 11:28 0 # flock test -c ls > flock: test: Operation not supported > > root@freebsd /mnt/ > 11:31 0 # mount | grep nfs > 10.70.255.8:/home/ on /mnt/ (nfs) Are you running statd and lockd (in rc.conf, rpc_statd_enable="YES" and rpc_lockd_enable="YES")? Make sure that "rpcinfo localhost" and "rpcinfo otherhost" both show "nlockmgr" and "status" services. -- Dan Nelson dnelson@allantgroup.com