Avatar of sharscho
sharscho
 asked on

Db backup issues

Hi Experts, I am having backup issues with a user db for 3 days in a row now. The error I get from the sqlserver error log is the following (In this order):

BackupMedium::ReportIoError: write failure on backup device 'D:\SqlServer_Backups\Palb_db_200807202000.BAK'. Operating system error 33(The process cannot access the file because another process has locked a portion of the file.).

Internal I/O request 0x36685D18: Op: Write, pBuffer: 0x0D220000, Size: 983040, Position: 44046096896, UMS: Internal: 0x103, InternalHigh: 0x0, Offset: 0x415A1A00, OffsetHigh: 0xA, m_buf: 0x0D220000, m_len: 983040, m_actualBytes: 0, m_errcode: 33, BackupFile: D:\SqlServer_Backups\Palb_db_200807202000.BAK

BACKUP failed to complete the command BACKUP DATABASE [Palb] TO  DISK = N'D:\SqlServer_Backups\Palb_db_200807202000.BAK' WITH  INIT ,  NOUNLOAD ,  NOSKIP ,  STATS = 10,  NOFORMATThe size of this db is 75G. I want to know how to get the other process that is using a portion of the file to prevent it from being backed up for 3 days. Has someone experience with similair error issues.
Microsoft SQL Server

Avatar of undefined
Last Comment
EugeneZ

8/22/2022 - Mon
Guy Hengel [angelIII / a3]

I think I would restart sql server + sql agent complete once...
Julianva

Run Sp_who2 in query analyzer or management studio if you using SQL 2005, check the results if there is a backup thread that might still be holding on to the backup file. if it is you can kill that process.

like angell lll says - restart - this could also terminate the process that is holding on to the file.

sharscho

ASKER
That is the problem I can not see which process is holding it. I can not see a process that has to do with the backup. I did ask for a time before the next backup to restart the sqlserver to resolve the problem. Let me see if I get that time slot.....
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
ASKER CERTIFIED SOLUTION
EugeneZ

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.