
Exchange 2010 SP1 Tidbits: Balancing DAG Database Copies
June 30, 2011Exchange 2010 DAGs (Database Availability Groups) have become quite popular, and why not, it’s a simplified method for HA that requires no complex clustering configuration and allows for up to 16 different copies of a mailbox database. In small environments managing your DAG databases should be quite simple, but in a much larger organization it could become a challenge as time goes by and databases switchover or failover between mailbox servers.
- BalanceDbsByActivationPreference script will move databases to their most preferred copy (based on Activation Preference) with no regard to Active Directory sites.
- BalanceDbsBySiteAndActivationPreference the script moves active databases to their most preferred copy, while also attempting to balance active databases within each Active Directory site.
The following examples are taken from the same Microsoft TechNet article:
This example shows the current database distribution for a DAG, including preference count list.
RedistributeActiveDatabases.ps1 -DagName DAG1 -ShowDatabaseDistributionByServer | Format-Table
This example redistributes and balances the active mailbox database copies in a DAG using activation preference without prompting for input.
RedistributeActiveDatabases.ps1 -DagName DAG1 -BalanceDbsByActivationPreference -Confirm:$False
This example redistributes and balances the active mailbox database copies in a DAG using activation preference, and produces a summary of the distribution.
RedistributeActiveDatabases.ps1 -DagName DAG1 -BalanceDbsByActivationPreference -ShowFinalDatabaseDistribution

