• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question Calculation of hardquota in service plan

Martin.B

Plesk Certified Professional
Plesk Certified Professional
Hi,

according to the official Administrator's Guide (Appendix A: Ressources), the 'disk space' value in a service plan definition "includes disk space occupied by all files related to the subscription: content of websites, databases, applications, mailboxes, log files, and backup files."

Additionally it's possible to set a hard quota (in supported) in 'hosting parameters'. According to the Guide (Appendix A: Hosting Parameters) "Hard disk quota will not allow writing more files to the web space when the limit is reached"

There is an obvious difference in the wording. While the first explicitly states, that all files are included into the calculation, the definition for the hard quota only speaks about the 'web space', which would be, as I understand it, only the contents of /var/www/vhosts/<domain>/httpdocs.
Since mails and databases are saved as other users (popuser/mysql) this also makes sense, however I'd like to confirm it.
Is anybody using hardquota and can tell, which files are used for the calculation?
 
To answer directly: only files owned by the system user that the quota is set for are taken into account.

Plesk's hard disk quota uses linux system of disk quotas that is dependent on the file ownership. Consequently, files that aren't owned by the system user that the quota is set for, such as email messages or databases, can't be taken into account.

The actual location of the files is not important, just their ownership. E.g. if there are user owned files in /var/www/vhosts/<domain>/httpdocs and the admin copies them to /root/backup/<domain>/httpdocs without changing the file ownership, cumulative size of both copies will be taken into account for the user's hard disk quota.

OS tools can be used to see the quotas after they were set by Plesk:
Code:
quota --user --human-readable --verbose <SYSTEM_USER>
repquota --all --human-readable --verbose
 
Back
Top