How to synch hard disk quota

Created:

2016-11-16 12:52:01 UTC

Modified:

2017-04-24 12:09:17 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to synch hard disk quota

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

The hard disk quota in the Plesk Panel does not match the one set on the server:

File system:

#  quota -u examplecomsysuser
Disk quotas for user examplecomsysuser (uid 10000):
Filesystem blocks quota limit grace files quota limit grace
/dev/ploop44487p1
39032 0 1953125 1661 0 0

Plesk Panel: Subscriptions > example.com > Websites & Domains > Web Hosting Access or

# /usr/local/psa/bin/subscription -i example.com |grep 'quota'                                                                                  Hard disk quota:                        500 MB

How do I update hard quota, set correct value?

Resolution

Please use the subscription utility

# /usr/local/psa/bin/subscription -u example.com -hard_quota 200M

To set the hard quota value to the one specified in subscription properties please use the following command:

# subscription_name='example.com';quota_val=$(mysql -uadmin -p$(cat /etc/psa/.psa.shadow) psa -sNe "select quota from sys_users join hosting on hosting.sys_user_id=sys_users.id join domains on  hosting.dom_id=domains.id where domains.name ='$subscription_name'"); /usr/local/psa/bin/subscription -u $subscription_name -hard_quota $quota_val"B"
Have more questions? Submit a request
Please sign in to leave a comment.