Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 179681

enabling sioc in datastore cluster_powercli

$
0
0

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

 

               

 

             

 

}

}

 

}}


Viewing all articles
Browse latest Browse all 179681

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>