Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Repair-ClusterSharedVolume

Repair-ClusterSharedVolume

microsoft.failoverclusters.powershell.dll

Synopsis

Runs repair tools on a Cluster Shared Volume locally on a cluster node.

Syntax

Repair-ClusterSharedVolume [-VolumeName] [-Parameters] [-ChkDsk] [<CommonParameters>]

Repair-ClusterSharedVolume [-VolumeName] [-Parameters] [-Defrag] [<CommonParameters>]

Detailed Description

The Repair-ClusterSharedVolume cmdlet runs repair tools on a Cluster Shared Volume locally on a cluster node.

This cmdlet runs chkdsk.exe or defrag.exe on a Cluster Shared Volume. It will turn maintenance on for the volume, move the cluster resource to the node running this cmdlet, run the tool, and then turn maintenance off for the volume. This cmdlet has to run locally on one of the cluster nodes. To run remotely, use Windows PowerShell® remoting.

Parameters

-ChkDsk <SwitchParameter>

Specifies that chkdsk.exe is run on the volume. Any parameters specified in the Parameters parameter will be passed through to chkdsk.exe.

Aliases

None

Required?

true

Position

named

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

-Defrag <SwitchParameter>

Specifies that defrag.exe is run on the volume. Any parameters specified in the Parameters parameter will be passed through to defrag.exe.

Aliases

None

Required?

true

Position

named

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

-Parameters <String>

Specifies one or more parameters to pass through to the tool.

Aliases

None

Required?

false

Position

named

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

-VolumeName <String>

Specifies the name of the volume on which to run the tool.

Aliases

None

Required?

true

Position

1

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type

None

Return Type

None

Notes

None

Examples

Example 1

This example runs defrag.exe on Cluster Shared Volume located at C:\ClusterStorage\Volume1.

PS C:\>Repair-ClusterSharedVolume –VolumeName C:\ClusterStorage\Volume1 -Defrag

Example 2

This example runs chkdsk.exe on Cluster Shared Volume located at C:\ClusterStorage\Volume1 and passes the /F parameter to chkdsk.exe.

PS C:\>Repair-ClusterSharedVolume –VolumeName C:\ClusterStorage\Volume1 -ChkDsk -Parameters "/F"

Online Version
Get-ClusterSharedVolume
Resume-ClusterResource
Suspend-ClusterResource