Solved

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

Posted on 2007-04-04
7
1,053 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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Disclosure: Use this tutorial only when no other options helps to get Windows XP running without any problems and you don't want to format the drive. The back up of the data is the responsible of the user, however there is a description of how t…
If your system is showing symptoms of browser hijacks or 'google search redirects' check out my other article (http://rdsrc.us/u3GP7A) first and run the tool TDSSKiller (http://rdsrc.us/GDBBs4) to get rid of the infection. Once done, and if the …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

911 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

20 Experts available now in Live!

Get 1:1 Help Now