Skip to content

Commit 2f1e620

Browse files
Merge pull request #208317 from b-ahibbard/anf-mount-dual-protocol
Anf mount dual protocol
2 parents 6675baa + a267cb4 commit 2f1e620

File tree

4 files changed

+61
-42
lines changed

4 files changed

+61
-42
lines changed

articles/azure-netapp-files/TOC.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,10 @@
221221
href: configure-network-features.md
222222
- name: Mount volumes
223223
items:
224-
- name: Mount a volume for Windows or Linux VMs
224+
- name: Mount an NFS volume for Windows or Linux VMs
225225
href: azure-netapp-files-mount-unmount-volumes-for-virtual-machines.md
226+
- name: Mount an SMB volume for Windows of Linux VMs
227+
href: mount-volumes-vms-smb.md
226228
- name: Manage volume capacity and performance
227229
items:
228230
- name: Monitor the capacity of a volume

articles/azure-netapp-files/azacsnap-release-notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This page lists major changes made to AzAcSnap to provide new functionality or r
2727
> [!IMPORTANT]
2828
> AzAcSnap 6 brings a new release model for AzAcSnap and includes fully supported GA features and Preview features in a single release.
2929
30-
Since AzAcSnap v5.0 was released as GA in April-2021, there have been 8 releases of AzAcSnap across two branches. Our goal with the new release model is to align with how Azure components are released. This allows moving features from Preview to GA (without having to move an entire branch), and introduce new Preview features (without having to create a new branch). From AzAcSnap 6 we will have a single branch with fully supported GA features and Preview features (which are subject to Microsoft's Preview Ts&Cs). It’s important to note customers cannot accidentally use Preview features, and must enable them with the `--preview` command line option. This means the next release will be AzAcSnap 7, which could include; patches (if necessary) for GA features, current Preview features moving to GA, or new Preview features.
30+
Since AzAcSnap v5.0 was released as GA in April 2021, there have been 8 releases of AzAcSnap across two branches. Our goal with the new release model is to align with how Azure components are released. This allows moving features from Preview to GA (without having to move an entire branch), and introduce new Preview features (without having to create a new branch). From AzAcSnap 6 we will have a single branch with fully supported GA features and Preview features (which are subject to Microsoft's Preview Ts&Cs). It’s important to note customers cannot accidentally use Preview features, and must enable them with the `--preview` command line option. This means the next release will be AzAcSnap 7, which could include; patches (if necessary) for GA features, current Preview features moving to GA, or new Preview features.
3131

3232
AzAcSnap 6 is being released with the following fixes and improvements:
3333

articles/azure-netapp-files/azure-netapp-files-mount-unmount-volumes-for-virtual-machines.md

Lines changed: 32 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---
2-
title: Mount Azure NetApp Files volumes for virtual machines | Microsoft Docs
3-
description: Learn how to mount an Azure NetApp Files volume for Windows or Linux virtual machines.
2+
title: Mount NFS volumes for virtual machines | Microsoft Docs
3+
description: Learn how to mount an NFS volume for Windows or Linux virtual machines.
44
author: b-hchen
55
ms.author: anfdocs
66
ms.service: azure-netapp-files
77
ms.workload: storage
88
ms.topic: how-to
9-
ms.date: 06/13/2022
9+
ms.date: 08/18/2022
1010
---
11-
# Mount a volume for Windows or Linux VMs
11+
# Mount NFS volumes for Linux or Windows VMs
1212

13-
You can mount an Azure NetApp Files file for Windows or Linux virtual machines (VMs). The mount instructions for Linux virtual machines are available on Azure NetApp Files.
13+
You can mount an NFS file for Windows or Linux virtual machines (VMs).
1414

1515
## Requirements
1616

@@ -22,49 +22,41 @@ You can mount an Azure NetApp Files file for Windows or Linux virtual machines (
2222
* 4045 TCP/UDP = `nlockmgr` (NFSv3 only)
2323
* 4046 TCP/UDP = `status` (NFSv3 only)
2424

25-
## Steps
25+
## Mount NFS volumes on Linux clients
2626

27-
1. Click the **Volumes** blade, and then select the volume for which you want to mount.
28-
2. Click **Mount instructions** from the selected volume, and then follow the instructions to mount the volume.
27+
1. Review the [Linux NFS mount options best practices](performance-linux-mount-options.md).
28+
2. Select the **Volumes** pane and then the NFS volume that you want to mount.
29+
3. To mount the NFS volume using a Linux client, select **Mount instructions** from the selected volume. Follow the displayed instructions to mount the volume.
30+
:::image type="content" source="../media/azure-netapp-files/azure-netapp-files-mount-instructions-nfs.png" alt-text="Screenshot of Mount instructions." lightbox="../media/azure-netapp-files/azure-netapp-files-mount-instructions-nfs.png":::
31+
* Ensure that you use the `vers` option in the `mount` command to specify the NFS protocol version that corresponds to the volume you want to mount.
32+
For example, if the NFS version is NFSv4.1:
33+
`sudo mount -t nfs -o rw,hard,rsize=65536,wsize=65536,vers=4.1,tcp,sec=sys $MOUNTTARGETIPADDRESS:/$VOLUMENAME $MOUNTPOINT`
34+
* If you use NFSv4.1 and your configuration requires using VMs with the same host names (for example, in a DR test), refer to [Configure two VMs with the same hostname to access NFSv4.1 volumes](configure-nfs-clients.md#configure-two-vms-with-the-same-hostname-to-access-nfsv41-volumes).
35+
4. If you want the volume mounted automatically when an Azure VM is started or rebooted, add an entry to the `/etc/fstab` file on the host.
36+
For example: `$ANFIP:/$FILEPATH /$MOUNTPOINT nfs bg,rw,hard,noatime,nolock,rsize=65536,wsize=65536,vers=3,tcp,_netdev 0 0`
37+
* `$ANFIP` is the IP address of the Azure NetApp Files volume found in the volume properties menu
38+
* `$FILEPATH` is the export path of the Azure NetApp Files volume
39+
* `$MOUNTPOINT` is the directory created on the Linux host used to mount the NFS export
40+
5. If you want to mount an NFS Kerberos volume, refer to [Configure NFSv4.1 Kerberos encryption](configure-kerberos-encryption.md) for additional details.
41+
6. You can also access SMB volumes from Unix and Linux clients via NFS by setting the protocol access for the volume to “dual-protocol”. This allows for accessing the volume via NFS (NFSv3 or NFSv4.1) and SMB. See [Create a dual-protocol volume](create-volumes-dual-protocol.md) for details. Take note of the security style mappings table. Mounting a dual-protocol volume from Unix and Linux clients relies on the same procedure as regular NFS volumes.
2942

30-
![Mount instructions NFS](../media/azure-netapp-files/azure-netapp-files-mount-instructions-nfs.png)
43+
## Mount NFS volumes on Windows clients
3144

32-
![Mount instructions SMB](../media/azure-netapp-files/azure-netapp-files-mount-instructions-smb.png)
33-
* If you are mounting an NFS volume, ensure that you use the `vers` option in the `mount` command to specify the NFS protocol version that corresponds to the volume you want to mount.
34-
* If you are using NFSv4.1, use the following command to mount your file system: `sudo mount -t nfs -o rw,hard,rsize=65536,wsize=65536,vers=4.1,tcp,sec=sys $MOUNTTARGETIPADDRESS:/$VOLUMENAME $MOUNTPOINT`
35-
> [!NOTE]
36-
> If you use NFSv4.1 and your use case involves leveraging VMs with the same hostnames (for example, in a DR test), see [Configure two VMs with the same hostname to access NFSv4.1 volumes](configure-nfs-clients.md#configure-two-vms-with-the-same-hostname-to-access-nfsv41-volumes).
45+
Mounting NFSv4.1 volumes on Windows clients is supported. For more information, see [Network File System overview](/windows-server/storage/nfs/nfs-overview).
3746

38-
3. If you want to have an NFS volume automatically mounted when an Azure VM is started or rebooted, add an entry to the `/etc/fstab` file on the host.
47+
If you want to mount NFSv3 volumes on a Windows client using NFS:
3948

40-
For example: `$ANFIP:/$FILEPATH /$MOUNTPOINT nfs bg,rw,hard,noatime,nolock,rsize=65536,wsize=65536,vers=3,tcp,_netdev 0 0`
41-
42-
* `$ANFIP` is the IP address of the Azure NetApp Files volume found in the volume properties blade.
43-
* `$FILEPATH` is the export path of the Azure NetApp Files volume.
44-
* `$MOUNTPOINT` is the directory created on the Linux host used to mount the NFS export.
45-
46-
4. If you want to mount the volume to Windows using NFS:
47-
48-
> [!NOTE]
49-
> One alternative to mounting an NFS volume on Windows is to [Create a dual-protocol volume for Azure NetApp Files](create-volumes-dual-protocol.md), allowing the native access of SMB for Windows and NFS for Linux. However, if that is not possible, you can mount the NFS volume on Windows using the steps below.
50-
51-
* Set the permissions to allow the volume to be mounted on Windows
52-
* Follow the steps to [Configure Unix permissions and change ownership mode for NFS and dual-protocol volumes](configure-unix-permissions-change-ownership-mode.md#unix-permissions) and set the permissions to '777' or '775'.
53-
* Install NFS client on Windows
54-
* Open PowerShell
55-
* type: `Install-WindowsFeature -Name NFS-Client`
56-
* Mount the volume via the NFS client on Windows
57-
* Obtain the 'mount path' of the volume
58-
* Open a Command prompt
59-
* type: `mount -o anon -o mtype=hard \\$ANFIP\$FILEPATH $DRIVELETTER:\`
60-
* `$ANFIP` is the IP address of the Azure NetApp Files volume found in the volume properties blade.
61-
* `$FILEPATH` is the export path of the Azure NetApp Files volume.
62-
* `$DRIVELETTER` is the drive letter where you would like the volume mounted within Windows.
63-
64-
5. If you want to mount an NFS Kerberos volume, see [Configure NFSv4.1 Kerberos encryption](configure-kerberos-encryption.md) for additional details.
49+
1. [Mount the volume onto a Unix or Linux VM first](#mount-nfs-volumes-on-linux-clients).
50+
1. Run a `chmod 777` or `chmod 775` command against the volume.
51+
1. Mount the volume via the NFS client on Windows using the mount option `mtype=hard` to reduce connection issues.
52+
See [Windows command line utility for mounting NFS volumes](/windows-server/administration/windows-commands/mount) for more detail.
53+
For example: `Mount -o rsize=256 -o wsize=256 -o mtype=hard \\10.x.x.x\testvol X:* `
54+
1. You can also access NFS volumes from Windows clients via SMB by setting the protocol access for the volume to “dual-protocol”. This setting allows access to the volume via SMB and NFS (NFSv3 or NFSv4.1) and will result in better performance than using the NFS client on Windows with an NFS volume. See [Create a dual-protocol volume](create-volumes-dual-protocol.md) for details, and take note of the security style mappings table. Mounting a dual-protocol volume from Windows clients using the same procedure as regular SMB volumes.
6555

6656
## Next steps
6757

58+
* [Mount SMB volumes for Windows or Linux virtual machines](mount-volumes-vms-smb.md)
59+
* [Linux NFS mount options best practices](performance-linux-mount-options.md)
6860
* [Configure NFSv4.1 default domain for Azure NetApp Files](azure-netapp-files-configure-nfsv41-domain.md)
6961
* [NFS FAQs](faq-nfs.md)
7062
* [Network File System overview](/windows-server/storage/nfs/nfs-overview)
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: Mount SMB volumes for Windows VMs | Microsoft Docs
3+
description: Learn how to mount SMB volumes for Windows virtual machines.
4+
author: b-ahibbard
5+
ms.author: anfdocs
6+
ms.service: azure-netapp-files
7+
ms.workload: storage
8+
ms.topic: how-to
9+
ms.date: 08/18/2022
10+
---
11+
# Mount SMB volumes for Windows VMs
12+
13+
You can mount an SMB file for Windows virtual machines (VMs).
14+
15+
## Mount SMB volumes on a Windows client
16+
17+
1. Select the **Volumes** menu and then the SMB volume that you want to mount.
18+
1. To mount the SMB volume using a Windows client, select **Mount instructions** from the selected volume. Follow the displayed instructions to mount the volume.
19+
:::image type="content" source="../media/azure-netapp-files/azure-netapp-files-mount-instructions-smb.png" alt-text="Screenshot of Mount instructions." lightbox="../media/azure-netapp-files/azure-netapp-files-mount-instructions-smb.png":::
20+
21+
## Next steps
22+
23+
* [Mount NFS volumes for Windows or Linux VMs](azure-netapp-files-mount-unmount-volumes-for-virtual-machines.md)
24+
* [SMB FAQs](faq-smb.md)
25+
* [Network File System overview](/windows-server/storage/nfs/nfs-overview)

0 commit comments

Comments
 (0)