New-SCStorageQoSPolicy
在一个或多个存储文件服务器上创建存储 QoS 策略。
语法
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>]
说明
New-SCStorageQoSPolicy cmdlet 在一个或多个存储文件服务器上创建存储服务质量 (QoS) 策略。
示例
示例 1:为单个文件服务器创建具有最大 IOPS 设置的多实例存储 QoS 策略
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
此命令创建一个多实例存储 QoS 策略,其中包含单个文件服务器的最大 IOPS 设置。
示例 2:为两个文件服务器创建具有最低 IOPS 设置的单实例存储 QoS 策略
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
此命令为两个文件服务器创建具有最低 IOPS 设置的单实例存储 QoS 策略。
参数
-BandwidthLimitMBPS
Type: | UInt64 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Description
指定策略的说明。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-IOPSMaximum
指定最大 IOPS。
Type: | UInt64 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-IOPSMinimum
指定最小 IOPS。
Type: | UInt64 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-IOPSNormalizationSizeKB
Type: | UInt32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JobVariable
指定在其中跟踪和存储作业进度的变量。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
指定 Virtual Machine Manager (VMM) 对象的名称。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PolicyType
指定 QoS 策略类型。 此参数的可接受值为:
- SingleInstance
- MultiInstance
Type: | StorageQoSPolicyType |
Accepted values: | Aggregated, Dedicated |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PROTipID
指定触发此操作 (PRO 提示) 的性能和资源优化提示的 ID。 此参数允许审核 PRO 提示。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RunAsynchronously
指示作业异步运行,以便控件立即返回到命令 shell。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StorageArray
Type: | StorageArray[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StorageFileServer
指定存储文件服务器对象的数组。
Type: | StorageFileServer[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMMServer
指定VMM 服务器对象。
Type: | ServerConnection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
输出
StorageQoSPolicy
此 cmdlet 返回 StorageQoSPolicy 对象。