I have a 3-node SQL Server Always On availability group. 2 nodes are on the same LAN, and the third one is on a remote site with high latency.
I will add a huge DB (10TB) to the AG, so I would like to be able to just get it added to 2 replicas on the LAN in a first stage, and some days later, to get it added on the 3rd (remote) replica after manually copying it on-site.
Is this a supported scenario?
If so…What would be the recommended approach?
Adding the database to all nodes at the same time is not an option unfortunately.
Best Answer
Yes, you can do that, one of the way by creating new availability group so that exiting AG databases would not be interrupted, an availability group can be created without adding database and additional replicas into it.
In your case you can follow the same approach, following are the steps that you may want to follow:
Summarized steps:
Steps 3,4,5 and 6 can be repeated for 3rd replica once it ready.
Detailed steps:
To create an empty Availability Group, select New Availability Group option via
SSMS → Always On High Availability → Availability Groups (right click)
Once an empty Availability Group created, you can apply following commands accordingly (Primary and Secondary), same steps can be done using SSMS (GUI).
on PRIMARY replica
on SECONDARY replica
You can use following commands once you decided to add 3rd replica, restore the desired database at 3rd replica with recent backups WITH NORECOVERY option.
on PRIMARY for 3rd Replica
on 3rd Replica
Although, an AG can be created using 2 replicas while WSFC has 3 replicas (nodes), the health of AG and it's listener decided by 3 nodes at WSFC unless no quorum votes counted from 3rd node in WSFC. For more details..