TFS 备份可以恢复到具有不同 NETBIOS 名称的机器吗?
Can a TFS backup be restored to a machine with different NETBIOS name?
我正在做 hardware and a domain migration, as well as upgrading my TFS instance from 2015.3 to 2017.1. I first discussed this project (and received some VERY helpful suggestions) 。
这是我现在拥有的基础设施:
Hostname Operating System
SERVER1 Hyper-V Host 2012 r2
SERVER2 Server Essentials 2012 R2
SERVER3 Server 2012 R2 (TFS 2015.3)
DB Windows 10 (SQL 2014)
...这是计划内容:
Hostname Operating System
SERVER1 Hyper-V Host 2016
SERVER2 Server Essentials 2016
SERVER3 Server 2016 (TFS 2017.1 & SQL 2016)
新旧域具有相同的描述性名称(例如 DOMAIN)。出于本问答的目的,今后我将引用旧域中带有前导下划线的任何 VM(例如 _SERVER3)。
我的问题是硬件迁移指南没有指出 TFS 还原操作是否可以在 NETBIOS 名称与备份计算机名称不同的计算机上 运行拍了。
我已经为这个项目设置了一个临时的 _SERVER4,作为域迁移的一部分,我将作为 SERVER4 加入新域,但我不知道这是否有效。 _SERVER3 具有不同的 machine/domain SID,当然,如果我恢复到 _SERVER4,这可能会混淆 TFS。
然后我将在新域上建立一个新的、干净的 SERVER3,并从 SERVER4 上的备份中恢复。同样的问题。
这真的是个问题吗——将备份恢复到不同的机器名、相同的域——还是我太谨慎了,只是想出了一个根本不存在的问题?
好的,这可以工作。
我现在是在 _SERVER4 上 运行 一个已恢复的 TFS 实例 error-free,来自在 _DB 上进行的备份。不过,它并非一帆风顺:
- TFS backup/restore doesn't touch the Analysis Services database, so we have to manage that manually
RS 配置默认需要安全连接,must be disabled:
- In Windows Explorer, locate the ReportServer directory. The following path is the default path of this directory:
C:\Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services\ReportServer
- Right-click
RSReportServer.config
, click Open With, click Notepad and then click OK.
- Locate the following Add Key entry:
<Add Key="SecureConnectionLevel" Value="2"/>
- Change the Value setting from 2 to 0
当数据库服务器名称也发生变化时,我们必须执行a bit of a hack:
DELETE FROM [ReportServer].[dbo].[Keys] WHERE MachineName = 'YourSourceServerName'
其中 None 需要 OS 或重新启动服务。只需应用更改并重试。
正如@jessehouwing 指出的那样,在配置向导中我们必须更新服务器名称。但总的来说,除了上面列出的几个小问题,整个过程还是很顺利的。 (而频繁的检查点对这一成功绝对至关重要。)
现在进行域迁移...特别感谢 Jesse 在此方面提供的所有帮助。
我正在做 hardware and a domain migration, as well as upgrading my TFS instance from 2015.3 to 2017.1. I first discussed this project (and received some VERY helpful suggestions)
这是我现在拥有的基础设施:
Hostname Operating System SERVER1 Hyper-V Host 2012 r2 SERVER2 Server Essentials 2012 R2 SERVER3 Server 2012 R2 (TFS 2015.3) DB Windows 10 (SQL 2014)
...这是计划内容:
Hostname Operating System SERVER1 Hyper-V Host 2016 SERVER2 Server Essentials 2016 SERVER3 Server 2016 (TFS 2017.1 & SQL 2016)
新旧域具有相同的描述性名称(例如 DOMAIN)。出于本问答的目的,今后我将引用旧域中带有前导下划线的任何 VM(例如 _SERVER3)。
我的问题是硬件迁移指南没有指出 TFS 还原操作是否可以在 NETBIOS 名称与备份计算机名称不同的计算机上 运行拍了。
我已经为这个项目设置了一个临时的 _SERVER4,作为域迁移的一部分,我将作为 SERVER4 加入新域,但我不知道这是否有效。 _SERVER3 具有不同的 machine/domain SID,当然,如果我恢复到 _SERVER4,这可能会混淆 TFS。
然后我将在新域上建立一个新的、干净的 SERVER3,并从 SERVER4 上的备份中恢复。同样的问题。
这真的是个问题吗——将备份恢复到不同的机器名、相同的域——还是我太谨慎了,只是想出了一个根本不存在的问题?
好的,这可以工作。
我现在是在 _SERVER4 上 运行 一个已恢复的 TFS 实例 error-free,来自在 _DB 上进行的备份。不过,它并非一帆风顺:
- TFS backup/restore doesn't touch the Analysis Services database, so we have to manage that manually
RS 配置默认需要安全连接,must be disabled:
- In Windows Explorer, locate the ReportServer directory. The following path is the default path of this directory:
C:\Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services\ReportServer
- Right-click
RSReportServer.config
, click Open With, click Notepad and then click OK. - Locate the following Add Key entry:
<Add Key="SecureConnectionLevel" Value="2"/>
- Change the Value setting from 2 to 0
- In Windows Explorer, locate the ReportServer directory. The following path is the default path of this directory:
当数据库服务器名称也发生变化时,我们必须执行a bit of a hack:
DELETE FROM [ReportServer].[dbo].[Keys] WHERE MachineName = 'YourSourceServerName'
None 需要 OS 或重新启动服务。只需应用更改并重试。
正如@jessehouwing 指出的那样,在配置向导中我们必须更新服务器名称。但总的来说,除了上面列出的几个小问题,整个过程还是很顺利的。 (而频繁的检查点对这一成功绝对至关重要。)
现在进行域迁移...特别感谢 Jesse 在此方面提供的所有帮助。