Installing patches or updates on your Exchange 2010 DAG cluster

To install patches or update on your Exchange 2010 DAG cluster, follow the steps below.

  • OPTIONAL: Log on to one of the servers of your DAG cluster
  • Open an Exchange Mangement Console instance
  • cd to the directory with the maintenance scripts:
  • cd $exscripts
  • Execute the ‘start maintenance’ script:
  • .\StartDagServerMaintenance.ps1 -serverName [NETBIOS name of server] (DONT USE THE FQDN or some parts of the script wont work)
  • The PowerShell script will activate the mailbox databases on other servers of the DAG cluster, it will pause the server in Failover Clustering and will set some Exchange parameters to prevent failover to this server. Outlook clients will receive a disconnect message immediately followed by a connect message.
  • You can now install patches or updates and reboot at will. When the server reboots, Outlook clients (connected to this server) will receive a disconnect message immediately followed by a connect message.
  • When you’re done, execute the ‘stop maintenance’ script:
  • .\StopDagServerMaintenance.ps1 -serverName [NETBIOS name of server] (DONT USE THE FQDN )
  • This script executes all maintenance action in reverse order.
  • Check the Failover Cluster Manager for errors and verify the cluster is up and running. In the screenshots below there is an error because the File Share Witness had a scheduled reboot at 06:00AM. No errors occurred because of the maintenance that was performed.
  • exchange-dag-maintenance-01
  • exchange-dag-maintenance-02
  • exchange-dag-maintenance-03
  • You can now repeat above steps on all other members of the DAG cluster.
  • Because I’ve only got 2 cluster members, at the end of the maintenance actions, all mailbox databases will be active on one server. To show this, execute the command:
  • Get-MailboxDatabase | ft name, server, activationpreference -AutoSize
  • exchange-dag-maintenance-04
  • To re-balance the mailbox databases over all members of the cluster according to your activation preference, execute the command:
  • .\RedistributeActiveDatabases.ps1 -DagName DAG01 -BalanceDbsByActivationPreference (Somehow, this command didn’t work on my admin PC, only on the Exchange servers themselves)
  • You will be asked if you really want to set the active database on one of the other servers. The script will give a summary of all actions taken when it’s finished. Outlook clients will receive a disconnect message immediately followed by a connect message.
  • exchange-dag-maintenance-05
  • Check if the DAG cluster is working as it should by executing:
  • Get-MailboxServer
  • exchange-dag-maintenance-06
  • All values should normally be as seen in the above screenshot unless configured otherwise.
Advertisements

About Yuri de Jager
Technology Addict

One Response to Installing patches or updates on your Exchange 2010 DAG cluster

  1. Atul says:

    followed the document for updating DAG member.

    wish to mention that I am still not able to understand when should or at which stage we should update/install patches ?

    after executing .\StartDagServerMaintenance.ps1 -serverName and .\StopDagServerMaintenance.ps1 -serverName

    Or

    ???

    in my case what I did was Ran above scripts and installed patches then restarted the server and executed other scripts mentioned

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: