From owner-freebsd-questions Wed Nov 13 15:49:48 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1242137B401 for ; Wed, 13 Nov 2002 15:49:47 -0800 (PST) Received: from lax-gate3.raytheon.com (lax-gate3.raytheon.com [199.46.200.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC5F143E7B for ; Wed, 13 Nov 2002 15:49:45 -0800 (PST) (envelope-from darlene@water.rsc.raytheon.com) Received: from ds02w00.directory.ray.com (ds02w00.directory.ray.com [147.25.146.118]) by lax-gate3.raytheon.com (8.12.5/8.12.5) with ESMTP id gADNnYDm026977; Wed, 13 Nov 2002 15:49:34 -0800 (PST) Received: from ds02w00.directory.ray.com (root@localhost) by ds02w00.directory.ray.com (8.12.1/8.12.1) with ESMTP id gADNnUPB006886; Wed, 13 Nov 2002 15:49:31 -0800 (PST) Received: from water.rsc.raytheon.com (water.RSC.RAYTHEON.COM [147.17.211.95]) by ds02w00.directory.ray.com (8.12.1/8.12.1) with ESMTP id gADNnTjb006880; Wed, 13 Nov 2002 15:49:29 -0800 (PST) Received: from nomads.rsc.raytheon.com (nomads [147.17.211.112]) by water.rsc.raytheon.com (8.8.8+Sun/8.8.8) with SMTP id PAA17620; Wed, 13 Nov 2002 15:09:21 -0800 (PST) Received: by nomads.rsc.raytheon.com (SMI-8.6/SMI-SVR4) id PAA07772; Wed, 13 Nov 2002 15:09:21 -0800 Date: Wed, 13 Nov 2002 15:09:21 -0800 From: darlene@water.rsc.raytheon.com (Darlene Choontanom X45478 BSYS) Message-Id: <200211132309.PAA07772@nomads.rsc.raytheon.com> To: dnelson@allantgroup.com Subject: Re: fcntl(xx, F_SETLK64, zz) ?? Cc: freebsd-questions@FreeBSD.ORG Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG -In the last episode (Nov 12), Darlene Choontanom X45478 BSYS said: -> Background: I'm running FreeBSD 4.4 on a file server we set up -> earlier this year in the hopes of relieving some of the load from our -> Solaris server. Currently we have mostly Sun clients, and a few -> Redhat clients. -> -> Problem: one of the big CAD applications we run hangs if a) it is -> in- stalled on the FreeBSD server, or b) if any of the user accounts -> that call it is located on the FreeBSD machine. -> -> After banging our heads into various different walls over a couple of -> months, we narrowed it down to the fact that this application makes a -> lot of (unnecessary?) NFS file locking calls. -> -> >From Sun clients, it hangs on the call: -> -> fcntl(6, F_SETLK64, 0xFFBEA3A8) (sleeping...) -> -> >From Redhat clients, it hangs on the call: -> -> fcntl64(5, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = -1 EACCES (Permission denied) -> -> We did talk to the CAD vendor about this, and they swear they've removed -> all NFS file locking. However, there seem to be a few that they've missed. -> Is this/are these options/commands supported anywhere under FreeBSD, and if -> not, could it? - -Try enabling the locking daemons on the server by adding these lines to -rc.conf and rebooting. Note that on FreeBSD 4.* this only provides -server-side locking (if the machine tries to lock a remote NFS file it -will always succeed immediately), but that seems to be all you need -anyway. - -rpc_lockd_enable="YES" -rpc_statd_enable="YES" - -You can test to see if this will fix your proglem without rebooting by -running rpc.statd and rpc.lockd, then running your CAD program again. It WORKS!!! ITWORKSITWORKSITWORKS!! Oh, THANKYOUthankyouthankyouthankyou!!! I'm calm. Really. Darlene --- darlene@water.rsc.raytheon.com Raytheon Company To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message