Share via


Configure Database Availability Group Properties

Applies to: Exchange Server 2010

You can use the Exchange Management Console (EMC) or the Exchange Management Shell to configure the properties of a database availability group (DAG), including the witness server and directory used by the DAG. The Shell enables you to configure DAG properties that are not available in EMC, such as the IP addresses assigned to the DAG, network discovery, the TCP port used for replication, and datacenter activation coordination (DAC) mode.

DAG property values are stored in both Active Directory and the cluster database. However, some properties are stored on in the cluster database. As a result, the underlying cluster for the DAG must be up and running and have quorum in order to set the properties for:

  • ReplicationPort
  • NetworkCompression
  • NetworkEncryption
  • DiscoverNetworks

What Do You Want to Do?

  • Use the EMC to configure database availability group properties
  • Use the Shell to configure database availability group properties

Use the EMC to configure database availability group properties

You need to be assigned permissions before you can perform this procedure. To see what permissions you need, see the" Database availability group" entry in the High Availability Permissions topic.

  1. In the console tree, navigate to Organization Configuration > Mailbox.
  2. In the result pane, click the Database Availability Group tab, right-click the DAG you want to configure, and then click Properties.
  3. Use the General tab to view DAG membership, configure the DAG's file share witness, and to configure network encryption and compression for the DAG networks.
    • Member servers   This is a read-only field that displays the Mailbox servers that are members of the DAG.
    • Witness server   The name of the server used as a quorum witness for the DAG when the DAG contains an even number of members.
    • Witness directory   The name of a directory that's used to store file share witness data on the witness server.
  4. Use the Operational Servers tab to view the list of DAG members that are currently operational.

Use the Shell to configure database availability group properties

You need to be assigned permissions before you can perform this procedure. To see what permissions you need, see the "Database availability group" entry in the High Availability Permissions topic.

This example sets the witness directory to C:\DAG1DIR for a DAG named DAG1.

Set-DatabaseAvailabilityGroup -Identity DAG1 -WitnessDirectory C:\DAG1DIR

This example pre-configures an alternate witness server of EXHUB3 and an alternate witness directory of C:\DAGFileShareWitnesses\DAG1.contoso.com for a DAG named DAG1.

Set-DatabaseAvailabilityGroup -Identity DAG1 -AlternateWitnessDirectory C:\DAGFileShareWitnesses\DAG1.contoso.com -AlternateWitnessServer EXHUB3

This example configures a DAG named DAG1 to use DHCP to obtain an IP address.

Set-DatabaseAvailabilityGroup -Identity DAG1 -DatabaseAvailabilityGroupIPAddresses 0.0.0.0

This example configures a DAG named DAG1 to use a static IP address of 10.0.0.8.

Set-DatabaseAvailabilityGroup -Identity DAG1 -DatabaseAvailabilityGroupIPAddresses 10.0.0.8

This example configures a multi-subnet DAG named DAG1 with multiple static IP addresses.

Set-DatabaseAvailabilityGroup -Identity DAG1 -DatabaseAvailabilityGroupIPAddresses 10.0.0.8,10.0.1.8

This example configures a DAG named DAG1 for datacenter activation mode.

Set-DatabaseAvailabilityGroup -Identity DAG1 -DatacenterActivationMode DagOnly

This example configures the replication port for a DAG named DAG1 to be 63132.

Set-DatabaseAvailabilityGroup -Identity DAG1 -ReplicationPort 63132

Note

After changing the default replication port for a DAG, you must manually modify the Windows Firewall exceptions on each member of the DAG to allow communication to occur over the specified port.

For More Information

Create a Database Availability Group

Remove a Database Availability Group

Create a Database Availability Group Network

Manage Database Availability Group Membership

Get-DatabaseAvailabilityGroup

Set-DatabaseAvailabilityGroup