Solved

Setting a "Preferred" database copy in a DAG

Posted on 2013-05-21
3
1,146 Views
Last Modified: 2013-05-23
I currently have a Microsoft Exchange 2013 deployment which has two servers in two different sites. Both servers hold the Mailbox and Client-Access-Server roles.

The two servers are both members of a Database Availability Group, and they each hold copies of a single mailbox database, the only one used by the organization.

The two sites are linked by a site-to-site VPN, but the Internet connection at Site A is 3x as fast and housed in a better facility, so as a result, I normally have the "Server A" be the Active Member.

However, any time there's a connectivity issue or anything happens at Server A (e.g. install updates and reboot), there is a switchover to Server B. It never switches back. So I have to manually go in and activate the Site A database copy whenever anything happens.

Is there a way I can specify that Site A should always be the active member whenever  possible, so that it returns to being the active member after a switchover?
0
Comment
Question by:Frosty555
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 43

Expert Comment

by:Amit
ID: 39185602
Switch back require a manual intervention. As you need to first find the root cause why it is switched over, fix it and fail back. Because Exchange doesn't know, if you have power outage or WAN failure etc.
0
 
LVL 2

Accepted Solution

by:
DonYoung earned 500 total points
ID: 39185658
Set the activation preferences, and run the following command on a schedule...  I recommend once a night - assuming you patch at night...

cd "\Program Files\Microsoft\Exchange Server\V14\Scripts"
.\RedistributeActiveDatabases.ps1 -DagName DAG1 -BalanceDbsByActivationPreference

Open in new window

0
 
LVL 31

Author Comment

by:Frosty555
ID: 39192347
To set it up as a scheduled task, the actual syntax for the command was:

PowerShell -noninteractive .\RedistributeActiveDatabases.ps1 -DagName DAG1 -BalanceDbsByActivationPreference -Confirm:$False

Also, replace "DAG1" with the actual name of the DAG.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This article explains how to install and use the NTBackup utility that comes with Windows Server.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

736 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