Disabling oplocks on a 'Network Share'


Some users have reported that they need to disable oplocks on a 'Network Share'.


An opportunistic lock (also known as an oplock), is a lock placed by a client on a file that resides on a server. In the majority of cases, a client requests an opportunistic lock, so that it can cache the data locally, and reduce network traffic and improve the response time. In most cases, we do not recommend turning them off, however, it could be that a legacy program or client requires them to be disabled.


To disable oplocks, you will need to log in via the CLI and issue the below commands.

qs share-modify --share=NewShareName --cifs-options='oplocks=no','level2 oplocks=no'

Replace "NewShareName" with the name of your 'Network Share'

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Powered by Zendesk