Opportunistic locking (oplocks) improves file access performance and is enabled by default in NCP Server. Oplocks provides a way to cache file data at the client. It allows the client to read and write data using its local cache, and interact with the file server only when necessary. Oplocks improves both client and network performance by reducing the amount of traffic on the network.
IMPORTANT:Ensure that users are running Client for Open Enterprise Server 2 SP4 and later.
By default, oplocks is set to level 2, which includes both level 1 and level 2 functionality.
You can modify the OPLOCK_SUPPORT_LEVEL parameter setting by using OES Remote Manager for Linux as follows:
In OES Remote Manager for Linux, select> .
Click thelink for OPLOCK_SUPPORT_LEVEL.
Set the value to 0, 1, or 2.
0: Disables oplocks support.
1: Enables oplocks support at L1.
2: Enables oplocks support at L2 (the default).
Clickto apply the change.
You can also change or disable the setting by adding an OPLOCK_SUPPORT_LEVEL command to the /etc/opt/novell/ncpserv.conf configuration file. If you have never modified the OPLOCK_SUPPORT_LEVEL from the default setting of 2, you must add the parameter line. If you have previously modified the setting, the parameter appears as a line in the file, and you can simply change its value. After you manually modify the file, you must restart the NetIQ eDirectory daemon (ndsd).
Log in as the root user, then open the /etc/opt/novell/ncpserv.conf configuration file in a text editor.
Do one of the following:
If the OPLOCK_SUPPORT_LEVEL parameter is not listed, add a line for the OPLOCK_SUPPORT_LEVEL option with the value of 0, 1, or 2.
For example, to disable oplocks support, set the value to 0 by adding this line:
Or, to set oplocks support to L1, set the value to 1 by adding this line:
If the OPLOCK_SUPPORT_LEVEL parameter is already listed in the file, change its value to the desired setting of 0, 1, or 2.
Save the file.
After changing the oplock level in /etc/opt/novell/ncpserv.conf, you must restart ndsd to apply the changes. Open a terminal console as the root user, then enter