KB labels


Ticket Product Version

Ticket Category

Ticket Assignee


Hot Fixes

Published Fixes
Your Arcserve Support User Profile
First Name:
Last Name:
email:
Phone:
Company:*
Customer Type:
Language:

Country:
Region:

Time zone:
Follow

arcserve-KB : How to perform a Manual switchover in Exchange 2010 DR scenario.

Last Update: 2015-08-28 22:28:03 UTC

Title:  How to perform a Manual switchover in Exchange 2010 DR scenario.

 

Description:

This article explains the procedure to switchover from an Active server to the Stand by in an Exchange 2010 DR scenario.

 

Solution:

 

When Master (Production) is the Active host

  1. Prior to performing switchover from an active Master Master Exchange 2010 server to a standby Replica Exchange 2010 server you must have 2 scenarios created and should be in the following states:
    1. Forward Exchange DR scenario for replicating Exchange data from Master to Replica
    2. Backward Exchange DR scenario for replicating Exchange data from Replica to Master

      Forward Exchange DR scenario must be running and it should complete synchronization of data.

      Backward Exchange DR scenario must be stopped.

      Manual switchover procedure starts from step #2.  If the Active Master server is offline or the scenario is stopped go to step #5.

 

  1. On the Active Master server stop MSExchangeIS and MSExchangeSearch Exchange Services if the server is accessible.
  2. Wait until all data from spool is replicated from the Active Master to the Standby Replica server. In CA ARCserveRHA Manager Forward scenario view spool on both servers must have zero (0) size to prevent data loss.
  3. Stop the Forward scenario.
  4. Using Exchange Management Shell (Powershell) re-home Exchange User mailboxes from Active Master server to the Stand-by Replica server. Database names on the Standby Replica server must have the same name as on the Active Master server with appended _<ForwardScenarioID> suffix.

    List all Exchange databases on the Active Master Exchange server
    Get-MailboxDatabase -Server <Active Master Server Name> | select Name, Server

    List Exchange databases on the Standby Replica Exchange server
    Get-MailboxDatabase -Server <Standby Replica Server Name> | select Name, Server

 

  1. For every database on the Active Master server rehome users to the Standby Replica server using the following PS cmdlet
    Get-Mailbox -Database <Active Master Server database Name> | Set-Mailbox -Database <Standby Replica Server database Name>

 

  1. Swap database names from the Active Master to the Standby Replica servers. After this step database names on the now Active Replica server must NOT have _<ForwardScenarioID> to the name.

 

Remove _<ForwardScenarioID> from database names on now Active Replica and append _<BackwardScenarioID> to database names on now Standby Master.

 

List all databases on the Master server:

Get-MailboxDatabase -server <Active Master server Name> | select Name, Server

Get-PublicFolderDatabase -server <Active Master server Name| select Name, Server

 

Rename every database on the Master server appending _<BackwardScenarioID> to the database name

Set-MailboxDatabase <DatabaseName> -Name <DatabaseName_BackwardScenarioID>

If there is a Public Folder database on the Master rename it: Set-PublicFolderDatabase <PFDatabaseName> -Name <PFDatabaseName_BackwardScenarioID>

 

List all databases on the Replica server:

Get-MailboxDatabase -server <Standby Replica server Name> | select Name, Server

*Database names on the Replica server must have _<ForwardScenarioID> appended to the database name

 

Get-PublicFolderDatabase -server <Standby Replica server Name> | select Name, Server

 

Rename every database on the Replica server removing _<ForwardScenarioID> from the database name and set the 'Restored from backup' flag.

 

Set-MailboxDatabase <DatabaseName_ForwardScenarioID> -Name <DatabaseName> -AllowFileRestore $True

If there is a Public Folder database on the Replica rename it: Set-PublicFolderDatabase <PFDatabaseName_ForwardScenarioID> -Name <PFDatabaseName> -AllowFileRestore $True

 

  1. Move all Public Folder Replicas if there is a Public Folder Database on the Master Exchange server and it is included in the scenario.

 

Update the Public Folders replication list using Exchange Powershell script MoveAllReplicas.ps1.

 

      cd $exscripts

MoveAllReplicas.ps1 -Server <Active Master Server> -NewServer <Standby Replica Server>

  1. ***NOTE: Important you must force AD Replication between both Master and Replica sites through AD Sites and Services MMC at this time before continuing on to Step #10
  2. Start the MSExchangeIS and MSExchangeSearch services on the now Active Replica server.

