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

monit check disk size is not thrustable with docker layers #8381

Open
JeGoi opened this issue Nov 6, 2024 · 0 comments
Open

monit check disk size is not thrustable with docker layers #8381

JeGoi opened this issue Nov 6, 2024 · 0 comments

Comments

@JeGoi
Copy link
Contributor

JeGoi commented Nov 6, 2024

Describe the bug
Monit is managing disk space issues but the script is not able to handle docker overlayers.
Docker root folder may contain files from other folders, such as mounted to merged, if you test the disc usage with or without "-x" of du (or ncdu), it will exclude those files out and the reduction is drastic.
So, monit is lying with the current disk usage. du -x is better and df is giving something not that bad.

To Reproduce
Steps to reproduce the behavior:

  1. rebuild several images at several point of time (like every 3 month
  2. do: du -h -d1 -x / , du -h -d1 / and df -h you will see difference in disk size available.

Screenshots
ncdu without -x
Screenshot from 2024-11-06 15-08-59
ncdu with -x
Screenshot from 2024-11-06 15-23-38

and df
Screenshot from 2024-11-06 15-55-14

Expected behavior
Having a clear (better view) of disk space available and send email only when really needed.

@JeGoi JeGoi added the Type: Bug label Nov 6, 2024
@JeGoi JeGoi added this to the +1 (patch release) milestone Nov 6, 2024
@JeGoi JeGoi changed the title monit is not trustable with docker layers monit check disk size is not thrustable with docker layers Nov 6, 2024
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

1 participant