Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Cpanel quotas

110 bytes added, 14:29, 23 June 2015
removed dead link
WHM/Cpanel, a popular commercial web-based control panel for Linux, has a tendency to overwrite the special quota files in the VPS VE context. I am referring to:<pre>
lrwxr-xr-x 1 root root 39 Jun 8 17:27 aquota.group -> /proc/vz/vzaquota/00000073/aquota.group
lrwxr-xr-x 1 root root 38 Jun 8 17:27 aquota.user -> /proc/vz/vzaquota/00000073/aquota.user
</pre>
The result of these being overwritten will be WHM showing "unlimited" quota reports for all users in the system. An quick solution to this is to run these commands from within the VE as root:
<pre>
rm -f /aquota.user 2>/dev/null
rm -f /aquota.group 2>/dev/null
for x in `find /proc/vz/vzaquota/ | tail -2 `; do ln -s $x / ; done
</pre>
 
The result of these being overwritten will be WHM showing "unlimited" quota reports for all users in the system== External links ==* [http://forums. An quick solution cpanel.net/f5/fixquota-script-error-46270.html] - fixquota script error, Thanks to this is to run these commands David from within the VPS as root:Cliffsupport
rm -rf /aquota.user 2>/dev/nullrm -rf /aquota.group 2>/dev/nullunlink /aquota.user 2>/dev/nullunlink /aquota.group 2>/dev/nullfor x in `find /proc/vz/vzaquota/ | tail -1 | xargs find | tail -2 `; do ln -s $x /; done[[Category: Troubleshooting]]