*** NOTE that if the Master server was offline when you performed the above steps that you should perform the following steps to prevent problems from the machine causing an outage or data loss:

  1. Stop the Replica's CA ARCSERVE RHA ENGINE service from within the Windows MMC Services console and change it to manual startup mode or with 'sc stop caararcserverhaengine' & 'sc config caarcserverhaengine start= demand' from the cmd prompt.
  2. When the Master server is brought back online do the following:
    1. Stop the Master's CA ARCSERVE RHA ENGINE service from within the Windows MMC Services console and change it to manual startup mode or with 'sc stop caararcserverhaengine' from the cmd prompt
    2. Perform a search of all the Master's HDD's in Windows Explorer to find and delete all instances of 'Config_25000'. This can also be accomplished with the below powershell on the Master host: Get-WMIObject Win32_LogicalDisk -filter 'DriveType = 3' | Select-Object DeviceID | ForEach-Object {Get-Childitem ($_.DeviceID + '\') -include Config_25000 -recurse} | Select PSPath | Remove-Item -Recurse -Force -Confirm
    3. Start the Master's CA ARCSERVE RHA ENGINE service from within the Windows MMC Services console and change it to manual startup mode or with 'sc start caararcserverhaengine' from the cmd prompt
  3. Start the Replica's CA ARCSERVE RHA ENGINE service from within the Windows MMC Services console and change it to automatic startup mode or with 'sc start caararcserverhaengine' & 'sc config caarcserverhaengine start= auto' from the cmd prompt.

 

 

 

When Replica (DR) is the Active host

  1. Prior to performing switchover from an Active Replica Exchange 2010 server to a Standby Master Exchange 2010 server you must have 2 scenarios created and should be in the following states:
  1. Forward Exchange DR scenario for replicating Exchange data from Master to Replica
    1. Backward Exchange DR scenario for replicating Exchange data from Replica to Master

      Forward Exchange DR scenario must be stopped.

Backward Exchange DR scenario must be running and it should complete synchronization of data.

Manual switchover procedure starts from step #2.If the Active Replica server is offline or the scenario is stopped go to step #5.

 

  1. On the Active Replica server stop MSExchangeIS and MSExchangeSearch Exchange Services if the server is accessible.
  2. Wait until all data from spool is replicated from the Active Replica to the Standby Master server. In CA ARCserveRHA Manager Backward scenario view spool on both servers must have zero (0) size to prevent data loss.
  3. Stop the Backward scenario.
  4. Using Exchange Management Shell (Powershell) re-home Exchange User mailboxes from Active Replica server to the Stand-by Master server. Database names on the Standby Master server must have the same name as on the Active Replica server with appended _<BackwardScenarioID> suffix.


List all Exchange databases on the Active Replica Exchange server
Get-MailboxDatabase -Server <Active Replica Server Name> | select Name, Server

List Exchange databases on the Standby Master Exchange server
Get-MailboxDatabase -Server <Standby Master Server Name> | select Name, Server

 

  1. For every database on the Active Replica server rehome users to the Standby Master server using the following PS cmdlet

Get-Mailbox -Database <Active Replica Server database Name> | Set-Mailbox -Database <Standby Master Server database Name>

 

  1. Swap database names from the Active Replica to the Standby Master server. After this step database names on the now Active Master server must NOT have _<BackwardScenarioID> to the name.

 

Remove _<BackwardScenarioID> from database names on now Active Master and append _<ForwardScenarioID> to database names on now Standby Replica.

 

List all databases on the Replica server:

Get-MailboxDatabase -server <Active Replica server Name> | select Name, Server

Get-PublicFolderDatabase -server <Active Replica server Name| select Name, Server

 

Rename every database on the Replica server appending _<ForwardScenarioID> to the original database name

Set-MailboxDatabase <DatabaseName> -Name <DatabaseName_ForwardScenarioID>

If there is a Public Folder database on the Master rename it: Set-PublicFolderDatabase <PFDatabaseName> -Name <PFDatabaseName_ForwardScenarioID>

 

List all databases on the Master server:

Get-MailboxDatabase -server <Standby Master server Name> | select Name, Server

*Database names on the Master server must have _<BackwardScenarioID> appended to the database name

 

Get-PublicFolderDatabase -server <Standby Master server Name> | select Name, Server

 

Rename every database on the Master server removing _<BackwardScenarioID> from the database name and set the 'Restored from backup' flag

Set-MailboxDatabase <DatabaseName_BackwardScenarioID> -Name <DatabaseName> -AllowFileRestore $True

If there is a Public Folder database on the Replica rename it: Set-PublicFolderDatabase <PFDatabaseName_BackwardScenarioID> -Name <PFDatabaseName> -AllowFileRestore $True

 

  1. Move all Public Folder Replicas if there is a Public Folder Database on the Replica Exchange server and it is included in the scenario.

 

Update the Public Folders replication list using Exchange Powershell script MoveAllReplicas.ps1.

 

cd $exscripts

MoveAllReplicas.ps1 -Server <Active Replica Server> -NewServer <Standby Master Server>

  1. ***NOTE: Important you must force AD Replication between both Master and Replica sites through AD Sites and Services MMC at this time before continuing on to Step #10
  2. Start the MSExchangeIS and MSExchangeSearch services on the Master server.

 

*** NOTE that if the Replica server was offline when you performed the above steps that you should perform the following steps to prevent problems from the machine causing an outage or data loss:

  1. Stop the Master’s CA ARCSERVE RHA ENGINE service from within the Windows MMC Services console and change it to manual startup mode or with 'sc stop caararcserverhaengine' & 'sc config caarcserverhaengine start= demand' from the cmd prompt.
  2. When the Replica server is brought back online do the following:
    1. Stop the Replica's CA ARCSERVE RHA ENGINE service from within the Windows MMC Services console and change it to manual startup mode or with 'sc stop caararcserverhaengine' from the cmd prompt
    2. Perform a search of all the Replica's HDD's in Windows Explorer to find and delete all instances of 'Config_25000'. This can also be accomplished with the below powershell on the Master host: Get-WMIObject Win32_LogicalDisk -filter 'DriveType = 3' | Select-Object DeviceID | ForEach-Object {Get-Childitem ($_.DeviceID + '\') -include Config_25000 -recurse} | Select PSPath | Remove-Item -Recurse -Force -Confirm
    3. Start the Replica's CA ARCSERVE RHA ENGINE service from within the Windows MMC Services console and change it to manual startup mode or with 'sc start caararcserverhaenginefrom the cmd prompt
  3. Start the Master’s CA ARCSERVE RHA ENGINE service from within the Windows MMC Services console and change it to automatic startup mode or with 'sc start caararcserverhaengine' & 'sc config caarcserverhaengine start= auto' from the cmd prompt.

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments