UnixServerAdmin

Server Administration & Management

How to enable Quota for cPanel in Virtuozzo

On Virtuozzo VPS with Cpanel control panel, disk quota is showing unlimited. I tried to enable quota through WHM –> Server Configuration –> Initial Quota Setup, but got following error.

Installing Default Quota Databases……Done
Quotas are now on
Updating Quota Files……
quotacheck: Can’t find filesystem to check or
filesystem not mounted with quota option.

quotacheck: Can’t find filesystem to check or
filesystem not mounted with quota option.
….Done

The problem is fixed by changing the VPS quotaugidlimit value to 800.

1. Click on Infrastructure Manager
2. Click on Virtual Private Servers
3. Click on VPS you need to enable quota
4. Click Preferences
5. Click on Resources tab
6. Click Extend button
7. Disk Quota – Click to set up Disk Quota parameters
8. Click Modify Button on top and change value of quotaugidlimit to 800 and save, this will restart the VPS.

Now you need to delete old quota to enable new quota.

# rm -rf /aquota.user 2>/dev/null

# rm -rf /aquota.group 2>/dev/null

# unlink /aquota.user 2>/dev/null

# unlink /aquota.group 2>/dev/null

And run following command, it should be in one line, No line breaks

for x in `find /proc/vz/vzaquota/ | tail -1 | xargs find | tail -2 `; do ln -s $x /; done

Now your Virtuozzo VPS will work with cPanel disk quotas.

October 24, 2011 Posted by | cPanel, Virtualization, Virtuozzo | , , , , | Leave a comment