You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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®ions=all).
31
31
32
-
## Prerequisites
32
+
## Step 1: Create an NFS Azure file share
33
33
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).
36
35
37
-
> [!IMPORTANT]
38
-
> NFS shares can only be accessed from trusted networks.
36
+
## Step 2: Configure network security
39
37
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).
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.
45
39
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.
47
50
48
51
1. Sign in to the [Azure portal](https://portal.azure.com/) and access the storage account containing the NFS share you created.
49
52
1. Select **Configuration**.
@@ -52,24 +55,21 @@ Azure file shares can be mounted in Linux distributions using either the Server
52
55
53
56
:::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":::
54
57
55
-
##Mount options
58
+
### Enable hybrid access through VPN or ExpressRoute (optional)
56
59
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:
|`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).
> 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).
73
73
74
74
1. Once the file share is created, select the share and select **Connect from Linux**.
75
75
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
79
79
80
80
You have now mounted your NFS share.
81
81
82
-
## Mount an NFS share using /etc/fstab
82
+
###Mount an NFS share using /etc/fstab
83
83
84
84
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.
85
85
@@ -89,9 +89,23 @@ If you want the NFS file share to automatically mount every time the Linux serve
89
89
90
90
For more information, enter the command `man fstab` from the Linux command line.
91
91
92
-
### Validate connectivity
92
+
### Mount options
93
+
94
+
The following mount options are recommended or required when mounting NFS Azure file shares.
|`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
93
107
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).
95
109
96
110
## NFS file share snapshots
97
111
@@ -271,7 +285,6 @@ To mount an NFS Azure file share snapshot to a Linux VM (NFS client) and restore
271
285
272
286
The files and directories from the snapshot should now be available in the `/media/nfs/restore` directory.
273
287
274
-
## Next steps
288
+
## Next step
275
289
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