Basically you want to do 'esxcli storage core device list' and take note of the vendor and model fields.
Replace those fields in the script example above.
Also, you want to check with Dell's website to see what options they recommend. They may not be the same as my example. They probably are, but I can't tell you anything specific about EMC LUNs.
Original Message:
Sent: Jul 03, 2025 02:06 PM
From: prasanna22kumar
Subject: Round Robin and IOPS Limit
Thanks for the script..! But how can I change for Dell EMC Lun's..??
Thanks in advacne.!
Regards,
Kumar.
Original Message:
Sent: Jul 02, 2025 01:31 PM
From: CriticalChance
Subject: Round Robin and IOPS Limit
The easiest way to just create a new claim rule that way all LUNs from your vendor get your new settings. Using Claim Rules to Control ESXi Multipathing Modules
Here's a script I wrote for NetApp systems, in this case I am setting the latency policy instead of using IOPs. We've found it is generally better overall performing and helps protect against flaky paths. You can unclaim/reclaim your LUNs, but I usually just do a rolling reboot. I like easy.
#Load VMware PowerCLI core module if not already available
Import-Module VMware.VimAutomation.Core
# Prompt for the vCenter Server
$vCenter = Read-Host -Prompt "What vCenter do you want to connect to?"
Write-Output "You entered: $vCenter"
# Prompt for vCenter Server credentials
$cred = Get-Credential
# Connect to the vCenter Server using the provided credentials
Connect-VIServer -Server $vCenter -Credential $cred
# Prompt for the datacenter
$Datacenter = Read-Host -Prompt "Which datacenter do you want to update?"
Write-Output "You entered: $Datacenter"
$vmhosts = Get-VMhost -Location $Datacenter
foreach ($vmhost in $vmhosts) {
$esxcli = Get-EsxCli -VMHost $vmHost -V2
$arguments = $esxcli.storage.nmp.satp.rule.add.CreateArgs()
$arguments.pspoption="policy=latency"
$arguments.description="NetApp ONTAP Latency SATP Rule"
$arguments.vendor="NETAPP"
$arguments.type="vendor"
$arguments.satp="VMW_SATP_ALUA"
$arguments.claimoption="tpgs_on"
$arguments.psp="VMW_PSP_RR"
$arguments.option="reset_on_attempted_reserve"
$arguments.model="LUN C-Mode"
$esxcli.storage.nmp.satp.rule.add.Invoke($arguments)
}
# Disconnect from the vCenter Server
Disconnect-VIServer -Confirm:$false
Original Message:
Sent: Jul 01, 2025 01:04 PM
From: prasanna22kumar
Subject: Round Robin and IOPS Limit
Hi All,
Could anyone please guide me on the following:
How to check the current LUNs' path selection policy and IOPS settings?
If the LUNs are not configured for Round Robin, how can we change the policy for multiple LUNs in bulk?
Also, how do we set the IOPS value (e.g., IOPS=1,000 or similar) for all LUNs using a script?
Appreciate it if you can share the appropriate PowerCLI or script to achieve this.
Thanks, Kumar.