October 9, 2020 at 11:12 am
hi folks
just after some advice
if the Log space has 98% reported free space but the physical drive has virtually no free space left
will trans logs for the db post ok?
cheers
m
October 9, 2020 at 11:52 am
Yes, the free Log space is within the allocation of the log file(s).
😎
Obviously, you should monitor the free space within the files and turn off any autogrowth for the files.
October 9, 2020 at 11:54 am
cheers Eirkur! just testing some theory !
October 9, 2020 at 12:55 pm
Be careful of autogrowth here. Also, it's a good idea on any drive with auto-growth enabled, create an file called 'deletemeinemergencies' or similar. Make it big enough, say 20 or 50 mb, so that you can use it to easily reclaim a little space when the drive filled by accident. It makes recovery much easier.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
October 9, 2020 at 1:28 pm
hi folks
just after some advice
if the Log space has 98% reported free space but the physical drive has virtually no free space left
will trans logs for the db post ok?
cheers
m
I'd also suggest that you need to figure out what caused your log file to grow to the extent that it has and if it's still occurring. Whatever it is, it needs to be found and fixed.
Typically, it's one of two things...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 9, 2020 at 1:38 pm
Be careful of autogrowth here. Also, it's a good idea on any drive with auto-growth enabled, create an file called 'deletemeinemergencies' or similar. Make it big enough, say 20 or 50 mb, so that you can use it to easily reclaim a little space when the drive filled by accident. It makes recovery much easier.
OOOOH! I like that idea! Why didn't I think of that! 🙂
"Knowledge is of two kinds. We know a subject ourselves, or we know where we can find information upon it. When we enquire into any subject, the first thing we have to do is to know what books have treated of it. This leads us to look at catalogues, and at the backs of books in libraries."
— Samuel Johnson
I wonder, would the great Samuel Johnson have replaced that with "GIYF" now?
October 9, 2020 at 5:00 pm
For saving space, https://voiceofthedba.com/2014/12/01/creating-placeholder-files/
October 9, 2020 at 6:18 pm
Grant Fritchey wrote:Be careful of autogrowth here. Also, it's a good idea on any drive with auto-growth enabled, create an file called 'deletemeinemergencies' or similar. Make it big enough, say 20 or 50 mb, so that you can use it to easily reclaim a little space when the drive filled by accident. It makes recovery much easier.
OOOOH! I like that idea! Why didn't I think of that! 🙂
For the log file, it's real handy if (for example, you have a 100GB drive just for the log file), to allocate only 10 or 20GB and then setup an alert for when it grows. That way, you can have some time to find out what is causing the log file to grow. You could even make it so the alert runs code to see what's running to help narrow down the candidates or scare up some code that will tell you what everything that's currently running is using for logfile space.
--Jeff Moden
Change is inevitable... Change for the better is not.
October 9, 2020 at 6:20 pm
For saving space, https://voiceofthedba.com/2014/12/01/creating-placeholder-files/
Those are handy to help trick the network folks into thinking that you're using more space than you are so you have time to make a request for more space but that goes against my nature (Absolute honesty, etc). It also won't help code and won't help you find the problem.
For log files, I'd do like I stated above with alerts.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 9 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic. Login to reply