Expand-EmcLun

Expands the capacity of a LUN.

 

Syntax

Expand-EmcLun -Lun <Lun> -NewCapacity <UInt64> [-Silent] [<CommonParameters>]

 

Parameters

-Lun <Lun>

Attributes: Required, Position: named

Specifies the ESI LUN object, which you can get by using the ESI storage system object or by using the Get-EmcLun cmdlet.

 

-NewCapacity <UInt64>

Attributes: Optional, Position: named

Specifies the new capacity for the LUN.

 

-Silent <SwitchParameter>

Attributes: Optional, Position: named

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

 

<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>$sys = Get-EmcStorageSystem -ID *166*

C:\PS>$pool = Get-EmcStoragePool -StorageSystem $sys -id ESI_TEST*

C:\PS>$lun = New-EmcLUN -Pool $pool -Name myTestLun -Capacity 1GB

C:\PS>Expand-EmcLun -Lun $lun -NewCapacity 2GB

In this example, the capacity of the specified LUN is expanded from 1 GB to 2 GB.

 

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

C:\PS>$clun = Get-EmcCompositeLun -ID 14 -StorageSystem $s

C:\PS>Expand-emclun -Lun $clun -NewCapacity 2GB

In this example, the capacity of the specified meta or composite LUN gets expanded.