Table of ContentsView in Frames

Enabling or disabling oplocks and lease oplocks on the storage system

You can enable or disable oplocks and lease oplocks on the storage system. Oplocks let clients lock files and locally cache information while preventing another user from changing the file. This increases performance for many file operations.

About this task

CIFS oplocks and lease oplocks are enabled on your storage system by default. You can leave CIFS oplocks and lease oplocks enabled in most cases, but you might want to disable them under the following circumstances:

Enabling CIFS oplocks and lease oplocks does not override any client-specific settings. Disabling CIFS oplocks and lease oplocks disables all oplocks to or from the storage system. You can enable or disable CIFS opportunistic oplocks at individual clients using a Windows registry setting.

Step

  1. Perform the applicable action:
    If you want to... Enter the command...
    Enable oplocks and lease oplocks on the storage system options cifs.oplocks.enable on
    Disable oplocks and lease oplocks on the storage system options cifs.oplocks.enable off
    If the cifs.oplocks.enable option is set to on, the oplock setting per qtree takes effect. Otherwise, the oplocks for all qtrees are disabled regardless of the per-qtree oplock setting.