SQL Server 2017 Enterprise Edition – Always-On failover procedure

EnterpriseArchitect 6,041 Reputation points
2021-11-16T12:06:42.877+00:00

Hi people,

I need some steps and guidance, to perform the Microsoft Cluster Failover (MSCS 2016) for my SQL Server 2017 Enterprise Edition – Always-On 2x nodes.

This is to perform the Windows Server updates that will be rebooting one SQL Server node over the other.

I got confused between:
https://learn.microsoft.com/en-us/sql/database-engine/availability-groups/windows/use-the-fail-over-availability-group-wizard-sql-server-management-studio?view=sql-server-ver15
https://learn.microsoft.com/en-us/sql/database-engine/availability-groups/windows/perform-a-planned-manual-failover-of-an-availability-group-sql-server?view=sql-server-ver15

Thank you in advance.

Windows for business | Windows Server | Storage high availability | Clustering and high availability
SQL Server | Other
{count} votes

6 answers

Sort by: Most helpful
  1. Limitless Technology 39,926 Reputation points
    2021-11-16T19:27:02.217+00:00
    1 person found this answer helpful.
    0 comments No comments

  2. Tom Phillips 17,771 Reputation points
    2021-11-16T21:29:42.217+00:00
    1 person found this answer helpful.
    0 comments No comments

  3. AmeliaGu-MSFT 14,006 Reputation points Microsoft External Staff
    2021-11-17T02:11:07.14+00:00

    Hi EnterpriseArchitect,

    Do you mean you want to failover a SQL Server Always on Availability Group so that you can update the Windows Server? If I misunderstood, please let me know.
    Before failing over the AG, please verify that the synchronization state of the failover target is SYNCHRONIZED, and make sure the secondary replica and the primary replica are running in synchronous-commit availability mode. Please update the OS of secondary replica first, then you can failover the Alwayson, update the OS of new secondary replica (old primary replica).
    You can go to primary replica, expand the AlwaysOn High Availability node -> Availability Groups -> right-click the availability group ->select Failover to perform a manual failover.

    150022-image.png

    Then please follow the doc to use Fail Over Availability Group Wizard to failover.
    Please also check Upgrading Always On Availability Group Replica Instances which might be helpful.

    Best Regards,
    Amelia


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

  4. AmeliaGu-MSFT 14,006 Reputation points Microsoft External Staff
    2021-11-18T01:54:39.907+00:00

    Hi EnterpriseArchitect,
    Thanks for your reply.

    So how do I check the Synchronized status?

    You can go to primary replica, expand the Always On High Availability ->Availability Groups ->
    Right-click the availability group -> Properties.

    150384-image.png

    Check the availability mode in the Availability Replica Properties dialog box-> Availability mode.

    150422-image.png

    I'm trying to do this via the Windows Admin Console of other GUI methods, outside of the SQL Server Management Studio.

    It is not recommended to failover the SQL Server Always on Availability Group outside of SSMS. Please go to SSMS to failover Always on.

    Best Regards,
    Amelia


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

  5. AmeliaGu-MSFT 14,006 Reputation points Microsoft External Staff
    2021-11-18T05:35:18.837+00:00

    Hi EnterpriseArchitect,

    Thanks for your reply.

    Because, even with the Planned manual Failover method, the Failover wizard will determine if there will be data loss or not.

    There will be no data loss when planned manual failover happened if both the primary replica and secondary replica are configured for synchronous-commit mode, and both the primary replica and secondary replica are currently synchronized.
    Please refer to this doc which might be helpful.

    Best Regards,
    Amelia

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.