Discussions specific to the VMware vSphere hypervisor
Post Reply
Posts: 2
Liked: never
Joined: Dec 06, 2018 3:04 am
Full Name: dylan wu

.ldf and .mdf log files size not reducing

Post by dylan0108 » Apr 12, 2019 7:49 am

I've logged a support case in Veeam however it's been 2 days now and there's not even a single response :oops: :oops: :oops:
We've a backup job running daily on an SQL server and lately I've noticed it keeps getting out of space. I've already turned on the options for log truncation and
even when the job finishes running, i can see the Log Truncation process succeeded, however when i checked the .ldf and .mdf log files, the log file size stayed
the same. Shouldn't the file size be reduced?

Veeam Software
Posts: 4408
Liked: 553 times
Joined: Sep 01, 2014 11:46 am
Location: Austria

Re: .ldf and .mdf log files size not reducing

Post by HannesK » Apr 12, 2019 11:38 am

this should not happen... could you please tell us the case number? You also have the chance to escalate on your own by clicking on "talk to manager".

Best regards,

Posts: 3
Liked: never
Joined: Feb 04, 2019 10:08 pm
Location: Germany

Re: .ldf and .mdf log files size not reducing

Post by fga » Apr 20, 2019 11:29 pm

MSSQL does not automatically shrink MDF and LDF files. Instead it just markes it free internally.
You can see this behaviour by rightclicking on your database, select tasks shrink > files.
In the window that pops up select file type "Log"
About half way down you can see the filesizes. Upper is the current allocated space aka the filesize on disk. The lower one tells you how much of that file is actually used by mssql.
Infos about that can be read up here: https://theitbros.com/truncate-sql-serv ... tion-logs/

Post Reply

Who is online

Users browsing this forum: NightBird and 15 guests