Hi Luc ,
if yu can check following script i am planning to configure sioc on all datastores belonging to datastore cluster .
one of the prerequistes we have is to have only one extent in datastors .also the congestion threshold default value value to be 30
would yu like to add more to it in terms of vmdk shares .
$datastoreclusters=Get-DatastoreCluster
foreach($dcluster in $datastoreclusters)
{
$datastorecluster=Get-DatastoreCluster $dcluster
foreach($data in $datastorecluster)
{
$datastores = Get-Datastore -Location $data
foreach($d in $datastores )
{
$datastore = Get-Datastore $d
$freespaceGB=$datastore.FreeSpaceGB
$capacityGB=$datastore.CapacityGB
$freespaceratio=$freespaceGB/$capacityGB
$freespacepercent=$freespaceratio*100
$freespacepercentround=[math]::Round($freespacepercent)
[pscUSTOMoBJECT]@{
datastoreclustername = $datastorecluster.name
datastore = $datastore.name
extents=($datastore.ExtensionData.Info.Vmfs.Extent).Count
freespacepercentround = $freespacepercentround
storageiocontrolenabled = $datastore.StorageIOControlEnabled
congestionthreshold = $datastore.CongestionThresholdMillisecond
}
}
}}