madeITBelgium / vesta

VESTA Control Panel
https://www.tpweb.org
GNU General Public License v3.0
34 stars 15 forks source link

Disk Usage Inconsistency #97

Closed Sn1F3rt closed 3 years ago

Sn1F3rt commented 3 years ago

The disk space used by a user shown in the panel and the actual disk space used, is inconsistent.

This is what is shown in the panel:

ss1

However,

[root@sohamb03 ~]# du -s /home/xolentum -h
11G     /home/xolentum
madeITBelgium commented 3 years ago

Do you know which is wrong? Disk, Mail, Database? I just checked my servers and I found the mail was always 0. That is fixed now.

Sn1F3rt commented 3 years ago

It's the user directories which is wrong. I dug a bit deeper into this, and found that the inconsistency is because the size of hidden folders isn't being read.

[xolentum@sohamb03 ~]$ du .xolentum -h
11G     .xolentum/lmdb
11G     .xolentum

The size of the user directories, shown in the previous screenshot is this

[xolentum@sohamb03 ~]$ du -s xolentum -h
526M    xolentum