New-SCStorageLogicalUnit

New-SCStorageLogicalUnit

Creates a logical unit from unallocated capacity in a storage pool.

構文

Parameter Set: NewLunFromLun
New-SCStorageLogicalUnit [-StorageLogicalUnit] <StorageLogicalUnit> -Name <String> [-Description <String> ] [-JobVariable <String> ] [-LogicalUnitCopyMethod <StorageLogicalUnitCopyMethod> {Snapshot | Clone | RemoteMirror} ] [-PROTipID <Guid]> ] [-RunAsynchronously] [-SetLogicalUnitCopySource] [-VMHostGroup <Microsoft.SystemCenter.VirtualMachineManager.HostGroup> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Parameter Set: NewLunFromPool
New-SCStorageLogicalUnit [-StoragePool] <StoragePool> -DiskSizeMB <UInt64> -Name <String> [-Description <String> ] [-JobVariable <String> ] [-PROTipID <Guid]> ] [-ProvisioningType <StorageProvisioningType> {Unknown | Thin | Fixed} ] [-RunAsynchronously] [-VMHostGroup <Microsoft.SystemCenter.VirtualMachineManager.HostGroup> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Parameter Set: NewReplicaLunFromLun
New-SCStorageLogicalUnit -TargetStoragePool <Microsoft.SystemCenter.VirtualMachineManager.StoragePool> [-VMHostGroup <Microsoft.SystemCenter.VirtualMachineManager.HostGroup> ] [ <CommonParameters>]

詳細説明

The New-SCStorageLogicalUnit cmdlet creates a logical unit from unallocated capacity in a storage pool.

パラメーター

-Description<String>

States a description for the specified object.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-DiskSizeMB<UInt64>

Specifies, in megabytes (MB), the size of a disk.

エイリアス

none

必須?

true

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-JobVariable<String>

Specifies that job progress is tracked and stored in the variable named by this parameter.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-LogicalUnitCopyMethod<StorageLogicalUnitCopyMethod>

Specifies the method used by the array to copy an existing logical unit. Valid values: Clone, Snapshot.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Name<String>

Specifies the name of a VMM object.

エイリアス

none

必須?

true

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-PROTipID<Guid]>

Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-ProvisioningType<StorageProvisioningType>

Specifies a storage provisioning type. Valid values are: Thin, Fixed.

Thin indicates that capacity is committed on demand for a storage logical unit.

Fixed indicates that capacity is fully committed for a fixed-size storage logical unit.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-RunAsynchronously

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

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-SetLogicalUnitCopySource

Indicates that the specified storage logical unit is the source from which a clone is copied.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-StorageLogicalUnit<StorageLogicalUnit>

Specifies a storage logical unit object.

エイリアス

none

必須?

true

位置は?

1

既定値

none

パイプライン入力を許可する

True (ByValue)

ワイルドカード文字を許可する

false

-StoragePool<StoragePool>

Specifies a storage pool object.

エイリアス

none

必須?

true

位置は?

1

既定値

none

パイプライン入力を許可する

True (ByValue)

ワイルドカード文字を許可する

false

-TargetStoragePool<Microsoft.SystemCenter.VirtualMachineManager.StoragePool>

エイリアス

none

必須?

true

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-VMHostGroup<Microsoft.SystemCenter.VirtualMachineManager.HostGroup>

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-VMMServer<ServerConnection>

Specifies a VMM server object.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

True (ByValue)

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • StorageLogicalUnit

Example 1: Create a copy of an existing logical unit

The first command gets the storage logical unit object named LUN01, and then stores the object in the $SourceLU variable.

The second command creates a new logical unit named NewLU by cloning LUN01.

PS C:\> $SourceLU = Get-SCStorageLogicalUnit -Name "LUN01"
PS C:\> New-SCStorageLogicalUnit -SetLogicalUnitCopySource -StorageLogicalUnit $SourceLU -Name "NewLU" -LogicalUnitCopyMethod Clone

関連トピック

Get-SCStorageLogicalUnit

Register-SCStorageLogicalUnit

Remove-SCStorageLogicalUnit

Set-SCStorageLogicalUnit

Unregister-SCStorageLogicalUnit