Export (0) Print
Expand All
Expand Minimize

Set-ClusterOwnerNode

Set-ClusterOwnerNode

For a resource in a failover cluster, specify which nodes can own the resource. For a clustered service or application (a resource group), specify information about the order of preference among owner nodes.

Syntax

Set-ClusterOwnerNode [-InputObject <psobject>] -Owners <StringCollection> [-Cluster <string>] [-Group <string>] [-Resource <string>] [<CommonParameters>]
  • InputObject

  • Owners

  • Cluster

  • Group

  • Resource

Detailed Description

The settings that control the possible or preferred owners affect the way the cluster responds to the failure of a resource or a clustered service or application (a resource group).

Parameters

Cluster

Specifies the name of the cluster to run this cmdlet on. If you type "-Cluster ." or omit the parameter, the cmdlet runs on the local cluster.

Default Value:

Data Type: string

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?

true

required

Variable Length?

false

variableLength

Group

Specifies the name of the cluster group for which owner nodes are set.

Default Value:

Data Type: string

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?

true

required

Variable Length?

false

variableLength

InputObject

Specifies the cluster group or cluster resource to set owner nodes for.

Default Value:

Data Type: psobject

Attributes

Name Value PSMAML Attribute

Required?

false

required

Variable Length?

false

variableLength

Accept wildcard characters?

false

globbing

Accept Pipeline Input?

true (ByValue)

pipelineInput

Position?

named

position

Value Attributes

Name Value PSMAML Attribute

Required?

true

required

Variable Length?

false

variableLength

Owners

Specifies the list of owner nodes. If this is for a cluster group the sorted list of nodes is the preferred owners for this cluster group. If this is for a cluster resource the list is for the possible owners for this cluster resource.

Default Value:

Data Type: StringCollection

Attributes

Name Value PSMAML Attribute

Required?

true

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?

true

required

Variable Length?

false

variableLength

Resource

Specifies the name of the cluster resource for which owner nodes are set.

Default Value:

Data Type: string

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?

true

required

Variable Length?

false

variableLength

Input Type

Microsoft.FailoverClusters.PowerShell.ClusterResource, Microsoft.FailoverClusters.PowerShell.ClusterGroup

Return Type

Examples

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

Command Prompt: C:\PS>
 
Get-ClusterResource "Cluster Disk 3" | Set-ClusterOwnerNode -Owners node1,node2

Description

-----------

This command sets the possible owners for Cluster Disk 3 on the local cluster to node1 and node2.

 

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

Command Prompt: C:\PS>
 
Set-ClusterOwnerNode -Group cluster12FS -Owners node3,node2

Description

-----------

This command sets the preferred owners for the clustered service cluster12FS to node3 followed by node2 on the local cluster.

See Also

Reference

Get-ClusterOwnerNode

Other Resources

Online version:

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft