Difference between revisions of "Cpanel quotas"
(Added external link to forum post solving the issue with changes in vps configuration) |
(removed dead link) |
||
(One intermediate revision by one other user not shown) | |||
Line 6: | Line 6: | ||
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: | 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> | <pre> | ||
− | rm - | + | rm -f /aquota.user 2>/dev/null |
− | rm - | + | rm -f /aquota.group 2>/dev/null |
− | |||
− | |||
for x in `find /proc/vz/vzaquota/ | tail -2 `; do ln -s $x / ; done | for x in `find /proc/vz/vzaquota/ | tail -2 `; do ln -s $x / ; done | ||
</pre> | </pre> | ||
Line 15: | Line 13: | ||
== External links == | == External links == | ||
− | |||
* [http://forums.cpanel.net/f5/fixquota-script-error-46270.html] - fixquota script error, Thanks to David from Cliffsupport | * [http://forums.cpanel.net/f5/fixquota-script-error-46270.html] - fixquota script error, Thanks to David from Cliffsupport | ||
[[Category: Troubleshooting]] | [[Category: Troubleshooting]] |
Latest revision as of 14:29, 23 June 2015
WHM/Cpanel, a popular commercial web-based control panel for Linux, has a tendency to overwrite the special quota files in the VE context. I am referring to:
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
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:
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
External links[edit]
- [1] - fixquota script error, Thanks to David from Cliffsupport