Solved

How to resolve SQL Server 2000 trans log backup failure with "Server: Msg 3202, Level 16, State 1, Line 1"

Posted on 2014-10-01
2
181 Views
Last Modified: 2014-10-01
I inherited a SQL Server 2000 environment and am scrambling to give it some care and feeding. Backups had not completed successfully for a long time. Therefore, even though the databases are all of a reasonable size, under 1GB, one database transaction log has grown to 16GB.

I was able to backup all of the databases successfully. However, one database has a HUGE transaction log file. WHen I tried to back it up, it failed after 45 minutes.

The command I used to back it up is: backup LOG TRACKIT70_DATA1 to DISK='C:\Tibackup\SQL_SERVER_BACKUPS\TRACKIT70_DATA1_TLOG_backup-1.trn'

-- Tlog backup failed with this message:
Server: Msg 3202, Level 16, State 1, Line 1
Write on 'C:\Tibackup\SQL_SERVER_BACKUPS\TRACKIT70_DATA1_TLOG_backup-10012014-1.trn' failed, status = 33.
See the SQL Server error log for more details.
Server: Msg 3013, Level 16, State 1, Line 1
BACKUP LOG is terminating abnormally.

I have these from SQL Server error log :
BackupMedium::ReportIoError: write failure on backup device 'C:\Tibackup\SQL_SERVER_BACKUPS\TRACKIT70_DATA1_TLOG_backup-1.trn'.
Operating system error 33(The process cannot access the file because another process has locked a portion of the file.).

BACKUP failed to complete the command backup LOG TRACKIT70_DATA1 to DISK='C:\Tibackup\SQL_SERVER_BACKUPS\TRACKIT70_DATA1_TLOG_backup-1.trn'

Internal I/O request 0x63E94A38: Op: Write, pBuffer: 0x06480000, Size: 983040, Position: 10659940864, UMS: Internal: 0x103, InternalHigh: 0x0, Offset: 0x7B61CA00, OffsetHigh: 0x2, m_buf: 0x06480000, m_len: 983040, m_actualBytes: 0, m_errcode: 33,  BackupFile: C:\Tibackup\SQL_SERVER_BACKUPS\TRACKIT70_DATA1_TLOG_backup-1.trn

I think that the drive where everything "lives" is using compression and that might be part of the problem.

The question I have is how to get the Tlog to backup?

Should I change the recovery model from FULL to SIMPLE and issue another database backup?
Should I try to split the transaction log backup into multiple files/devices?
Should I get a network share set up and write the backup to it?

I'm a newbie when it comes to SQL Server and Windows so please be understanding.

Thanks!
0
Comment
Question by:data_bits
  • 2
2 Comments
 
LVL 69

Accepted Solution

by:
Scott Pletcher earned 500 total points
ID: 40355345
I wouldn't actually back up the log -- you're never going to apply a log that big anyway, right?

backup LOG TRACKIT70_DATA1 to DISK='C:\Tibackup\SQL_SERVER_BACKUPS\TRACKIT70_DATA1_TLOG_backup-1.trn'
with truncate_only


Then do a full db backup so you have a clean recovery start point.
0
 
LVL 69

Expert Comment

by:Scott Pletcher
ID: 40355357
If you want, you can then shrink the log file back down to a more manageable size:

USE TRACKIT70_DATA1
DBCC SHRINKFILE ( 2, 200 ) --shrink the log to 200MB
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL Server DeDupe Table 3 39
SQL Trigger selecting another database 4 34
CREATE DATABASE ENCRYPTION KEY 1 59
Selection from table2 where criteria for table1 10 34
Introduction: When running hybrid database environments, you often need to query some data from a remote db of any type, while being connected to your MS SQL Server database. Problems start when you try to combine that with some "user input" pass…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now