Shut down primary replica node always on

NeophyteSQL 241 Reputation points
2021-08-13T02:20:23.987+00:00

We have a always on 2 node set up
Primary replica needs to be shut down for an extended time for testing DR
What is the ideal way to accomplish this

2 node cluster
Asynchronous mode
Quorum has not been set up
Databases are synced from node a to node b

SQL Server | Other
{count} votes

3 answers

Sort by: Most helpful
  1. Seeya Xi-MSFT 16,586 Reputation points
    2021-08-13T07:36:20.373+00:00

    Hi @NeophyteSQL ,

    You can manually failover to make the primary replica become a secondary replica, and then make it OFFLINE. After you complete the corresponding work, you can bring it ONLINE and turn it the primary replica.
    Refer to this: https://www.sqlshack.com/sql-server-always-on-availability-group-data-resynchronization/

    Best regards,
    Seeya


    If the response is helpful, please click "Accept Answer" and upvote it, as this could help other community members looking for similar queries.
    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.

    0 comments No comments

  2. NeophyteSQL 241 Reputation points
    2021-08-13T13:29:35.667+00:00

    thank you, i forgot to mention only few databases that are needed for BI purposes are synced from node a to node b.

    not all databases are in sync, so failing over is not an option.

    however, node A needs to be power down for extended time, what would be the ideal way to accomplish this without failing over to node B.

    how does powering down node A affect node B. Does node B also need to be shut down the whole time when node A is down? is there a speciifc order

    0 comments No comments

  3. Seeya Xi-MSFT 16,586 Reputation points
    2021-08-17T06:28:14.86+00:00

    Hi @NeophyteSQL ,

    Given that you need to power off, it is better to perform manual failover. Synchronous mode can also perform manual failover.

    Does node B also need to be shut down the whole time when node A is down?

    After a failover, the secondary copy becomes the primary copy, and it does not need to be shut down.

    Best regards,
    Seeya


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.