Add LUNs to the specified VMAX storage group.
Syntax
New-EmcVmaxStorageGroup -Name <String> -VmaxStorageSystem <IVmaxStorageGroupManager> [-Luns <Lun[]>] [-DeleteWhenRemovedFromMaskingView] [-Silent] [<CommonParameters>]
Parameters
-ID <String>
Attributes: Optional, Position: 1
Specifies the VMAX storage group ID. Wildcards are permitted. It is a positional parameter (position = 1).
-VmaxStorageSystem <IVmaxStorageGroupManager>
Attributes: Required, Position: named
Specifies the ESI storage system system object. You can add a storage system object to ESI with the Get-EmcStorageSystemCredential and Connect-EmcSystem cmdlets. You can get a storage system object with the Get-EmcStorageSystem cmdlet.
-Luns <Lun[]>
Attributes: Optional, 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.
-DeleteWhenRemovedFromMaskingView <SwitchParameter>
Attributes: Optional, Position: named
VMAX storage groups have options to facilitate automatic clean-up when a group is no longer in use. When this property is set to True, the array automatically deletes the VMAX storage group if no longer associated with any masking view.
-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 –ID *VMAX348
C:\PS>$luns=Get-EmcLun -ID *test*
C:\PS>$newstoragegroup =New-EmcVmaxStorageGroup -Name dummy_sg -VmaxStroageSystem $storage -Luns $luns
This example gets the specified VMAX storage group for the specified storage system and then adds the specified LUNs to the specified VMAX storage group.