| title | Troubleshoot file locks for an Azure NetApp Files volume |
|---|---|
| description | This article explains how to break file locks in an Azure NetApp Files volume. |
| services | azure-netapp-files |
| author | b-ahibbard |
| ms.service | azure-netapp-files |
| ms.topic | how-to |
| ms.date | 05/03/2025 |
| ms.author | anfdocs |
In case you encounter (stale) file locks on NFS, SMB, or dual-protocol volumes that need to be cleared, Azure NetApp Files allows you to break these locks.
You can break file locks for all files in a volume or break all file locks initiated by a specified client. Breaking file locks may be disruptive.
-
Navigate to the volume you want to break file locks on. In the Volume menu under Support & Troubleshooting, navigate to Break File Locks.
-
To break file locks for a specific client connected to a volume, enter an IP address in the Client IP. To break file locks for all clients connected to a volume, leave the Client IP field empty.
[!IMPORTANT] It is your responsibility to provide the correct client IP address.
-
Select Break File Locks.
:::image type="content" source="./media/troubleshoot-file-locks/break-file-locks.png" alt-text="Screenshot of break file locks portal." lightbox="./media/troubleshoot-file-locks/break-file-locks.png":::
-
Confirm you understand that breaking file locks may be disruptive.