0

We currently have a SQL Server 2012 availability group with 2 replicas. We want to move the replicas to new hardware and upgrade to SQL Server 2016. We plan on doing this as a rolling upgrade, as follows:

  • Server A - SQL Server 2012 replica
  • Server B - SQL Server 2012 replica
  • Server C - SQL Server 2016 replica
  • Server D - SQL Server 2016 replica

Add servers C and D to AG and wait until they are synchronized. Fail over to one of them and verify things still work. Remove Servers A and B from AG.

We can add Servers C and D to the AG, but when we try to join them to the AG, we get an error:

Failed to join local availability replica to AG. The operation encountered SQL Server error 41106 and has been rolled back...

Did some searching and found some things to check like firewall ports and permissions on endpoints.. Ran out of time today, so we didn't get far enough to actually check these things yet, but I wanted to ask something here that might determine if this is even a feasible plan.

The issue is SQL Server A is running under a Managed Service Account (call it MSA1) on Windows Server 2012. SQL Server B is running under another MSA, call it MSA2, on Windows Server 2012. SQL Servers C and D are running under a single Global Managed Service Account, call it GMSA1, on Windows Server 2016.

I know gMSAs are not supported in AGs for SQL Server 2012 and they can cause wonky behavior if used. We have no intention of running in this configuration other than for the few minutes it takes to add the new servers, fail over to them, and remove the old ones.

Is this possible? Could the gMSA be the cause of the 41106 error when trying to join the server to the AG?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
  • This really doesn't have anything to do with **programming** (which *this site* is **all about**), but with DB administration - so it's off-topic here and belongs on [dba.stackexchange.com](http://dba.stackexchange.com) - voting to move. – marc_s Mar 31 '17 at 04:51
  • Did you grant CONNECT on the endpoints of Server A and Server B to the new gMSA? – Robert L Davis Mar 31 '17 at 12:08
  • Yes, gMSA1 has connect privileges to the endpoints on Servers A and B. (I apologize if I posted this on the wrong site.. I'm a stackoverflow/exchange newbie..) – user1967479 Mar 31 '17 at 13:43
  • We've redone everything using regular managed services accounts and we are still hitting the same error. – user1967479 Mar 31 '17 at 21:04
  • It would appear the consensus view is that I should proceed as follows: * Add new hardware (Servers C and D) as SQL 2012 running under msa accounts * Remove old hardware (Servers A and B) from cluster * Do an in-place upgrade of servers C and D to SQL 2016 * Switch Server C and D to run under gMSA Thanks for everyone's input. – user1967479 Apr 01 '17 at 15:44

0 Answers0