Compartilhar via


New-SCStorageQoSPolicy

Creates a storage QoS policy on one or more storage file servers.

Syntax

Default (Default)

New-SCStorageQoSPolicy
    [-VMMServer <ServerConnection>]
    -Name <String>
    [-Description <String>]
    -PolicyType <StorageQoSPolicyType>
    [-IOPSNormalizationSizeKB <UInt32>]
    [-IOPSMaximum <UInt64>]
    [-IOPSMinimum <UInt64>]
    [-BandwidthLimitMBPS <UInt64>]
    [-StorageFileServer <StorageFileServer[]>]
    [-StorageArray <StorageArray[]>]
    [-RunAsynchronously]
    [-PROTipID <Guid>]
    [-JobVariable <String>]
    [<CommonParameters>]

Description

The New-SCStorageQoSPolicy cmdlet creates a storage Quality of Service (QoS) policy on one or more storage file servers.

Examples

Example 1: Create a multi-instance storage QoS policy with maximum IOPS settings for a single file server

PS C:\> $FileServersToAdd = @()
PS C:\> $FileServersToAdd += Get-SCStorageFileServer -Name "FileServer01c"
PS C:\> New-SCStorageQoSPolicy -Name "MAXIOPSPolicy" -Description "" -PolicyType "MultiInstance" -IOPSMinimum "0" -IOPSMaximum "10000" -StorageFileServer $FileServersToAdd

This command creates a multi-instance storage QoS policy with maximum IOPS settings for a single file server.

Example 2: Create a single-instance storage QoS policy with minimum IOPS settings for two file servers

PS C:\> $FileServersToAdd = @()
PS C:\> $FileServersToAdd += Get-SCStorageFileServer -Name "FileServer01c"
PS C:\> $FileServersToAdd += Get-SCStorageFileServer -Name "FileServer02c"
New-SCStorageQoSPolicy -Name "MINIOPSPolicy" -Description "" -PolicyType "SingleInstance" -IOPSMinimum "5000" -IOPSMaximum "0" -StorageFileServer $FileServersToAdd

This command creates a single-instance storage QoS policy with minimum IOPS settings for two file servers.

Parameters

-BandwidthLimitMBPS

The New-SCStorageQoSPolicy cmdlet creates a storage Quality of Service (QoS) policy on one or more storage file servers.

Parameter properties

Type:UInt64
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Description

Specifies a description for the policy.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-IOPSMaximum

Specifies the maximum IOPS.

Parameter properties

Type:UInt64
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-IOPSMinimum

Specifies the minimum IOPS.

Parameter properties

Type:UInt64
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-IOPSNormalizationSizeKB

The New-SCStorageQoSPolicy cmdlet creates a storage Quality of Service (QoS) policy on one or more storage file servers.

Parameter properties

Type:UInt32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-JobVariable

Specifies a variable in which job progress is tracked and stored.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

Specifies the name of a Virtual Machine Manager (VMM) object.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PolicyType

Specifies the QoS policy type. The acceptable values for this parameter are:

  • SingleInstance
  • MultiInstance

Parameter properties

Type:StorageQoSPolicyType
Default value:None
Accepted values:Aggregated, Dedicated
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PROTipID

Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.

Parameter properties

Type:Guid
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-RunAsynchronously

Indicates that the job runs asynchronously so that control returns to the command shell immediately.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-StorageArray

The New-SCStorageQoSPolicy cmdlet creates a storage Quality of Service (QoS) policy on one or more storage file servers.

Parameter properties

Type:

StorageArray[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-StorageFileServer

Specifies an array of storage file server objects.

Parameter properties

Type:

StorageFileServer[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VMMServer

Specifies a VMM server object.

Parameter properties

Type:ServerConnection
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

StorageQoSPolicy

This cmdlet returns a StorageQoSPolicy object.