Register-SCStorageLogicalUnit

Register-SCStorageLogicalUnit

Associates a logical unit with a host.

構文

Parameter Set: RegisterToClusterJobGroup
Register-SCStorageLogicalUnit [-StorageLogicalUnit] <StorageLogicalUnit[]> -JobGroup <Guid]> [-JobVariable <String> ] [-PROTipID <Guid]> ] [-RunAsynchronously] [ <CommonParameters>]

Parameter Set: RegisterToCluster
Register-SCStorageLogicalUnit [-StorageLogicalUnit] <StorageLogicalUnit[]> -VMHostCluster <HostCluster> [-JobVariable <String> ] [-PROTipID <Guid]> ] [-RunAsynchronously] [ <CommonParameters>]

Parameter Set: RegisterToHost
Register-SCStorageLogicalUnit [-StorageLogicalUnit] <StorageLogicalUnit[]> -VMHost <Host> [-JobGroup <Guid]> ] [-JobVariable <String> ] [-PROTipID <Guid]> ] [-RunAsynchronously] [ <CommonParameters>]

Parameter Set: RegisterToInitiators
Register-SCStorageLogicalUnit [-StorageLogicalUnit] <StorageLogicalUnit[]> -StorageInitiators <String[]> [-JobVariable <String> ] [-PROTipID <Guid]> ] [-RunAsynchronously] [-StorageEndpoints <String[]> ] [-StorageGroupName <String> ] [ <CommonParameters>]

Parameter Set: RegisterToVM
Register-SCStorageLogicalUnit [-StorageLogicalUnit] <StorageLogicalUnit[]> -VM <VM[]> [-AddVM <VM> ] [-JobGroup <Guid]> ] [-JobVariable <String> ] [-PROTipID <Guid]> ] [-RunAsynchronously] [ <CommonParameters>]

詳細説明

The Register-SCStorageLogicalUnit cmdlet associates a logical unit with a virtual machine host. The logical unit appears in the operating system as a disk.

パラメーター

-AddVM<VM>

Adds a virtual machine (VM).

エイリアス

none

必須?

false

位置は?

named

既定値

none

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

false

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

false

-JobGroup<Guid]>

Specifies an identifier for a series of commands that run as a set just before the final command that includes the same job group identifier runs.

エイリアス

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

-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

-RunAsynchronously

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

エイリアス

none

必須?

false

位置は?

named

既定値

none

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

false

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

false

-StorageEndpoints<String[]>

Specifies an array of storage endpoints.

エイリアス

none

必須?

false

位置は?

named

既定値

none

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

false

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

false

-StorageGroupName<String>

Specifies the name of a storage group.

エイリアス

none

必須?

false

位置は?

named

既定値

none

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

false

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

false

-StorageInitiators<String[]>

Specifies an array of storage initiators.

エイリアス

none

必須?

true

位置は?

named

既定値

none

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

false

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

false

-StorageLogicalUnit<StorageLogicalUnit[]>

Specifies a storage logical unit object.

エイリアス

none

必須?

true

位置は?

1

既定値

none

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

True (ByValue)

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

false

-VM<VM[]>

Specifies a virtual machine object.

エイリアス

none

必須?

true

位置は?

named

既定値

none

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

false

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

false

-VMHost<Host>

Specifies a virtual machine host object. VMM supports Hyper-V hosts, VMware ESX hosts, and Citrix XenServer hosts.

For more information about each type of host, type Get-Help Add-SCVMHost -detailed. See the examples for a specific cmdlet to determine how that cmdlet uses this parameter.

エイリアス

none

必須?

true

位置は?

named

既定値

none

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

false

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

false

-VMHostCluster<HostCluster>

Specifies a VMM host cluster object.

エイリアス

none

必須?

true

位置は?

named

既定値

none

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

false

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

false

<CommonParameters>

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

入力

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

出力

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

  • StorageDisk

Example Example 1: Register a logical unit with a host.

The first command gets the host object named VMHost01, and then stores the object in the $VMHost variable.

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

The last command registers LUN01 with VMHost01.

PS C:\> $VMHost = Get-SCVMHost -ComputerName "VMHost01"
PS C:\> $LU = Get-SCStorageLogicalUnit -Name "LUN01"
PS C:\> Register-SCStorageLogicalUnit -StorageLogicalUnit $LU -VMHost $VMHost

関連トピック

Get-SCStorageLogicalUnit

New-SCStorageLogicalUnit

Remove-SCStorageLogicalUnit

Set-SCStorageLogicalUnit

Unregister-SCStorageLogicalUnit

Get-SCVMHost