Error Backing up database to network path
MikeShepard
Posts: 12
When I try to backup certain databases to a network share, a 1K file gets written, and the log shows the following error.
Write on 'SQLBACKUP_108068141' failed, status = 112. See the SQL Server error log for more details.
Error 112 usually means out of space, but the drive in question has a lot of space left. Also, since a file is written (with the correct filename, even), there isn't a permissions issue. When I change the sp call to write the backup to a local drive, it works fine. This is happening on more than one server, but several servers don't have the problem. All servers are Win2k3 with SQL Server 2000 SP3a.
Any ideas?
Write on 'SQLBACKUP_108068141' failed, status = 112. See the SQL Server error log for more details.
Error 112 usually means out of space, but the drive in question has a lot of space left. Also, since a file is written (with the correct filename, even), there isn't a permissions issue. When I change the sp call to write the backup to a local drive, it works fine. This is happening on more than one server, but several servers don't have the problem. All servers are Win2k3 with SQL Server 2000 SP3a.
Any ideas?
Comments
Can you please post the script or the command that you had run to make this error happen? In particular, I wonder if you're using the VERIFY option...
the error we see in the log is:
SQL Backup 3.1.0, (c) Red Gate Software Ltd 2004 - 2005
Serial number: [REDACTED]
Backing up EPM88PRD (full database) to \\mmofile\sqlbackups\MMOPSEPM\EPM88PRD\EPM88PRD_sqlbackup2005-04-27-08-37-42.sqb ...
Thread 0 error:
Error 620: Error writing to backup file(s).
Process terminated unexpectedly. Error code: -2139684860
Msg 3202, Level 16, State 1, Server MMOPSEPM, Line 1
Write on 'SQLBACKUP_201252733' failed, status = 112. See the SQL Server error log for more details.
Msg 3013, Level 16, State 1, Server MMOPSEPM, Line 1
BACKUP DATABASE is terminating abnormally.
output
From the SQL Server logs:
BACKUP failed to complete the command BACKUP DATABASE [EPM88PRD] TO VIRTUAL_DEVICE = 'SQLBACKUP_201252733' WITH BLOCKSIZE = 65536, MAXTRANSFERSIZE = 1048576, NAME = 'Database EPM88PRD, 2005-04-27-08-37-42', DESCRIPTION = 'Backup on 2005-04-27-08-37-42 Database: EPM88PRD Server: MMOPSEPM', F
BackupVirtualDeviceFile::RequestDurableMedia: Flush failure on backup device 'SQLBACKUP_201252733'. Operating system error 995(The I/O operation has been aborted because of either a thread exit or an application request.).
Database backed up: Database: UTIL, creation date(time): 2005/04/04(15:30:08), pages dumped: 184, first LSN: 6:280:1, last LSN: 6:282:1, number of dump devices: 1, device information: (FILE=1, TYPE=VIRTUAL_DEVICE: {'SQLBACKUP_201256829'}).
BackupMedium::ReportIoError: write failure on backup device 'SQLBACKUP_201207677'. Operating system error 112(There is not enough space on the disk.).
The backup file is approximately 10G, and there is almost 90G free on the network share.
Can you try it with the -E parameter taken off of the end? -E only works for the command-line version of SQL Backup (sqlbackupc.exe) to tell it to use Integrated Windows Authentication. It has no effect in a SQL script, and I'm beginning to think there are some strange quirks when putting the -E switch in a SQL batch.
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
5/3/2005 3:18:29 PM:
5/3/2005 3:18:29 PM: Backing up EPM88PRD (full database) to \\mmofile\\sqlbackups\MMOPSEPM\EPM88PRD\EPM88PRD_sqlbackup2005-05-03-15-18-29.sqb ...
5/3/2005 3:18:29 PM:
5/3/2005 3:18:29 PM: BACKUP DATABASE [EPM88PRD] TO DISK = '\\mmofile\\sqlbackups\MMOPSEPM\EPM88PRD\EPM88PRD_sqlbackup2005-05-03-15-18-29.sqb' WITH NAME = 'Database EPM88PRD, 2005-05-03-15-18-29', DESCRIPTION = 'Backup on 2005-05-03-15-18-29 Database: EPM88PRD Server: MMOPSEPM', ERASEFILES = 3, COMPRESSION = 1
5/3/2005 3:18:29 PM:
5/3/2005 3:18:29 PM:
5/3/2005 3:18:30 PM: Thread 0 error:
Error 620: Error writing to backup file(s).
Process terminated unexpectedly. Error code: -2139684860
Thread 0 warning:
Warning 610: Error writing to backup file: \\mmofile\\sqlbackups\MMOPSEPM\EPM88PRD\EPM88PRD_sqlbackup2005-05-03-15-18-29.sqb
Msg 3202, Level 16, State 1, Server MMOPSEPM, Line 1
Write on 'SQLBACKUP_8453389' failed, status = 112. See the SQL Server error log for more details.
Msg 3013, Level 16, State 1, Server MMOPSEPM, Line 1
BACKUP DATABASE is terminating abnormally.
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
I've found nothing on Google or I don't have the right keywords.
Thanks in advance!
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
The issue seems to be with file splitting, which would give be better performance, for now I'm suffering some, backup times are double what they should be, but still better than native SQL backup.
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
Thanks so much for all your help!!
Do you encounter the same problem if you perform a native SQL Server backup using split files?
Thanks.
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
FULL_SQL2_imagenow_09_20050725 154155_1.sqb
3,980,288 bytes
FULL_SQL2_imagenow_09_20050725 154155_2.sqb
512 bytes
Could you pls tell me what happens when you do the following:
- create a split backup to another remote server
- create a split backup to a UNC path, but this path points back to your own server
Also, do you use Norton AntiVirus Corporate Edition on your server/workstation?
Thanks.
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
I am able to do splits to the same locations as before if I use the Command-line version. (Really not the solution I am looking for...)
Answers to your questions:
My previous tests using the Stored Procedure, I was using UNC paths to the server itself, as well as other locations, neither worked for splitting. For example I have a server named SQL2.
Split files to c:\temp worked, Split files to \\sql2\c$\temp do not. I also tried creating different shares other than admin shares, etc. This does not change the end result. Same thing with the remote server, not using file splitting let the backup complete correctly.
This server and also the remote server do not have AV.
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8