Udostępnij za pośrednictwem


New-SCStorageLogicalUnit

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

Syntax

NewReplicaLunFromLun

New-SCStorageLogicalUnit
    [-StorageLogicalUnit] <StorageLogicalUnit>
    -Name <String>
    -TargetStoragePool <StoragePool>
    [-LogicalUnitCopyMethod <StorageLogicalUnitCopyMethod>]
    [-VMHostGroup <HostGroup>]
    [-VMMServer <ServerConnection>]
    [-Description <String>]
    [-RunAsynchronously]
    [-PROTipID <Guid>]
    [-JobVariable <String>]
    [<CommonParameters>]

NewLunFromLun

New-SCStorageLogicalUnit
    [-StorageLogicalUnit] <StorageLogicalUnit>
    -Name <String>
    [-LogicalUnitCopyMethod <StorageLogicalUnitCopyMethod>]
    [-VMHostGroup <HostGroup>]
    [-VMMServer <ServerConnection>]
    [-Description <String>]
    [-SetLogicalUnitCopySource]
    [-RunAsynchronously]
    [-PROTipID <Guid>]
    [-JobVariable <String>]
    [<CommonParameters>]

NewLunFromPool

New-SCStorageLogicalUnit
    [-StoragePool] <StoragePool>
    -Name <String>
    -DiskSizeMB <UInt64>
    [-ProvisioningType <StorageProvisioningType>]
    [-VMHostGroup <HostGroup>]
    [-VMMServer <ServerConnection>]
    [-Description <String>]
    [-RunAsynchronously]
    [-PROTipID <Guid>]
    [-JobVariable <String>]
    [<CommonParameters>]

Description

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

Examples

Example 1: Create a copy of an existing logical unit

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

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.

Parameters

-Description

States a description for the specified object.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DiskSizeMB

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

Parameter properties

Type:UInt64
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

NewLunFromPool
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-JobVariable

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

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-LogicalUnitCopyMethod

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

Parameter properties

Type:StorageLogicalUnitCopyMethod
Default value:None
Accepted values:Snapshot, Clone, RemoteMirror
Supports wildcards:False
DontShow:False

Parameter sets

NewReplicaLunFromLun
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
NewLunFromLun
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

Specifies the name of a VMM object.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PROTipID

Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.

Parameter properties

Type:Guid
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ProvisioningType

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.

Parameter properties

Type:StorageProvisioningType
Default value:None
Accepted values:Unknown, Thin, Fixed
Supports wildcards:False
DontShow:False

Parameter sets

NewLunFromPool
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-RunAsynchronously

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

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-SetLogicalUnitCopySource

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

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

NewLunFromLun
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-StorageLogicalUnit

Specifies a storage logical unit object.

Parameter properties

Type:StorageLogicalUnit
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

NewReplicaLunFromLun
Position:0
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False
NewLunFromLun
Position:0
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-StoragePool

Specifies a storage pool object.

Parameter properties

Type:StoragePool
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

NewLunFromPool
Position:0
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-TargetStoragePool

Specifies the target storage pool.

Parameter properties

Type:StoragePool
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

NewReplicaLunFromLun
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VMHostGroup

Specifies a virtual machine host group object.

Parameter properties

Type:HostGroup
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VMMServer

Specifies a VMM server object.

Parameter properties

Type:ServerConnection
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

StorageLogicalUnit

This cmdlet returns a StorageLogicalUnit object.