|*** Note: If you're running a VPS with a "simfs" file system, quotas usually cannot be enabled with normal means. Contact yoru VPS provider to enable quotas for you.|
df -hto see your partitions.
If you have a /home partition, then your quota_partition value will be /home.
If you have no /home partition, then your quota partition will likely be /.
In some cases, you might have a sybolic link: /home -> /usr/home, in which case your quota_partition will be /usr.
DirectAdmin relies on the system quotas to return a value for how much space is being used. DirectAdmin will run
/usr/sbin/repquota /homeWhere /home is the quota_partition value set in the /usr/local/directadmin/conf/directadmin.conf file (eg, /home, / or /usr). The command should output a large list of numbers, eg
[root@server]# /usr/sbin/repquota /home
/sbin/quotaoff -a; /sbin/quotacheck -avugm; /sbin/quotaon -a;
/usr/sbin/quotaoff -a; /sbin/quotacheck -avug; /usr/sbin/quotaon -a;
If are getting errors and no output is displayed for the repquota command, you'll need to check your /etc/fstab file to make sure that it contains the rw,userquota,groupquota line beside the partition that is using the quotas.
***Important***: On Linux (Redhat/Debian), it's usrquota,grpquota, and on FreeBSD it's userquota,groupquota.
Sample /etc/fstab (do not make your's look identical if it's different, this is one example from a specific OS):
# Device Mountpoint FStype Options Dump Pass#
Once the repquota program is returning a normal value, then you can run the tally to get the correct usage to show up in DirectAdmin:
echo "action=tally&value=all" >> /usr/local/directadmin/data/task.queue
This task.queue command will get picked up by the dataskq binary. It calls the repquota command and dumps it into /home/tmp/quota-dump.
Check /var/log/directadmin/errortaskq.log for any errors with this.
Running the tally manually for a User can also help with debugging these issues.
Information for a Support Request
If you're completely confused and are going to be contacting some support department about the issue, run these commands and paste them the full output from them:
|Invalid number: inode-hard|
|Which partition should I set in the quota_partition setting in the directadmin.conf?|
|The disk usage for a given User is higher than I think it should be.|
|I need to rebuild all of my Resellers' users.list files|
|Setting up quotas on an XFS partition|
© 2003 JBMC Software, Suite 173 3-11 Bellerose Drive, St Albert, AB T8N 1P7 Canada. Mon-Fri 9AM-5PM MST