Moving an AlwaysOn availability group to a new AD domain takes twelve steps, one node at a time. As part of my independent consulting, I also give a high-level overview of a migration strategy. In this engagement, my client wanted the steps to move an AlwaysOn availability group from DomainOld to DomainNew. Another company had acquired them, and they needed to migrate all assets to a new domain. Here are the steps I shared.

Topology
The cluster has three nodes. Node-01 sits behind the listener. Node-02 is synchronous with automatic failover, and Node-03 is asynchronous with manual failover.
The Steps
- Remove replica Node-03 from the availability group.
- Evict Node-03 from the Windows cluster.
- Node-03 is now out of the AG, so rebuild Node-03 in DomainNew.
- Create a new Windows cluster with one node, Node-03.
- Use scripts to migrate all server-level objects (logins, jobs, operators) from Node-01 to Node-03.
- Node-02 needs the same steps as Node-03, with one difference: it joins the same cluster as Node-03 instead of a new cluster.
- Configure database mirroring for the user databases from Node-01 to Node-03.
- OUTAGE: fail over the mirrored databases to Node-03, break the mirror and point the application to Node-03.
- Test, test and test.
- Evict Node-01 and decommission the original cluster.
- Rebuild Node-01 in the new domain and add it to the cluster.
- Back up and restore the databases from Node-03 to the two new nodes. Then implement the AG across all three new nodes.
After getting this high-level guidance, they executed the project, and it went fine. I hope these steps help others who need to move an AlwaysOn availability group.

A domain move is not a rebuild from scratch, it is a series of small, safe steps.
Published by Pinal Dave on SQLAuthority. More of my work at pinaldave.com.
Discover more from SQL Authority with Pinal Dave
Subscribe to get the latest posts sent to your email.





7 Comments. Leave new
Thanks for your daily SQL skills contributions. They are all very Useful
Thanks Sir!
Very Good approach with minimal downtime and make use of the same hardware.
Thanks Shaik.
Based on my understanding you will do mirror on DB level between node 1 exists in the old domain and node 3 exists in New domain my question is it available to build mirroring between two different domain
You can do mirroring via certificate. There are lots of blog out there.
Does SQL Server 2016 supports mirroring?