Set-EmcLun

Sets the storage service node for the specified LUN. For VMAX storage systems only, binds an unbound LUN to the specified pool. For VNX storage systems only, sets the storage tiering policy and LUN compression and compression rate for the specified LUN.

 

Syntax

 

Parameters

-Lun <Lun>

Attributes: Required, Position: named

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

 

-Pool <StoragePool>

Attributes: Required, Position: named

Specifies the storage pool object, which you can get from a block storage system or with the Get-EmcStoragePool cmdlet.

 

-BindToPool <SwitchParameter>

Attributes: Required, Position: named

Specifies an unbound LUN to bind to the specified pool on VMAX systems only.

 

-Silent <SwitchParameter>

Attributes: Optional, Position: named

Turns off all the informational and verbose messages. However, it still displays errors.

 

-StorageServiceNode <StorageServiceNode>

Attributes: Required, Position: named

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

 

-TieringPolicy <VNXTieringPolicy>

Attributes: Required, Position: named

Specifies the tiering policy of the LUN in a pool and on VNX systems only. Valid values include: Unknown, NoMovement, AutoTier, HighestAvailable, or LowestAvailable. The default is Unknown.

 

-LunCompression <VNXLunCompression>

Attributes: Required, Position: named

Specifies the LunCompression operation of the LUN on VNX systems only. Valid values include: Unknown, On, Off, and Modify. The default is Unknown.

 

-LunCompressionRate <VNXLunCompressionRate>

Attributes: Optional, Position: named

Specifies the LUN compression rate of the LUN in a pool and on VNX systems only. Valid values include: Unknown, Low, Medium, and High. The default is Unknown.

 

<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>$lun=Get-EmcLun -ID 14

C:\PS>$pool=Get-EmcStoragePool -ID test

C:\PS>Set-EmcLun -Lun $lun -Pool $pool -BindToPool

Binds an unbound LUN to the specified pool on a VMAX system.

 

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

C:\PS>$lun=Get-EmcLun -ID 14

C:\PS>Set-EmcLun -Lun $lun -VNXTieringPolicy AutoTier

Changes the tiering policy of the LUN to AutoTier.

 

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

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

C:\PS>$l = Get-EmcLun -BlockStorageSystem $s

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

C:\PS>Set-EmcLun -Lun $l[10] -StorageServiceNode $serviceNodes[0]

Sets the default owner for the LUN.

 

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

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

C:\PS>$pool = Get-EmcStoragePool -StorageSystem $storage

C:\PS>$lun = Get-EmcLun -BlockStorageSystem $s -Pool $pool[2]

C:\PS>Set-EmcLun -Lun $lun[4] -LunCompression Off

Sets LUN compression as Off for the specified LUN.

 

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

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

C:\PS>$pool = Get-EmcStoragePool -StorageSystem $storage

C:\PS>$lun = Get-EmcLun -BlockStorageSystem $s -Pool $pool[2]

C:\PS>Set-EmcLun -Lun $lun[4] -LunCompression On -LunCompressionRate Low

Sets LUN compression as On and sets the compression rate as Low for the specified LUN.

 

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

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

C:\PS>$pool = Get-EmcStoragePool -StorageSystem $storage

C:\PS>$lun = Get-EmcLun -BlockStorageSystem $s -Pool $pool[2]

C:\PS>Set-EmcLun -Lun $lun[19] -LunCompression Modify -LunCompressionRate High

Sets the LUN compression rate as High for the specified LUN.