New-SCStorageQoSPolicy
在一或多個儲存體檔案伺服器上建立儲存體 QoS 原則。
Syntax
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
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
此命令會建立具有單一檔案伺服器最大 IOPS 設定的多實例儲存體 QoS 原則。
範例 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
此命令會建立單一實例儲存體 QoS 原則,並針對兩部檔案伺服器建立最小 IOPS 設定。
參數
-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 提示 (PRO 提示的識別碼) 。 此參數可讓您稽核 PRO 秘訣。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RunAsynchronously
表示作業會以非同步方式執行,讓控制項立即返回命令殼層。
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 物件。