r/SQLServer • • Mar 10 '16

There's your problem.

http://imgur.com/xAPphIK
58 Upvotes

12 comments sorted by

5

u/cachedrive Mar 10 '16

I'm new and slow apparently. What are you saying is the actual issue. They're set to autogrow w/ no limit causing your data partition / disk to fill and crash SQL? What is good practice to avoid that if I'm even luke warm in trying to understand what you're referencing.

10

u/spcmnspff99 Mar 10 '16

No worries. The files were set to grow at a set amount (512mb) this is different than the default of 10%. Setting a discrete file growth amount this way is a good practice for larger databases. Only the mistake here was that the radio button for percent vs mb was not selected properly at the time this was done and the file was set to grow by 512%! The incurred file growth on a ~1TB file was ~5TB. Only we didn't have that much free space. There seems to be some kind of logic in play here where it's either the full 512% or the remaining available space whichever is less. The end result was our data drive reached its capacity and the server engine halted. This was in our qa environment.

3

u/[deleted] Mar 11 '16

I have issues with 10% setting personally.

4

u/fikske_en_rikske Mar 11 '16

% should be deleted from that dialog.

2

u/Lucrums Mar 11 '16

While we're on things that should be deleted you should not be able to put user data in the primary filegroup. There's no sane reason for it, yet almost every DB I've worked on prior to current role there was only primary and some DBs were around 10-15TB.

1

u/spcmnspff99 Mar 11 '16

I suppose that also goes for the dbo schema, right? Why even have schemas if we're not going to use them? Chalk these up to things people should use but don't I guess.

1

u/Lucrums Mar 11 '16

Well schemes had significant issues at scale until the last couple of releases. If you used schemes you could hit spinlock contention, we did, just for security checking. We had to move everything back to dbo just to continue to scale. Now that is not an issue we've split thugs back out again.

Fundamentally I agree, dbo shouldn't be used the way it is.

1

u/fikske_en_rikske Mar 14 '16

You can't even change the setup in model db. Drives me insane.

3

u/[deleted] Mar 10 '16

This is saying the next time the database file has to grow to store more data it will increase the file size from 961,243 MB by 512 percent.

14

u/[deleted] Mar 10 '16 edited Jul 21 '23

Removed