How to enable Second level Quota on a cPanel OpenVZ virtual server?

Have more questions? Submit a request

Applicable to:

  • SolusVM

Question

 How to enable Second evel quota on a OpenVZ virtual server?

Answer

The parameter that controls the second-level disk quotas is QUOTAUGIDLIMIT in the Container configuration file. By default, the value of this parameter is zero and this corresponds to disabled per-user and per-group quotas.

  1. Connect to OpenVZ node via SSH
  2. Stop the VPS:

    # vzctl stop 101

  3. Run this command to enable second level for a running VM.

    # vzctl set 101 --quotaugidlimit 10000 --save

  4. Restart the VM.

    # vzctl start 101

    (Check the Quotas inside the VM using the below command on the VM if cPanel is installed on the VM)

    # /scripts/fixquotas

  5. Do the same for all existing VM and restart it to take the changes effect.
  6. To create a VM with second level quota enabled, add the below line in /etc/vz/conf/ve-vswap-solus.conf-sample

    CONFIG_TEXT: QUOTAUGIDLIMIT="10000"

  7. Change the below line in /etc/vz/vz.conf

    CONFIG_TEXT: CONFIGFILE="basic"

    to

    CONFIG_TEXT: CONFIGFILE="vswap-solus"

Articles in this section

Was this article helpful?
0 out of 0 found this helpful
Share

Comments

0 comments

Please sign in to leave a comment.