Remove-EmcLunsFromVmaxStorageGroup

Removes LUNs from a VMAX storage group.

 

Syntax

Remove-EmcLunsFromVmaxStorageGroup [-Force] -VmaxStorageGroup <VmaxStorageGroup> -Luns <Lun[]> [-Silent] [-WhatIf] [-Confirm] [<CommonParameters>]

 

Parameters

-Force <SwitchParameter>

Attributes: Optional, Position: named

Allows the cmdlet to continue without asking for user confirmation.

 

-VmaxStorageGroup <VmaxStorageGroup>

Attributes: Optional, Position: named

Specifies the ESI VMAX storage group object. You can get a VMAX storage group object with the ESI storage system object or with the  Get-EmcVmaxStorageGroup 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.

 

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

$storage = Get-EmcStorageSystem vmax348

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

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

C:\PS>Remove-EmcLunsFromVmaxStorageGroup -VmaxStorageGroup $storagegroup -Luns $luns

This example gets and removes the specified LUNs from the specified storage group on the specified storage system.