复杂的 TFS 2017 升级 [英] Complicated TFS 2017 Upgrade

查看:23
本文介绍了复杂的 TFS 2017 升级的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望将我当前的 TFS 2015.3 实例升级到 2017 年.但是,由于一些复杂因素,这不会像宣传的那么容易.我的场景似乎没有记录.

I wish to upgrade my current TFS 2015.3 instance to 2017. It's not going to be quite as easy as advertised, however, due to some complicating factors. My scenario appears to be undocumented.

  1. 我将安装一个新的域控制器(从 Server Essentials 2012 R2 迁移到 Server Essentials 2016).
  2. 当前的操作系统是 Server 2012 R2;我也会将其升级到 Server 2016(全新安装到新 VM).
  3. 这两个新 VM 必须保留与以前相同的 NETBIOS 名称.
  4. 当前的 SQL Server 实例是 2014;我也会将其升级到 SQL Server 2016.
  5. 当前 TFS 实例的 SQL Server 实例位于单独的 VM 上.我想巩固这一点并将所有内容放在单个 VM 上.(我是一名独立开发者,我的服务器负载很轻,我想摆脱额外的复杂性和开销.)

这仅仅是安装 TFS 2017 并从 2015.3 生成的备份恢复的问题吗?2017 是否会在还原过程中自动应用任何架构更改等?会这么简单吗?

Is it merely a matter of installing TFS 2017 and restoring from a 2015.3-generated backup? Will 2017 automatically apply any schema changes etc. during the restore process? Could it be that simple?

我能找到的最接近的问题是这里,但不幸的是它并不能完全解决我的情况.

The closest question I could find to this is here, but unfortunately it doesn't quite address my situation.

推荐答案

除了执行分离/附加升级之外,您还可以使用另一个选项.分离/附加升级过去曾出现过问题,尽管其中大部分问题已得到修复,但仍被认为是次优解决方案.

Instead of doing a detach/attach upgrade there is another option available to you. detach/attach upgrades have had issues in the past and though most of these issues have been fixed, it's considered a suboptimal solution.

改为执行升级安装.

对所有 TFS 2015u3 数据库进行完整备份,并将它们恢复到新的 SQL 服务器实例.您可以使用 Team Foundation Server 管理控制台创建完整备份,或者在停止每个应用程序层上的所有 TFS 服务后使用 SQL Server Management Studio(在您的情况下可能只有一个)使用

Take a full backup of all your TFS 2015u3 databases and restore them to the new SQL server instance. You can create the full backup using the Team Foundation Server Admin Console, or use SQL Server Management Studio after stopping all TFS services on each Application Tier (in your case there is probably only one) using

TFSServiceControl 停止

TFSServiceControl quiesce

现在安装 TFS 2017 并执行升级"安装并将其指向您现有的数据库.它会询问您是否要升级它们以及您是否有有效的备份.

Now install TFS 2017 and perform the "upgrade" installation and point it to your existing databases. It will ask you if you want to upgrade them and whether you have a valid backup.

一段时间后(升级可能需要一段时间,因为数据在数据库中移动),您的 TFS 服务器将重新联机.安装向导通常会完成所需的所有映射工作.

And after some time (upgrades can take a while, as data is moved around the databases), your TFS server will come back online. The installation wizard usually does all the mapping work required.

有一个重要的警告,这与域更改有关.如果你是安装在同一个 Windows Active Directory 域中,你很好.但是,如果您的服务器在工作组模式下运行,您可能需要在运行升级步骤之前重新映射 TFS 数据库中的所有身份.所以安装TFS,但不要配置.运行以下命令

There is one big caveat, and that has to do with domain changes. If you are installing in the same Windows Active Directory domain, you're good. But if your server is running in Workgroup mode you may want to remap all the identities in your TFS database prior to running the upgrade step. So install TFS, but do not configure yet. Run the following command

TFSConfig Identities /change /fromdomain:Domain1 /todomain:Domain2

然后使用升级选项让 TFS 使用您的数据库备份.有关跨域服务器的完整说明MSDN 上记录了迁移.在确认升级成功之前,请务必保护您的升级前备份.

Then use the upgrade option to have TFS use your database backups. The full explanation on doing a cross domain server migration is documented on MSDN. Be sure to safeguard your pre-upgrade backup until you've verified a successful upgrade.

这篇关于复杂的 TFS 2017 升级的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