ONTAP Discussions

Oplock Command

goose69

Hi,

 

I'm running Data Ontap 8.2.1 Cluster-Mode and have a particular volume/share that I would like to disable oplocks on.  From what I've read oplocks can be disabled at a share level and I would like to know as to whether the following command looks correct:

 

vserver share properties remove -vserver vserver_name -share-name share_name -share-properties oplocks

 

If someone could reply that would be much appreciated.

 

Thanks

3 REPLIES 3

JSHACHER11

 

 

vserver cifs share properties remove -vserver vserver_name -share-name share_name -share-properties oplocks

goose69

Hi jshacher11, many thanks for your prompt response.

 

Sorry that was a typo on my behalf, my bad, but very well spotted.

 

So the command without the typo looks good?

 

Is it possible just to turn it off for the entire volume rather than just a share?

JSHACHER11

the command looks fine

 

you can set it on the entire volume or just a share

 

 

If oplocks are enabled on the volume containing a share, but the oplock share property for that share is disabled, oplocks are disabled for that share.

Disabling oplocks on a share takes precedence over enabling oplocks on the volume. Disabling oplocks on the share, disables both opportunistic and lease oplocks. You can enable or disable oplocks on existing shares at any time

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public