Quota in OpenVZ

Hi, I'm having trouble getting website quota to work in my OpenVZ Containers. I already know that I don't have to configure it in the Containers, but on the Host. I also read that the current version pure-ftpd-mysql sould be able to handle quota inside containers even if quota is not enabled on the host. However, in all of my OpenVZ Containers, the quota just doesn't apply. I set the limit to 10 MB in ISPConfig (both website and ftp-user), and I uploaded 60MB without any error message.

This is what I did on the Host:

installed vzquota

Enabled 2nd level quota for container

Didnt work on running:

# vzctl set 235 --quotaugidlimit 100 --save
[*]Unable to turn on second-level disk quota on a running container
WARNING: Some of the parameters could not be applied to a running container.
Please consider using --setmode option
Unable to apply new quota values: ugid quota not initialized
Error: failed to apply some parameters, not saving configuration file!

Ok, thanks to the repquota -avu command I saw that the quota for the user was not actually set. I delted the web, and created it new, and set the quota new, and now it is set, and works.

Also, the "vzctl set 235 --quotaugidlimit 1000 --save" command was important. I checked how many quotafiles I had approximately by adding "cat /etc/passwd | wc -l" and "cat /etc/group | wc -l" and found out that that was more than my setting (300) so no new quotas could be set. After setting the quotaugidlimit to 1000 I used the ISPConfig Rsync tool on all websites, and all quotas were set correctly.