How to Configure ESXi SATP Rules for XtremIO with PowerCLI

Here’s the short and sweet for configuring the best practice SATP rule for XtremIO storage on ESXi 5.5 using PowerCLI (5.8 Release 1, in my case). I can’t claim any credit beyond aggregation and adaptation: the parameters are from the XtremIO user guide and the script comes from (thanks!). See my earlier post about the SATP rule itself and how to manually implement it: VMware ESXi Round Robin NMP IOPS=1.

$cluster = "Production"

foreach($esx in Get-Cluster $cluster | Get-VMHost){
$esxcli = Get-EsxCli -VMHost $esx
# List XtremIO SATP rules
# $ | where {$_.description -like "*XtremIO*"}
# Create a new SATP rule for XtremIO
$result = $$null,"tpgs_off","XtremIO Active/Active",$null,$null,$null,"XtremApp",$null,"VMW_PSP_RR","iops=1","VMW_SATP_DEFAULT_AA",$null,"vendor","XtremIO")
# List XtremIO Rules
# $ | where {$_.description -like "*XtremIO*"}
Write-Host "Host:", $esx.Name, "Result", $result

If all goes well as it did with my cluster, the output will include one line per host with “Result true” at the end. Remember to reboot after creating the rule. Only newly-added storage will use the rule until then.

Be First to Comment

Leave a Reply