Remove-ClusterSharedVolume

Remove-ClusterSharedVolume

Remove a volume from the Cluster Shared Volumes in a failover cluster, and place it in Available Storage in the cluster.

Syntax

Remove-ClusterSharedVolume [-InputObject <psobject>] [[-Name] <StringCollection>] [-Cluster <string>] [<CommonParameters>]
  • InputObject

  • Name

  • Cluster

Detailed Description

After placing a volume in Available Storage, you can use the volume when you configure a new clustered service or application.

Parameters

Cluster

Specifies the name of the cluster to run this cmdlet on. If you type "-Cluster ." or omit the parameter, the cmdlet runs on the local cluster.

Default Value: **

Data Type: string

Attributes

Name Value PSMAML Attribute

Required?

false

required

Variable Length?

false

variableLength

Accept wildcard characters?

false

globbing

Accept Pipeline Input?

false

pipelineInput

Position?

named

position

Value Attributes

Name Value PSMAML Attribute

Required?

true

required

Variable Length?

false

variableLength

InputObject

Specifies the cluster shared volume to remove.

Default Value: **

Data Type: psobject

Attributes

Name Value PSMAML Attribute

Required?

false

required

Variable Length?

false

variableLength

Accept wildcard characters?

false

globbing

Accept Pipeline Input?

true (ByValue)

pipelineInput

Position?

named

position

Value Attributes

Name Value PSMAML Attribute

Required?

true

required

Variable Length?

false

variableLength

Name

Specifies the name of the cluster shared volume to remove.

Default Value: **

Data Type: StringCollection

Attributes

Name Value PSMAML Attribute

Required?

false

required

Variable Length?

false

variableLength

Accept wildcard characters?

false

globbing

Accept Pipeline Input?

false

pipelineInput

Position?

1

position

Value Attributes

Name Value PSMAML Attribute

Required?

true

required

Variable Length?

false

variableLength

Input Type

Microsoft.FailoverClusters.PowerShell.ClusterSharedVolume

Return Type

Microsoft.FailoverClusters.PowerShell.ClusterResource

Examples

-------------------------- EXAMPLE 1 --------------------------

Command Prompt: C:\PS>

 
Remove-ClusterSharedVolume "Cluster Disk 3" 
 
Name                State               Group               ResourceType 
----                -----               -----               ------------ 
Cluster Disk 3      Online              Available Storage   Physical Disk

Description

-----------

This command removes Cluster Disk 3 from the Cluster Shared Volumes on the local cluster, and places it in Available Storage.

 

-------------------------- EXAMPLE 2 --------------------------

Command Prompt: C:\PS>

 
Get-ClusterSharedVolume "Cluster Disk 4" | Remove-ClusterSharedVolume 
 
Name                State               Group               ResourceType 
----                -----               -----               ------------ 
Cluster Disk 4      Online              Available Storage   Physical Disk

Description

-----------

This command removes Cluster Disk 4 from the Cluster Shared Volumes on the local cluster, and places it in Available Storage.

See Also

Reference

Add-ClusterSharedVolume
Get-ClusterSharedVolume
Move-ClusterSharedVolume

Other Resources

Online version: