What is running at 20:00 on a Monday? It looks like that might be the culprit and don't shrink your database until you understand what is causing it to grow as it will just grow again.
Thanks
dmbsseller - Thursday, October 12, 2017 5:35 AM
Because it doesn't. The log backup reduces the amount of data in the transaction log, but not the size of the log on disk. Think about it - if it reduced the size also, your log would be constantly growing and shrinking, using up system resources and causing fragmentation on your disk.
John
NorthernSoul - Thursday, October 12, 2017 5:40 AM
Hey!
This is one time event! (no every Monday)
All procedurs for maintenance are made in Sunday (on this day no one work)
Until 18 september i have 420 GB , its start in 18 september in 20:00 PM and continued before 3 AM and my free disc space decreased until 110 GB and
'MyDatabase'.mdf - 242 GB;
'MyDatabase'.ldf - 460 GB;
dmbsseller - Thursday, October 12, 2017 5:58 AM
So, what was running that caused the log to grow? Are you sure that it was a one-off event?
Thanks
Actually i doubt.
before 18 september - 420GB
with 18 september until 19 september - 110 GB
with 19 september until 10 october free space did not change.
And 10 october space decreased until 92 GB. And now space is 92 GB.
No errors in windows events , no errors and strangely events in sql error log.
All sql jobs, all maintenance plans work correctly!
Am I reading your backup / maintenance schedules correctly? You're only doing TLog backups during the work day, and not during database maintenance routines, such as index rebuilds?
Indexes maintenance can be transaction-log heavy. Indeed, I have in the past set transaction log backups to run every minute during index maintenance windows in order to reduce the disk space taken up by the TLog file.
Thomas Rushton
blog: https://thelonedba.wordpress.com
dmbsseller - Thursday, October 12, 2017 6:18 AM
There won't be errors because nothing is going wrong, it's behaving exactly as it should. Have a look back at the log growth events and find out what was running on the database at that time and causing the log to grow.
Is there a problem with having a large log file? Are you running out of space on the disk?
Thanks
ThomasRushton - Thursday, October 12, 2017 6:22 AM
Yes you are right!
NorthernSoul - Thursday, October 12, 2017 6:24 AM
Yes, unfortunatelly problem in a free space on a disk!
Ok and have you been able to find out what is running at the times when you see growth? Is it index maintenance?
Thanks
NorthernSoul - Thursday, October 12, 2017 6:59 AM
No, its not an index maintenance, because this procedurs running only Sunday.
How can I see what transactions were recorded in the transaction log on Monday at 20:00 PM?
dmbsseller - Thursday, October 12, 2017 7:28 AM
Assuming you still have the log backups covering the period, you can use fn_dump_dblog to browse through the log to see what happened.
SQLPirate - Thursday, October 12, 2017 7:46 AM
No, i didnt have log backup for this period..
But how can I solve my problem?
My transaction log still - 460 GB...
I understand that I have only one way out - change model to SIMPLE and run DBCC SHRINKFILE (MyDatabase_log, 2048), after change model to FULL.
dmbsseller - Friday, October 13, 2017 3:16 AM
Don't shrink your log until you've found out why it grew in the first place as it's likely to grow again. Do you have any maintenance tasks or SQL Agent jobs running at the time when you've seen growth?
Thanks
Viewing 15 posts - 1 through 15 (of 20 total)
You must be logged in to reply to this topic. Login to reply