Welcome to MSDN Blogs Sign in | Join | Help

Real-Time Visibility Through Technology

"Never innovate to compete, innovate to change the rules of the game" - David O. Adeife

News

About me

My Photo

Sr. Product Manager,BizTalk RFID



Disclaimer

These postings are provided "AS IS" with no warranties and confer no rights.
TFS Failover: SQL Mirroring

Some of you may have read by previous post on Mirroring with TFS at http://blogs.msdn.com/sudhir/archive/2006/10/30/using-sql-mirroring-with-tfs.aspx. This post is for Orcas or VS2008 release.

TFS leverages SQL Server for storing data. This allows our customer to leverage various failover options that come with SQL Server. SQL Mirroring is a great option. You can use clustering if you need automatic failover but if a small downtime is acceptable Mirroring is a good solution. TFS does not support automatic failover with mirroring. Few manual steps need to be executed when the primary server fails with mirroring in TFS. Following are the high level steps required to use mirroring.

The process of configuring a TFS deployment for mirroring can be defined in following steps

  1. Backup databases from the main Data Tier Server(Principal server)
  2. Restore backed up databases on mirror server.
  3. Setup Mirroring for each database between Principal and Mirrored servers
  4. Perform manual Failover to enable Mirrored Server as principal server.
    1. Manual failover when primary server is available can be performed using Management studio
    2. Manual failover when primary server is unavailable(Forced service Failover) can be performed using ALTER DATABASE command in TSQL Statements.

      ALTER DATABASE database_name SET PARTNER FAILOVER, where database_name is the mirrored database.

  5. Map Application Tier to talk to new Data Tier(Mirror Server) using TFSAdminUtil RenameDT
    1. You can run repair on Application Tier machine which will fix the Data tier
    2. TfsDb.exe repair /server:<servername> /property: "TFS_SERVICE_ACCOUNT=<TFSServiceAC>; TFS_REPORTING_ACCOUNT=<TFSReportingAC>; LCID=1033; VSTF_AS_INSTANCE=<ASInstance>; VSTF_AS_DATABASE=TfsWarehouse;VSTF_AS_ACCOUNT="

TFS Databases: TfsBuild, TfsIntegration, TfsVersionControl, TfsWarehouse, TfsWorkItemTracking, TfsWorkItemTrackingAttachments, TfsActivityLogging

Comments

Team System News said:

Sudhir Hasbe on TFS: Failover options and TFS Failover: SQL Mirroring. Mithund on geekSpeak recording...

# September 24, 2007 9:07 AM

El Bruno said:

Buenas, cómo había comentado hace 2 días , el completo FAQ para la instalación y administración de TFS

# March 10, 2008 11:41 AM

El Bruno said:

Buenas, cómo había comentado hace 2 días , el completo FAQ para la instalación y administración de TFS

# July 5, 2008 3:11 AM

El Bruno said:

Buenas, cómo había comentado hace 2 días, el completo FAQ para la instalación y administración de TFS...

# July 5, 2008 3:11 AM

El Bruno said:

Buenas, cómo había comentado hace 2 días , el completo FAQ para la instalación y administración de TFS

# July 5, 2008 3:13 AM

Microsoft Japan Forum Operators Blog said:

こんにちは! フォーラム オペレーターの服部清次です。 ^o^ ついに、アメリカではオバマ新大統領が誕生しましたね。 僕は、昨日の夜、テレビでオバマ新大統領の就任演説を見ようと頑張って起きていたのですが、直前に落ちてしまいました。。。

# January 20, 2009 8:27 PM
Anonymous comments are disabled
Page view tracker