PowerCLI Reference

Set-VMHostProfileStorageDeviceConfiguration

Synopsis

This cmdlet modifies the storage device configuration for the given host profile.

Syntax

Set-VMHostProfileStorageDeviceConfiguration [-StorageDeviceConfiguration] <VMHostProfileStorageDeviceConfiguration[]> [-ConfigInfo <String>] [-DeviceStateOn <Boolean>] [-IsPerenniallyReserved <Boolean>] [-IsSharedClusterwide <Boolean>] [-NumReqOutstanding <Int32>] [-PspName <String>] [-QueueFullSampleSize <Int32>] [-QueueFullThreshold <Int32>] [-Server <VIServer[]>] [<CommonParameters>]

Related Commands

Online Version
Get-VMHostProfileStorageDeviceConfiguration

Detailed Description

This cmdlet modifies the storage device configuration for the given host profile.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
StorageDeviceConfigurationVMHostProfileStorageDeviceConfiguration[]Specifies the configuration that you want to modify.trueTrue (ByValue)
ConfigInfoStringSpeicifies configuration information for the device.falseFalse
DeviceStateOnBooleanSpecifies if the device state is switched On.falseFalse
IsPerenniallyReservedBooleanSpecifies if the device is perennially reserved.falseFalse
IsSharedClusterwideBooleanSpecifies if the device is shared clusterwide.falseFalse
NumReqOutstandingInt32Specifies the maximum number of outstanding disk requests.falseFalse
PspNameStringSpecifies the path selection plug-in name.falseFalse
QueueFullSampleSizeInt32Specifies the queue full sample size value.falseFalse
QueueFullThresholdInt32Specifies the queue full threshhold value.falseFalse
ServerVIServer[]Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.falseTrue (ByValue)

Return Type

VMware.VimAutomation.ViCore.Types.V1.Host.Profile.VMHostProfileStorageDeviceConfiguration[]

Notes

Examples

-------------------------- Example 1 --------------------------

PS C:\> $conf = Get-VMHostProfileStorageDeviceConfiguration --HostProfile 'Host_Profile' --DeviceName 'mpx.vmhba1:C0:T5:L0'
PS C:\> Set-VMHostProfileStorageDeviceConfiguration -StorageDeviceConfiguration $config -DeviceStateOn $true -QueueFullSampleSize 0

Modifies the storage device configuration by setting the DeviceStateOn to true and QueueFullSampleSize to zero for device name mpx.vmhba1:C0:T5:L0 in the host profile named Host_Profile.


Copyright © VMware, Inc. All rights reserved.