How can we help you today? How can we help you today?

Periodic failure in tranlog backup

4.2.0.425 professional, SQL 2000 Enterprise + SP4

We are using log shipping with good success. We do have one issue where tran log backups occasionally fail on one database with the following error:

SQL Backup log file
6/9/2006 5:00:01 PM: Backing up DDS_SDC (transaction log) to:
l:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\LOG__DDS_SDC_20060609_170001.sqb

6/9/2006 5:00:01 PM: BACKUP LOG [DDS_SDC] TO DISK = 'l:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\LOG__DDS_SDC_20060609_170001.sqb' WITH NAME = '<AUTO>', DESCRIPTION = '<AUTO>', PASSWORD = 'XXXXXXXXXX', KEYSIZE = 256, ERASEFILES_ATSTART = 7, MAILTO_ONERROR = 'xxx@yyy.com', COPYTO = '\\target_server\logs', COMPRESSION = 3, THREADS = 1

6/9/2006 5:00:02 PM: Deleting old backup file: l:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\LOG__DDS_SDC_20060602_160001.sqb
6/9/2006 5:00:02 PM: Backup data size : 704.000 KB
6/9/2006 5:00:02 PM: Compressed data size: 19.000 KB
6/9/2006 5:00:02 PM: Compression rate : 97.30%

Processed 11 pages for database 'DDS_SDC', file 'DDS_SDC_Log' on file 1.
BACKUP LOG successfully processed 11 pages in 0.023 seconds (3.695 MB/sec).
6/9/2006 5:00:03 PM: Error 775: Failed to open file to write LSN data. Another process might be locking this file: (l:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\LOG__DDS_SDC_20060609_170001.sqb)
6/9/2006 5:00:05 PM: Copied l:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\LOG__DDS_SDC_20060609_170001.sqb to \\target_server\log\LOG__DDS_SDC_20060609_170001.sqb.

When this happens, we LSN seems to be unreadable from SQL Backup, and our only resolution is to restore from a full backup and start from there. There is no virus software on the server that might be locking the file. This occurs once every 2 or so weeks. Didn't know if this is something you might be able to help with or not. Thanks.
satterw
0

Comments

7 comments

  • Brian Donahue
    Hello,

    Please make sure that the I:\ backup location and the log shipping share aren't actually the same location.
    Brian Donahue
    0
  • satterw
    They aren't - they are on servers 200 miles apart. This works perfectly fine 99% of the time, the error is intermittent on the tran log backup only.
    satterw
    0
  • petey
    The I:\ drive is a local drive?
    petey
    0
  • satterw
    Correct, local SAN drive on the source server.
    satterw
    0
  • satterw
    Anyone have any ideas on this?
    satterw
    0
  • petey
    I have no idea what may be locking the file.

    In version 4.5, SQL Backup will make 4 attempts to open the backup file to write the LSN data, over a period of 15 seconds. This would address your issue if the process that locked your backup file only does so momentarily.
    petey
    0
  • satterw
    That may be a good solution. I'm content to close this out for now and will keep an eye on when 4.5 becomes available.
    satterw
    0

Add comment

Please sign in to leave a comment.