Share via


Clear-ClusterDiskReservation

Clear-ClusterDiskReservation

Clear the persistent reservation on a disk in a failover cluster.

Syntax

Clear-ClusterDiskReservation -Disk <UInt32[]> [[-Node] <StringCollection>] [-Force] [<CommonParameters>]
  • Disk

  • Node

  • Force

Detailed Description

The cmdlet prompts for confirmation unless you specify the -Force parameter.

Parameters

Disk

Specifies the disk number to clear persistent reservations on. This is the number as it appears in Disk Management on the node.

Default Value: **

Data Type: UInt32[]

Attributes

Name Value PSMAML Attribute

Required?

true

required

Variable Length?

true

variableLength

Accept wildcard characters?

false

globbing

Accept Pipeline Input?

false

pipelineInput

Position?

named

position

Value Attributes

Name Value PSMAML Attribute

Required?

true

required

Variable Length?

true

variableLength

Force

Performs the operation without prompting for confirmation. By default this operation will ask for confirmation from the user before proceeding.

Default Value: **

Data Type: SwitchParameter

Attributes

Name Value PSMAML Attribute

Required?

false

required

Variable Length?

false

variableLength

Accept wildcard characters?

false

globbing

Accept Pipeline Input?

false

pipelineInput

Position?

named

position

Value Attributes

Name Value PSMAML Attribute

Required?

false

required

Variable Length?

false

variableLength

Node

Specifies the name of the cluster node to clear disk reservation on.

Default Value: **

Data Type: StringCollection

Attributes

Name Value PSMAML Attribute

Required?

false

required

Variable Length?

false

variableLength

Accept wildcard characters?

false

globbing

Accept Pipeline Input?

false

pipelineInput

Position?

1

position

Value Attributes

Name Value PSMAML Attribute

Required?

true

required

Variable Length?

false

variableLength

Input Type

Return Type

Examples

-------------------------- EXAMPLE 1 --------------------------

Command Prompt: C:\PS>

 
Clear-ClusterDiskReservation -Disk 5

Description

-----------

This command clears the persistent reservation on Disk 5 on the local node after asking for user confirmation.

 

-------------------------- EXAMPLE 2 --------------------------

Command Prompt: C:\PS>

 
Clear-ClusterDiskReservation -Disk 6 -Node node2 -Force

Description

-----------

This command clears the persistent reservation on Disk 6 on node2 without asking for user confirmation.

See Also

Reference

Clear-ClusterNode
Remove-Cluster

Other Resources

Online version: