PowerShell Logo Small

Move-ClusterGroup



This is the built-in help made by Microsoft for the command 'Move-ClusterGroup', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Moves a clustered role (a resource group) from one node to another in a failover cluster.

SYNTAX


Move-ClusterGroup [[-Name] <String>] [[-Node] <String>] [-Cluster <String>] [-IgnoreLocked] [-InputObject <PSObject>] [-Wait <Int32>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Move-ClusterGroup cmdlet moves a clustered role (a resource group) from one node to another in a failover cluster.


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



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=321045
Add-ClusterGroup
Get-ClusterGroup
Remove-ClusterGroup
Start-ClusterGroup
Stop-ClusterGroup

REMARKS

<

Examples


EXAMPLE 1

PS C:\>Move-ClusterGroup –Name MyFileServer
Name OwnerNode State
---- --------- -----
MyFileServer node1 Online



This example moves the clustered service called MyFileServer from the current owner node to any other node.




EXAMPLE 2

PS C:\>Move-ClusterGroup –Name MyFileServer -Node node2
Name OwnerNode State
---- --------- -----
MyFileServer node2 Online



This example moves the resource group called MyFileServer from the current owner node to the node named node2.




EXAMPLE 3

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



This example moves all resource groups that are currently owned by the node named node3 to other nodes. Use this cmdlet before performing maintenance on the specified node.




EXAMPLE 4

PS C:\>Move-ClusterGroup –Name MyFileServer -Node node2 -Wait 0
Name OwnerNode State
---- --------- -----
MyFileServer node2 Pending



This example moves the resource group called MyFileServer from the current owner node to the node named node2. Information about MyFileServer is displayed immediately, while
it is in the process of being moved.