Break locks
When file locks are preventing client access to files, you can display information about currently held locks, and then break specific locks. Examples of scenarios in which you might need to break locks include debugging applications.
The vserver locks break
command is available only at the advanced privilege level and higher. Learn more about vserver locks break
in the ONTAP command reference.
-
To find the information you need to break a lock, use the
vserver locks show
command.Learn more about
vserver locks show
in the ONTAP command reference. -
Set the privilege level to advanced:
set -privilege advanced
-
Perform one of the following actions:
If you want to break a lock by specifying… Enter the command… The SVM name, volume name, LIF name, and file path
vserver locks break -vserver vserver_name -volume volume_name -path path -lif lif
The lock ID
vserver locks break -lockid UUID
-
Return to the admin privilege level:
set -privilege admin
Learn more about the commands described in this procedure in the ONTAP command reference.