What is the recommended procedure for updating clustered servers with SQL Awals On?

Salves 501 Reputation points
2020-09-05T13:45:53.183+00:00

Hi,

is there any recommendation to update the servers, both Windows and SQL in a scenario with Always On?

I know that the windows cluster has a feature called (Cluster-Aware Updating), but I never know. But I believe that it is for updating windows only of the cluster nodes and not SQL.

Thank you.

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,776 questions
0 comments No comments
{count} votes

6 answers

Sort by: Most helpful
  1. Shashank Singh 6,246 Reputation points
    2020-09-06T05:57:57.107+00:00

    You have good Microsoft Article on That. And it is upgrading-always-on-availability-group-replica-instances. This also applies to WIndows Server update. Quoting from the Article

    When upgrading a SQL Server instance that hosts an Always On Availability Group (AG) to a new SQL Server 2019 (15.x) version, to a new SQL Server service pack or cumulative update, or when installing to a new Windows service pack or cumulative update, you can reduce downtime for the primary replica to only a single manual failover by performing a rolling upgrade.

    Basically the step is

    1. Apply service pack or cumulative update on the secondary replica.
    2. If an instance hosts both primary and secondary replica. Failover such that the instance only hosts
      secondary replica
    3. Post SP/CU upgrade failover to newly patched replica.
    4. Now apply patch on other secondary replicas and repeat the steps 1-3 till all the replicas are patched.

    Now if you read the article it has few recommendations mentioned as what to do before applying SP/CU please follow that.

    1. Like taking complete SQL Sever backup.
    2. Making sure replicas are green in Availability Group dashboard when you plan to apply CP/CU
    3. Apply SP/CU only when load is very very less or preferably during application downtime.
    4. Before applying Sp/CU manually failover and check that your AG is working fine. I understand you
      cannot do this with Production Database always but yes it is best to make sure that system is good
      in terms of failover before upgrading.
    5. Please test your SP/CU on UAT before applying it on production.

    Please read the document completely to get more insight.

    2 people found this answer helpful.
    0 comments No comments

  2. F Ahmed 36 Reputation points
    2021-04-13T22:29:32.253+00:00

    The OP asked about update and all the comments are regarding upgrade which are completely two different things.

    I have the same questions, if I have 2 nodes in SAG is CAU is the recommended way to take care of failover and patching? Does it make sure the databases are fully available on the other node?

    1 person found this answer helpful.
    0 comments No comments

  3. F Ahmed 36 Reputation points
    2021-04-13T22:29:32.253+00:00

    The OP asked about update and all the comments are regarding upgrade which are completely two different things.

    I have the same questions, if I have 2 nodes in SAG is CAU is the recommended way to take care of failover and patching? Does it make sure the databases are fully available on the other node?

    1 person found this answer helpful.
    0 comments No comments

  4. Cris Zhan-MSFT 6,606 Reputation points
    2020-09-07T07:35:16.63+00:00

    @Salves

    Guidance on how to do replica instance upgrades including the OS patching, refer to the MS article provided by Shashank-Singh.

    It is not supported to use the Cluster-Aware Updating (CAU) to update the Windows Server cluster with SQL Server AlwaysOn availability groups.


    If the answer is helpful, please click "Accept Answer" and upvote it.


  5. He Thong Giu Xe Thong Minh PTH 1 Reputation point
    2022-09-10T06:41:13.44+00:00

    PTH VINA chuyên cung cấp sỉ lẻ các dòng khoá cửa điện tử như: Khoá cửa vân tay, khoá cửa thẻ từ,... Chyên lắp đặt khoá vân tay cửa gỗ, khoá vân tay cửa nhôm, khoá vân tay cửa cổng, khoá cửa phòng trọ, khoá thẻ từ khách sạn,... với giá rẻ nhất và chất lượng tốt nhất.

    Name: PTH VINA

    Address: 55/1 11 Cây Keo, Tam Phú, Thủ Đức, Thành phố Hồ Chí Minh

    Phone: 0974 357 173

    Website: https://pthvina.com

    0 comments No comments