Solved

Long wait time before restore operation starts transmitting bytes

Posted on 2014-12-07
5
207 Views
Last Modified: 2014-12-08
I have a server I've recently setup and it has a 4 TB disk.  I restore a 200 GB SQL database to it every week.  When I run the restore using Backup Exec 2014 it stops at 0 bytes, but I can see in the resource monitor of the server I'm restoring to that it's writing bytes to the disk.  Eventually after around 30 minutes the Backup Exec will show the data actually transferring to it (byte count).  I tried restoring an even bigger database to it and it took even longer before it started.

I have another server that's lower spec that this one on the network, it has slower disk, but the backup operation starts transmitting bytes straight away.  

It seems as if the Backup Exec on the new server is attempting to do some pre-restore checks like checking for free space, but I'm not sure.  I can't figure out why it does this for one server and not the other? They are pretty much identical.
0
Comment
Question by:ts11
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 10

Expert Comment

by:PadawanDBA
ID: 40486078
So if I were a betting man, I would bet that you don't have Instant File Initialization configured on that server, which means SQL Server is going to 0-initialize that space before beginning the restore (write out 0s into the space it's going to restore the database onto).  Additionally, I would bet that the other server has this enabled.  The security policy that controls that is the "Perform volume maintenance tasks" and you grant permissions to the service account that SQL Server is running under.  I'm not hugely familiar with server 2k8 at this point to tell you exactly where that is, but in 2012, it's in the Local Security Policy application (secpol.msc) > Local Policies > User Rights Assignment > Perform Volume Maintenance Tasks.
0
 

Author Comment

by:ts11
ID: 40486107
It currently has the Administrators group added to that policy - same as the older server.  I'm using windows administrator account to connect to database instances.
0
 
LVL 16

Expert Comment

by:Dirk Mare
ID: 40486231
Both server running the same Antivirus? Same antivirus configurations on both servers?

DirkMare
0
 
LVL 10

Accepted Solution

by:
PadawanDBA earned 500 total points
ID: 40486675
Volume activities are not going to pass your connection context to perform them.  They execute under the context of the service account that the SQL Server database engine is running under.  Can you check the memberships of that account, please? (it shouldn't have local admin as that's violation of least privilege principles).
0
 

Author Closing Comment

by:ts11
ID: 40487606
I've got it sorted I think.  On the old server the engine is running under the Local System account and the new one is was set to a an NT Service account.

Just tried a restore and it kicked off straight away!
0

Featured Post

 Database Backup and Recovery Best Practices

Join Percona’s, Architect, Manjot Singh as he presents Database Backup and Recovery Best Practices (with a Focus on MySQL) on Thursday, July 27, 2017 at 11:00 am PDT / 2:00 pm EDT (UTC-7). In the case of a failure, do you know how long it will take to restore your database?

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question