Solved

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

Posted on 2007-04-04
7
1,086 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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Are you unable to synchronize your OST (Offline Storage Table) file with Microsoft Exchange Server? Is your OST file exceeding 2 GB size limit? In Microsoft Outlook 2002 and earlier versions, there is a 2 GB size limit for the OST file. If the file …
Migration of Exchange mailbox can be done with the ExProfre.exe tool. But at times, when the ExProfre.exe tool migrates the Exchange Server user profile, it results in numerous synchronization problems. Synchronization error messages appear in the e…
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…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

690 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