Jump to content


- - - - -

How to Enable Second Level Quotas in OpenVZ

OpenVZ SolusVM CentOS 6.5

  • Please log in to reply
No replies to this topic

#1 Wilson18



  • root
  • 112 posts
  • LocationUniversity of Birmingham

Posted 11 June 2014 - 02:54 PM

In this quick tutorial, I will be showing you how to enable Second Level quota support for a OpenVZ container. This is needed for things like cPanel installations as it allows them to monitor disk usage. 


To do this, you will need to have a VM already set up. Once you have this, you will need to be connected to the main server which hosts the VM as root. Once you have done this, you will need to stop the CM. Once you have done this, we can enable the quota by setting the quotaugidlimit to  3000 and then starting the server id. The 101 seen below is the id of the container. You will need to replace this with your own. 

vzctl stop 101
vzctl set 101 --quotaugidlimit 3000 --setmod restart --save
vzctl start 101

Once you have done this, you may see an error like this:

vzquota : (warning) quota usage is invalid for id 101, recalculating disk usage...

This is fine, don't worry about it. If you are doing this for cPanel, if you log in to your WHM and go to List Accounts, you should see that each account now has their disk space usage calculated. 

List what you read?

Check me out on: YouTube, Twitter, Facebook, Google+

Also tagged with one or more of these keywords: OpenVZ, SolusVM, CentOS 6.5