TFS:从2005升级到2008并同时迁移到新硬件

发布于 2024-11-16 02:16:21 字数 1334 浏览 2 评论 0原文

我们当前的环境在单个服务器安装上安装了 TFS:

  • Windows Server 2003 标准版 SP2(32 位)
  • TFS 2005
  • SQL Server 2005 标准版

由于我们组织中不断推动虚拟化,我们需要将 TFS 迁移到新硬件。由于我们拥有 TFS 2008 的许可证,我们希望再次在单服务器安装上获得以下内容:

  • Windows Server 2008 32 位
  • TFS 2008
  • SQL Server 2008 Enterprise Edition(我们需要此许可证级别才能移动计算机) (在虚拟环境中)

最重要的是,我们必须保留代码签入历史记录。理想情况下,我们也希望保留所有入住日期和备注。

我发现了几个类似的问题:

将 TFS 2005 数据库附加并升级到 TFS 2008 安装

从 Team Foundation Server 2005 导入到 2008

但是第一个答案说只需阅读手册,浏览完后我找不到有关此特定场景的指导。第二个问题是一个稍微不同的场景,因为我们在新的 TFS 环境上还没有任何项目 - 我们甚至还没有构建它!我们可以从全新的 TFS 2008 安装开始。

那么问题是,如果有的话,最好的方法是什么?我们可以设置新环境并使用TFS集成工具 但由于限制,我们会丢失一些信息(例如入住备注)。

我想肯定有办法将 TFS 2005 数据库升级到 2008 版本并将它们附加到新的 SQL Server 吗?

如果有人可以提供建议,我将非常感激。

更新 是否可以备份现有的 TFS 2005 安装,然后将其升级到 2008,然后按照 这些说明

Our current environment has TFS on a single server installation:

  • Windows Server 2003 Standard Edition SP2 (32-bit)
  • TFS 2005
  • SQL Server 2005 Standard Edition

Due to an ongoing drive towards virtualisation in our organisation, we are required to move TFS to new hardware. As we have a licence for TFS 2008 we would like to end up with the following, again on a single server installation:

  • Windows Server 2008 32-bit
  • TFS 2008
  • SQL Server 2008 Enterprise Edition (we need this licence level to be able to move machines around on the virtual envionrment)

Most importantly, we must retain our code check-in history. Ideally, we would like to retain all our check-in dates and notes too.

I have found a couple of questions on SO that are similar:

Attach and upgrade TFS 2005 databases to a TFS 2008 installation

Import from Team Foundation Server 2005 into 2008

However the first answer says to just read the manual, and having looked through it I can't find guidance on this specific scenario. The second question is a slightly different scenario as we don't already have any projects on the new TFS environment - we haven't even built it yet! We have the benefit of starting with a brand new TFS 2008 installation.

The question is then, what is the best way of doing this, if any? We can set up the new environment and use the TFS Integration Tools but due to the limitations we will lose some information (e.g. check-in notes).

I'm thinking that there must surely be a way of upgrading the TFS 2005 databases to the 2008 version and attaching them to the new SQL Server?

If anyone can advise I'll be extremely grateful.

Update
Would it be possible to backup and then upgrade the existing TFS 2005 installation to 2008, and then perform a migration as per these instructions?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

暖阳 2024-11-23 02:16:21

如果是我,我会采取相反的方式:[将 TFS 2005 实例移动]到新硬件,然后从 2005 升级到 2008。原因是:万一升级过程中出现问题,您的旧硬件上仍然有一个运行的 2005 年服务器实例。

(如果您在现有的 2005 服务器上进行升级并且出现问题,则从备份恢复可能需要一段时间。)

If it were me, I would do it the opposite way: [move your TFS 2005 instance] to the new hardware, then do the upgrade from 2005 to 2008. The reason being: in the unlikely event that something goes wrong in the upgrade, you've still got a working 2005 server instance on your old hardware.

(If you do the upgrade on your existing 2005 server and something were to go wrong, that restore from backup could take a while.)

厌味 2024-11-23 02:16:21

感谢@Edward 的建议,这些建议完全有道理。不幸的是,在研究这样做时,我发现 Windows Server 2008 不支持 TFS 2005,因此我无法这样做。

