Last active
February 20, 2016 21:57
-
-
Save vMarkusK/5fd058d7ad64c90f5d66 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ESXiHostList = Get-VMHost | |
foreach ($ESXiHost in $ESXiHostList) | |
{ | |
#Configure HP 3PAR SATP/PSP Rule | |
$SATPesxcli = $ESXiHost | Get-EsxCli | |
$SATPesxcli.storage.nmp.satp.rule.add($null,"tpgs_on","3PAR custom rule",$null,$null,$null,"VV",$null,"VMW_PSP_RR","iops=100","VMW_SATP_ALUA",$null,$null,"3PARdata") | |
Write-Host $ESXiHost ": HP 3PAR SATP/PSP Rule, configured." | |
#Disable ATS HB (http://kb.vmware.com/kb/2113956) | |
Get-AdvancedSetting -Entity $ESXiHost.name -Name VMFS3.UseATSForHBOnVMFS5 | Set-AdvancedSetting -Value 0 -Confirm:$false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment