SQL Server 2012 – How to Apply SP3 on AlwaysOn Availability Groups

availability-groupshigh-availabilitysql-server-2012

If Always-On is configured, while applying Service Pack, should I:

  • Directly move SQL Server Instance (Secondary Replica) to make it passive and apply Service Pack
  • Or First move Availability Group and then move SQL Server Instance (Secondary Replica) and finally apply patch and restart the Server.

Can you please let me know?

Best Answer

Before an upgrade, you should:

  • Perform a full backup of every database
  • Try a manual failover. Make sure the AG fails over a Synchronous replicas and that the synchronization state of the replicas is SYNCHRONIZED
  • Disable automatic backups on Secondary while they are being upgraded
  • Disable automatic backups on Primary before the upgrad of Primary
  • Do not upgrade Primary before any or all of the Secondary or .

Then here is the Rolling Upgrade Process:

  1. Remove automatic failover on all synchronous-commit replicas
  2. Upgrade all remote secondary replica instances running asynchronous-commit secondary replicas
  3. Upgrade the all local replica secondary instances that are not currently running the primary replica
  4. Manually fail over the availability group to a local synchronous-commit secondary replica
  5. Upgrade or update the local replica instance that formerly hosted the primary replica
  6. Configure automatic failover partners as desired