New-EmcLun

Creates a new ESI LUN object.

 

Syntax

 

Parameters

-Pool <StoragePool>

Attributes: Optional, Position: named

Specifies the ESI storage pool object. You can get a storage pool object with the ESI block storage system or Get-EmcStoragePool cmdlet.

 

-Name <String>

Attributes: Optional, Position: named

Specifies the name of the new LUN.

 

-Capacity <UInt64>

Attributes: Required, Position: named

Specifies the capacity of the LUN to be created.

 

-ApplicationHint <String>

Attributes: Optional, Position: named

Specifies the application that the new LUN will be potentially used for. Some storage systems are application-aware. Currently, HyperV and VMware are acceptable strings for this parameter for creating a new LUN on VNXe3100, VNXe3150, or VNXe3300.

 

-StorageServiceNode <StorageServiceNode>

Attributes: Optional, Position: named

Specifies the ESI storage service node object, which you can get by using the Get-EmcStorageServiceNode cmdlet.

 

-Thick <SwitchParameter>

Attributes: Optional, Position: named

Enables thick provisioning. If the pool supports both thin provisioning and thick provisioning, thin provisioning is used by default.

 

-Description <String>

Attributes: Optional, Position: named

Specifies the description of the LUN.

 

-VNXLunAllocationPolicy <VNXLunAllocationPolicy>

Attributes: Optional, Position: named

Specifies the allocation policy of the LUN, which can be OnDemand or Automatic. This parameter only supports VNX next-generation systems (VNX5400, VNX5600, VNX5800, VNX7600, VNX8000, and so on) with the Thick LUN provisioning type.

 

-VNXTieringPolicy <VNXTieringPolicy>

Attributes: Optional, Position: named

Specifies the tiering policy of the LUN. The default is Unknown. The other available options are: NoMovement, AutoTier, HighestAvailable, and LowestAvailable. This feature only supports VNX storage systems with LUNs pool .

 

-ID <String>

Attributes: Optional, Position: 1

Specifies the LUN name or ID. Wildcards are permitted. It is a positional parameter (position = 1).

 

-BlockStorageSystem <IBlockStorageSystem>

Attributes: Optional, Position: named

Specifies the ESI block storage system object. You can add a storage system object with the Get-EmcStorageSystemCredential and Connect-EmcSystem cmdlets. You can add a storage system object with the Get-EmcStorageSystem cmdlet.

 

-LunType <EnumLunType>

Attributes: Optional, Position: named

An enum type optional parameter, through which the specific type of the LUNs can be filtered out. Supported values are ConcreteLun or SnapShotLun.

 

-Silent <SwitchParameter>

Attributes: Optional, Position: named

An optional parameter to turn off all the informational and verbose messages. It still displays errors.

 

-StorageSystem <IStorageSystem>

Attributes: Required, Position: named

Specifies the storage system object. You can add the storage system object to ESI with the Get-EmcStorageSystemCredential and Connect-EmcSystem cmdlets. You can get the storage system object with the Get-EmcStorageSystem cmdlet.

 

<CommonParameters>

This cmdlet supports these common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. Type get-help about_commonparameters for more details.

 

Examples

-------------- Example 1 --------------

C:\PS>$p = Get-EmcStoragePool gold*

C:\PS>$l = New-EmcLun -Pool $p -Name mylun_test_1 -Capacity 10gb

TaskStatus: Started

 10% : Creating the LUN...

100% : The specified LUN has been created...

TaskStatus: Completed

C:\PS>$l | select ProvisioningType, Name

 

ProvisioningType Name

---------------- ----

           Thin mylun_test_1

This example creates a LUN.

 

---------- Example 2 ----------

C:\PS>$p = Get-EmcStoragePool gold*

C:\PS>$l = New-EmcLun -Pool $p -Name mylun_test_1 -Capacity 10mb -Silent -Thick

C:\PS>$l | select ProvisioningType, Name

 

ProvisioningType Name

---------------- ----

            Thick mylun_test_1

This example creates a LUN without thin provisioning.

 

---------- Example 3 ----------

C:\PS>$s = Get-EmcStorageSystem myVNX

C:\PS>$p = Get-EmcStoragePool gold*

C:\PS>$serviceNodes = Get-EmcStorageServiceNode -StorageSystem $s

C:\PS>$l = New-EmcLun -Pool $p -Name mylun_test_1 -Capacity 10mb -StorageServiceNode $serviceNodes[0]

This example creates a LUN with a specified pool, capacity and service node.

 

---------- Example 4 ----------

C:\PS>$p = Get-EmcStoragePool gold*

C:\PS>$l = New-EmcLun -Pool $p -Name mylun_test_1 -Capacity 10gb -ApplicationHint "HyperV"

This example creates a LUN with a specified pool, capacity, and application hint. The ApplicationHint parameter can be only used on storage systems such as VNXe that are application-aware.

 

---------- Example 5 ----------

C:\PS>$p = Get-EmcStoragePool gold*

C:\PS>$l = New-EmcLun -Pool $p -Capacity 1gb -Name mylun_test_1 -Thick -VNXLunAllocationPolicy onDemand

This example creates a LUN with a specified pool, capacity, and allocation policy. The AllocationPolicy parameter can be only used on VNX2 storage systems where the LUNProvisioningType is Thick.

 

---------- Example 6 ----------

C:\PS>$sys = Get-EmcStorageSystem –SystemType VMAX

C:\PS>$l = New-EmcLun -Capacity 1gb -Name mylun_test_1 -StorageSystem $sys

This example creates an unbound LUN in a VMAX system.

 

---------- Example 7 ----------

C:\PS>$p = Get-EmcStoragePool gold*

C:\PS>$l = New-EmcLun -Pool $p -Capacity 1gb -Name mylun_AutoTierTest  -VNXTieringPolicy AutoTier

Creates a LUN with specified pool, capacity, and VNX tiering policy. The policy parameter can be only used on VNX family storage systems.