• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Disk space different on Plesk CP and on Plesk Server

H

hc_andy

Guest
Hi there,

I can't seem to work out why the disk space usage on the user's domain is reported differently on the plesk control panel and the actual plesk server. Take a look below.

[root@plesk2 test.com.au]# du -h
169M ./httpdocs
254M .

Plesk Contro Panel reports:
Hard disk quota 500 MB
Disk space used by httpdocs 492 MB

Plesk expand reports:
Disk space 559.44 MB (used) 500 MB (allowed)

The server is reporting that the httpdocs directory is only using 169M and the total disk usage for that domain is 254M, but as you can see plesk CP and plesk expand are reporting different disk usage figures

Anyone got any ideas why this might be happening? I've reloaded the statistics from plesk expand for the domain and there was no change or update to the disk usage.

Thanks.

Andy
 
Ok I've been digging further into this issue and I think the difference between the disk space usage is that plesk updates its stats such as disk space every 24 hours (I read this somewhere). Can someone please confirm if this is true for me and if so what time does it do this?

I have been able to get the stats such as the disk space to update by manually running the statistics command below.

/usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=yourdomain.com

Also what is included in the "Used" disk space column reported by plesk controk panel?

I have found that disk space includes everything in the directories which are created by default when the domain is first created and every file in the httpdocs folder that belongs to the user.

If I "chown" a big file in httpdocs to a different user and run the statistics command above, the file size of that big file is no longer included as part of the "Used" disk space - change the file ownership back to the user, re-run statistics and bang it's added to the "Used" disk space again.

Did the same by copying a large file into the log folder (/statistics/logs) and saw that this added to the "Used" disk space (eventhough the file ownership was set to root).

Hope that helps some people out.

So can someone please tell me how often plesk updats it's stats (eg: used disk space) and when? Thanks.
 
Back
Top