Date: Wed, 13 Nov 2002 15:09:21 -0800 From: darlene@water.rsc.raytheon.com (Darlene Choontanom X45478 BSYS) To: dnelson@allantgroup.com Cc: freebsd-questions@FreeBSD.ORG Subject: Re: fcntl(xx, F_SETLK64, zz) ?? Message-ID: <200211132309.PAA07772@nomads.rsc.raytheon.com>
next in thread | raw e-mail | index | archive | help
-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
<place standard disclaimer here>
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211132309.PAA07772>
