Rolling upgrade or update SQL Server Always On or Failover Cluster Instance
Upgrading Always On Availability Group Replica Instances
Upgrade a failover cluster instance
- Make sure that we have taken good recent OS backup with system state (or VMware snapshot with SQL services stopped), a good recent backup of all databases and a successful completion of a checkdb on the primary node. {This is not mandatory, but to avoid “Ouch” moment}
- From the node acting as the primary replica (SQL1), change the failover mode to manual
- Refresh the affected databases on the secondary replica (SQL2) and make sure that everything is green on the dashboard.
- Apply the patch (service pack of CU) on SQL2.
- Repeat the Windows Update and/or software updates until all available patches are applied. Do not move on with the patching steps until all patches and post patch reboot and configuration tasks are completed.
- Double check that patches have been applied, the cluster is healthy and AlwaysOn Availability Groups are functional.
- Make sure that synchronization state is SYNCHRONIZED.
- Fail over the availability group to the secondary replica (SQL2).
- Refresh the affected databases on secondary Replica (former primary = SQL1) until the synchronization state is synchronized.
- Apply the patch (service pack of CU) on SQL1.
- Repeat the Windows Update and/or software updates until all available patches are applied. Do not move on with the patching steps until all patches and post patch reboot and configuration tasks are completed.
- Double check that patches have been applied, the cluster is healthy and AlwaysOn Availability Groups are functional.
- Make sure that synchronization state is SYNCHRONIZED.
- Fail over the availability group to the primary node (back to SQL1).
- Change the failover mode to Automatic now (which we changed in Step b)
Cluster-Aware Updating overview
沒有留言:
張貼留言