Migrate TFs 2012 service to new computer hardware

Source: Internet
Author: User
Tags server website delete cache

When TFs 2012 was migrated, some problems were encountered. There were very few Chinese records and the English records were scattered. the most direct and simple method was recorded here.

Environment:

1. In the company domain environment, all TFs users are company domain accounts.

2. TFs is transferred from one server to another. All servers are added to the Company domain. The machine names are pC1 and pc2. no computer with the same name exists in the domain.

PrepareThe TFS environment should be exactly the sameOtherwise, you may encounter various strange problems.

Our environment is TFs 2012 Update4-ENG + SQL Server 2008r2 SP2-ENG + windows 2008r2 (the operating system can be different ).

Installation path: Our TFs is installed on E: \ Program Files \ microsoft team Foundation server 11.0, and SQL is also installed on the E disk.

 

Migration steps:

1. Run the command line as the administrator of pC1 on the old server and enter the directory "E: \ Program Files \ microsoft team Foundation server 11.0 \ tools ". Tfs2010 also has this tool Directory, which is not the same as the previous path.

2. Stop the TFS service so that someone may check in \ check out during migration. Run the command: tfsservicecontrol quiesce

3. Run tfsbackup.exe in the tools directory, select the database to be backed up, and back up all. TFS database backup is automatically selected by default.

4. Copy the *. Bak file backed up to the new server pc2.

5. The Administrator enters the tools directory of the new server and runs: tfsrestore.exe. Restore and overwrite all databases. If it cannot be recovered, it may be that the database has been configured or is in use. The TFS service can be stopped, and the IIS website service will be restored again.

6. Open the TFS console to check whether the migration is successful. If the migration is successful, change URLs in application tiers and Change Notification URLs to http: // PC2: 8080/TFS.

7. There is another trouble after the migration. In the TFS console of Pc2, click group membership to report the error tf30046, indicating that the instance information is incorrect and the client cannot be connected. To fix the problem, see the following steps.

8. You need to reconfigure TFs. First, go to the Registry, find HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ teamfoundationserver \ 11.0 \ installedcomponents \ applicationtier, and change isconfigured from 1 to 0.

9. In the toolsdirectory, the Administrator runs the command line and enters the command line tfsmgmt.exe configure to go to TFs for reconfiguration. If the registry is not changed, all configurations are gray and cannot be modified. If yes, select Application-tier only to start reconfiguration. Two errors may occur during configuration. First, the website has occupied the port. In this case, you need to go to IIS management, stop the team Foundation server website, change the name or delete it. Second, enter the SC Delete tfsjobagent command in the administrator command line to delete the tfsjobagent service. After completing these two steps, you should be able to reconfigure the configuration successfully.

10. It is useless to delete cache in some places on the Internet. In addition, the option to find application tier reconfiguration in the TFS console may not be found in tfs2012. Changing Web. config does not work, and fixing and installing TFs does not work. Only steps 8 and 9 above are simple and useful. The tf30046 error can be fixed.

11. After the configuration is complete, the TFS console is automatically displayed. Click group membership to check whether the management permission can be opened. If yes, the migration is successful.

12. to resume running the TFS service, enter tfsservicecontrol unquiesce.

 

The client can connect to the new TFs server as long as the server is changed to pc2. the workspace will not change.

You can also change the name of the new server to pC1 after the old server is offline. If any problem occurs after the new server is started, configure it again. The client can be used without any changes.

 

Refer:

Http://social.msdn.microsoft.com/Forums/vstudio/en-US/93dbae15-e96f-48e0-9072-5c938a5e27c2/error-after-restoring-tfs-database-to-new-hardware? Forum = tfsgeneral

Http://distefano.biz/blog/index.php/2012/12/05/reopen-team-foundation-configuration-wizard/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.