How to disable the oplock mechanism on Red Hat Enterprise Linux 7 and 8 SMB clients?

Solution Verified - Updated -

Issue

Sometimes there is a specific technical need or requirement to disable the oplock mechanism on Red Hat Enterprise Linux 7 and 8 SMB clients. Oplocks allow SMB clients to lock files and locally cache information while preventing other users from modifying a given file. You may need to disable oplocks under the following circumstances:

  • You are using a database application whose documentation recommends that oplocks be disabled.
  • The SMB clients are on an unreliable network.
  • You are handling critical data and you cannot afford even the slightest data loss.

Environment

  • Red Hat Enterprise Linux (RHEL) 7
  • Red Hat Enterprise Linux (RHEL) 8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content