我最终做了我最初建议的事情(就地升级然后迁移)。我列出了以下步骤,以防其他人想要这样做。请注意,这些步骤并不详尽,但它们是您需要遵循的一般过程,并提供指向正确文档的指针。

新服务器

  1. 设置 Windows Server 2008
  2. 安装先决条件(IIS、SQL
    2008)根据 TFS 2008
    安装指南
  3. 合并TFS 2008安装
    文件与 TFS 2008 SP1 以便
    支持 SQL 2008 (相同安装指南)
  4. 安装TFS 2008 SP1
    (相同的安装指南)
  5. 将 SQL 2008 升级到SP2修复了一个错误
    这阻碍了维护计划
    避免在没有 SSIS 的情况下运行
  6. 备份 TFS 和 SharePoint 数据库
  7. 备份 SSRS 加密密钥

旧服务器:

  1. 拍摄服务器映像以进行备份
  2. 停止 TFS/IIS 服务以增强稳定性
    数据库备份
  3. 备份 TFS 和 SharePoint 数据库
  4. 备份 SSRS 加密密钥
  5. 验证 SQL 2005 SP1 是否安装到
    支持TFS 2008
  6. 升级TFS 2005>> TFS 2008 根据
    TFS 2008 安装指南
  7. 将 TFS 2008 SP1 安装到支持SQL
    2008
  8. 备份 TFS 和 SharePoint
    数据库
  9. 备份 SSRS 加密密钥
  10. 升级 SQL 2005 > SQL 2008 按照
    MSDN指南
  11. 备份 TFS 和 SharePoint
    数据库
  12. 备份 SSRS 加密密钥
  13. 升级 Windows SharePoint Services
    2.0> WSS 3.0(新服务器是Windows Server 2008,仅
    支持 3.0),按照 MSDN 指南
  14. 安装 SQL 2008 SP2
  15. 按照 MSDN
    指南

我首先在一些一次性虚拟服务器上尝试了这一切,这是非常值得的。整个过程(包括测试、与用户沟通等)花了一周多的时间!

Thanks to @Edward for his advice which made complete sense. Unfortunately on looking into doing this, I discovered that TFS 2005 is not supported on Windows Server 2008 so I couldn't do it that way round.

I ended up doing what I initially suggested (in place upgrade and then migration). I have listed the steps below in case anyone else ever wants to do this. Please note that these steps are in no way exhaustive but they are the general process you need to follow with pointers to the correct documentation.

New server:

  1. Set up Windows Server 2008
  2. Install prerequisites (IIS, SQL
    2008) according to the TFS 2008
    installation guide
  3. Merge the TFS 2008 installation
    files with TFS 2008 SP1 in order to
    support SQL 2008 (same installation guide)
  4. Install TFS 2008 SP1
    (same installation guide)
  5. Upgrade SQL 2008 to SP2 to fix a bug
    which prevented maintenance plans
    from running without SSIS
  6. Back up TFS and SharePoint databases
  7. Back up the SSRS encryption key

Old server:

  1. Take image of server for backup
  2. Stop TFS/IIS services for robust
    database backup
  3. Back up TFS and SharePoint databases
  4. Back up the SSRS encryption key
  5. Verify SQL 2005 SP1 is installed to
    support TFS 2008
  6. Upgrade TFS 2005 > TFS 2008 as per
    TFS 2008 installation guide
  7. Install TFS 2008 SP1 to support SQL
    2008
  8. Back up TFS and SharePoint
    databases
  9. Back up the SSRS encryption key
  10. Upgrade SQL 2005 > SQL 2008 as per
    MSDN guide
  11. Back up TFS and SharePoint
    databases
  12. Back up the SSRS encryption key
  13. Upgrade Windows SharePoint Services
    2.0 > WSS 3.0 (new server is Windows Server 2008 which only
    supports 3.0) as per MSDN guide
  14. Install SQL 2008 SP2
  15. Perform TFS migration as per MSDN
    guide

I tried this all out first on some disposable virtual servers which was very worthwhile. The whole process (including testing, communicating to users, etc.) has taken well over a week!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文