Recently, I've had a client who's had issues with uploading files and general functioning of the ISPConfig hosting control panel.
So the first thing I checked out was "/proc/user_beancounters", and everything seemed normal there.
Quick check with `vzquota` turned out that the inodes were maxed out.
Blocks and Inodes can also be checked/displayed within the container via `df -h` and `df -i`.
Additionally, since he had a lot of users, he was maxed out on the users limits too. Noticed that with `repquota -a` which pulled up a huge number of users.
Increasing the appropriate limits with vzctl on diskspace, diskinodes and quotaugidlimit resolved all issues.
- sandip's blog
- Login or register to post comments
Comments
I have been trying to find how to set User and Group quota without limits inside a container but I can't seem to find a clear answer.
Normally I would do this in a fstab file but I'm not sure that works here. (What would be the /dev/sda1 ?)
Here is the command I would like to implement... quota 0 1
/dev/sda1 / ext3 errors=remount-ro,usrquota,grp
The above mentioned commands need to be implemented from the host to setup quotas for guest containers. If it isn't setup, then there should be no limits placed.
If the container is setup with quota support, you should be able to modify quota using `edquota` command.
How do you setup User Quota in OpenVZ container?
Sam
# vzyum <VEID> install quota
# vzctl set <VEID> --quotatime 0 --quotaugidlimit 500 --save
# vzctl restart <VEID>
Change quotatime and quotaugidlimit as required.