New-SCStorageLogicalUnit
從存放集區中未配置容量建立邏輯單元。
Syntax
New-SCStorageLogicalUnit
[-LogicalUnitCopyMethod <StorageLogicalUnitCopyMethod>]
[-VMHostGroup <HostGroup>]
[-VMMServer <ServerConnection>]
[-StorageLogicalUnit] <StorageLogicalUnit>
-Name <String>
[-Description <String>]
-TargetStoragePool <StoragePool>
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
New-SCStorageLogicalUnit
[-LogicalUnitCopyMethod <StorageLogicalUnitCopyMethod>]
[-VMHostGroup <HostGroup>]
[-VMMServer <ServerConnection>]
[-StorageLogicalUnit] <StorageLogicalUnit>
-Name <String>
[-Description <String>]
[-SetLogicalUnitCopySource]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
New-SCStorageLogicalUnit
[-ProvisioningType <StorageProvisioningType>]
[-VMHostGroup <HostGroup>]
[-VMMServer <ServerConnection>]
-Name <String>
[-Description <String>]
[-StoragePool] <StoragePool>
-DiskSizeMB <UInt64>
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Description
New-SCStorageLogicalUnit Cmdlet 會從存放集區中未配置的容量建立邏輯單元。
範例
範例 1:建立現有邏輯單元的複本
PS C:\> $SourceLU = Get-SCStorageLogicalUnit -Name "LUN01"
PS C:\> New-SCStorageLogicalUnit -SetLogicalUnitCopySource -StorageLogicalUnit $SourceLU -Name "NewLU" -LogicalUnitCopyMethod Clone
第一個命令會取得名為 LUN01 的儲存體邏輯單元物件,並將物件儲存在$SourceLU變數中。
第二個命令會藉由複製 LUN01 來建立名為 NewLU 的新邏輯單元。
參數
-Description
指出指定之物件的描述。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DiskSizeMB
指定磁片的大小,以 MB 為單位, (MB) 。
Type: | UInt64 |
Position: | Named |
Default value: | None |
Required: | True |
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 |
-LogicalUnitCopyMethod
指定陣列用來複製現有邏輯單元的方法。 有效值:Clone、Snapshot。
Type: | StorageLogicalUnitCopyMethod |
Accepted values: | Snapshot, Clone, RemoteMirror |
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 秘訣。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ProvisioningType
指定儲存體布建類型。 有效值為:精簡、固定。
精簡表示視需要認可儲存體邏輯單元的容量。
Fixed 表示固定大小儲存體邏輯單元的容量已完全認可。
Type: | StorageProvisioningType |
Accepted values: | Unknown, Thin, Fixed |
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 |
-SetLogicalUnitCopySource
表示指定的儲存邏輯單元是複製複製的來源。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StorageLogicalUnit
指定儲存體邏輯單元物件。
Type: | StorageLogicalUnit |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-StoragePool
指定存放集區物件。
Type: | StoragePool |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-TargetStoragePool
指定目標存放集區。
Type: | StoragePool |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMHostGroup
指定虛擬機器主機群組物件。
Type: | HostGroup |
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 |
輸出
StorageLogicalUnit
此 Cmdlet 會傳回 StorageLogicalUnit 物件。