New-SCStorageLogicalUnit

Applies To: System Center 2012 - Virtual Machine Manager

New-SCStorageLogicalUnit

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

Syntax

Parameter Set: NewLunFromLun
New-SCStorageLogicalUnit [-StorageLogicalUnit] <StorageLogicalUnit> -Name <String> [-Description <String> ] [-JobVariable <String> ] [-LogicalUnitCopyMethod <StorageLogicalUnitCopyMethod> ] [-PROTipID <Guid> ] [-RunAsynchronously] [-SetLogicalUnitCopySource] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Parameter Set: NewLunFromPool
New-SCStorageLogicalUnit [-StoragePool] <StoragePool> -DiskSizeMB <UInt64> -Name <String> [-Description <String> ] [-JobVariable <String> ] [-PROTipID <Guid> ] [-RunAsynchronously] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Detailed Description

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

For more information about New-SCStorageLogicalUnit, type: "Get-Help New-SCStorageLogicalUnit -online".

Parameters

-Description<String>

States a description for the specified object.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-DiskSizeMB<UInt64>

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

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-JobVariable<String>

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

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-LogicalUnitCopyMethod<StorageLogicalUnitCopyMethod>

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

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Name<String>

Specifies the name of a VMM object.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-PROTipID<Guid>

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

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-RunAsynchronously

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

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-SetLogicalUnitCopySource

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

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-StorageLogicalUnit<StorageLogicalUnit>

Specifies a storage logical unit object.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-StoragePool<StoragePool>

Specifies a storage pool object.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-VMMServer<ServerConnection>

Specifies a VMM server object.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • StorageLogicalUnit

Examples

1: Create a copy of an existing logical unit.

The first command gets the storage logical unit object named LUN01 and 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