- With the Exchange Management Console (EMC)
- With the Exchange Management Shell (EMS)
- With the StartDagServerMaintenance.ps1 script
To move the active copy to Mailbox Server EX13-1, we right-click on database DB1 and select the menu option "Move Active Mailbox Database":
We must select the target server (browse to locate that server):
Managing Database Availability Groups (Exchange 2010)
Managing Database Availability Groups (Exchange 2013)
Now the active database is "Mounted" on EX13-1:
- Makes all active databases hosted on the DAG member in question passive - and the passive copy on other DAG members active .
- If the DAG member currently holds the "Primary Active Manager" (PAM) role, the script transfers this role to another DAG member.
- Pauses the node (the DAG member in question) so it cannot become the PAM during maintenance (which we want to avoid).
- Sets the value of the DatabaseCopyAutoActivationPolicy parameter on the DAG member to Blocked.
- Runs Suspend-MailboxDatabaseCopy to suspend each database copy hosted on the DAG member for activation.
The script is located in the following location:
When you attempt to execute the script, remember to type "." and "\" just before the name of the script itself.
We will be prompted for the name of the DAG member we wish to place in maintenance mode:
cmdlet StartDagServerMaintenance.ps1 at command pipeline position 1
Supply values for the following parameters:
I simply enter: EX13-1.
If we want, we can verify that the script has performed at least some of the tasks listed above.
For example, the database should be in the "Healthy" state on the server we designated at the prompt above, and "Mounted" on the server that previously held the passive copy of the database:
We can also see this with the EMS:
[PS] C:\>Get-MailboxDatabaseCopyStatus DB1\EX13-2 | fl Name,Status
Name : DB1\EX13-2
Status : Mounted
[PS] C:\>Get-MailboxDatabaseCopyStatus DB1\EX13-1 | fl Name,Status
Name : DB1\EX13-1
Status : Healthy
[PS] C:\>Get-MailboxServer | select name,*activation* | ft -auto
[PS] C:\Program Files\Microsoft\Exchange Server\V14\Scripts>.\StopDagServerMaintenance.ps1