TFS2013 到 TFS2017 / 单个 SQL 服务器 2012 到 SQL 服务器 2014 AAG

TFS2013 to TFS2017 / Single SQL Server 2012 to SQL Server 2014 AAG

我当前的环境是在单个虚拟机上:

我的迁移目标环境是:

我尝试了多种安装方式,但在 Always-On 中遇到了很多问题:

  1. Upgrade/configure 直接在 AAG 中直接使用数据库还原(通过 SQL Management Studio),遇到 TF400711 错误

  2. Upgrade/configure 没有 Always-On,工作正常,但现在我的问题是将我的数据库移动到 AAG。 Tfs_Configuration 没问题,但是当我附上我的 collection 时,遇到了 TF246017 错误。我不理解这个错误,因为我使用与 Tfs_Configuration 数据库相同的连接字符串...

我的情况最好的程序是什么?

我读了 and post,但它们不符合我的情况。

你可以使用way2,因为Tfs_Configuration是可以的,你只需要找出错误TFS246017。由于以下原因可能会出现此错误

  • Incorrect SQL Installation order especially if you are using Express edition
  • Database In Recovery
  • Database Out-of-Sync – during migration to newer version of TFS
  • Permission of Service Account is not right
  • SQL Database not running or not reachable
  • TFS Proxy not reachable

仔细检查您是否对安装帐户有足够的权限。建议您查看 Windows 事件日志 ,这是寻找潜在原因的好选择。

另请查看此线程:TF246017: Team Foundation Server could not connect to the database & this one。 google 中有很多关于此问题的资源,可以帮助您解决问题。