PowerShell Logo Small

Repair-ClusterSharedVolume



This is the built-in help made by Microsoft for the command 'Repair-ClusterSharedVolume', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

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

SYNTAX


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



Search powershellhelp.space

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.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=321060
Get-ClusterSharedVolume
Resume-ClusterResource
Suspend-ClusterResource

REMARKS

<

Examples


Example 1

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



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




Example 2

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



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