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
Copy file name to clipboardExpand all lines: articles/storage/elastic-san/elastic-san-best-practices.md
+67-26Lines changed: 67 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Learn about the best practices for getting optimal performance when
4
4
author: roygara
5
5
ms.service: azure-elastic-san-storage
6
6
ms.topic: conceptual
7
-
ms.date: 08/13/2024
7
+
ms.date: 04/21/2025
8
8
ms.author: rogarana
9
9
---
10
10
@@ -14,18 +14,37 @@ This article provides some general guidance on getting optimal performance with
14
14
15
15
## Client-side optimizations
16
16
17
-
### General recommendations (Windows & Linux Virtual Machines)
17
+
### General recommendations
18
18
19
-
- For best performance, deploy your VMs and Elastic SAN in the same zone and the same region.
19
+
#### Windows & Linux Virtual Machines
20
+
21
+
- For best performance, deploy your virtual machines (VM) and Elastic SAN in the same zone and the same region.
20
22
21
23
- VM storage I/O to Elastic SAN volumes uses VM network bandwidth, so traditional disk throughput limits on a VM don't apply to Elastic SAN volumes. Choose a VM that can provide sufficient bandwidth for production/VM-to-VM I/O and iSCSI I/O to attached Elastic SAN volumes. Generally, you should use Gen 5 (D / E / M series) VMs for the best performance.
22
24
23
-
- Enable “Accelerated Networking” on the VM, during VM creation. To do it via Azure PowerShell or Azure CLI or to enable Accelerated Networking on existing VMs, see [Use Azure PowerShell to create a VM with Accelerated Networking](../../virtual-network/create-vm-accelerated-networking-powershell.md)
25
+
- Enable **Accelerated Networking** on the VM during creation. To do it via Azure PowerShell or Azure CLI or to enable Accelerated Networking on existing VMs, see [Use Azure PowerShell to create a VM with Accelerated Networking](../../virtual-network/create-vm-accelerated-networking-powershell.md)
24
26
25
27
:::image type="content" source="media/elastic-san-best-practices/enable-accelerated-networking.png" alt-text="Screenshot of VM creation flow, enable accelerated networking highlighted." lightbox="media/elastic-san-best-practices/enable-accelerated-networking.png":::
26
28
27
29
- You must use 32 sessions per target volume for each volume to achieve its maximum IOPS and/or throughput limits. Use Multipath I/O (MPIO) on the client to manage these multiple sessions to each volume for load balancing. Scripts are available for [Windows](elastic-san-connect-windows.md#connect-to-volumes), [Linux](elastic-san-connect-linux.md#connect-to-volumes), or on the Connect to volume page for your volumes in the Azure portal, which uses 32 sessions by default. Windows software iSCSI initiator has a limit of maximum 256 sessions. If you need to connect more than eight volumes to a Windows VM, reduce the number of sessions to each volume as needed.
28
30
31
+
#### Azure VMware Solution
32
+
33
+
- Deploy your Elastic SAN in the same region and availability zone as your Azure VMware Solution cluster
34
+
- Configure Private Endpoints before mounting your Elastic SAN volume as an external datastore
35
+
- If you plan for your environment to ever have 16 nodes in an Azure VMware Solution cluster, use one of the following configurations, depending on which hosts you have.
36
+
- AV36, AV36P, AV52 - Six iSCSI sessions over three Private Endpoints
37
+
- AV64 - Seven iSCSI sessions over seven Private Endpoints
38
+
- If your environment won't have 16 nodes, use one of the following configurations.
39
+
- AV36, AV36P, AV52 - Eight iSCSI sessions over four Private Endpoints
40
+
- AV64 - Eight iSCSI sessions over eight Private Endpoints
41
+
42
+
> [!NOTE]
43
+
> When an Elastic SAN volume is attached to a cluster, it automatically attaches to all nodes. If you have 16 nodes and each node is configured to use eight iSCSI sessions that uses the maximum number of connections (128). Configuring your nodes to use seven iSCSI sessions ensures that if you need to attach an extra node (for maintenance) then you have available iSCSI sessions.
44
+
45
+
- Use eager zeroed thick provisioning when creating virtual disks
46
+
- Size ExpressRoute Gateway so that it can meet your throughput requirements
47
+
- Configure your Elastic SAN to have at least 16 TiB in its base size, so you can get up to the maximum performance on your Elastic SAN datastores
29
48
30
49
### MPIO
31
50
@@ -47,7 +66,7 @@ For more information regarding MPIO cmdlets, see [MPIO reference](/powershell/mo
47
66
48
67
#### Linux
49
68
50
-
Update /etc/multipath.conf file with the following:
69
+
Update /etc/multipath.conf file with the following commands:
51
70
52
71
```config
53
72
defaults {
@@ -66,11 +85,16 @@ devices {
66
85
}
67
86
```
68
87
88
+
#### Azure VMware Solution
89
+
90
+
Microsoft manages MPIO settings for Azure VMware Solution. Optimal values are set when you create a datastore.
91
+
92
+
69
93
### iSCSI
70
94
71
95
#### Windows
72
96
73
-
Update the below registry settings for iSCSI initiator on Windows.
97
+
Update the registry settings for iSCSI initiator on Windows.
74
98
75
99
1. Open Registry Editor:
76
100
1. Select Start, type regedit in the search box and press enter.
@@ -97,39 +121,56 @@ In cluster configurations, ensure iSCSI initiator names unique across all nodes
97
121
98
122
:::image type="content" source="media/elastic-san-best-practices/iscsi-initiator-config-widnows.png" alt-text="Screenshot of iSCSI Initiator configuration on Windows." lightbox="media/elastic-san-best-practices/iscsi-initiator-config-widnows.png":::
99
123
100
-
1. To modify it, select **Change**, enter new initiator name and select OK.
124
+
1. To modify it, select **Change**, enter new initiator name, and select OK.
101
125
102
126
:::image type="content" source="media/elastic-san-best-practices/update-iscsi-initiator-name-windows.png" alt-text="Screenshot of updating the iSCSI Initiator Name on Windows." lightbox="media/elastic-san-best-practices/update-iscsi-initiator-name-windows.png":::
103
127
104
128
105
129
#### Linux
106
130
107
-
Update the following settings with recommended values in global iSCSI configuration file (iscsid.conf, generally found in /etc/iscsi directory) on the client before connecting any volumes to it. When a volume is connected, a node is created along with a configuration file specific to that node (for example on Ubuntu, it can be found in /etc/iscsi/nodes/$volume_iqn/portal_hostname,$port directory) inheriting the settings from global configuration file. If you have already connected one or more volumes to the client before updating global configuration file, update the node specific configuration file for each volume directly or using the following command:
131
+
Update the following settings with recommended values in global iSCSI configuration file (iscsid.conf, generally found in /etc/iscsi directory) on the client before connecting any volumes to it. When a volume is connected, a node is created along with a configuration file specific to that node (for example on Ubuntu VMs, it can be found in the `/etc/iscsi/nodes/$volume_iqn/portal_hostname,$port` directory) inheriting the settings from global configuration file. If you already connected one or more volumes to the client before updating global configuration file, update the node specific configuration file for each volume directly or using the following command:
In cluster configurations, ensure iSCSI initiator names are unique across all nodes that are sharing volumes. In Linux, you can modify /etc/iscsi/initiatorname.iscsi to update the initiator name.
148
+
# Set maximum data the initiator can receive in an iSCSI PDU from the target to 256 KB
In cluster configurations, ensure iSCSI initiator names are unique across all nodes that are sharing volumes. In Linux, modify /etc/iscsi/initiatorname.iscsi to update the initiator name.
131
169
:::image type="content" source="media/elastic-san-best-practices/update-iscsi-initiator-name-linux.png" alt-text="Screenshot updating the iSCSI Initiator Name on Linux." lightbox="media/elastic-san-best-practices/update-iscsi-initiator-name-linux.png":::
132
170
171
+
#### Azure VMware Solution
172
+
173
+
Microsoft manages iSCSI settings. Optimal values are set when you create a datastore.
0 commit comments