New-SCStoragePool
建立存放集區。
Syntax
New-SCStoragePool
[-VMMServer <ServerConnection>]
-Name <String>
[-Description <String>]
-StorageArray <StorageArray>
-StoragePhysicalDisk <StoragePhysicalDisk[]>
-StorageClassification <StorageClassification>
[-FaultDomainAwareness <FaultDomainAwarenessType>]
[-InterleaveDefaultKB <UInt64>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Description
New-SCStoragePool Cmdlet 會建立存放集區。
範例
範例 1:從實體磁片建立集區
PS C:\> $Disks = Get-SCStoragePhysicalDisk | where {$_.CanPool -eq $True}
PS C:\> New-SCStoragePool -StoragePhysicalDisk $Disks -Name "Pool01"
第一個命令會取得可集區的所有實體磁片物件,並將物件儲存在$Disks變數中。
第二個命令會建立名為 Pool01 的存放集區,其中包含儲存在 $Disks 中的實體磁片。
參數
-Description
指定存放集區的描述。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-FaultDomainAwareness
指定在此存放集區中建立之新虛擬磁片的預設容錯網域。 此參數可接受的值為:
- 1:PhysicalDisk
- 2:StorageEnclosure
- 3:節點
Type: | FaultDomainAwarenessType |
Accepted values: | NotSupported, PhysicalDisk, StorageEnclosure, StorageScaleUnit |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InterleaveDefaultKB
針對在此存放集區中建立的新虛擬磁片,指定預設交錯大小,以 KB 為單位。
Type: | UInt64 |
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
指定 VMM 物件的名稱。
Type: | String |
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
指定儲存體陣列物件。 這可以是用來儲存虛擬機器組態和虛擬磁片的光纖通道或 iSCSI 儲存體子系統。
Type: | StorageArray |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StorageClassification
指定儲存體分類物件。
Type: | StorageClassification |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StoragePhysicalDisk
指定實體磁片陣列, (旋轉媒體或固態) 。
Type: | StoragePhysicalDisk[] |
Position: | Named |
Default value: | None |
Required: | True |
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 |
輸出
StoragePool
此 Cmdlet 會傳回 StoragePool 物件。