-
Notifications
You must be signed in to change notification settings - Fork 474
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
Handling mount points #573
Conversation
prior to this change, the plugin: - used only drive letters instead of mount points - summarized the free space for every drive to the max size now it handles mount points and only adds the free space once per mount point to the max size
As you can see in the left part of the Screenshot, the max size wrong, because the mount point D:/MSSQL13.SHARED01/MSSQL/DATA/CusLOG/' is used (Last one in df_section with drive letter D) The max size varies because the log mount point has no the same usage on every host On the right side of the screenshot, you can see that the max size is calculated with the mount point D:/MSSQL13.SMA/MSSQL/DATA/CusDTA/ Relevant Agent output of all 4 Nodes of Screenshot host 1<<df:sep(9)>> host 2<<df:sep(9)>> host 3<<df:sep(9)>> host 4<<df:sep(9)>> |
All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA or my organization already has a signed CLA. |
875a494
to
3419412
Compare
Bug reports
=> Windows Server 2012 R2 to 2022 (MSSQL 2014-2022)
=> MSSQL Setup with multiple Database Files on mount point partitions
Mount point
The bug can appear as soon as you start monitoring database files and transaction log if you have mount points
This check plugin uses the "df" section and added all file systems to a dict based on the first letter.
Windows mount points are under a drive letter. This resulted in the last file system in the df section for the drive letter being use for free space calculations.
=> this generated incorrect max sizes because the file system that is used for calculations might not be the one the file is on.
Display only a summary of all Datafiles/Transactionlogs
=> this is illogical if two files are on the same file system: they only have 10 GB left, they can not both grow each 10 GB
Proposed changes
Mount point
=> the physical name does not get cut off
=> the best matching mount point is used for free space calculations
Display only a summary of all Datafiles/Transactionlogs
=> if the file system's free space has already been added to the max size, it will be ignored (set to 0)
What is the observed behavior?
=> see bug section
Is this a new problem? What made you submit this PR (new firmware, new device, changed device behavior)?
=> Our database team observed the issues after the update from 2.0.0p26 to 2.1.0p17