Setting Queue_Depth parameter on multiple ESXi

According to VMware KB1267 an advanced parameter value should be changed from 32 to 64 to get a better storage performance.
Normally it gets solved by accessing ESXi Console and launch an esxcli command or we could use a vMA to launch work with more than 1 server.

PowerCLI has a great cmd-let called Get-EsxCLI that comes to make our lives much easier. 

Now if we need to get this paramter applied on our Cluster, here comes a simple way to do it in a snap.
Get-Cluster ClusterName| Get-VmHost | ForEach-Object {$EsxCli = Get-EsxCli -vmhost $_; $EsxCli.system.module.parameters.set($True,"lpfc820","lpfc_lun_queue_depth=64")}

Don’t forget rebooting your servers is required for this change to take effect.

Good Luck.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s