Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Check - warn if there is not enough disk space for a file to grow #320

Open
michalporeba opened this issue Feb 26, 2018 · 6 comments
Open

Comments

@michalporeba
Copy link
Collaborator

Especially with big file growth increments it is possible that there is still space in the file, but there is not enough space on the file for the next increment.

Arguably this may be covered by simply checking the disk space but that is asumming that everythign is fine. I have just started a new job and I'm in situation where there is less disk space than I'd like. If I wanted to have 20% or even 10% of disk space free I'd constantly see red. While the hardware is sorted out I'd like to be able to at least make sure no database will fill up if it is at all avoidable.

@potatoqualitee
Copy link
Member

LOVE, yes please!

@SQLDBAWithABeard
Copy link
Collaborator

This is an excellent test

@wsmelton
Copy link
Member

wsmelton commented Mar 4, 2018

The Get-DbaDatabaseFile command would have all properties that are needed for this check. ref.

Properties I'd expect would be of use:

  • Database
  • NextGrowthEventSize
  • VolumeFreeSpace

@reitse
Copy link

reitse commented Jun 7, 2019

I wrote a sort of check for this today...

I can give the raw, working code if you like. The current version is instance based because of a client question who wanted monitoring on disk space. All databases should be able to grow once. If there's not enough space, some warning should be given.

@reitse
Copy link

reitse commented Jun 7, 2019

#623 has been pull requested. And will no doubt be shot down but it might inspire the actual smart people here. Maybe.

@SQLDBAWithABeard
Copy link
Collaborator

Thank you. Definitely not shot down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants