https://login.veeam.com/en/oauth?client_id=nXojRrypJ8&redirect_uri=https%3A%2F%2Fwww.veeam.com%2Fservices%2Fauthentication%2Fredirect_url&response_type=code&scope=profile&state=eyJmaW5hbFJlZGlyZWN0TG9jYXRpb24iOiJodHRwczovL3d3dy52ZWVhbS5jb20va2IxODc2IiwiaGFzaCI6IjkwOWU0MDZmLWYyM2QtNGE4Yi1hYmM4LWIzMjgxZGZmMmI0NyJ9
1-800-691-1991 | 9am - 8pm ET
EN

SQL LDF not smaller after truncation

Challenge

After Veeam Backup & Replication successfully processes a SQL server with Application-Aware Image Processing enabled, the LDF files are not smaller.

Cause

This is due to the fact that the LDF file itself is a container, when truncation occurs the internals of the LDF are cleared and space is freed within it, but the LDF itself is not made smaller.

One must manually shrink or configure “Auto Shrink” to make the LDF itself physically smaller.

Solution

To view the actual free space within the LDF file perform the following.
 
1.   Open SQL Management Studio and connect to the SQL instance where the database in question is located.
2.   Right-Click on the database and goto Tasks>Shrink>Files

User-added image

3.   Switch to Log under File type...

User-added image

This will show you the current allocated space and the available free space.
In this example the LDF is 34.88 MB and internally it has 89% free space.
The database in this example is set for simple recovery model which keeps the log size low, when a SQL database is configured for full recovery model the LDF could be considerably larger.
The release unused space option will shrink the LDF file down to whatever you have designated as the minimum size in the database properties:

User-added image

Information regarding the Auto Shrink option can be found in the this MS article http://support.microsoft.com/kb/315512.

 
KB ID:
1876
Product:
Veeam Backup & Replication
Version:
6.x, 7.x, 8.x
Published:
2014-04-21
Last Modified:
2020-08-13
Please rate how helpful this article was to you:
5 out of 5 based on 1 ratings
Thank you for helping us improve!
An error occurred during voting. Please try again later.

Couldn't find what you were looking for?

Below you can submit an idea for a new knowledge base article.
Report a typo on this page:

Please select a spelling error or a typo on this page with your mouse and press CTRL + Enter to report this mistake to us. Thank you!

Spelling error in text

Knowledge base content request
By submitting, you agree that your personal data will be managed by Veeam in accordance with the Privacy Policy.
Your report was sent to the responsible team. Our representative will contact you by email you provided.
We're working on it please try again later