Get-ClusterSharedVolume

Gets information about Cluster Shared Volumes in a failover cluster.

Syntax

Get-ClusterSharedVolume
   [[-Name] <StringCollection>]
   [-InputObject <PSObject>]
   [-Cluster <String>]
   [<CommonParameters>]

Description

The Get-ClusterSharedVolume cmdlet gets information about Cluster Shared Volumes in a failover cluster.

Examples

Example 1

PS C:\> Get-ClusterSharedVolume
Name                       State                      Node 
----                       -----                      ---- 
Cluster Disk 3             Online                     node1 
Cluster Disk 4             Online                     node2

This example lists all the Cluster Shared Volumes on the local cluster.

Example 2

PS C:\> Get-ClusterSharedVolume -Cluster cluster1
Name                       State                      Node 
----                       -----                      ---- 
Cluster Disk 1             Online                     node4

This example lists all the Cluster Shared Volumes on the cluster named cluster1.

Example 3

PS C:\> Get-ClusterSharedVolume -Name "Cluster Disk 4"
Name                       State                      Node 
----                       -----                      ---- 
Cluster Disk 4             Online                     node2

This example displays the state of the Cluster Shared Volume called Cluster Disk 4.

Optional Parameters

-Cluster

Specifies the name of the cluster on which to run this cmdlet. If the input for this parameter is . or it is omitted, then the cmdlet runs on the local cluster.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject

Specifies the cluster on which to enumerate the Cluster Shared Volumes.

Type:PSObject
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Name

Specifies the name of the Cluster Shared Volume to get.

Type:StringCollection
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.FailoverClusters.PowerShell.Cluster

Outputs

Microsoft.FailoverClusters.PowerShell.ClusterSharedVolume