Remove-EmcVnxeLunGroupMember

Removes one or more members from a LUN group. This command is used to remove LUNs, LUN access hosts, or snapshot access hosts from a LUN group.

Note: This command is for VNXe3200 systems only.

 

Syntax

 

Parameters

-LunGroup <Vnx2eLunGroup>

Attributes: Required, Position: named

Specifies the LUN group from which to remove one or more members.

 

-Luns <Lun[]>

Attributes: Required, Position: named

Specifies one or more LUNs to remove from the LUN group.

 

-Force <SwitchParameter>

Attributes: Optional, Position: named

Suppresses any user prompts while running the cmdlet.

 

-Silent <SwitchParameter>

Attributes: Optional, Position: named

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

 

-WhatIf <SwitchParameter>

Attributes: Optional, Position: named

Shows what would happen if the cmdlet runs. The cmdlet is not run.

 

-Confirm <SwitchParameter>

Attributes: Optional, Position: named

Prompts you for confirmation before running the cmdlet.

 

-LunHosts <RemoteHost[]>

Attributes: Required, Position: named

Specifies one or more LUN access hosts to remove from the LUN group.

 

-SnapshotHosts <RemoteHost[]>

Attributes: Required, Position: named

Specifies one or more snapshot access hosts to remove from the LUN group.

 

<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 TestVNXe

$lun = Get-EmcLun -BlockStorageSystem $ss TestLUN

$group = Get-EmcVnxeLunGroup TestLG

Remove-EmcVnxeLunGroupMember -LunGroup $group -Luns $lun

Remove a LUN from a LUN group.

 

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

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

$h = Get-EmcStorageRegisteredHost -StorageSystem $ss TestHost

$group = Get-EmcVnxeLunGroup TestLG

Remove-EmcVnxeLunGroupMember -LunGroup $group -LunHosts $h

Remove a LUN access host from a LUN group.

 

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

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

$h = Get-EmcStorageRegisteredHost -StorageSystem $ss TestHost

$group = Get-EmcVnxeLunGroup TestLG

Remove-EmcVnxeLunGroupMember -LunGroup $group -SnapshotHosts $h

Remove a snapshot access host from a LUN group.