Add-EmcVnxeLunGroupMember

Adds one or more members to a LUN group. A LUN group has three types of members: LUNs, hosts that have access to LUNs in the group, and hosts that have access to snapshots of LUNs in the group. This command is used to add any of these to the LUN group.

Note: This command is applicable only for VNXe3200 systems.

 

Syntax

 

Parameters

-LunGroup <Vnx2eLunGroup>

Attributes: Required, Position: named

Specifies the LUN group object to which to add the members. You can get this with the Get-EmcVnxeLunGroup cmdlet.

 

-Luns <Lun[]>

Attributes: Required, Position: named

Specifies one or more LUNs to add to the LUN group. You can get LUN objects with the Get-EmcLun cmdlet.

 

-Silent <SwitchParameter>

Attributes: Optional, Position: named

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

 

-LunHosts <RemoteHost[]>

Attributes: Required, Position: named

Specifies one or more hosts to add to the LUN group with LUN access. You can get the host objects with the Get-EmcStorageRegisteredHost command.

 

-SnapshotHosts <RemoteHost[]>

Attributes: Required, Position: named

Specifies one or more hosts to add to the LUN group with snapshot access. You can get host objects with the Get-EmcStorageRegisteredHost command.

 

<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>$ss = Get-EmcStorageSystem TestVNXeSystem

$group = Get-EmcVnxeLunGroup -StorageSystem $ss TestLG

$lun = Get-EmcLun -BlockStorageSystem $ss TestLUN

Add-EmcVnxeLunGroupMember -LunGroup $group -Luns $lun

Adds a LUN to a LUN group.

 

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

C:\PS>$ss = Get-EmcStorageSystem TestVNXeSystem

$group = Get-EmcVnxeLunGroup -StorageSystem $ss TestLG

$h = Get-EmcStorageRegisteredHost -StorageSystem $ss TestHost

Add-EmcVnxeLunGroupMember -LunGroup $group -LunHosts $h

Adds a LUN to a LUN group with hosts with access to the LUNs.

 

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

C:\PS>$ss = Get-EmcStorageSystem TestVNXeSystem

$group = Get-EmcVnxeLunGroup -StorageSystem $ss TestLG

$h = Get-EmcStorageRegisteredHost -StorageSystem $ss TestHost

Add-EmcVnxeLunGroupMember -LunGroup $group -SnapshotHosts $h

Adds a host to a LUN group with access to snapshots.