VMware Cloud Community
td_sk
Contributor
Contributor

Setting IOPS for datastore

Hi All,

   Thanks in advance.

              I am trying to set the iops values to 1 in my environment. I need to check all the RR policy luns and if it not equal to 1 then it need to change.

any body has a script please share it. I hope the powercli have Get-exscli command -let . Hope this will work for ESX 4.1 ESXI server also.

I need to get the report of the iops changed luns too.

                $vcServe = "VCNTER NAME"

Connect-VIServer -Server $VCSERVER

foreach ($esx in Get-Cluster $cluster | Get-VMHost)

$esxcli = Get-EsxCli

foreach($esxcli in Get-EsxCli) {$esxcli.nmp.roundrobin.setconfig($null, $_.Name, 1, "iops", $null)  }

#Disconnect from vCenter

Disconnect-VIServer $vcServer

Thanks

0 Kudos
1 Reply
LucD
Leadership
Leadership

If you want to do this on the device level, have a look at Re: Get-Content PowerCLI to apply IOPS settings on all LUNs

If you write each $_.Device to a file, you have the report of the changed LUNs.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos