You can use the lock break command to break locks on a specified file.
You must use the full path name for file, for example, /vol/vol1/file1.
For NLM and NFSv4 locks, when specifying the -o owner option, you must also specify the -h host option. The meaning of owner varies across protocols:
Only locks held by the CIFS, NFSv4, and NLM protocols can be broken by specifying this option. The meaning of host varies across protocols:
The lock command does not resolve the host name to an IP address. Functionally, filtering locks by a host name is not equivalent to filtering locks by the corresponding IP address. If the locks are to be filtered by host, then the value of host should be obtained from the output of the lock status -h command. Such a value of host should not be interpreted in any way as it might lead to improper removal of locks.
protocol is a case-insensitive string that can take one of the following values:
The following example breaks the CIFS lock on the /vol/vol1/Mydocument.doc file:
lock break -f "/vol/vol1/Mydocument.doc" -p cifs