Ying Li at myITforum.com

PowerShell & System Center

Use Move-ClusteredMailboxServer cmdlet to transfer CMS to a passive cluster node

As you must already realize that you can’t be an exchange 2007 administrator without knowing or learning PowerShell. As you have to use PowerShell to accomplish some of the tasks and for some tasks even though you can do it in EMC (Exchange Management Console) but Microsoft recommend that you do it through Exchange Cmdlet.

If you manage Exchange 2007 in a clustered environment (currently only supported for mailbox server role). You must have used the below cmdlet to transfer Exchange Server 2007 clustered mailbox server (CMS) to a passive cluster node.

Move-ClusteredMailboxServer –Identity:NYCESP02 –targetmachine:NYCMBXP03

What it does is to make the current passive node NYCMBXP03 an active node on cluster NYCESP02

For details about the above cmdlet, type get-help Move-ClusteredMailboxServer –full in PowerShell prompt.

Sounds easy? But there is a catch – see below

PS C:\Documents and Settings\yl.admin\My Documents\PS> Get-ClusteredMailboxServerStatus -Identity nycesp02

Identity                   : NYCESP02
ClusteredMailboxServerName : NYCESP02.xyz.com
State                      : Online
OperationalMachines        : {NYCMBXP03 <Active>, NYCMBXP04 <Quorum Owner>}
FailedResources            : {}
IsValid                    : True
ObjectState                : Unchanged

 

While it indeed transferred the owner for the Exchange group but the quorum or the cluster group owner is still on NYCMBXP04 (the previous active node).

There is nothing wrong with that and it is actually by design: The move-ClusteredMailboxserver cmdlet only moves the Exchange group and there is no impact on the cluster group!

Unfortunatly for some Exchange 2007 administrator they just leave their Exchange cluser like that! They were told by Microsoft and others that the recommended way to move Exchange group is to use the above cmdlet. They get it then they notice the fact the cluster group wasn’t moved and they are “concerned” to move the cluster group through cluster administrator GUI because they think that’s not the right way. As the result they leave their Exchange cluster in the “split-brain” mode – the exchange group is owned by one node and the cluster group is owned by another node!

While Microsoft indeed recommed to use Move-ClusteredMailboxServer to move the Exchange group but that’s only for the Exchange group, it has no impact on the cluster group and it doesnt’ prevent you use the cluster administrator GUI to move the cluster group! You actually need to do that!

Comments

AndyExchange said:

Thanks, I was wondering about that...  

How do I move the cluster group with Failover Cluster GUI?  

# July 31, 2008 3:16 PM

yli628 said:

In Cluster Administrator - look for Active groups and then right click on the Cluster Group - Move group...

Thanks,

Ying

# July 31, 2008 3:36 PM

AndyExchange said:

Hi Ying, I am using Failover Cluster Management of Windows 2008.  I don't see "move group" as an option.

thx

# August 1, 2008 2:48 PM

yli628 said:

So I assume that your exchange 2007 is on Windows Server 2008 - other wise you can't use Failover Cluster Management to manage cluster on Windows Server 2003!

If you do manage a Windows Server 2008 cluster - Under service and Applications in the console, select the target group - right click or in the Action pane, click Move this service to another node...

Thanks,

# August 1, 2008 3:11 PM

AndyExchange said:

That's the part I don't understand becuase Failover Cluster Management (FCM) seems to be updated with the active node.  I can only move the node to the passive node.  Yet EMC still show a split-head configuration.  i.e. Active on the primary node but quorum owner is the secondary node.

For Example

With below configuration:

CMS1: ccr-node1 [active, quorum owner], ccr-node2

If I take ccr-node1 offline, Failover cluster move the CMS to ccr-node2 and we have the following:

CMS1: ccr-node1, ccr-node2 [active, quorum owner]

Then we bring ccr-node1 online again, we have:

CMS1: ccr-node1 [active], ccr-node2 [quorum owner]

In both FCM and EMC, there is only option to move the CMS to ccr-node2.  The only way I can get ccr-node1 become quorum owner and acive node again is to reboot ccr-node2.

# August 1, 2008 4:16 PM

yli628 said:

Hm, I am not very familiar with this scenario CCR/Windows 2008...

# August 1, 2008 4:34 PM

AndyExchange said:

thanks

# August 1, 2008 7:36 PM