New AD Domain: Moving an AlwaysOn Availability Group Node by Node

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.

Diagram of three nodes in DomainOld, Node-01 behind the listener with Node-02 on synchronous automatic failover and Node-03 on asynchronous manual failover, and the 12 migration steps grouped into four stages

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

  1. Remove replica Node-03 from the availability group.
  2. Evict Node-03 from the Windows cluster.
  3. Node-03 is now out of the AG, so rebuild Node-03 in DomainNew.
  4. Create a new Windows cluster with one node, Node-03.
  5. Use scripts to migrate all server-level objects (logins, jobs, operators) from Node-01 to Node-03.
  6. 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.
  7. Configure database mirroring for the user databases from Node-01 to Node-03.
  8. OUTAGE: fail over the mirrored databases to Node-03, break the mirror and point the application to Node-03.
  9. Test, test and test.
  10. Evict Node-01 and decommission the original cluster.
  11. Rebuild Node-01 in the new domain and add it to the cluster.
  12. 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.

Quick reference card: moving an AlwaysOn availability group to a new AD domain

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.

AlwaysOn, SQL Domain Controller, SQL Mirroring, SQL Server
Previous Post
UpdateHADRResource Failed to Version-Copy File: System.IO.IOException
Next Post
SQL SERVER – FIX: Error 19456: None of the IP Addresses Configured for the Availability Group Listener can be Hosted by the Server

Related Posts

7 Comments. Leave new

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.