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


Log file growing on principal server--log backups scheduled every 2 hrs.


Log file growing on principal server--log backups scheduled every 2 hrs.

Author
Message
HarryG24
HarryG24
SSC Rookie
SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)

Group: General Forum Members
Points: 29 Visits: 193
Hi,

The transaction log file is growing(currently 99%) and it is close to zero out the disk space.
Tranasaction log backups are in place running every 2 hours.
Mirroring is synchronized - no problem with mirroring.

Here is what i tried:
Took a log backup and tried to shrink the log. Unable to shrink the log file.
Also, transaction log growth hits 100% when taking log backup.

log_reuse_wait_desc shows LOGBACKUP but still backing up log shrinking doesn't work.

Please advise.
Lynn Pettis
Lynn Pettis
SSC Guru
SSC Guru (50K reputation)SSC Guru (50K reputation)SSC Guru (50K reputation)SSC Guru (50K reputation)SSC Guru (50K reputation)SSC Guru (50K reputation)SSC Guru (50K reputation)SSC Guru (50K reputation)

Group: General Forum Members
Points: 50920 Visits: 38665
Looks to me that you may need to run your log backups more frequently than every two hours.

You may also have a problem with many small VLF's. Not sure how to show this, but I'm sure someone else can help with that.

Cool
Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
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: 114217 Visits: 45477
Increase the frequency of your log backups.

Why on earth would you try to shrink a full log? Full means no free space left in the log, surely that would suggest growing it, not shrinking it.

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


HarryG24
HarryG24
SSC Rookie
SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)

Group: General Forum Members
Points: 29 Visits: 193
Thanks for your reply Lynn. I increased the frequency of log backups and seems like it is working.

Thanks.
HarryG24
HarryG24
SSC Rookie
SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)

Group: General Forum Members
Points: 29 Visits: 193
Thanks Gail. I increased the frequency of logbackups.

I tried shrinking because, my log file size is 60 GB and a log backup releasing 90% of space.
that was my prod DB and my disk left with only 500 MB space left.
I thought of shrinking and release some gigs to OS to avoid any application interruption.

The problem now i am facing is, though i have 90% unused space in the log , i could not shrink it.Not sure why.

Please correct me if my approach is wrong.
Thanks for your time!
homebrew01
homebrew01
SSCertifiable
SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)

Group: General Forum Members
Points: 6221 Visits: 9177
Uncommitted replication transactions can also be a problem.



Jeff Moden
Jeff Moden
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: 114561 Visits: 41388
HarryG24 (2/1/2013)
Thanks Gail. I increased the frequency of logbackups.

I tried shrinking because, my log file size is 60 GB and a log backup releasing 90% of space.
that was my prod DB and my disk left with only 500 MB space left.
I thought of shrinking and release some gigs to OS to avoid any application interruption.

The problem now i am facing is, though i have 90% unused space in the log , i could not shrink it.Not sure why.

Please correct me if my approach is wrong.
Thanks for your time!


How big do the log files (the TRN files in the backups) end up being now that you're backing them up once per hour?

--Jeff Moden

RBAR is pronounced ree-bar and is a Modenism for Row-By-Agonizing-Row.
First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column.
If you think its expensive to hire a professional to do the job, wait until you hire an amateur. -- Red Adair

Helpful Links:
How to post code problems
How to post performance problems
Forum FAQs
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