How is disk space in the management dashboard calculated?

Status
Not open for further replies.

guidoq

Advanced Certified
Joined
Apr 14, 2021
Messages
98
Reaction score
59
EDIT: I was looking at different servers :oops:, sorry, can you delete this thread?

Hello,

I'm finding inconsistencies between what I see on the disk space graph in the ui and the disk space available in the vm. I was wondering how this is calculated or if i'm missing something

dashboard
1684924171016.png

vm
1684924188515.png


from the api:
"DiskUsage": 37,
"FreeDiskSpace": 13156425728,
"TotalDiskSpace": 21102706688,


calculating the percentage of free disk space from FreeDiskSpace and TotalDiskSpace, it is consistent with DiskUsage and closer to the df output.
I don't see a correlation to what is displayed in the ui though

any insight on this?

thanks
 
Last edited:
Could be lots of reasons. Commonly, the space for files (for example large log files) that have been deleted but are open in memory by a program still consume space in df but not in du (or maybe it's the other way around, I can never remember) until they are released.

Because of this you often see big disparities between what du and df report, maybe the dashboard is reporting using du?

If that's the case, restarting some services or the server might free up that space and see them more closely correlate.

If that's not the case the other thing to consider would be an overmount (a non-empty folder used as a mount point).
 
Status
Not open for further replies.

Forum statistics

Threads
111,974
Messages
590,081
Members
164,899
Latest member
mazet