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


Log backup question


Log backup question

Author
Message
DBA24
DBA24
SSC Rookie
SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)

Group: General Forum Members
Points: 26 Visits: 28
Hello,

My transaction log backup today took longer time to complete than usual. Daily it runs at 1:00PM for about 2 mins and today it took like almost 2 hours. Also for a few databases the size of backup is almost equivalent to size of the full backup.

We had connectivity issues with the SAN(the drive where tempdb sits) yesterday around 5:00PM and had to restart sqlserver services yesterday for 4 times as I was seeing some of the errors as I listed below.

"The log for database 'tempdb' is not available. Check the event log for related error messages. Resolve any errors and restart the database."

The services restart fixed that issue. The errors stopped at 7:00PM after the last restart. But the transaction log backup today grew up to almost the size of full backup (50GB) and took longer time. Usually the size of txlog backup is than 500MB for these databases.

I had a purge job that runs once every saturday night that deletes old data. But cant think of if that wud cause this issue.

Thanks for the inputs.
sanket kokane
sanket kokane
Right there with Babe
Right there with Babe (799 reputation)Right there with Babe (799 reputation)Right there with Babe (799 reputation)Right there with Babe (799 reputation)Right there with Babe (799 reputation)Right there with Babe (799 reputation)Right there with Babe (799 reputation)Right there with Babe (799 reputation)

Group: General Forum Members
Points: 799 Visits: 1022
did you check database log size before the backup ?

instead of only once in day,you should configure log backup to execute frequently,say every hour depending of your database size

-----------------------------------------------------------------------------
संकेत कोकणे
GilaMonster
GilaMonster
SSC Guru
SSC Guru (212K reputation)SSC Guru (212K reputation)SSC Guru (212K reputation)SSC Guru (212K reputation)SSC Guru (212K reputation)SSC Guru (212K reputation)SSC Guru (212K reputation)SSC Guru (212K reputation)

Group: General Forum Members
Points: 212813 Visits: 46259
DBA24 (12/9/2012)
My transaction log backup today took longer time to complete than usual. Daily it runs at 1:00PM for about 2 mins and today it took like almost 2 hours. Also for a few databases the size of backup is almost equivalent to size of the full backup.


Index rebuilds ran since the last log backup.

Backing up the log once a day is pretty worthless. If a full day of data loss is permitted you might as well go simple recovery and not worry about the log.

Please read through this - Managing Transaction Logs

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


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