SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Backup is taking much time


Backup is taking much time

Author
Message
ksr39
ksr39
Valued Member
Valued Member (59 reputation)Valued Member (59 reputation)Valued Member (59 reputation)Valued Member (59 reputation)Valued Member (59 reputation)Valued Member (59 reputation)Valued Member (59 reputation)Valued Member (59 reputation)

Group: General Forum Members
Points: 59 Visits: 200
Hi Experts,

Today one of my database took more than expected time for backup i have no idea why it took much time, can any one help me in this if any one gone through this condition/situation. your suggections could help me out in future.

The size of the backup is 30GB and the server is SQL Server 2005 enterprise edition on windows 2003 enterprise edition.



Thank you in advance
Steve Jones
Steve Jones
SSC Guru
SSC Guru (81K reputation)SSC Guru (81K reputation)SSC Guru (81K reputation)SSC Guru (81K reputation)SSC Guru (81K reputation)SSC Guru (81K reputation)SSC Guru (81K reputation)SSC Guru (81K reputation)

Group: Administrators
Points: 81844 Visits: 19214
How much longer did it take? Is the backup larger? Can you determine if there was other activity at the time of the backup?

Usually if a backup takes more time, it's more data or I/O issues.

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
ksr39
ksr39
Valued Member
Valued Member (59 reputation)Valued Member (59 reputation)Valued Member (59 reputation)Valued Member (59 reputation)Valued Member (59 reputation)Valued Member (59 reputation)Valued Member (59 reputation)Valued Member (59 reputation)

Group: General Forum Members
Points: 59 Visits: 200
Hi Steve,
Thank you for your reply, usually it use to take 18 minutes but now it took more than 45 minutes and there is one job running at that time that was Backup of that database, I have not checked the I/O of the data at that time, and can we see that information now after completing the backup if so where can we find that.

Please let me know about this so that I can trace the things and can be aware of that for future.

Thank you in advance.
GilaMonster
GilaMonster
SSC Guru
SSC Guru (114K reputation)SSC Guru (114K reputation)SSC Guru (114K reputation)SSC Guru (114K reputation)SSC Guru (114K reputation)SSC Guru (114K reputation)SSC Guru (114K reputation)SSC Guru (114K reputation)

Group: General Forum Members
Points: 114551 Visits: 45501
Backup is an IO bound operation. Either your DB has become significantly bigger (unlikely) or the source or destination drives for the backup are reading or writing slower. Check disk stats on both drives.

Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass


ksr39
ksr39
Valued Member
Valued Member (59 reputation)Valued Member (59 reputation)Valued Member (59 reputation)Valued Member (59 reputation)Valued Member (59 reputation)Valued Member (59 reputation)Valued Member (59 reputation)Valued Member (59 reputation)

Group: General Forum Members
Points: 59 Visits: 200
Hi,
Actually I am taking my backup from cmd window with a script it’s a general script to take a backup, but I am taking the backup file to a local drive/disk, as I do in general to a SAN drive/disk through maintenance plan. Will this cause any time variation in taking a backup to a local than to a SAN drive?
Grant Fritchey
Grant Fritchey
SSC Guru
SSC Guru (54K reputation)SSC Guru (54K reputation)SSC Guru (54K reputation)SSC Guru (54K reputation)SSC Guru (54K reputation)SSC Guru (54K reputation)SSC Guru (54K reputation)SSC Guru (54K reputation)

Group: General Forum Members
Points: 54767 Visits: 32793
ksr39 (9/11/2012)
Hi,
Actually I am taking my backup from cmd window with a script it’s a general script to take a backup, but I am taking the backup file to a local drive/disk, as I do in general to a SAN drive/disk through maintenance plan. Will this cause any time variation in taking a backup to a local than to a SAN drive?


Yes. Backing up across the network will absolutely be slower than backing up to a local drive.

----------------------------------------------------
The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood...
Theodore Roosevelt

The Scary DBA
Author of: SQL Server Query Performance Tuning and SQL Server Execution Plans
Product Evangelist for Red Gate Software
Arjen Krap
Arjen Krap
SSC Journeyman
SSC Journeyman (89 reputation)SSC Journeyman (89 reputation)SSC Journeyman (89 reputation)SSC Journeyman (89 reputation)SSC Journeyman (89 reputation)SSC Journeyman (89 reputation)SSC Journeyman (89 reputation)SSC Journeyman (89 reputation)

Group: General Forum Members
Points: 89 Visits: 215
Hi Ksr,

First thing to do is explain your disk setup, so we can understand more about your system. You have already explained that the normally backups are written to a SAN drive, but now your backup is written to a local drive.

The information we need includes the following:

- Is it a physical server or a virtual server?
- On a physical server, how many local disks does your server have? How are they setup? (.e.g. raid levels, partitions, etc.)
- On a virtual server, how many other virtual servers share the same storage facility? (In most cases local disks of virtual servers are actually on a SAN drive.)
- How many other servers have a SAN drive on the same storage facility? (In most cases all these SAN drives share the same physical disks so they compete for performance which each other.)
- On a virtual server, is the SAN drive located on the same storage facility as the local disks?
- Which drives are magnetic rotating disks (e.g. normal hard drives) and which are Solid State Drives (SSD)? (SSD's have significantly better performance, but are a lot more expensive.)

For instance you may have a simple setup where you have a physical server with one local drive which contains the Windows operating system, SQL Server, and all your databases files. Backups are normally written to the SAN drive. In this case during a normal backup the database is read from the local disk and written to the SAN disk. However when you are performing a backup to the local disk the databases is read and written from the same drive which typically reduces performance significantly. For as I can see this compares best to your explanation but we can't be too sure.

If you can't answer those questions, you should probably speak with your storage administrator to get learn how the storage facilities are setup.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search