I am facing a strange issue with daily FULL backup. We have a total of 23 databases. We have 1.21 TB big database in this SQL server 2012 Standard Edition. We are taking daily FULL database backup for all databases.
For the last 2 days the backup is taking too long. After more than 10:30 hours it had only completed 67 % of the backup. Daily Full backup job completion time is normally 4 to 5 hours.
And the backup job is also showing suspended
state.
I found last_wait_type is ASYNC_IO_COMPLETION
for this backup job.
We have sufficient disk space available.
Can anyone make any suggestions on this issue?
Best Answer
This blogpost from Paul Randal gives you most of the information regarding this wait stat
A question similar to yours can be found on that same blog. In his case a backup of a small database (1,5GB) was taking over 15 minutes.
Q
A
This is the command to do that:
And compare this with the backup time you mentioned previously.
Keep in mind that this will still start a huge amount of I/O operations on your server.
Suspended state simply means that it is waiting on resources, I/O based in your case.
Other improvements
Check what else is running on the instance, any maintenance plans such as index rebuilds, statistic updates, integrity checks?
You could start logging queries with sp_whoisactive and perhaps logging it in a table.
Striping your backups accross multiple files can help in reducing backup time. More on that here. My go to is 4 files but you could test different settings.
Since you are on
sql server 2012
, if you are not usingTDE
you could leverage backup compression as well.More information on making backups go faster can be found here