Solved

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

Posted on 2007-04-04
7
1,080 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

There are 2 things you must have in order to connect to the internet behind a router, The "Gateway IP" of the router, which is usually something like 192.168.xxx.1, I've seen routers with default values of: 192.168.0.1, 192.168.1.1, 192.168.11.1, …
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

726 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