Controlling high availability failover mechanisms
While we do database switchovers or they failover automatically, there will be times where the distribution of active database copies across your DAG members will be uneven. For example, you might have a 4 node DAG where 1 member is hosting 10 active copies and other member is hosting only one. This might have an impact on the performance based on server resources. Exchange 2010 and later releases provide the script called RedistributeActiveDatabases.ps1
that will help administrators redistribute the active copies among the DAG members.
The following script will redistribute active database in a DAG based on the activation preference regardless of the copies being hosted on DAG members in another Active Directory site. It will also display a summary once it is complete. The script is located in the %ExchangeInstallPath%
Scripts folder:
RedistributeActiveDatabases.ps1 -DagName DAG01 -BalanceDbsByActivationPreference -ShowFinalDatabaseDistribution...