If you have a Virtuozzo VPS, there are a few additional steps that must be taken to enable quotas in this environment.
This is due to the nature of Virtuozzo quota types; First level quotas and Second level quotas.
First Level Quotas
First Level quotas should be enabled by the Virtuozzo environment when it starts up the container, as such you simply need to verify that it is enabled.
Run the following command to verify First Level quotas; where
Container_ID represents the container ID of the container that you wish to check:
vzquota show Container_ID
Second Level Quotas
Perform the following steps:
QUOTAUGIDLIMITparameter to a value that is greater than zero.
Run the following command to enable second-level quotas, where
Container_IDrepresents the container ID of the container that you wish enable second-level quotas on.
vzquota on Container_ID -s 1
Restart the Container.