English  France













If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.



Reply
  #1 (permalink)  
Old 07-30-2009, 05:46 AM
UnderHost's Avatar
UnderHost Management
 
Join Date: Jul 2008
Posts: 581
Default WHM shows all accounts as 0/unlimited quotas

There are many possible causes of this issue, however most relate to quotas being enabled on the filesystem itself.

Some ways to check the most common errors are:

Quotas enabled in the filesysem

By default, quoatas are enabled in the kernel on all UnderHost Linux and FreeBSD kernels. If you've compiled/installed your own kernel, you'll need to verify that quotas are enabled.

--- FreeBSD systems will need to add "options QUOTA" to their kernel configuration and recompile. They will then need to add "enable_quotas="YES"" to their /etc/rc.conf file.

--- To enable quotas on a certain partition, one will need to modify the /etc/fstab file by adding usrquota (or grpquota if one desires the quota to pertain to an entire group rather than an individual user) to the options column (e.g. "LABEL=/home /home ext3 defaults,usrquota 0 0").

Code:
[root@linux-test-server ~]# cat /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/                 /                       ext3    defaults,usrquota        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
LABEL=SWAP-sda2         swap                    swap    pri=0,defaults        0 0
/usr/tmpDSK             /tmp                    ext3    defaults,noauto        0 0
/tmp             /var/tmp                    ext3    defaults,bind,noauto        0 0
[root@linux-test-server ~]#
--- Once those entries are added, a reboot of the server should resolve the issue.

Run /scripts/fixquotas

Cpanel has it's own tools to repair the quotas for it's accounts. the command
Code:
#/scripts/fixquotas
run through ssh may resolve the issue.

Repquota

The command
Code:
#repquota -ua
will tell you if quotas are being reported for OS users at all.

Quotacheck

The command
Code:
#quotacheck -fv /home
will display the quotas for that filesystem, however the partition has to be unmounted first. It's best to do this from Single User mode.
__________________
UnderHostProviding Affordable and Quality USA Hosting & Offshore cPanel Hosting
24/7 Rapid Support / 99.9% Uptime Guarantee / Shared / Reseller / VPS / Dedicated
Premium VPSUSA Cloud Virtual Private Servers - Dedicated and Scalable Resources - Parallels® Virtuozzo
Hong Kong - Singapore - USA - Canada - Netherlands - UK - Germany - Panama - Malaysia
Reply With Quote
underhost.us
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Loading...


All times are GMT -4. The time now is 02:04 AM.
Copyright © 2010 UnderHost Networks Ltd






Partners
Underhost Facebook  Underhost Twitter

Copyright © 2011 UnderHost Networks Ltd