Set-EmcVNXLunAllocationPolicy

Modifies the VNX Allocation Policy of a LUN.

 

Syntax

Set-EmcVNXLunAllocationPolicy -Lun <Lun> -VNXLunAllocationPolicy <VNXLunAllocationPolicy> [-Silent] [<CommonParameters>]

 

Parameters

-Lun <Lun>

Attributes: Required, Position: named

Specifies the ESI (EMC Storage Integrator) Lun object. A lun object can be obtained by using ESI Storage System object or by using Get-EmcLun Cmdlet.

 

-VNXLunAllocationPolicy <VNXLunAllocationPolicy>

Attributes: Required, Position: named

Specifies the AllocationPolicy of the LUN. It can be OnDemand or Automatic. AllocationPolicy parameter can be only used on VNX Rockies storage systems and Lun ProvisioningType is Thick.

 

-Silent <SwitchParameter>

Attributes: Optional, Position: named

Turns 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>$l = Get-EmcLun mylun*

C:\PS>Set-EmcVNXLunAllocationPolicy -Lun $l -OnDemand

Modifies the AllocationPolicy of a Lun to OnDemand.

 

---------- EXAMPLE 2 ----------

C:\PS>$l = Get-EmcLun mylun*

C:\PS>Set-EmcVNXLunAllocationPolicy -Lun $l -Automatic

Modifies the AllocationPolicy of a Lun to Automatic.