samedi 10 décembre 2011

Upgrading to Exchange 2010 SP2 : Best practices for Database Availability Group “DAG”

Database Availability Group or “DAG” is the high availability feature for the mailbox server role. DAG is a critical feature in an Exchange organization. It means that databases included in the DAG must be high available and no disconnection or unavailability is tolerated. Assuming that applying a new service pack will impact the availability of mailbox servers, we need to make some rules to achieve our aim and after that we make a strategy for the upgrade process:

  1. We have to apply Service Pack only to passive node
  2. If any software is monitoring our DAG , we have to put the DAG members in maintenance mode like in SCOM.2011-12-09_161418

2011-12-09_161450

or you run the following PowerShell script if there is no SCOM monitoring : StartDagServerMaintenance.ps1

Now, in order to install the SP2, you have to proceed by:

  1. Run the cmdlet : Get-DatabaseAvailabilityGroup – status | Format-List PrimaryActiveManager   As a result, you know which server is the active partner and the preferred one in the cluster configurationps1 
  2. After that, you have to set another DAG partner to hold the active copy of the database. You have to run: Move-ActiveMailboxDatabase –Server <DAG Memeber>ps2
  3. Before applying The SP2, you have to block the Active Manager, this process responsible for detecting the state of a partner in the DAG, so that, you block the failover. In fact, when the Active partner fails, you cannot failover to the second one because, you are in process of installing the SP. You have to run : Set-MailboxServer –Identity <ServerName> –DatabaseCopyAutoActivationPolicy:Blockedps3

Now, It’s time to install the Exchange 2010 SP2 on the passive partner.

mbx1

mbx2

Good news, the installation in the passive partner succeeded without error. Now, we have to do this steps in the passive node:

  1. Enable the failover for the passive partner by running : Set-MailboxServer –Identity <ServerName> –DatabaseCopyAutoActivationPolicy:Unrestricted
  2. Disable the DAG maintenance by running the following script: StopDagServerMaintenance.ps1

Finally, you have to repeat all steps listed above for each DAG partner.

Good luck

Aucun commentaire:

Enregistrer un commentaire

Qui êtes-vous ?

Ma photo
MCC | MCT | MCITP Exchange 2010 | MCITP Exchange 2007 | MCITP Server Administrator