?
Solved

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

Posted on 2007-04-04
7
Medium Priority
?
1,091 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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 1500 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

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

Can you find a fax from a vendor you saved a decade ago in seconds? Have you ever cursed your PC under your breath during an audit because you couldn’t find the requested statement or driver history?  If you answered no to the first question or yes …
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…
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…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

752 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