Wednesday, March 12, 2014

Set NFS Queue Depth - PowerCLI

NetApp recommends a NFS queue depth of 64 for all ESX hosts.  Here is a quick PowerCLI script to set it on all hosts.


Connect-VIServer vcenter.domain.tld
$esxHosts = Get-VMHost | Sort Name
foreach($esx in $esxHosts){
    if((Get-VMHostAdvancedConfiguration -VMHost $esx -Name NFS.MaxQueueDepth).Values -ne "64"){
        Set-VMHostAdvancedConfiguration -VMHost $esx -Name NFS.MaxQueueDepth -Value 64 -Confirm:$false
    }
}

This change requires a reboot of the ESX host to take effect.

No comments:

Post a Comment

Featured Post

Remove 3D Objects and other annoying folders on Windows 10

 Microsoft just keeps adding more crap to clutter up the navigation in Windows 10.  Seriously, who needs a 3D Objects folder?  The tiny perc...