如何删除 TFS 应用程序层中显示的计算机名称
How to remove Machine names display in TFS Application tiers
我目前正在构建非生产 TFS 2015 环境。我正在将包括数据库在内的数据库从生产环境恢复到新的 QA 数据库实例。我使用 TFSRestore.exe 执行了数据库恢复。还原工作成功。
在 TFS QA 中,然后我安装应用程序层并配置到 TFS QA 和 TFS QA 服务帐户。
然后我做了 RemapDBs,Reset Owner,RegisterDB 然后启动服务。然后我将通知 URL 更改为指向 QA TFS Url。
奇怪的是,我可以看到在 Applications Tiers 中,我可以看到显示了 2 个机器名称。一个是 TFS Prod 机器和 TFS QA 机器名称。如何删除应用程序层部分下的生产 TFS 机器名称。
我勾选了复选框"Filter out machines that have not connected in more than 3 days"
3 天后,TFS Prod 机器从“应用程序层”部分中删除。因为我想就地升级到下一个版本,所以这样做安全吗?我怎么知道这不会影响 TFS Prod?
我做了 运行
TFSConfig ChangeServerID /SQLInstance:SPTEST\Contoso /DatabaseName:Tfs_Configuration /ProjectCollectionsOnly
因此,它在 TFS_configuration.tbl_ServiceHost 中创建了新的主机 ID(Guid 编号)。但是,当我 select Team Foundation Server 中的一个项目时,我收到一个错误 TF31001: Cannot connect to Team Foundation Server at Project1. The server returned the following error. Value cannot be null. Parameter name: service Definition
通过删除缓存文件夹下的任何内容来解决此问题
c:\users[用户名]\Appdata\Local\Microsoft\TeamFoundation.0\Cache
根据你的描述,你的场景应该是Move or Clone Team Foundation Server from one hardware to another
(Clone option) Reconfigure server IDs and remap databases:
Perform the next set of steps on the new application-tier server if
you intend to continue using the original TFS instance. These steps
are necessary to avoid the risk of corruption of one or both
deployments. If both servers are live, you could end up with
corruption, particularly if they are pointing to the same SharePoint
or reporting resources.
所以,请尝试Reconfigure server IDs and remap databases. If that still not work, I'm afriad that you have to remove the DB instance and reconfigure the QA envrionment step by step following the instruction mentioned here。
更新:
您似乎只是 恢复了一个应用层服务器 而不是 Move or Clone Team Foundation Server from one hardware to another
为了恢复应用层服务器,旧的应用层服务器的名称应该保留在那里(见this article的结尾)。
Note: The name of the old application-tier server will still appear in
the list of application-tier servers in the administration console for
Team Foundation. If you select the Filter out machines that have not
connected in more than 3 days check box, the old server will disappear
from the list within three days.
因此,为了避免显示旧的 App Tier 机器名称,您需要按照我在原始答案中提到的 Move or Clone Team Foundation Server from one hardware to another 的步骤进行操作。
Note: You must install but not configure TFS on the new data-tier
server, and then use the restore function in the Scheduled Backups
node
我也遇到了这个问题。我按照所有克隆步骤移动到我的新 TFS 框,然后我启动并 运行,在 运行 命令 TFSConfig ChangeServerID 之后。
但是在新服务器上,在“应用层”>“应用层”下,我看到了两台服务器。
新的 SQL 框和旧的 TFS 框!
这是在 TFS 2017 上。
我目前正在构建非生产 TFS 2015 环境。我正在将包括数据库在内的数据库从生产环境恢复到新的 QA 数据库实例。我使用 TFSRestore.exe 执行了数据库恢复。还原工作成功。
在 TFS QA 中,然后我安装应用程序层并配置到 TFS QA 和 TFS QA 服务帐户。
然后我做了 RemapDBs,Reset Owner,RegisterDB 然后启动服务。然后我将通知 URL 更改为指向 QA TFS Url。
奇怪的是,我可以看到在 Applications Tiers 中,我可以看到显示了 2 个机器名称。一个是 TFS Prod 机器和 TFS QA 机器名称。如何删除应用程序层部分下的生产 TFS 机器名称。
我勾选了复选框"Filter out machines that have not connected in more than 3 days"
3 天后,TFS Prod 机器从“应用程序层”部分中删除。因为我想就地升级到下一个版本,所以这样做安全吗?我怎么知道这不会影响 TFS Prod?
我做了 运行 TFSConfig ChangeServerID /SQLInstance:SPTEST\Contoso /DatabaseName:Tfs_Configuration /ProjectCollectionsOnly
因此,它在 TFS_configuration.tbl_ServiceHost 中创建了新的主机 ID(Guid 编号)。但是,当我 select Team Foundation Server 中的一个项目时,我收到一个错误 TF31001: Cannot connect to Team Foundation Server at Project1. The server returned the following error. Value cannot be null. Parameter name: service Definition
通过删除缓存文件夹下的任何内容来解决此问题 c:\users[用户名]\Appdata\Local\Microsoft\TeamFoundation.0\Cache
根据你的描述,你的场景应该是Move or Clone Team Foundation Server from one hardware to another
(Clone option) Reconfigure server IDs and remap databases:
Perform the next set of steps on the new application-tier server if you intend to continue using the original TFS instance. These steps are necessary to avoid the risk of corruption of one or both deployments. If both servers are live, you could end up with corruption, particularly if they are pointing to the same SharePoint or reporting resources.
所以,请尝试Reconfigure server IDs and remap databases. If that still not work, I'm afriad that you have to remove the DB instance and reconfigure the QA envrionment step by step following the instruction mentioned here。
更新:
您似乎只是 恢复了一个应用层服务器 而不是 Move or Clone Team Foundation Server from one hardware to another
为了恢复应用层服务器,旧的应用层服务器的名称应该保留在那里(见this article的结尾)。
Note: The name of the old application-tier server will still appear in the list of application-tier servers in the administration console for Team Foundation. If you select the Filter out machines that have not connected in more than 3 days check box, the old server will disappear from the list within three days.
因此,为了避免显示旧的 App Tier 机器名称,您需要按照我在原始答案中提到的 Move or Clone Team Foundation Server from one hardware to another 的步骤进行操作。
Note: You must install but not configure TFS on the new data-tier server, and then use the restore function in the Scheduled Backups node
我也遇到了这个问题。我按照所有克隆步骤移动到我的新 TFS 框,然后我启动并 运行,在 运行 命令 TFSConfig ChangeServerID 之后。 但是在新服务器上,在“应用层”>“应用层”下,我看到了两台服务器。 新的 SQL 框和旧的 TFS 框! 这是在 TFS 2017 上。