Edit

Share via


Resume-ClusterResource

Turns off maintenance for a disk resource or Cluster Shared Volume within a failover cluster.

Syntax

Default (Default)

Resume-ClusterResource
    [[-Name] <String>]
    [-VolumeName <String>]
    [-InputObject <PSObject>]
    [-Cluster <String>]
    [<CommonParameters>]

Description

The Resume-ClusterResource cmdlet turns off maintenance for a disk resource or Cluster Shared Volume within a failover cluster.

This cmdlet applies to disks and Cluster Shared Volumes only. We recommend that maintenance be turned off for a disk or Cluster Shared Volume as soon as the maintenance tasks have been completed.

Examples

Example 1

PS C:\> Resume-ClusterResource "Cluster Disk 2"
Name                State               Group               ResourceType
----                -----               -----               ------------
Cluster Disk 2      Online              Available Storage   Physical Disk

This example turns off maintenance for the CSV named Cluster Disk 2.

Example 2

PS C:\> Get-ClusterSharedVolume "Cluster Disk 5" | Resume-ClusterResource
Name                       State                      Node
----                       -----                      ----
Cluster Disk 5             Online                     node2

This example turns off maintenance for all volumes on the CSV named Cluster Disk 5.

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.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-InputObject

Specifies the cluster resource to resume.

Parameter properties

Type:PSObject
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

Specifies the name of the cluster resource to resume.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VolumeName

Specifies the name of the volume to suspend. This parameter is only applicable to Cluster Shared Volumes. If this parameter is not specified, then the operation will be performed on all volumes on the Cluster Shared Volume.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

Microsoft.FailoverClusters.PowerShell.ClusterResource

Microsoft.FailoverClusters.PowerShell.ClusterSharedVolume

Outputs

Microsoft.FailoverClusters.PowerShell.ClusterResource

Microsoft.FailoverClusters.PowerShell.ClusterSharedVolume