Export (0) Print
Expand All
Expand Minimize

Move-ClusterGroup

Move-ClusterGroup

Move a clustered service or application (a resource group) from one node to another in a failover cluster.

Syntax

Move-ClusterGroup [-InputObject <psobject>] [[-Name] <string>] [[-Node] <string>] [-Cluster <string>] [-Wait <int>] [<CommonParameters>]
  • InputObject

  • Name

  • Node

  • Cluster

  • Wait

Detailed Description

Moving a resource group is a way of simulating failover. It is also an appropriate step to take in preparation for routine maintenance on a node.

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

InputObject

Specifies the cluster group to move.

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

Name

Specifies the name of the cluster group to move.

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?

1

position

Value Attributes

Name Value PSMAML Attribute

Required?

true

required

Variable Length?

false

variableLength

Node

Specifies the name of the cluster node to move the cluster group to.

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?

2

position

Value Attributes

Name Value PSMAML Attribute

Required?

true

required

Variable Length?

false

variableLength

Wait

Specifies the time in seconds to wait for the operation. If this parameter is not specified the operation waits for completion. If "-Wait 0" is specified the call is initiated and the cmdlet returns right away.

Default Value:

Data Type: int

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.ClusterGroup

Return Type

Microsoft.FailoverClusters.PowerShell.ClusterGroup

Examples

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

Command Prompt: C:\PS>
 
Move-ClusterGroup MyPrintServer 
 
Name                       OwnerNode                           State 
----                       ---------                           ----- 
MyPrintServer              node1                              Online

Description

-----------

This command moves the clustered service called MyPrintServer from the current owner node to any other node.

 

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

Command Prompt: C:\PS>
 
Move-ClusterGroup MyPrintServer -Node node2 
 
Name                       OwnerNode                           State 
----                       ---------                           ----- 
MyPrintServer              node2                              Online

Description

-----------

This command moves the clustered service called MyPrintServer from the current owner node to node2.

 

-------------------------- EXAMPLE 3 --------------------------

Command Prompt: C:\PS>
 
Get-ClusterNode node3 | Get-ClusterGroup | Move-ClusterGroup 
 
Name                       OwnerNode                           State 
----                       ---------                           ----- 
Available Storage          node4                              Online 
Cluster Group              node1                              Online 
MyPrintServer              node1                              Online

Description

-----------

This command moves all clustered services and applications (resource groups) that are currently owned by node3 to other nodes. You can use this command before performing maintenance on the specified node.

 

-------------------------- EXAMPLE 4 --------------------------

Command Prompt: C:\PS>
 
Move-ClusterGroup MyPrintServer -Node node2 -Wait 0 
 
Name                       OwnerNode                           State 
----                       ---------                           ----- 
MyPrintServer              node2                             Pending

Description

-----------

This command moves the clustered service (resource group) called MyPrintServer from the current owner node to node2. Information about MyPrintServer is displayed immediately, while it is in the process of being moved.

See Also

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