Add-EmcLunsToVmaxStorageGroup

Adds one or more LUNs to the specified VMAX storage group. Clears the host disk signatures and assigns new ones.

 

Syntax

Add-EmcLunsToVmaxStorageGroup -VmaxStorageGroup <VmaxStorageGroup> -Luns <Lun[]> [-Silent] [<CommonParameters>]

 

Parameters

-VmaxStorageGroup <VmaxStorageGroup>

Attributes: Required, Position: named

Specifies the ESI VMAX storage group object. You can get the object with the ESI storage system object or Get-EmcVmaxStorageGroup cmdlet.

 

-Luns <Lun[]>

Attributes: Required, Position: named

Specifies the list of ESI LUN objects. You can get a LUN object with the ESI storage system object or Get-EmcLun cmdlet. You can get unbound LUNs with the Get-EmcUnboundLun cmdlet.

 

-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>Getting storage system

$storage = Get-EmcStorageSystem vmax348

C:\PS>$storagegroup=Get-EmcVmaxStorageGroup -VmaxStorageSystem $storage

C:\PS>$luns =Get-EmcLun -ID 0d*

C:\PS>Add-EmcLunsToVmaxStorageGroup -VmaxStorageGroup $storagegroup -Luns $luns

This example gets the specified VMAX storage group and the LUNs, and then adds the LUNs to that VMAX storage group for the specified VMAX system.