In this page we will look at upgrading an existing TFS2008 server to TFS2010. We assume you are using a single server configuration and have a DNS entry setup for external access at tfs.yourdomain.com.
Upgrading Team Foundation Server can be a daunting task. Be assured that things have become easier and if you follow this guide, it will minimize your downtime.
Run your daily backups to provide a safety net should things go wrong.
Confirm that the TFS2008 databases were backed up last night.
a. TfsActivityLogging
b. TfsBuild
c. TfsIntegration
d. TfsVersionControl
e. TfsWarehouse
f. TfsWorkItemTracking
g. TfsWorkItemTrackingAttachments
Figure: If you can’t see the physical .bak file for all these, chase up your DBA
Create a backup of the TFS2008 databases by running your Daily Backup maintenance plan on TFS2008
Figure: Before starting, kick off the daily backups
Run your daily backups to provide a safety net should things go wrong.
Have coffee (2 hours)
Coffee
BTW: A good user interface should have a coffee image
[TODO: Martin to create new rule in "Rules to better UI"]
[TODO: Martin to add suggestion to TFS]
TFS Upgrade Wizard - Configure - Upgrade Process
Have coffee (2 hours)
Coffee
BTW: A good user interface should have a coffee image
[TODO: Martin to create new rule in "Rules to better UI"]
[TODO: Martin to add suggestion to TFS]
TFS Upgrade Wizard - Configure - Upgrade Process
Running the "Dog Food" stats on your new TFS 2010 server is a good way to see if the upgrade was successful. You should check the new values against the stats you noted down from your TFS 2008 server.
On TFS2010, run the DogFoodStats queries and save the results
Compare the numbers are the same
Note: Number will differ slightly (usually increases as TFS2010 checks in a few more items)
Note: Grant Holliday has never published exactly why they are not the same.
TFS2008
-- Files:
1 28052
2 335168
-- Compressed file size:
11837952896
-- Uncompressed file sizes:
24868196032
-- Areas & Iterations:
1096
Figure: Have a look at the dogfoodstats you ran before
TFS2010
-- Areas and Iterations:
1096
-- Files:
347629
-- Compressed File Sizes:
11296
-- Uncompressed File Sizes:
23723
Figure: You should get the same number or more for your TFS2010 server. We’re not worried unless it’s slightly less
Running the "Dog Food" stats on your new TFS 2010 server is a good way to see if the upgrade was successful. You should check the new values against the stats you noted down from your TFS 2008 server.
If you have already done some test migrations on the new server there is no need to start from scratch. Just follow these simple steps and you will be up and running in no time.
Open the Team Foundation Server Admin Console
Click Application Tier | Team Project Collections | Detach Team Project Collection
Detach Team Project CollectionFigure: Remove the old Team Project Collection from the server.
Delete the Tfs_* databases except Tfs_Configuration from SQL Server Management Studio
Delete the Tfs_Analysis database from SQL Server Analysis Server.
Copy the TFS2010 backups to TFS2010 server (e.g. C:\TfsBackups)
Restore the databases to the TFS2010’s SQL 2008 Server
In the Team Foundation Server Admin Console
Click Application Tier | Team Project Collections |Attach Team Project Collection
Attach Team Project Collection
If you have already done some test migrations on the new server there is no need to start from scratch. Just follow these simple steps and you will be up and running in no time.
Open the Team Foundation Server Admin Console
Click Application Tier | Team Project Collections | Detach Team Project Collection
Detach Team Project CollectionFigure: Remove the old Team Project Collection from the server.
Delete the Tfs_* databases except Tfs_Configuration from SQL Server Management Studio
Delete the Tfs_Analysis database from SQL Server Analysis Server.
Copy the TFS2010 backups to TFS2010 server (e.g. C:\TfsBackups)
Restore the databases to the TFS2010’s SQL 2008 Server
In the Team Foundation Server Admin Console
Click Application Tier | Team Project Collections |Attach Team Project Collection
Attach Team Project Collection
If you are going to be integrating TFS 2010 with SharePoint 2010 then there are a few things you need to do.
Single Server Deployment
If you want to run SharePoint 2010 on the same box as TFS 2010 then make sure you install it before you install TFS 2010. You will then have to use the custom configuration wizard so you can use the existing SharePoint instance.
Multi-Server Deployment
If you are going to have SharePoint 2010 on a separate server to your TFS 2010 then you will need to again run the Custom configuration wizard, but you will also need to Integrate your SharePoint 2010 instance with TFS 2010.
If you are going to be integrating TFS 2010 with SharePoint 2010 then there are a few things you need to do.
Most of your reports (built in and custom) will be broken as the database schema has significantly changed.
To be ready for this, do a test migration and update any custom reports against the new database schema. That way, when your live server is up and running, your reports will be ready.
See John Socha-Leialoha's post for a good write up about what has changed and how to get your reports working.
Most of your reports (built in and custom) will be broken as the database schema has significantly changed.
To be ready for this, do a test migration and update any custom reports against the new database schema. That way, when your live server is up and running, your reports will be ready.
See John Socha-Leialoha's post for a good write up about what has changed and how to get your reports working.