What is Exchange 2010 Database Availability Group?
The services provided by Microsoft Exchange, especially the email system, are without doubt an essential part of any company’s infrastructure. Experiencing outages can result in substantial losses for an organization, both in terms of reputation and financially. In the past this would have been catered for by making a backup of the Exchange server. In case of hardware failure or software corruption, the underlying problem would be fixed and the backup would be restored. While this would essentially work, we’d experience quite substantial downtime until the whole operation is completed. If replacement parts aren’t available, such downtime could be measured in days – and this can be very costly to a company. Fortunately, with Exchange 2010 we can avoid this. Exchange 2010 will help ensure your Exchange Server 2010’s availability using the Database Availability Group (DAG) feature.
The DAG feature provides high availability for exchange installations by essentially having multiple exchange servers working together and sharing database data between themselves so that if one is down due to maintenance or hardware failure, the others can still seamlessly continue serving requests without any disruptions. To do this, the Exchange 2010 servers which are joined in a single DAG will share mailboxes between themselves. For additional resilience, it is important to note that here we are not talking about one Exchange server mirroring another. It actually goes further than that because it will actually be the mailbox database that will be shared between Exchange servers. At any point in time, only one mailbox database will be active while the other mailbox database will stay in reserve in case it is needed.
Essentially what we’re saying is that the DAG will effectively serve as an intelligent data replication, as well as a server failover, and switch over. This automatically adapts to the situation depending on server failures.
In order to setup the data availability group you need to run a few commands. Let’s assume that we have three Exchange 2010 servers which we want to join in our DAG called:
- Exchange1
- Exchange2
- Exchange3
First we need to create the DAG itself. This is done using the cmdlet New-DatabaseAvailabilityGroup.
To create the group, simply run:
New-DatabaseAvailabilityGroup –name [DAG name] –DatabaseAvailabilityGroupIPAddresses [Exchange1 IP Address, Exchange2 IP Address, Exchange3 IP Address]
The above will create the DAG but we still need to add Exchange servers to the group. To Add servers we need to use the cmdlet:
Add-DatabaseAvailabilityGroupServer
Simply run:
Add-DatabaseAvailabilityGroupServer –Identity [DAG Name specified above] –MailboxServer [Exchange1]
Repeat for each Exchange server you wish to add to the DAG; in our case that would be Exchange2 and Exchange 3.
Having a DAG setup provides a number of advantages. While having a backup is an effective disaster recovery strategy, a DAG can ensure you never experience downtime which a simple backup would not avoid. If your DAG members are all set up in the same geographical location, it is recommended that you do not use the DAG feature as a backup replacement. For additional security, in such a case having an offsite backup can safeguard your data from disaster that might destroy the whole infrastructure at a particular geo location, such as floods or earthquakes.
The DAG also provides a number of additional functionalities that might be quite useful to the administrator. One of these useful cmdlets is the Move-ActiveMailboxDatabase cmdlet. Using this cmdlet the administrator can instruct the Exchange 2010 infrastructure to move an active mailbox from one Exchange 2010 server to another on the same DAG. This can be very useful if one plans to have some scheduled maintenance on a particular server and wants direct control to move to load to a specific server or, if desired, to allow the infrastructure itself to decide where to move the mailbox database.
To use the Move-ActiveMailboxDatabase run the following CMDLET:
Move-ActiveMailboxDatabase -Server [Active Mailbox Server To move] –ActivateOnServer [destination Exchange 2010 server where to move the mailbox database to]
Please note that if you do not specify, the ActiveOnServer parameter will instruct the infrastructure to decide for itself where the mailbox will be activated on.



This is quite precise and straight forward. Thanks for driving home the point.