DCSIMG
Known Issues And Workarounds – September 2010 Power Tools Backup And Restore Functionality - Eran Ruso
Sign in | Join | Help

Known Issues And Workarounds – September 2010 Power Tools Backup And Restore Functionality

פורסם בתאריך Oct 02 2010, 07:56 PM על ידי Eran Ruso | ישנם 5 תגובות

In September 2010 we have received a new TFS 2010 Power Tools.

One of the main features released with this Power Tools was a Backup and Restore wizards for the TFS 2010 Administrator Console, that functionality lets us create a Backup Plan for the TFS easily and with no special knowledge with the Maintenance Plans of SQL Server.

Brian Harry has reported some issues with this functionality and some workarounds for these issues in his post: “Known Issues with the Backup/Restore Power Tool”

Brian said that all issues will be fixed in the next Power Tools Version target for January 2011.

I have copied all the issues from his post…

Have Fun!!!

#1: The backup plan wizard cannot find Reporting Services databases when the report server is using an FQDN

Workaround:

  1. From the wizard, on the External Databases page, uncheck Include Reporting databases
  2. Configure the backup plan without RS databases and close the wizard.
  3. Open this file "SYSTEM DRIVE:\ProgramData\Microsoft\Team Foundation\Server Configuration\ConfigPT.xml" and add the Reporting node below as follows right after the </TfsWarehouse> closing node that’s already in the file.
  <Reporting>
    <Database Name="ReportServer">SQL_INSTANCE_NAME</Database>
    <Database Name="ReportServerTempDb">SQL_INSTANCE_NAME</Database>
  </Reporting>

Then modify what you’ve pasted in as follows:

SQL_INSTANCE_NAME should be replaced with the instance name for the Reporting Services database server.  If it is the default instance (which is the default for an RS install), you can just put in the server name of the SQL Server that holds the RS databases.  If you have modified SQL to use a named instance then replace SQL_INSTANCE_NAME with servername\instancename for the Reporting Services database instance.

“ReportServer” and “ReportServerTempDb” should be replaced with the correct reporting database names – these are the SQL defaults but if you changed them in SQL, you will need to change them here.

#2: The configuration fails with the message "Value does not fall within the expected range".

The problem is that the wizard cannot set the interval for the transactional backups schedule in the wizard's advanced option using Windows Scheduled Tasks v1.  We’ve seen this issue on Windows Server 2003 – 2008 and 2008 R2 work fine.

Workaround:

Create a nightly full backup using the wizard and then schedule the transactional and differential backups manually through windows scheduled tasks. The commands you need your scheduled tasks to run are

TFSConfigPT.exe TfsTransactionalBackup

and

TFSConfigPT.exe TfsDifferentialBackup

#3: Backup retention duration can’t be set to less than 30 days

Workaround:

Open this file "SYSTEM DRIVE:\ProgramData\Microsoft\Team Foundation\Server Configuration\ ConfigPT.xml"  and modify the node RetentionDays

#4: Cannot cancel the backup task from the console once it starts

No workaround.

#5: You receive the error "Invalid value specified for AFTER parameter." when restoring the transactional backups

Workaround:

Set the dateformat in sql to year/months/days format by executing this command:

set dateformat ymd

This issue is addressed in this kb article

#6: The wizard does not backup the report server encryption key and it does not backup TFS analysis services.

Workaround:

Backup the RS encryption key manually – you only need to do it once.  It doesn’t change.  The TFS documentation on backing up and restoring explains how to do this: http://msdn.microsoft.com/en-us/library/ms400729(v=VS.100).aspx

#7: Backups timeout after 10 minutes

The backup of any given database will timeout after 10 minutes (obviously we didn’t test this on very big databases :().  This is probably the most serious issue in this list.  There is no work around because 10 minutes is the default SQL connection timeout and our code doesn’t override it.  You can be sure we’ll fix this for the next release (maybe 24 hours would be safer :)).

Workaround:

No workaround.

רשימת תגובות

# re: Known Issues And Workarounds – September 2010 Power Tools Backup And Restore Functionality

פורסם בתאריך Friday, November 05, 2010 10:01 AM על ידי Frank Krippendorf  

Regarding #3

On 2003 Server the file ConfigPt.xml may be located at:

C:\Documents and Settings\All Users\Application Data\Microsoft\Team Foundation\Server Configuration

# re: Known Issues And Workarounds – September 2010 Power Tools Backup And Restore Functionality

פורסם בתאריך Tuesday, November 09, 2010 3:33 AM על ידי Sanjay Kumar  

HI Guys,

I had the same problem, but there is an easy fix

go to your SQL Server, connect to the required instance of SQL server with SQL Server Management Studio

right Click on the Server instace, go to properties

Choose Connection tab

and change the Remote Connection Time out limit from 600 Seconds to your required limit, you can make it double

Cheers!

# re: Known Issues And Workarounds – September 2010 Power Tools Backup And Restore Functionality

פורסם בתאריך Wednesday, November 10, 2010 5:28 AM על ידי Sanjay Kumar  

One more thing to check is make sure your database log files are small, which will help you in fast backups and restore.

in SQL server 2005, we can truncate logs, but in SQL server 2008, if we are using full recovery mode, the logs will not be deleted from the disk, even if they are non-active transactional logs (like after full backup of Transactional logs with truncate logs option in SQL Server 2008).

the workaround to this problem is

once in a month, with the help of a script, I am changing all the databases to simple recovery mode, then shrink the log files and then change back those Databases to Full recovery mode. the whole process takes around 30 seconds.

the above solution reduce my transactional logs from 10GB to 10MB in total

and reduce backup time from 12 minutes to 3 minutes for all the databases.

if you need more help or need scripts let me know - Cheers!

Sanjay

skrishi100@gmail.com

# re: Known Issues And Workarounds – September 2010 Power Tools Backup And Restore Functionality

פורסם בתאריך Monday, November 22, 2010 4:50 PM על ידי g1oyle3  

It is good point to say that ProgramData is hidden by default

# re: Known Issues And Workarounds – September 2010 Power Tools Backup And Restore Functionality

פורסם בתאריך Thursday, November 25, 2010 5:06 PM על ידי IvanF  

We have an additional problem when we try to restore a backup set composed by 1 full, multiple differential and transaction. Restore of full database works, but then differential applied is only the latest available and therefore it fails.

שלח תגובה

(שדה חובה) 
(שדה חובה) 
(אופציונלי)
(שדה חובה) 

Enter the numbers above: