Skip to content

Commit ffc2793

Browse files
Merge pull request #288357 from khdownie/kendownie101424
add clear steps to NFS mount article
2 parents 919c1de + 9cd6f0c commit ffc2793

File tree

1 file changed

+49
-36
lines changed

1 file changed

+49
-36
lines changed

articles/storage/files/storage-files-how-to-mount-nfs-shares.md

Lines changed: 49 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
title: Mount an NFS Azure file share on Linux
3-
description: Learn how to mount a Network File System (NFS) Azure file share on Linux, including prerequisites and mount options.
3+
description: Learn how to mount a Network File System (NFS) Azure file share on Linux, including configuring network security and mount options.
44
author: khdownie
55
ms.service: azure-file-storage
6-
ms.custom: linux-related-content
6+
ms.custom: linux-related-content, references_regions
77
ms.topic: how-to
8-
ms.date: 05/09/2024
8+
ms.date: 10/14/2024
99
ms.author: kendownie
1010
---
1111

@@ -25,25 +25,28 @@ Azure file shares can be mounted in Linux distributions using either the Server
2525

2626
[!INCLUDE [files-nfs-limitations](../../../includes/files-nfs-limitations.md)]
2727

28-
### Regional availability
28+
## Regional availability
2929

30-
[!INCLUDE [files-nfs-regional-availability](~/reusable-content/ce-skilling/azure/includes/files-nfs-regional-availability.md)]
30+
NFS Azure file shares are supported in all the same regions that support premium file storage. See [Azure products available by region](https://azure.microsoft.com/explore/global-infrastructure/products-by-region/?products=storage&regions=all).
3131

32-
## Prerequisites
32+
## Step 1: Create an NFS Azure file share
3333

34-
- [Create an NFS share](storage-files-how-to-create-nfs-shares.md).
35-
- Open port 2049 on the client you want to mount your NFS share to.
34+
If you haven't already done so, [create an NFS Azure file share](storage-files-how-to-create-nfs-shares.md).
3635

37-
> [!IMPORTANT]
38-
> NFS shares can only be accessed from trusted networks.
36+
## Step 2: Configure network security
3937

40-
- Either [create a private endpoint](storage-files-networking-endpoints.md#create-a-private-endpoint) (recommended) or [restrict access to your public endpoint](storage-files-networking-endpoints.md#restrict-public-endpoint-access).
41-
- To enable hybrid access to an NFS Azure file share, use one of the following networking solutions:
42-
- [Configure a Point-to-Site (P2S) VPN on Linux for use with Azure Files](storage-files-configure-p2s-vpn-linux.md).
43-
- [Configure a Site-to-Site VPN for use with Azure Files](storage-files-configure-s2s-vpn.md).
44-
- Configure [ExpressRoute](../../expressroute/expressroute-introduction.md).
38+
NFS shares can only be accessed from trusted networks. Currently, the only way to secure the data in your storage account is by using a virtual network and other network security settings. Any other tools used to secure data, including account key authorization, Microsoft Entra security, and access control lists (ACLs) can't be used to authorize an NFSv4.1 request.
4539

46-
## Disable secure transfer
40+
> [!IMPORTANT]
41+
> The NFSv4.1 protocol runs on port 2049. If you're connecting from an on-premises network, make sure that your client allows outgoing communication through port 2049. If you've granted access to specific VNets, make sure that any network security groups associated with those VNets don't contain security rules that block incoming communication through port 2049.
42+
43+
### Create a private endpoint or service endpoint
44+
45+
To use NFS Azure file shares, you must either [create a private endpoint](storage-files-networking-endpoints.md#create-a-private-endpoint) (recommended) or [restrict access to your public endpoint](storage-files-networking-endpoints.md#restrict-public-endpoint-access).
46+
47+
### Disable secure transfer
48+
49+
Azure Files doesn't currently support encryption-in-transit with the NFS protocol and relies instead on network-level security. Therefore, you'll need to disable secure transfer on your storage account.
4750

4851
1. Sign in to the [Azure portal](https://portal.azure.com/) and access the storage account containing the NFS share you created.
4952
1. Select **Configuration**.
@@ -52,24 +55,21 @@ Azure file shares can be mounted in Linux distributions using either the Server
5255

5356
:::image type="content" source="media/storage-files-how-to-mount-nfs-shares/disable-secure-transfer.png" alt-text="Screenshot of storage account configuration screen with secure transfer disabled." lightbox="media/storage-files-how-to-mount-nfs-shares/disable-secure-transfer.png":::
5457

55-
## Mount options
58+
### Enable hybrid access through VPN or ExpressRoute (optional)
5659

57-
The following mount options are recommended or required when mounting NFS Azure file shares.
60+
To enable hybrid access to an NFS Azure file share, use one of the following networking solutions:
5861

59-
| **Mount option** | **Recommended value** | **Description** |
60-
|******************|***********************|*****************|
61-
| `vers` | 4 | Required. Specifies which version of the NFS protocol to use. Azure Files only supports NFS v4.1. |
62-
| `minorversion` | 1 | Required. Specifies the minor version of the NFS protocol. Some Linux distros don't recognize minor versions on the `vers` parameter. So instead of `vers=4.1`, use `vers=4,minorversion=1`. |
63-
| `sec` | sys | Required. Specifies the type of security to use when authenticating an NFS connection. Setting `sec=sys` uses the local UNIX UIDs and GIDs that use AUTH_SYS to authenticate NFS operations. |
64-
| `rsize` | 1048576 | Recommended. Sets the maximum number of bytes to be transferred in a single NFS read operation. Specifying the maximum level of 1048576 bytes will usually result in the best performance. |
65-
| `wsize` | 1048576 | Recommended. Sets the maximum number of bytes to be transferred in a single NFS write operation. Specifying the maximum level of 1048576 bytes will usually result in the best performance. |
66-
| `noresvport` | n/a | Recommended. Tells the NFS client to use a non-privileged source port when communicating with an NFS server for the mount point. Using the `noresvport` mount option helps ensure that your NFS share has uninterrupted availability after a reconnection. Using this option is strongly recommended for achieving high availability. |
67-
| `actimeo` | 30-60 | Recommended. Specifying `actimeo` sets all of `acregmin`, `acregmax`, `acdirmin`, and `acdirmax` to the same value. Using a value lower than 30 seconds can cause performance degradation because attribute caches for files and directories expire too quickly. We recommend setting `actimeo` between 30 and 60 seconds. |
62+
- [Configure a Point-to-Site (P2S) VPN](storage-files-configure-p2s-vpn-linux.md).
63+
- [Configure a Site-to-Site (S2S) VPN](storage-files-configure-s2s-vpn.md).
64+
- Configure [ExpressRoute](../../expressroute/expressroute-introduction.md).
6865

69-
## Mount an NFS share using the Azure portal
66+
## Step 3: Mount an NFS Azure file share
7067

71-
> [!NOTE]
72-
> You can use the `nconnect` Linux mount option to improve performance for NFS Azure file shares at scale. For more information, see [Improve NFS Azure file share performance](nfs-performance.md#nconnect).
68+
You can mount the share using the Azure portal. You can also create a record in the **/etc/fstab** file to automatically mount the share every time the Linux server or VM boots.
69+
70+
### Mount an NFS share using the Azure portal
71+
72+
You can use the `nconnect` Linux mount option to improve performance for NFS Azure file shares at scale. For more information, see [Improve NFS Azure file share performance](nfs-performance.md#nconnect).
7373

7474
1. Once the file share is created, select the share and select **Connect from Linux**.
7575
1. Enter the mount path you'd like to use, then copy the script.
@@ -79,7 +79,7 @@ The following mount options are recommended or required when mounting NFS Azure
7979

8080
You have now mounted your NFS share.
8181

82-
## Mount an NFS share using /etc/fstab
82+
### Mount an NFS share using /etc/fstab
8383

8484
If you want the NFS file share to automatically mount every time the Linux server or VM boots, create a record in the **/etc/fstab** file for your Azure file share. Replace `YourStorageAccountName` and `FileShareName` with your information.
8585

@@ -89,9 +89,23 @@ If you want the NFS file share to automatically mount every time the Linux serve
8989

9090
For more information, enter the command `man fstab` from the Linux command line.
9191

92-
### Validate connectivity
92+
### Mount options
93+
94+
The following mount options are recommended or required when mounting NFS Azure file shares.
95+
96+
| **Mount option** | **Recommended value** | **Description** |
97+
|******************|***********************|*****************|
98+
| `vers` | 4 | Required. Specifies which version of the NFS protocol to use. Azure Files only supports NFSv4.1. |
99+
| `minorversion` | 1 | Required. Specifies the minor version of the NFS protocol. Some Linux distros don't recognize minor versions on the `vers` parameter. So instead of `vers=4.1`, use `vers=4,minorversion=1`. |
100+
| `sec` | sys | Required. Specifies the type of security to use when authenticating an NFS connection. Setting `sec=sys` uses the local UNIX UIDs and GIDs that use AUTH_SYS to authenticate NFS operations. |
101+
| `rsize` | 1048576 | Recommended. Sets the maximum number of bytes to be transferred in a single NFS read operation. Specifying the maximum level of 1048576 bytes will usually result in the best performance. |
102+
| `wsize` | 1048576 | Recommended. Sets the maximum number of bytes to be transferred in a single NFS write operation. Specifying the maximum level of 1048576 bytes will usually result in the best performance. |
103+
| `noresvport` | n/a | Recommended. Tells the NFS client to use a non-privileged source port when communicating with an NFS server for the mount point. Using the `noresvport` mount option helps ensure that your NFS share has uninterrupted availability after a reconnection. Using this option is strongly recommended for achieving high availability. |
104+
| `actimeo` | 30-60 | Recommended. Specifying `actimeo` sets all of `acregmin`, `acregmax`, `acdirmin`, and `acdirmax` to the same value. Using a value lower than 30 seconds can cause performance degradation because attribute caches for files and directories expire too quickly. We recommend setting `actimeo` between 30 and 60 seconds. |
105+
106+
## Step 4: Validate connectivity
93107

94-
If your mount failed, it's possible that your private endpoint wasn't set up correctly or isn't accessible. For details on confirming connectivity, see [Verify connectivity](storage-files-networking-endpoints.md#verify-connectivity).
108+
If your mount fails, it's possible that your private endpoint wasn't set up correctly or isn't accessible. For details on confirming connectivity, see [Verify connectivity](storage-files-networking-endpoints.md#verify-connectivity).
95109

96110
## NFS file share snapshots
97111

@@ -271,7 +285,6 @@ To mount an NFS Azure file share snapshot to a Linux VM (NFS client) and restore
271285

272286
The files and directories from the snapshot should now be available in the `/media/nfs/restore` directory.
273287

274-
## Next steps
288+
## Next step
275289

276-
- Learn more about Azure Files with [Planning for an Azure Files deployment](storage-files-planning.md).
277-
- If you experience any issues, see [Troubleshoot NFS Azure file shares](/troubleshoot/azure/azure-storage/files-troubleshoot-linux-nfs?toc=/azure/storage/files/toc.json).
290+
- If you experience any issues, see [Troubleshoot NFS Azure file shares](/troubleshoot/azure/azure-storage/files-troubleshoot-linux-nfs?toc=/azure/storage/files/toc.json).

0 commit comments

Comments
 (0)