Page 1 of 1

Incorrect Display of Disk Usage?!

Posted: Thu Mar 29, 2018 9:04 am
by kobo1d
hello.

i manually imported emails and then run "v-update-mail-domain-disk && v-update-user-counters".
now in VestaCp GUI it displays like this:

Web: 0 mb
Mail: 724 mb
User Directories: 1 mb
Disk: 2.85 gb

i tried running: "v-update-user-disk && v-update-user-quota", but still the same.
but how can it be possible? 724+1 is not 2850...

i check manually from console with "du -sh" and the disk usage is a total of 725mb (the correct one)

what is this 2.85 gb?

thanks

edit: im on debian 9. also "quota -q" shows correct values

Re: Incorrect Display of Disk Usage?!

Posted: Thu Mar 29, 2018 12:52 pm
by tjebbeke
As I can see in v-update-user-counters
Disk total = Disk Web + Disk Mail + Disk DB
Maybe your database is 2.1GB?

Re: Incorrect Display of Disk Usage?!

Posted: Thu Mar 29, 2018 1:00 pm
by kobo1d
hey, thanks for your answer, but the database size is zero.
i just imported the mails only.

its really strange. yesterday before i went to sleep i could bet it was displayed correctly.

i wonder where does it even take this number from. i checked the total size of complete home directory (all users) and its 3gb. its only mails yet. no way i can figure out where it comes from :(

i have 6 user accounts with only mails and they are all displayed wrong.


edit: 3 of them are completly off:

Image

Re: Incorrect Display of Disk Usage?!

Posted: Fri Mar 30, 2018 12:51 pm
by kobo1d
ok. i have some interesing updates.
after importing the web and db files and updating the counters again, it is now displayed correctly.
i think that when u partially import some files manually (without vestacp routines) and then update counters, there is some calculation problem OR there is some special command to run, that i forget, which corrects the numbers.
but when you use the vestacp restore routines, it works.
so nvm, its working now.
thanks :)

Re: Incorrect Display of Disk Usage?!

Posted: Mon Apr 02, 2018 6:26 pm
by kobo1d
bug report & fix, for all who have same problem:

https://github.com/serghey-rodin/vesta/issues/1526