Skip to content

Commit 7503305

Browse files
committed
Updates.
1 parent 28ab983 commit 7503305

File tree

2 files changed

+28
-9
lines changed

2 files changed

+28
-9
lines changed

articles/storage/elastic-san/elastic-san-connect-windows.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,11 @@ Use the following script to create your connections. To execute it, collect or d
7070
and other volume names that you might require
7171
- 32: Number of sessions to each volume
7272

73-
Copy the script from [here](https://github.com/Azure-Samples/azure-elastic-san/blob/main/PSH%20(Windows)%20Multi-Session%20Connect%20Scripts/ElasticSanDocScripts0523/connect.ps1) and save it as a .ps1 file, for example, connect.ps1.
73+
Copy the script from [here](https://github.com/Azure-Samples/azure-elastic-san/blob/main/PSH%20(Windows)%20Multi-Session%20Connect%20Scripts/ElasticSanDocScripts0523/connect.ps1) and save it as a .ps1 file, for example, connect.ps1. Then execute it with the required parameters. The following is an example of how to run the script:
7474

75+
```bash
76+
./connect.ps1 $rgname $esanname $vgname $vol1,$vol2,$vol3 32
77+
```
7578

7679
### Set session number
7780

articles/storage/elastic-san/elastic-san-troubleshoot.md

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,21 @@ ms.author: rogarana
1212

1313
This article lists common issues related to Azure Elastic SAN. It also provides possible causes and resolutions for these issues.
1414

15-
## Common Azure Elastic SAN errors
16-
17-
***Encountered get_iqns timeout error with Linux documentation script - Exception: Command took longer than 10 s***
15+
## Encountered get_iqns timeout error with Linux documentation script - Exception: Command took longer than 10 s
1816

1917
- Install the latest Azure CLI, and follow the instructions that work for your Virtual Machine (VM) SKU.
2018
- Once you install the latest version, run az extension add -n elastic-san to install the extension for Elastic SAN.
2119
- Run the az login command and follow the steps that command generates to log in through your browser.
2220
- Rerun the Linux documentation script and check if the issue persists.
2321

24-
***Encountered login rejected error - iscsiadm: Cannot modify node.conn[0].iscsi.DataDigest. Invalid param name.***
22+
## Encountered login rejected error - iscsiadm: Cannot modify node.conn[0].iscsi.DataDigest. Invalid param name
2523

2624
- Ensure the private endpoint or service endpoint is configured correctly
2725
- Check if your volumes are connecting to Azure VMware Solution (AVS), as Cyclic Redundancy Check (CRC) isn't supported yet for AVS.
2826
- If not, check if your VM is running Fedora or its downstream Linux distributions like Red Hat Enterprise Linux, CentOS, or Rocky Linux that don't support data digests.
2927
- If either of the above scenarios is true, disable the CRC protection flag. You have to uncheck the box on portal and change the parameter for EnforceDataIntegrityCheckForIscsi (PowerShell)) or data-integrity-check (CLI) to false.
3028

31-
***Unable to connect to your Elastic SAN via service endpoints***
29+
## Unable to connect to your Elastic SAN via service endpoints
3230

3331
- [Enable](https://learn.microsoft.com/azure/storage/elastic-san/elastic-san-networking?tabs=azure-powershell#configure-public-network-access) Public Network Access on the SAN
3432
```powershell
@@ -50,28 +48,46 @@ $Vnet = Get-AzVirtualNetwork -ResourceGroupName $RgName -Name $VnetName $Subnet
5048
$Vnet | Set-AzVirtualNetworkSubnetConfig -Name $SubnetName -AddressPrefix $Subnet.AddressPrefix -ServiceEndpoint "Microsoft.Storage.Global" | Set-AzVirtualNetwork
5149
```
5250

53-
***Elastic SAN volume performance or latency isn't as expected***
51+
## Elastic SAN volume performance or latency isn't as expected
5452

5553
- Check your SAN size and configuration via portal (SAN homepage -> Configuration blade) and ensure that the I/O per second (IOPS) and throughput numbers can handle the requirements of the workload
5654
- Check your VM throughput and IOPS limits and ensure that the VM can handle the workload requirements
5755
- Ensure that you're following the best practices outlined in this [document](https://learn.microsoft.com/azure/storage/elastic-san/elastic-san-best-practices).
5856

5957

60-
***Unable to establish connectivity from new nodes in a cluster***
58+
## Unable to establish connectivity from new nodes in a cluster
6159

6260
- Identify which VMs are part of the cluster.
6361
- Check the number of sessions per node using `iscsicli sessionList` or `mpclaim -s -d` (for Windows) or sudo multipath -ll (for Linux) on each VM in the cluster and add up the total number of sessions
6462
- After doing so, if the # of sessions are 128 then you can disconnect the volumes via portal or using the script linked [here](https://github.com/Azure-Samples/azure-elastic-san/blob/main/PSH%20(Windows)%20Multi-Session%20Connect%20Scripts/ElasticSanDocScripts0523/disconnect.ps1) for Windows or [here](https://github.com/Azure-Samples/azure-elastic-san/blob/main/CLI%20(Linux)%20Multi-Session%20Connect%20Scripts/disconnect_for_documentation.py) for Linux.
6563
- Next, modify the NumSession parameter (Windows) or the num_of_sessions parameter (Linux) of the connect script from either from the portal or the [Windows](https://github.com/Azure-Samples/azure-elastic-san/blob/main/PSH%20(Windows)%20Multi-Session%20Connect%20Scripts/ElasticSanDocScripts0523/connect.ps1) or [Linux](https://github.com/Azure-Samples/azure-elastic-san/blob/main/CLI%20(Linux)%20Multi-Session%20Connect%20Scripts/connect_for_documentation.py) scripts. You need to ensure that the total number of sessions across volumes is less than 128.
6664
- Run the script on your VM. These values can also be entered during runtime of the script.
6765

68-
***Unable to connect to more than eight volumes to a Windows VM***
66+
## Unable to connect to more than eight volumes to a Windows VM
6967

7068
- To see the number of sessions on your Windows VM, run `iscsicli sessionList` or `mpclaim -s -d`. The maximum session limit is 255 for Windows VMs.
7169
- If you are at the session limit, then you can disconnect the volumes either via portal or using the script linked [here](https://github.com/Azure-Samples/azure-elastic-san/blob/main/PSH%20(Windows)%20Multi-Session%20Connect%20Scripts/ElasticSanDocScripts0523/disconnect.ps1).
7270
- Next, modify the $NumSession parameter of the connect script from either the portal or using the [Windows](https://github.com/Azure-Samples/azure-elastic-san/blob/main/PSH%20(Windows)%20Multi-Session%20Connect%20Scripts/ElasticSanDocScripts0523/connect.ps1) script. You need to ensure that the total number of sessions per volume attached to the VM is less than 255 sessions.
7371
- Run the script on your VM. These values can also be entered during runtime of the script.
7472

73+
## Troubleshoot CRC protection on host clients
74+
75+
> [!NOTE]
76+
> CRC protection feature isn't currently available in North Europe and South Central US.
77+
78+
The multi-session connection scripts in the [Windows](elastic-san-connect-windows.md) or [Linux](elastic-san-connect-Linux.md) Elastic SAN connection articles set CRC-32C on header and data digests for your connections automatically. But, you can do it manually if you need to. On Windows, you can do this by setting header or data digests to 1 during login to the Elastic SAN volumes (`LoginTarget` and `PersistentLoginTarget`). On Linux, you can do this by updating the global iSCSI configuration file (iscsid.conf, generally found in /etc/iscsi directory). 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 volumes to your client before updating your global configuration file, update the node specific configuration file for each volume directly, or using the following command:
79+
80+
Variables:
81+
- $volume_iqn: Elastic SAN volume IQN
82+
- $portal_hostname: Elastic SAN volume portal hostname
83+
- $port: 3260
84+
- $iscsi_setting_name: node.conn[0].iscsi.HeaderDigest (or) node.conn[0].iscsi.DataDigest
85+
- $setting_value: CRC32C
86+
87+
88+
```sudo iscsiadm -m node -T $volume_iqn -p $portal_hostname:$port -o update -n $iscsi_setting_name -v $setting_value```
89+
90+
7591
## Next steps
7692
- [Deploy an Elastic SAN](https://learn.microsoft.com/azure/storage/elastic-san/elastic-san-create)
7793
- [Connect to Windows](https://learn.microsoft.com/azure/storage/elastic-san/elastic-san-connect-windows)

0 commit comments

Comments
 (0)