May 20, 2015 at 3:57 pm
Hi, is there a better way to deal with the virtual log files?...I see several approaches in dealing/decreasing the virtual log files for a database..want to know what's the best n safest approach, from the masters here?
Thanks!
May 21, 2015 at 12:33 am
Firstly decide whether you need to worry. VLFs aren't a bad thing, they're how the log is architected. The only problem is when you have excessive numbers.
How big's the log in question and how may VLFs are there?
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
May 21, 2015 at 8:57 am
Yea...it seems to be a problem for us....the DB log in question is about 450 GB and with around 12000 vlf files..
May 21, 2015 at 9:11 am
In that case: http://www.sqlskills.com/blogs/kimberly/8-steps-to-better-transaction-log-throughput/
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
May 21, 2015 at 9:14 am
Thank you!
May 24, 2015 at 6:08 pm
I developed a script to check vlfs and log file size, if they meet certain criterias, the script will backup the log file and shrink the file, the alter the file size based on the log backup size or my log file size standard(see which one is bigger), so far it looks good.
May 26, 2015 at 3:27 pm
can you share the script with me please?
May 26, 2015 at 4:34 pm
Agnii (5/21/2015)
Yea...it seems to be a problem for us....the DB log in question is about 450 GB and with around 12000 vlf files..
That's a fairly large log file. What does your backup plan look like?
--Jeff Moden
Change is inevitable... Change for the better is not.
May 27, 2015 at 9:32 am
1. Take a look at the rate your log file is auto incrementing. You may need to look at increasing it, also take a look at your backup strategy as well
May 27, 2015 at 10:19 am
Jeff, its weekly full and daily differential for this Db..I took care of this now though ...thanks
May 27, 2015 at 10:39 am
What is the recover model being used by the database?
May 27, 2015 at 10:58 am
Simple
Viewing 12 posts - 1 through 11 (of 11 total)
You must be logged in to reply to this topic. Login to reply