openvz user and quota issues

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.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
I have been trying to find

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...
/dev/sda1 / ext3 errors=remount-ro,usrquota,grpquota 0 1

setup from host

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.

ISPConfig

How do you setup User Quota in OpenVZ container?

Sam

quota setup within containers

# vzyum <VEID> install quota
# vzctl set <VEID> --quotatime 0 --quotaugidlimit 500 --save
# vzctl restart <VEID>

Change quotatime and quotaugidlimit as required.

Comment