-
- Veeam Legend
- Posts: 122
- Liked: 31 times
- Joined: Sep 11, 2012 12:00 pm
- Full Name: Shane Williford
- Location: Missouri, USA
- Contact:
MS SQL Log shrink
Before posting, I searched a bit for the subject I'm inquiring on, but didn't find specifically what I am wanting to know. This article was close though:
http://forums.veeam.com/veeam-backup-re ... 17018.html
1. Why doesn't VB&R shrink logs post-truncating? (I'm not too entirely knowledgeable about SQL so don't know the implications of having a b/u solution auto-shrink logs)
2. Is SQL Log shrink a projected future feature enhancement? Maybe a shrink doesn't need to occur after every b/u is run, but if this is eventually added as a feature, maybe a schedule is added as well to maybe run a shrink task monthly.
Any insights, etc. are appreciated.
Thank you.
Shane
(twitter: @coolsport00)
http://forums.veeam.com/veeam-backup-re ... 17018.html
1. Why doesn't VB&R shrink logs post-truncating? (I'm not too entirely knowledgeable about SQL so don't know the implications of having a b/u solution auto-shrink logs)
2. Is SQL Log shrink a projected future feature enhancement? Maybe a shrink doesn't need to occur after every b/u is run, but if this is eventually added as a feature, maybe a schedule is added as well to maybe run a shrink task monthly.
Any insights, etc. are appreciated.
Thank you.
Shane
(twitter: @coolsport00)
Shane Williford
Systems Architect
Veeam Legend | Veeam Architect (VMCA) | VUG KC Leader
VMware VCAP/VCP | VMware vExpert 2011-22
Twitter: @coolsport00
Systems Architect
Veeam Legend | Veeam Architect (VMCA) | VUG KC Leader
VMware VCAP/VCP | VMware vExpert 2011-22
Twitter: @coolsport00
-
- Veeam Software
- Posts: 612
- Liked: 114 times
- Joined: Dec 31, 2014 3:05 pm
- Full Name: Marco Horstmann
- Location: Hannover, Germany
- Contact:
Re: MS SQL Log shrink
Hi Shane,
because e.g. many DBAs configure specific log file sizes for prevent fragmentation of a log file.
Years ago I see this as a problem too but in my opinion today it doesn't matter. The Log File will
only get as big as your changes will be between two truncates.
Regards
Marco
because e.g. many DBAs configure specific log file sizes for prevent fragmentation of a log file.
Years ago I see this as a problem too but in my opinion today it doesn't matter. The Log File will
only get as big as your changes will be between two truncates.
Regards
Marco
Marco Horstmann
Senior System Engineer @ Veeam Software
@marcohorstmann
https://horstmann.in
VMware VCP
NetApp NCIE-SAN for 7-Mode and Clustered Ontap
Senior System Engineer @ Veeam Software
@marcohorstmann
https://horstmann.in
VMware VCP
NetApp NCIE-SAN for 7-Mode and Clustered Ontap
-
- Veeam Legend
- Posts: 122
- Liked: 31 times
- Joined: Sep 11, 2012 12:00 pm
- Full Name: Shane Williford
- Location: Missouri, USA
- Contact:
Re: MS SQL Log shrink
Thank you for the reply Marco. Not sure you actually answered my query. Truncating logs doesn't shrink. Storage is still retained on disk after truncating is complete. Still looking for a good answer as to why shrinking isn't performed in backups. And, to be fair/honest, it's not just VB&R... no b/u solution to my knowledge does it. My question is why? What's the big deal?
Thanks.
Thanks.
Shane Williford
Systems Architect
Veeam Legend | Veeam Architect (VMCA) | VUG KC Leader
VMware VCAP/VCP | VMware vExpert 2011-22
Twitter: @coolsport00
Systems Architect
Veeam Legend | Veeam Architect (VMCA) | VUG KC Leader
VMware VCAP/VCP | VMware vExpert 2011-22
Twitter: @coolsport00
-
- Veteran
- Posts: 635
- Liked: 174 times
- Joined: Jun 18, 2012 8:58 pm
- Full Name: Alan Bolte
- Contact:
Re: MS SQL Log shrink
Hello Shane,
I'm not a DBA by training, but let me expand on what Marco said with my understanding of the topic:
I'm not a DBA by training, but let me expand on what Marco said with my understanding of the topic:
- Log file auto-growth can introduce fragmentation of the log file that reduces database performance. Better to pre-allocate and not shrink.
- Log file auto-growth requires some I/O, so that's another reason you're better off pre-allocating and not shrinking.
- Shrinking requires some I/O, may as well avoid that if we can.
- The biggest reason - if your database is operating correctly the shrink will accomplish nothing in the long run. That is, the log data will generally grow no larger than a certain amount between truncations (backups), and you don't want the disk to run out of space between backups because you used that disk space for something other than the log file, so you might as well reserve that space for the log data. What better way to reserve the space than to just not bother shrinking the file?
-
- Veeam Software
- Posts: 612
- Liked: 114 times
- Joined: Dec 31, 2014 3:05 pm
- Full Name: Marco Horstmann
- Location: Hannover, Germany
- Contact:
Re: MS SQL Log shrink
Hi Alan,
thx for clarifying my post. I couldn't do it better.
I'm from my historical knowledge a storage guy. I often
discussed with customers and application vendors about
optimization for performance before I started at Veeam.
And this points Alan wrote I had often heard from application guys.
Regards
Marco
thx for clarifying my post. I couldn't do it better.
I'm from my historical knowledge a storage guy. I often
discussed with customers and application vendors about
optimization for performance before I started at Veeam.
And this points Alan wrote I had often heard from application guys.
Regards
Marco
Marco Horstmann
Senior System Engineer @ Veeam Software
@marcohorstmann
https://horstmann.in
VMware VCP
NetApp NCIE-SAN for 7-Mode and Clustered Ontap
Senior System Engineer @ Veeam Software
@marcohorstmann
https://horstmann.in
VMware VCP
NetApp NCIE-SAN for 7-Mode and Clustered Ontap
Who is online
Users browsing this forum: No registered users and 59 guests