Skip to content

Latest commit

 

History

History
130 lines (95 loc) · 2.97 KB

Repair-ClusterSharedVolume.md

File metadata and controls

130 lines (95 loc) · 2.97 KB
external help file Module Name online version schema
Failoverv2_Cmdlets.xml
FailoverClusters
2.0.0

Repair-ClusterSharedVolume

SYNOPSIS

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

SYNTAX

UNNAMED_PARAMETER_SET_1

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

UNNAMED_PARAMETER_SET_2

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

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.

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.

PARAMETERS

-ChkDsk

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

Type: SwitchParameter
Parameter Sets: UNNAMED_PARAMETER_SET_1
Aliases: 

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Defrag

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

Type: SwitchParameter
Parameter Sets: UNNAMED_PARAMETER_SET_2
Aliases: 

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Parameters

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

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-VolumeName

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

Type: String
Parameter Sets: (All)
Aliases: 

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

INPUTS

None

OUTPUTS

None

NOTES

RELATED LINKS

Get-ClusterSharedVolume

Resume-ClusterResource

Suspend-ClusterResource