Managing Network File Systems in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014

clear_locks Command

This command enables you to remove all file, record, and share locks for an NFS client. You must be root to run this command. From an NFS server, you can clear the locks for a specific client. From an NFS client, you can clear locks for that client on a specific server. The following example would clear the locks for an NFS client named tulip on the current system.

# clear_locks tulip

Use the –s option to specify which NFS host to clear the locks from. You must run this option from the NFS client that created the locks. In this situation, the locks from the client would be removed from an NFS server named bee.

# clear_locks -s bee


Caution  -  This command should be run only when a client crashes and cannot clear its locks. To avoid data corruption problems, do not clear locks for an active client.