Enabling second level quota on an OpenVZ node

This is quite common, you have a cPanel (or others) vps and disk usage on accounts shows "Unlimited". You try with "Initial quota setup" or /script/fixquota and get an error like this:

No filesystems with quota detected.


Solution is to enable second level quota on the node. To do it execute these commands on the node:

vzctl stop CTID

vzctl set CTID --quotaugidlimit 100 --save

vzctl start CTID


Then, if you're under cPanel, do the "Initial quota setup" thing or run /script/fixquota


NOTE:

CTID is the container/vps id number.

On the second command,  --quotaugidlimit 100 <- this is the number that defines the max file owners. Example: you have 100 users into the vps, set it to 120. You have 300 users into the vps, set it to something more than 300. I've used 100 on this example because it's a common average value. Keep in mind that the more you set, the more kernel memory overhead will be created.

  • 46 Пользователи нашли это полезным
Помог ли вам данный ответ?

Связанные статьи

Internal server error with 777 chmodded folders and files

For PHP applications to access MySQL databases or upload (write) files to site folder(s), the...

Can I host adult content on your web hosting?

Yes, as long as it's legal adult material (no child porn or weird things).

Can you install a script on my account?

Yes, we can install any standard script for a one time fee of 15$. Most scripts can be...

Can you transfer my website from my old web hosting company?

For us to be able to move your website from your old web hosting company we will need the...

Do you do backups?

Yes, daily on all shared and reseller accounts! Vps and dedicated server's backups are client's...