Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all articles
Browse latest Browse all 4689

Huge xxx_log.ldf files problem...Urgent

$
0
0

Context SQL 2005 used by TFS 2008.

Some weeks ago i setup a weekly full backup and a nightly differential backup. Things were going OK until i ran out of disk space which is because of huge xx_log.ldf files.

We don't actively use logs for roll backs, we can live with the rare event of loosing a day's data.

We are getting errors in the logs, details below ...

I urgently need to know how to control this log beast to get things back on track ?
i.e. delete / disable / control the size of these log files.

Thanks

===================================

Errors

Attempt to truncate logs

Typical T-SQL script

use TfsIntegration
go
backup log TfsIntegration
with truncate_only
dbcc shrinkfile (TfsIntegration_log, 1)
go

Not all but some with errors

Failed:(-1073548784) Executing the query "backup log TfsActivityLogging
with truncate_only
dbcc shrinkfile (TfsActivityLogging_log, 1)
" failed with the following error: "Could not locate file 'TfsActivityLogging_log' for database 'master' in sys.database_files. The file either does not exist, or was dropped. ". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

Failed:(-1073548784) Executing the query "backup log TfsIntegration
with truncate_only
dbcc shrinkfile (TfsIntegration_log, 1)
" failed with the following error: "Could not locate file 'TfsIntegration_log' for database 'master' in sys.database_files. The file either does not exist, or was dropped. ". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

Failed:(-1073548784) Executing the query "backup log TfsVersionControl
with truncate_only
dbcc shrinkfile (TfsVersionControl_log, 1)
" failed with the following error: "Could not locate file 'TfsVersionControl_log' for database 'master' in sys.database_files. The file either does not exist, or was dropped. ". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
Failed:(-1073548784) Executing the query " backup log TFSWarehouse
with truncate_only
 dbcc shrinkfile (TFSWarehouse_log, 1)
" failed with the following error: "Could not locate file 'TFSWarehouse_log' for database 'master' in sys.database_files. The file either does not exist, or was dropped. ". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

Failed:(-1073548784) Executing the query " backup log TfsWorkItemTracking
with truncate_only 
dbcc shrinkfile (TfsWorkItemTracking_log, 1)
" failed with the following error: "Could not locate file 'TfsWorkItemTracking_log' for database 'master' in sys.database_files. The file either does not exist, or was dropped. ". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

Failed:(-1073548784) Executing the query "backup log TfsWorkItemTrackingAttachments
with truncate_only
dbcc shrinkfile (TfsWorkItemTrackingAttachments_log, 1)
" failed with the following error: "Could not locate file 'TfsWorkItemTrackingAttachments_log' for database 'master' in sys.database_files. The file either does not exist, or was dropped. ". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

Failed:(-1073548784) Executing the query "backup log STS_Content_TFS
with truncate_only
dbcc shrinkfile (STS_Content_TFS_log, 1)
" failed with the following error: "Could not locate file 'STS_Content_TFS_log' for database 'master' in sys.database_files. The file either does not exist, or was dropped. ". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

Full Backup Weekly Task

Check DB Integrity

Rebuild Index

Backup ALL databases
  Type: Full
  Overwrite Existing
  Destination Backup Device

Backup reporting services key

Truncate Transaction logs
e.g.
  use TfsActivityLogging backup log TfsActivityLogging with truncate_only dbcc shrinkfile (TfsActivityLogging_log, 1)
  (Note single line format, is this valid ?)

Errors

Failed:(-1073548784) Executing the query "ALTER INDEX [PK_tbl_Namespace] ON [dbo].[tbl_Namespace] REBUILD WITH ( PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON, SORT_IN_TEMPDB = OFF, ONLINE = OFF )
" failed with the following error: "The transaction log for database 'TfsVersionControl' is full. To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databases
The statement has been terminated.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

Daily Diff Backups

Databases: All user databases
Type: Differential
Overwrite Existing
Destination Backup device

This seems to run without error


Viewing all articles
Browse latest Browse all 4689

Trending Articles