Applies to: Exchange Server 2013

Topic Last Modified: 2013-01-08

When you add a server to a database availability group (DAG), it works with the other servers in the DAG to provide automatic database-level recovery from database, server, or network failures. When you remove a server from a DAG, it's no longer automatically protected from failures.

Looking for other management tasks related to DAGs? Check out Managing Database Availability Groups.

What do you need to know before you begin?

  • Estimated time to complete: 5 minutes per server

  • You need to be assigned permissions before you can perform this procedure or procedures. To see what permissions you need, see the "Database availability groups" entry in the High Availability and Site Resilience Permissions topic.

  • DAGs use Windows Failover Clustering (WFC) technologies. Each Mailbox server that's a member of a DAG is also a node in the underlying cluster used by the DAG. As a result, at any specific time, a Mailbox server can be a member of only one DAG. Because DAGs use WFC technology, all servers added to a DAG must be running the same operating system: either Windows Server 2008 R2 Enterprise or Datacenter Edition, or the Standard or Datacenter Edition of Windows Server 2012.

  • If you're adding Mailbox servers running Windows Server 2012, you must pre-stage the cluster name object (CNO) for the DAG. For detailed steps, see Pre-Stage the Cluster Name Object for a Database Availability Group.

  • Before you can add members to a DAG, you must first create a DAG. For detailed steps, see Create a Database Availability Group.

  • You must remove all replicated database copies from the server before you can remove it from a DAG.

  • For information about keyboard shortcuts that may apply to the procedures in this topic, see Keyboard Shortcuts in the Exchange Admin Center.

Tip:
Having problems? Ask for help in the Exchange forums. Visit the forums at: Exchange Server, Exchange Online, or Exchange Online Protection.

What do you want to do?

Use the EAC to manage database availability group membership

  1. In the EAC, go to Servers > Database Availability Groups.

  2. Select the DAG you want to configure, and then click Manage DAG members.

    • To add one or more Mailbox servers to the DAG, click Add Icon, select the servers from the list, click Add, and then click OK.

    • To remove one or more Mailbox servers from the DAG, select the servers, and then click the minus (-) icon.

  3. Click Save to save the changes.

  4. When the task has completed successfully, click Close.

Use the Shell to manage database availability group membership

This example adds the Mailbox server MBX1 to the DAG DAG1.

Copy Code
Add-DatabaseAvailabilityGroupServer -Identity DAG1 -MailboxServer MBX1

This example removes the Mailbox server MBX1 from the DAG DAG1. Before running this command, make sure that no replicated databases exist on the Mailbox server.

Copy Code
Remove-DatabaseAvailabilityGroupServer -Identity DAG1 -MailboxServer MBX1

This example removes the configuration settings for the Mailbox server MBX4 from the DAG DAG2. MBX4 is expected to be offline for an extended period, so its configuration is being removed from the DAG while it's offline to establish quorum with the remaining online DAG members.

Copy Code
Remove-DatabaseAvailabilityGroupServer -Identity DAG2 -MailboxServer MBX4 -ConfigurationOnly

How do you know this worked?

To verify that you've successfully managed DAG membership, do one of the following:

  • In the EAC, navigate to Servers > Database Availability Groups. The current DAG membership is displayed in the Member Servers column.

  • In the Shell, run the following command to display DAG membership information.

    Copy Code
    Get-DatabaseAvailabilityGroup <DAGName> | Format-List Servers
    

For more information