Chris Wagner
2006-Jul-06 00:20 UTC
[Samba] SOLVED - Oplocks not taking place at all unless fake oplocks = yes
The kernel on my server appears to be refusing oplocks altogether. Setting 'kernel oplocks = no' resolved the issue. Is there any caveats I should be aware of? - Chris Wagner -----Original Message----- From: samba-bounces+chriswagner=amyskitchen.net@lists.samba.org [mailto:samba-bounces+chriswagner=amyskitchen.net@lists.samba.org]On Behalf Of Chris Wagner Sent: Wednesday, July 05, 2006 12:11 PM To: samba@lists.samba.org Subject: RE: [Samba] Oplocks not taking place at all unless fake oplocks = yes- Update I've modified the contention limit in attempt to troubleshoot this, thinking that perhaps the client may be requesting multiple oplocks for whatever reason. The client is still not getting an oplock without specifying 'fake oplocks = yes'. I'm open to any ideas for troubleshooting. I've also checked to see if oplocks are explicitly disabled on the client, and they are not. I do experience this with more than one client as well, a Windows 2000 Professional client, and a Windows XP Professional client (inside a VMWare session). TIA - Chris Wagner -----Original Message----- From: samba-bounces+chriswagner=amyskitchen.net@lists.samba.org [mailto:samba-bounces+chriswagner=amyskitchen.net@lists.samba.org]On Behalf Of Chris Wagner Sent: Thursday, June 29, 2006 8:54 AM To: samba@lists.samba.org Subject: [Samba] Oplocks not taking place at all unless fake oplocks yes Hi folks I'm running two Samba servers. One is on Ubuntu 5.10 (samba-3.0.14a-6ubuntu1), the other is SuSE Linux Enterprise Server (samba-3.0.20b-3.4). The Ubuntu box is on my local network, and the SLES box is across a WAN with an intervening WAFS appliance with TCP acceleration. Neither set-up seems to grant an oplock to the client unless I turn on 'fake oplocks'. I've set 'oplocks = yes' and 'locking = yes' explicitly in my config file to no avail. Obviously, 'fake oplocks' isn't something I want to turn on in a production environment. I'm looking for some help in narrowing down where the problem lies. Thanks in advance. -- Christopher Wagner Amy's Kitchen - http://www.amys.com/ chriswagner@amyskitchen.net Sr. Systems Administrator -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Jeremy Allison
2006-Jul-06 00:31 UTC
[Samba] SOLVED - Oplocks not taking place at all unless fake oplocks = yes
On Wed, Jul 05, 2006 at 05:21:16PM -0700, Chris Wagner wrote:> The kernel on my server appears to be refusing oplocks altogether. Setting 'kernel oplocks = no' resolved the issue. Is there any caveats I should be aware of?If Linux processes (other than smbd) try and access the files at the same time as Samba then without kernel oplocks they may clash. If you don't have simultaneous data access (ie. all client access is via Samba) then there's nothing to worry about. Jeremy.
Chris Wagner
2006-Jul-06 16:34 UTC
[Samba] SOLVED - Oplocks not taking place at all unless fake oplocks = yes
The only thing that might clash is a backup agent running on the server, which would be only reading the files. That should be OK, right? - Chris -----Original Message----- From: Jeremy Allison [mailto:jra@samba.org] Sent: Wednesday, July 05, 2006 5:31 PM To: Chris Wagner Cc: samba@lists.samba.org Subject: Re: [Samba] SOLVED - Oplocks not taking place at all unless fake oplocks = yes On Wed, Jul 05, 2006 at 05:21:16PM -0700, Chris Wagner wrote:> The kernel on my server appears to be refusing oplocks altogether. Setting 'kernel oplocks = no' resolved the issue. Is there any caveats I should be aware of?If Linux processes (other than smbd) try and access the files at the same time as Samba then without kernel oplocks they may clash. If you don't have simultaneous data access (ie. all client access is via Samba) then there's nothing to worry about. Jeremy.