Azure Devops 克隆到新环境

时间:2021-07-27 07:08:45

标签: azure-devops-server azure-devops-server-2020 tfs-2018

目前我正在尝试将我们的 tfs2018 服务器升级到本地 Devops2020 服务器。

我们有多个集合,我们决定将非关键集合迁移到新服务器,为它们配置所有构建代理,然后稍后迁移关键集合。

在需要时混淆信息

  • 所以我们已经从 tfs2018 服务器上分离了所需的集合。
  • 做了一个数据库备份,
  • 将所有数据库复制到一个新实例(sqlserver/tfs 到 sqlserver/devops)
  • 在新服务器上安装了 devops2020
  • 运行服务器配置向导
  • 使用实例 sqlserver\devops(它看到配置数据库)
  • 生产升级
  • 为其余部分设置所有字段,然后进行就绪检查,但失败

TF246064: No database could be found for the following host: Intranet Apps. The host has the following ID: #THEGUID#. To fix this problem, use the TFSConfig RemapDBs command-line tool and make sure that you specify the SQL Server instance that contains this database.

尝试运行 remapdbs

TfsConfig remapDBs /DatabaseName:sqlserver\devops;Tfs_Configuration /SQLInstances:sqlserver\devops /preview

我也遇到了同样的问题。


TF246064: No database could be found for the following host: Intranet Apps. The host has the following ID: #THEGUID#. To fix this problem, use the TFSConfig RemapDBs command-line tool and make sure that you specify the SQL Server instance that contains this database.

我查看 db sql\devops tfs_configuration 查看 [Tfs_Configuration].[dbo].[tbl_ServiceHost] 然后看到

主机 ID:#THEGUID#

名称:内联网应用

数据库 ID:4

我看着 [Tfs_Configuration].[dbo].[tbl_Database]

<块引用>

数据库 ID :4
ConnectionString:数据源=sqlserver\tfs;初始目录=Tfs_DefaultCollection;集成安全=真sqlserver\tfs; 数据库名称:Tfs_DefaultCollection

我查看 DefaultCollection db 的属性并查看

<块引用>

TFS_SNAPSHOT_COLLECTIONID:#THEGUID#

<块引用>

TFS_SNAPSHOT_STATE:完成

看起来在我加入和旧版本之前,他们可能已将 DefaultCollection 重命名为 Intranet Apps,但据我所知,这不会破坏任何内容。 在这一点上不确定我的意思是不要删除 servicehost 表中的条目

0 个答案:

没有答案