-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDisk.SchedNumReqOutstanding.ps1
36 lines (32 loc) · 1.12 KB
/
Disk.SchedNumReqOutstanding.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<#
.SYNOPSIS
set and test the Disk.SchedNumReqOutstanding of xtremIO to 256
.DESCRIPTION
Disk.SchedNumReqOutstanding is the maximum number of I/Os one VM can issue all the way down to the LUN
when there is more than one VM pushing I/O to the same LUN.
Please neglect any errors while you are run this if the script is not exiting abruptly after the error
.NOTES
File Name : Disk.SchedNumReqOutstanding.ps1
Author : davidring
Prerequisite : PowerCli 5.x over Vista and upper.
Copyright -
.LINK
Script posted over:
http://davidring.ie/2014/09/08/emc-xtremio-setting-disk-schednumreqoutstanding-on-vsphere-5-5-powercli/
#>
#set Disk.SchedNumReqOutstanding of xtremIO to 256
#esxcli storage core device set -d naa.xxx -O "256"
$VMHosts = get-vmhost
foreach ($VMHost in $VMHosts)
{
Write-Host "setting values for $VMHost"
$esxcli = get-vmhost $VMHost | Get-EsxCli
$devices = $esxcli.storage.core.device.list()
foreach ($device in $devices)
{
if ($device.Model -like "XtremApp")
{
$esxcli.storage.core.device.set($null, $device.Device, $null, $null, $null, $null, $null, 256, $null)
}
}
}