external help file | Module Name | online version | schema |
---|---|---|---|
Failoverv2_Cmdlets.xml |
FailoverClusters |
2.0.0 |
Turns on maintenance for a disk resource or Cluster Shared Volume (CSV) so that you can run a disk maintenance tool without triggering failover.
Suspend-ClusterResource [[-Name] <String>] [-Cluster <String>] [-Force] [-InputObject <PSObject>]
[-RedirectedAccess] [-VolumeName <String>] [-Confirm] [-WhatIf]
The Suspend-ClusterResource cmdlet turns on maintenance for a disk resource or Cluster Shared Volume (CSV) so that a disk maintenance tool can be run without triggering failover.
This cmdlet only applies to disks and CSVs. For Cluster Shared Volumes, turning on maintenance takes dependent resources offline, which interrupts client access. For other disks (LUNs) in cluster storage, turning on maintenance leaves dependent resources online.
PS C:\>Suspend-ClusterResource -Name "Cluster Disk 2"
Name State Group ResourceType
---- ----- ----- ------------
Cluster Disk 2 Online(Maintenance) Available Storage Physical Disk
This example turns on maintenance for CSV named Cluster Disk 2 so that you can run a disk maintenance tool without triggering failover.
PS C:\>Get-ClusterSharedVolume -Name "Cluster Disk 5" | Suspend-ClusterResource
Name State Node
---- ----- ----
Cluster Disk 5 Online node2
This example turns on maintenance for all volumes on the CSV named Cluster Disk 5.
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
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Runs the cmdlet without prompting for confirmation. By default the cmdlet will ask for confirmation from the user before proceeding.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the cluster resource, a disk or CSV, to suspend.
Type: PSObject
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Specifies the name of the cluster resource, a disk or CSV, to suspend.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Causes CSV access to the storage device to be redirected over the network through another cluster node. This parameter is only applicable to CSVs.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the name of the volume to suspend. This parameter is only applicable to Cluster Shared Volumes (CSVs). If this parameter is not specified, then the operation will be performed on all volumes on the CSV.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False