Go Premium for a chance to win a PS4. Enter to Win


Datacenter switchover for exchange 2010

Posted on 2013-06-09
Medium Priority
Last Modified: 2013-06-18

our client is having primary and DR site for exchange.  Primary Site with 2 Hub/CAs  and 2 MB
DR is having 1 Hub/CAS and 2 MB.  DAG is having 4 members 2 from each site.  primary witness server is one of the Hub from primary site.

Now we required to move the primary office some other location.So planning to move load to DR site and primary office will be down for 2-3 days.

this is planned activity of datacenter switchover.   Lof of documents and PPT available on internet.So confused now.

Is there any differance between datacenter Switchover and datacenter failover  ?  As i am not finding seprate document for it.

Please help me on this.
Question by:vijaygotur
LVL 15

Expert Comment

ID: 39233833
Henrik Walther explains the difference between the two in his article below. It will be beneficial to read the whole 13 part series. It is pretty close the your scenario with four MBX servers in a DAG ( 2 at primary and 2 at DR).


Normally, in the case of datacenter, you typically go for (manual) switchover as it is not recommended nor is it wise to let a(n) (automatic) failover occur.

Hope that helps
LVL 10

Accepted Solution

172pilotSteve earned 750 total points
ID: 39234429
Are the main, and DR sites in different AD sites?  If so, it might be as easy as migrating the DBs over to the other servers, then changing DNS to point to the other CAS server.
LVL 63

Assisted Solution

by:Simon Butler (Sembee)
Simon Butler (Sembee) earned 750 total points
ID: 39235011
You aren't dealing with the scenario of a loss of a data centre, so if everything is in a DAG and you ahve a CAS array, with some forward planning this is easy to do.
The first thing you would do is move the FSW to the second data centre. Then ensure the databases are in sync.
Failover and run the start maintainence script to stop Exchange using the previously active servers, then shut them down. You can then move them or whatever. If the IP range is going to change, then before you shutdown the server, stop and disable Exchange services. Then when you bring the server up, Exchange doesn't try to come live. You can then change the IP address, verify the domain is working correctly before starting the services and reversing the process.


Author Comment

ID: 39235437
i have drafted few steps but not sure. Could you please confirm the correct as it is very critical for me to draft them correct.

1) Move FSW to DR site.
2) Mount all databases in DR site.
3) change active preferance 1for DB  to DR Site.
4) Stop-DatabaseAvailabilityGroup –Identity <DAGName> -ActiveDirectorySite <primary site> -ConfigurationOnly:$True [Repeat for any additional Active Directory sites that are not the recovery datacenter.]

5)Stop-DatabaseAvailabilityGroup –Identity <DAGName> -MailboxServer <DAG member in primary site> -ConfigurationOnly:$True

6)Get-DatabaseAvailabilityGroup –Identity <DAGName> | FL
7)Stop the Cluster service on each DAG member in the recovery datacenter.  To do this run the appropriate command for your DAG member’s operating system:
Windows Server 2008 R2:             Stop-Service Clussvc

8)Restore-DatabaseAvailabilityGroup –Identity <DAGName> -ActiveDirectorySite <recovery site>

Get-ClusterNode –Cluster <DAGName>
Get-ClusterGroup –Cluster <DAGName>

10>change DNS entry and point to DR site CAS server.
LVL 15

Expert Comment

ID: 39237020
I assuming that you have to site primary and secondary, primary site DAG members are EX1,EX2 and secondary site/DR site DAG members are EX3 and EX4. Your primary Datacenter DAG members and domain controllers are up, so The very first thing we need to do is to make sure the DAG member servers in the primary datacenter (EX1 and EX2 MBX Servers) are marked as stopped in the DAG.

1. Stop-DatabaseAvailbilityGroup DAGEXNH –ActiveDirectorySite DC1
where DAGEXNH is the dag name and DC1 is the (AD) site name for the primary site.

To confirm you need to run the following:
2.  Get-DatabaseAvailabilityGroup DAGEXNH | fl Name,StoppedMailboxServers,StartedMailboxServers

The next thing you must do is to stop the cluster service on each DAG member server in the failover datacenter, run the following command on each DAG member in the FO DC:
3. Stop-Service ClusSvc

After this you have to run the abovementioned, you need to restore the DAG by running:
4. Restore-DatabaseAvailabilityGroup DAGEXNH –ActiveDirectorySite DC2
where DAGEXNH is the dag name and DC2 is the (AD) site name for the failover/secondary site.
The mailbox databases will now activate on DR server EX3 assuming the database copies on this server has a lower activation preference set than EX4.

5. Pointing DNS Records to the CAS Array in the Secondary/Failover Datacenter

you don't need to do 1,2,3. Alternate FSW is already mentioned and becomes active when you run restore-databaseavailabilitygroup cmdlet. You DBs also become active on DR DAG members. No need to change preference as EX1 and EX2 are not considered during restore-databaseavailabilitygroup cmdlet as they are inactive. Your step 4, come into play if all Exchange Servers(MBX,CAS/HUB) and domain controllers in the primary site are unavailable (Actual Disaster). In which case only your first step change with -configurationonly:$true being added.

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Steps to fix “Unable to mount database. (hr=0x80004005, ec=1108)”.
Stellar Exchange Toolkit: this 5 in 1 toolkit comes loaded with mega-software tool. Here’s an introduction to tools’ usage and advantages:
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
Suggested Courses

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question