Skip to content

Commit da85ca1

Browse files
authored
Merge pull request #226709 from b-ahibbard/anf-breakfilelocks-2022.09
Break file locks (troubleshooting - 2022.09)
2 parents ef80547 + 043723c commit da85ca1

File tree

5 files changed

+53
-11
lines changed

5 files changed

+53
-11
lines changed

articles/azure-netapp-files/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,8 @@
357357
href: troubleshoot-cross-region-replication.md
358358
- name: Troubleshoot Resource Provider errors
359359
href: azure-netapp-files-troubleshoot-resource-provider-errors.md
360+
- name: Troubleshoot file locks
361+
href: Troubleshoot-file-locks.md
360362
- name: Reference
361363
items:
362364
- name: REST

articles/azure-netapp-files/faq-nfs.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ ms.workload: storage
66
ms.topic: conceptual
77
author: b-hchen
88
ms.author: anfdocs
9-
ms.date: 11/08/2022
9+
ms.date: 03/13/2023
1010
---
1111
# NFS FAQs for Azure NetApp Files
1212

1313
This article answers frequently asked questions (FAQs) about the NFS protocol of Azure NetApp Files.
1414

15-
## I want to have a volume mounted automatically when an Azure VM is started or rebooted. How do I configure my host for persistent NFS volumes?
15+
## I want to have a volume mounted automatically when an Azure VM is started or rebooted. How do I configure my host for persistent NFS volumes?
1616

1717
For an NFS volume to automatically mount at VM start or reboot, add an entry to the `/etc/fstab` file on the host.
1818

@@ -44,15 +44,17 @@ Make sure that `CaseSensitiveLookup` is enabled on the Windows client to speed u
4444

4545
For NFSv4.1 clients, Azure NetApp Files supports the NFSv4.1 file-locking mechanism that maintains the state of all file locks under a lease-based model.
4646

47-
Per RFC 3530, Azure NetApp Files defines a single lease period for all state held by an NFS client. If the client does not renew its lease within the defined period, all states associated with the client's lease will be released by the server.
47+
Per RFC 3530, Azure NetApp Files defines a single lease period for all state held by an NFS client. If the client doesn't renew its lease within the defined period, all states associated with the client's lease will be released by the server.
4848

4949
For example, if a client mounting a volume becomes unresponsive or crashes beyond the timeouts, the locks will be released. The client can renew its lease explicitly or implicitly by performing operations such as reading a file.
5050

5151
A grace period defines a period of special processing in which clients can try to reclaim their locking state during a server recovery. The default timeout for the leases is 30 seconds with a grace period of 45 seconds. After that time, the client's lease will be released.
5252

53-
## Why is the `.snapshot` directory not visible in an NFSv4.1 volume, but it is visible in an NFSv3 volume?
53+
Azure NetApp Files also supports [breaking file locks](troubleshoot-file-locks.md).
5454

55-
By design, the .snapshot directory is never visible to NFSv4.1 clients. By default, the `.snapshot `directory will be visible to NFSv3 clients. To hide the `.snapshot` directory from NFSv3 clients, edit the properties of the volume to [hide the snapshot path](snapshots-edit-hide-path.md).
55+
## Why is the `.snapshot` directory not visible in an NFSv4.1 volume, but it's visible in an NFSv3 volume?
56+
57+
By design, the .snapshot directory is never visible to NFSv4.1 clients. By default, the `.snapshot `directory is visible to NFSv3 clients. To hide the `.snapshot` directory from NFSv3 clients, edit the properties of the volume to [hide the snapshot path](snapshots-edit-hide-path.md).
5658

5759
## Oracle dNFS
5860

@@ -62,22 +64,22 @@ Customers using Oracle 19c and higher must ensure they **are patched for Oracle
6264

6365
If a database is exposed to this bug, network interruptions are highly likely to result in fractured block corruption. Network interruptions include events such as storage endpoint relocation, volume relocation, and storage service maintenance events. The corruption may not necessarily be detected immediately.
6466

65-
This is not a bug on ONTAP or the Azure NetApp Files service itself. It is the result of an Oracle dNFS bug. The response to an NFS IO during a certain networking interruption or reconfiguration events is mishandled. The database will erroneously write a block that was being updated as it was written. In some cases, the corrupted block will be silently corrected by a later overwrite of that same block. If not, it will eventually be detected by Oracle database processes. An error should be logged in the Alert logs, and the Oracle instance is likely to terminate. In addition, dbv and RMAN operations can detect the corruption.
67+
This corruption is neither a bug on ONTAP nor the Azure NetApp Files service itself, but the result of an Oracle dNFS bug. The response to an NFS IO during a certain networking interruption or reconfiguration events is mishandled. The database will erroneously write a block that was being updated as it was written. In some cases, a later overwrite of that same block will silently corrupt the corrupted block. If not, Oracle database processes will eventually detect it. An error should be logged in the Alert logs, and the Oracle instance is likely to terminate. In addition, dbv and RMAN operations can detect the corruption.
6668

6769
Oracle publishes [document 1495104.1](https://support.oracle.com/knowledge/Oracle%20Cloud/1495104_1.html), which is continually updated with recommended dNFS patches. If your database uses dNFS, ensure the DBA team is checking for updates in this document.
6870

6971
### Are there any patches required for use of Oracle dNFS with NFSv4.1?
7072

71-
If your databases are using Oracle dNFS with NFSv4.1, they **need to be patched for Oracle bugs 33132050 and 33676296**. You may have to request a backport for other versions of Oracle. For example, at the time of writing, these patches are available for 19.11, but not yet 19.3. If you cite these bug numbers in the support case, Oracle's support engineers will know what to do.
73+
If your databases are using Oracle dNFS with NFSv4.1, they **need to be patched for Oracle bugs 33132050 and 33676296**. You may have to request a backport for other versions of Oracle. For example, at the time of writing, these patches are available for 19.11, but not yet 19.3. If you cite these bug numbers in the support case, Oracle's support engineers know what to do.
7274

7375
This requirement applies to ONTAP-based systems and services in general, which includes both on-premises ONTAP and Azure NetApp Files.
7476

75-
Examples of the potential problems if these patches are not applied:
77+
Examples of the potential problems if these patches aren't applied:
7678

7779
1. Database hangs on backend storage endpoint moves.
7880
1. Database hangs on Azure NetApp Files service maintenance events.
7981
1. Brief Oracle hangs during normal operation that may or may not be noticeable.
80-
1. Slow Oracle shutdowns: if you monitor the shutdown process, you'll see pauses that could add up to minutes of delays as dNFS I/O times out.
82+
1. Slow Oracle shutdowns: if you monitor the shutdown process, you see pauses that could add up to minutes of delays as dNFS I/O times out.
8183
1. Incorrect dNFS reply caching behavior on reads that will hang a database.
8284

8385
The patches include a change in dNFS session management and NFS reply caching that resolves these problems.
@@ -86,7 +88,7 @@ The patches include a change in dNFS session management and NFS reply caching th
8688

8789
### Can I use multipathing with Oracle dNFS and NFSv4.1?
8890

89-
dNFS will not work with multiple paths when using NFSv4.1. If you need multiple paths, you will have to use NFSv3. dNFS requires cluster-wide `clientID` and `sessionID` trunking for NFSv4.1 to work with multiple paths, and this is not supported by Azure NetApp Files. The result when trying to use this is a hang during dNFS startup
91+
When using NFSv4.1, dNFS won't work with multiple paths. If you need multiple paths, you have to use NFSv3. dNFS requires cluster-wide `clientID` and `sessionID` trunking for NFSv4.1 to work with multiple paths, which Azure NetApp Files does not support. As a result, you'll experience a hang during dNFS startup
9092

9193
## Next steps
9294

articles/azure-netapp-files/faq-smb.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.workload: storage
66
ms.topic: conceptual
77
author: b-hchen
88
ms.author: anfdocs
9-
ms.date: 02/28/2023
9+
ms.date: 03/13/2023
1010
---
1111
# SMB FAQs for Azure NetApp Files
1212

@@ -80,6 +80,8 @@ Azure NetApp Files supports [`CHANGE_NOTIFY` response](/openspecs/windows_protoc
8080

8181
Azure NetApp Files also supports [`LOCK` response](/openspecs/windows_protocols/ms-smb2/e215700a-102c-450a-a598-7ec2a99cd82c). This response is for the client’s request that comes in the form of a [`LOCK` request](/openspecs/windows_protocols/ms-smb2/6178b960-48b6-4999-b589-669f88e9017d).
8282

83+
Azure NetApp Files also supports [breaking file locks](troubleshoot-file-locks.md).
84+
8385
## What network authentication methods are supported for SMB volumes in Azure NetApp Files?
8486

8587
NTLMv2 and Kerberos network authentication methods are supported with SMB volumes in Azure NetApp Files. NTLMv1 and LanManager are disabled and are not supported.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
title: Troubleshoot file locks for an Azure NetApp Files volume | Microsoft Docs
3+
description: This article explains how to break file locks in an Azure NetApp Files volume.
4+
services: azure-netapp-files
5+
documentationcenter: ''
6+
author: b-ahibbard
7+
manager: ''
8+
editor: ''
9+
10+
ms.assetid:
11+
ms.service: azure-netapp-files
12+
ms.workload: storage
13+
ms.tgt_pltfrm: na
14+
ms.topic: how-to
15+
ms.date: 03/13/2023
16+
ms.author: anfdocs
17+
---
18+
# Troubleshoot file locks on an Azure NetApp Files volume
19+
20+
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.
21+
22+
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.
23+
24+
## Break file locks
25+
26+
1. Navigate to the volume you want to break file locks on. In the **Volume** menu under **Support & Troubleshooting**, navigate to **Break File Locks**.
27+
1. 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.
28+
1. Select **Break File Locks**.
29+
30+
:::image type="content" source="../media/azure-netapp-files/break-file-locks.png" alt-text="Screenshot of break file locks portal." lightbox="../media/azure-netapp-files/break-file-locks.png":::
31+
32+
1. Confirm you understand that breaking file locks may be disruptive.
33+
34+
## Next steps
35+
* [NFS FAQs for Azure NetApp Files](faq-nfs.md)
36+
* [SMB FAQs for Azure NetApp Files](faq-smb.md)
257 KB
Loading

0 commit comments

Comments
 (0)