nfssetlock(8nfs)
Name
nfssetlock − turn on or off the NFS locking service
Syntax
/etc/nfssetlock option
Description
The nfssetlock command turns the NFS locking service on or off at the kernel level. By default, the NFS locking service is turned off.
If the NFS locking service is turned off, local locking is active. Local locking only coordinates the dispersal of advisory locks to local files and file regions. The NFS locking service coordinates the dispersal of advisory locks to both local and remote files and file regions through the fcntl and lockf primitives.
Only the superuser or root can run nfssetlock. The best way to run nfssetlock is through the nfssetup command, which provides an interactive means for enabling and disabling the NFS locking service.
Restrictions
If you run nfssetlock manually, you must issue it while the system is in single-user mode. Otherwise, the locking information could become lost during the transition between local and NFS locking.
Options
onTurn on the NFS locking service.
offTurn off the NFS locking service.
Files
/etc/rc.local
See Also
fcntl(2), lockf(3), nfssetup(8nfs)
Guide to the Network File System