Unable to setup the Hard Disk quota for a domain: field is greyed-out and you cannot edit it.

Refers to:

  • Plesk for Linux
  • Plesk Onyx for Windows

Created:

2016-11-16 12:40:39 UTC

Modified:

2017-01-26 15:46:24 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to setup the Hard Disk quota for a domain: field is greyed-out and you cannot edit it.

Symptoms

  1. Disk quota field is greyed-out for a domain and it is not possible to edit it.

  2. Subscription cannot be synchronized with the corresponding service plan due to not supported hard disk quota, the following message appears:

    Syncing the subscription with its service plan failed because some of the services or resources defined in the plan cannot be actually provisioned with the subscription. Available value indicates the actual state of a resource or a service in the system. Clicking OK will initiate setting the subscription values according to the available values.

OR

"Unlimited. Hard disk quota is not supported due to the configuration of the server file system."

Cause

Unconfigured disk quota in operating system.

Resolution

  1. Make sure that the quota is supported by the kernel. It should be compiled into the kernel or loaded as a module.

    To check if the quota is configured properly use this command:

    # /usr/local/psa/admin/sbin/usermng --isquotable

    Normally, it should return "0."

    If the utility returns the following error message

    usermng: Unable to turn on user quota. User quota not supported on device '/dev/sda3'
    System error 3: No such process

    Then make sure that the quota is enabled in /etc/fstab for the partitions Plesk stores data on. Add usrquota as in the example:

    /dev/hda1 / ext3 defaults,usrquota 1 1
  2. The partition must be remounted after usrquota is added into /etc/fstab , for example, with the following:

    ~# mount -o remount /
  3. Create, check and repair quota files:

    /sbin/quotacheck -cfmvF vfsv0 /

    Note: If the command is unknown, install quota package.

  4. Update the user quota with this command line:

    ~# quotaon /dev/hda1

    Make sure that the aquota format is used. There should be an aquota.user file in the root of every partition where the quota is enabled. If there is the quota.user file remove it and create correct one:

    ~# rm -f quota.user
    ~# touch aquota.user
    ~# /sbin/quotacheck -fmv /dev/hda1

    Note. Use your own device instead of "/dev/hda1"

  5. Refresh Plesk components to update information about quota:

    Home > Tools & Settings > Server Components > Refresh

Note that a separate component will not appear, but Plesk components cache will be updated to include new information.

If you are running Plesk in a Virtuozzo Container (CT)

  1. Make sure that the quotaugidlimit parameter is not set to zero and that it is greater than the number of users and groups in the CT. This limit can be adjusted from the Hardware Node with the following:

    ~# vzctl set CTID --quotaugidlimit 500 --save
    ~# vzctl stop CTID
    ~# vzctl start CTID

    Where CTID is the ID of the Virtuozzo container with Plesk.

  2. Execute the packagemng utility to recreate the backend cache in Plesk:

    ~# /usr/local/psa/admin/sbin/packagemng

Additional Information

Please refer to this article if you need to configure quota on FreeBSD.

Have more questions? Submit a request
Please sign in to leave a comment.