VMware Cloud Community
jakas
Contributor
Contributor
Jump to solution

SOIC and Host Profile

Is it possible to set SOIC using host profile? i want to make sure any new datastore added to the host gets SOIC enabled. is there a way to do this using Host Profile.

Also, is there a list that cannot be set using host profiles, i know of:

Lockdown Mode

License



thanks

Reply
0 Kudos
1 Solution

Accepted Solutions
NuggetGTR
VMware Employee
VMware Employee
Jump to solution

script like this would change those settings

PowerCLI C:\> Get-Datastore <Datasctore Name>|Get-View|?{$_.Summary.Accessible -eq $true -and $_.Capability.StorageIORMSupported -and $_.Summary.MultipleHostAccess}|%{(Get-View (Get-View ServiceInstance).Content.StorageResourceManager).ConfigureDatastoreIORM_Task($_.MoRef, (New-Object VMware.Vim.StorageIORMConfigSpec -Property @{enabled=$true; congestionThresholdMode="automatic"; percentOfPeakThroughput="90"; statsAggregationDisabled=$true; statsCollectionEnabled=$true}))}

________________________________________ Blog: http://virtualiseme.net.au VCDX #201 Author of Mastering vRealize Operations Manager

View solution in original post

Reply
0 Kudos
3 Replies
NuggetGTR
VMware Employee
VMware Employee
Jump to solution

SIOC is a datastore level setting, not a host setting which means host profiles will not make this setting, If you have enabled SIOC on a datastore that setting is seen on all hosts attached to that datastore.

Adding a new datastore this setting would have to be enabled when added or a script run after the fact.

Cheers

________________________________________ Blog: http://virtualiseme.net.au VCDX #201 Author of Mastering vRealize Operations Manager
Reply
0 Kudos
pramodnaik
Contributor
Contributor
Jump to solution

Thanks.

with SIOC, the web client has new setting for Peak throughput theshold percentage and Exclude I/OO statistics from SDRS. Do you have a script to channge these?

Reply
0 Kudos
NuggetGTR
VMware Employee
VMware Employee
Jump to solution

script like this would change those settings

PowerCLI C:\> Get-Datastore <Datasctore Name>|Get-View|?{$_.Summary.Accessible -eq $true -and $_.Capability.StorageIORMSupported -and $_.Summary.MultipleHostAccess}|%{(Get-View (Get-View ServiceInstance).Content.StorageResourceManager).ConfigureDatastoreIORM_Task($_.MoRef, (New-Object VMware.Vim.StorageIORMConfigSpec -Property @{enabled=$true; congestionThresholdMode="automatic"; percentOfPeakThroughput="90"; statsAggregationDisabled=$true; statsCollectionEnabled=$true}))}

________________________________________ Blog: http://virtualiseme.net.au VCDX #201 Author of Mastering vRealize Operations Manager
Reply
0 Kudos