Sql backups are taking time.
Hello Experts.
Our sql backup policy is taking more than 13 hours to get completed. Pls find the extracted log on 13 after 2 AM it has another log of 6:32 Am.
What might be the issue.
10/13/2014 2:00:37 AM - Info dbclient(pid=27536) INF - backup database "B" to VIRTUAL_DEVICE='VN' with stats = 10, blocksize = 65536, maxtransfersize = 4194304, buffercount = 2
10/13/2014 2:00:38 AM - Info dbclient(pid=27536) INF - Number of stripes: 1, Number of buffers per stripe 2.
10/13/2014 2:00:38 AM - Info dbclient(pid=27536) INF - Created VDI object for SQL Server instance <SQL>. Connection timeout is <300> seconds.
10/13/2014 6:32:41 AM - Info dbclient(pid=27536) INF - ODBC return code <2>, SQL State <01000>, SQL Message <3211><[Microsoft][ODBC SQL Server Driver][SQL Server]10 percent processed.>.
10/13/2014 6:37:23 AM - Info dbclient(pid=27536) INF - ODBC return code <2>, SQL State <01000>, SQL Message <3211><[Microsoft][ODBC SQL Server Driver][SQL Server]20 percent processed.>.
10/13/2014 6:41:50 AM - Info dbclient(pid=27536) INF - ODBC return code <2>, SQL State <01000>, SQL Message <3211><[Microsoft][ODBC SQL Server Driver][SQL Server]30 percent processed.>.
10/13/2014 6:45:11 AM - Info dbclient(pid=27536) INF - ODBC return code <2>, SQL State <01000>, SQL Message <3211><[Microsoft][ODBC SQL Server Driver][SQL Server]40 percent processed.>.
10/13/2014 6:48:13 AM - Info dbclient(pid=27536) INF - ODBC return code <2>, SQL State <01000>, SQL Message <3211><[Microsoft][ODBC SQL Server Driver][SQL Server]50 percent processed.>.
10/13/2014 6:51:25 AM - Info dbclient(pid=27536) INF - ODBC return code <2>, SQL State <01000>, SQL Message <3211><[Microsoft][ODBC SQL Server Driver][SQL Server]60 percent processed.>.
10/13/2014 6:55:02 AM - Info dbclient(pid=27536) INF - ODBC return code <2>, SQL State <01000>, SQL Message <3211><[Microsoft][ODBC SQL Server Driver][SQL Server]70 percent processed.>.
10/13/2014 6:58:08 AM - Info dbclient(pid=27536) INF - ODBC return code <2>, SQL State <01000>, SQL Message <3211><[Microsoft][ODBC SQL Server Driver][SQL Server]80 percent processed.>.
10/13/2014 7:00:55 AM - Info dbclient(pid=27536) INF - ODBC return code <2>, SQL State <01000>, SQL Message <3211><[Microsoft][ODBC SQL Server Driver][SQL Server]90 percent processed.>.
10/13/2014 7:04:19 AM - Info dbclient(pid=27536) INF - Thread has been closed for stripe #0
Hi Hargyan,
If waiting for tape is the issue, a combination of BATCHSIZE and multiplexing may help.
For example, if you set BATCHSIZE to 3, and enable set media multiplexing to 3, you may be able to stream 3 DB backups to one tape at the same time.
NOTE: Doing this will speed the backup, however restore may be slower as it takes more time to extract data from a multiplexed tape. I just want to make sure you make an informed decision.
If you do go ahead, just add this line (the one in bold) just above ENDOPER TRUE:
BATCHSIZE 3
Then go to the Admin Console > Policies > double click the SQL backup policy > go to Schedules > double click the Default Application Backup schedule > change the Media multiplexing to 3.
Next, go to the Storage > Storage Units > double click the tape storage unit you use for SQL backup, tick "Enable Multiplexing" and set Maximum streams per drive to 3.
Click OK.
I use 3 in this example, but the max number of multiplexing can be up to 32. If you set to high, make sure your SQL Server, media server & tape can handle the high number.