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.
- Connect to OpenVZ node via SSH
- Stop the VPS:
# vzctl stop 101
- Run this command to enable second level for a running VM.
# vzctl set 101 --quotaugidlimit 10000 --save
- 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
- Do the same for all existing VM and restart it to take the changes effect.
- 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"
- Change the below line in /etc/vz/vz.conf
CONFIG_TEXT: CONFIGFILE="basic"
toCONFIG_TEXT: CONFIGFILE="vswap-solus"
Comments
0 commentsPlease sign in to leave a comment.