1

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?

1 Answer 1

4

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 upgrade of Primary
  • Do not upgrade Primary before any or all of the Secondary.

Then here is the Rolling Upgrade Process:

  1. Remove automatic failover on all synchronous-commit replicas
  2. Upgrade all asynchronous-commit secondary replica instances
  3. Upgrade all remote synchronous-commit secondary replica instances
  4. Upgrade all local synchronous-commit secondary replica instances
  5. Manually fail over the AG to a (newly upgraded) local synchronous-commit secondary replica (see Perform a planned manual failover of an Always On availability group on Microsoft Docs)
  6. Upgrade or update the local replica instance that formerly hosted the primary replica.
  7. Configure automatic failover partners as desired.
2
  • Hi, @Julien can you confirm the correct steps to follow for failover without outage or data loss? learn.microsoft.com/en-us/sql/database-engine/… Commented Nov 16, 2021 at 12:59
  • 1
    Hi @Senior Systems Engineer, it seems to be the current and valid documentation indeed. You can open a new question if you are missing something. I will add it to the above procedure for clarity... Thanks Commented Nov 19, 2021 at 8:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.