Solved

How to disable Opportunistic Locking on W2K server and XP/sp2 client PC's

Posted on 2007-04-04
7
1,044 Views
Last Modified: 2012-06-27
I have checked for a method to disable Opportunistic Locking via the registry entries but non seem to apply. I have a Win 2000 PC, and XP/sp2 PC, and W2000 Server sp4. And I have checked all the below registry location and non have a parameter EnableOpLockForceClose, EnableOplocks or OplocksDisabled. What does this indicate? Is it enabled? Is there a way to check if Server/PC's have it enabled?

Data Access source:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters

Microsoft source:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MRXSmb\Parameters
0
Comment
Question by:pk9pk9
  • 4
  • 3
7 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 18851934
See http://support.microsoft.com/kb/296264 ("Configuring opportunistic locking in Windows") and take a look at the 'Defaults' for these parameters:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MRXSmb\Parameters\
OplocksDisabled REG_DWORD 0 or 1
Default: 0 (not disabled)

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters
EnableOplocks REG_DWORD 0 or 1
Default: 1 (Enabled by Default)

So if there is ni 'EnableOplocks' entry, it means that they're enabled (as above). To disable them, create an entry as describred in the article and set it to '0'. The same applies to 'OplocksDisabled' just the other way round - no entry means 'enabled'.
0
 

Author Comment

by:pk9pk9
ID: 18852616
jkr,
THanks, I did carefully read that MS KB article you site. It does state that by default it is enabled. But nowhere does it say if the parameter OplocksDiabled is not in the MRXsmb entry that it is ON.
Unless I missed. Is there a way to check if oplock is on or off without checking registry.
Thanks
Peter
0
 

Author Comment

by:pk9pk9
ID: 18881903
Where are the experts?
0
Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

 
LVL 86

Expert Comment

by:jkr
ID: 18917446
>>But nowhere does it say if the parameter OplocksDiabled is not in the MRXsmb
>> entry that it is ON

Um, what in 'not disabled' is unclear?

>>Is there a way to check if oplock is on or off without checking registry

From code: Yes, but AFAIK not from the command line or GUI.
0
 

Author Comment

by:pk9pk9
ID: 18917882
jkr I am not familiar with term AFAIK.
My concern is MS has multiple locations in the registry for turning off Oplocks from LanmanServer, to LanmanWorkstation to MRXSmb based on a given OS (ie XP, W2K, W20003 Server.)
A more importatant question is after I have input all of the above registry changes, is there a way to test and  confirm that oplocks has actually been Disabled.
Thanks jkr
Peter
0
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 18921772
'AFAIK' == "As Far As I Know"

As said, I'd know how to check that in C/C++ code, but really don't know any e.g. control panel applet or such that can give you that kind of info other than looking at the registry.
0
 

Author Comment

by:pk9pk9
ID: 18935727
jkr
Thanks, for AFAIK,
As noted if the only way to check is via registery entry and no other secondary means it is a bad way for MS to design it. THis is especially true given that I assume registry entries that are not understood as valid are just discarded. So my great concern is this can enable ISAM type databases to become corrupt.  Quite lacking in STABILITUS. Thanks jkr, you earned it.

PS This new layout of  Experts-Exchange (small text, slow, duffy graphics) has got to go.
It need to allow users to post coded/images etc to help explain problem
Just my thoughts.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

If you build your web application in Visual Studio you'll get at least a few binaries, or .DLL, files in your bin folder. However, there is more compiling to be done. Normally this would happen when an ASP.NET resource within the web site is request…
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now