Webgecko
Verified User
Well, as a new DA user, I've been finding this forum very usefull, however, it seems that you must view several threads to get the one answer that's needed, or rather, peice together all the small bits of information provided by the members.
Here's another one that I struggled with and decided to put the complete fix up for FreeBSD.
How to get DA reporting the correct disk usage.
First thing to do was check to ensure that the disk partition that holds the users has quotas enabled (I'll assume that quotas have been enabled in the kernel).
# cd /etc/
# more fstab
My fstab file looks like this:
# Device Mountpoint FStype Options Dump Pass#
/dev/vinum/swap none swap sw 0 0
/dev/vinum/root / ufs rw,userquota,groupquota 1 1
/dev/vinum/home /home ufs rw,userquota,groupquota 2 2
/dev/vinum/tmp /tmp ufs rw 2 2
/dev/vinum/usr /usr ufs rw 2 2
/dev/vinum/var /var ufs rw 2 2
/dev/acd0 /cdrom cd9660 ro,noauto 0 0
proc /proc procfs rw 0 0
As my users reside in /usr/local/ I needed to apply the userquota,groupquota information to the /usr partition so it looked like this:
/dev/vinum/usr /usr ufs rw,userquota,groupquota 2 2
I then rebooted the server.
I added the line:
quota_partition=/usr
to /usr/local/directadmin/conf/directadmin.conf
Once the server was back up, I followed the directions here:
http://help.directadmin.com/item.php?id=42
# /usr/sbin/repquota /usr
this will output information like this:
User used soft hard grace
root -- 417796 0 0 7446 0 0
nobody -- 4 0 0 1 0 0
bin -- 56880 0 0 510 0 0
majordomo -- 8 0 0 2 0 0
diradmin -- 8 0 0 2 0 0
admin -- 200 0 0 44 0 0
user123 -- 100 0 0 22 0 0
user456 -- 100 0 0 22 0 0
If the "used" column is not showing anything, or users are not in the list, then you'll need to run the quotacheck program:
/usr/sbin/quotaoff -a; /sbin/quotacheck -avug; /usr/sbin/quotaon -a;
echo "action=tally&value=all" >> /usr/local/directadmin/data/task.queue
That's all I did. Followed the instrutions and it worked.
Hope this is usefull for someone. If not, at least it's here for the next server I do.
Here's another one that I struggled with and decided to put the complete fix up for FreeBSD.
How to get DA reporting the correct disk usage.
First thing to do was check to ensure that the disk partition that holds the users has quotas enabled (I'll assume that quotas have been enabled in the kernel).
# cd /etc/
# more fstab
My fstab file looks like this:
# Device Mountpoint FStype Options Dump Pass#
/dev/vinum/swap none swap sw 0 0
/dev/vinum/root / ufs rw,userquota,groupquota 1 1
/dev/vinum/home /home ufs rw,userquota,groupquota 2 2
/dev/vinum/tmp /tmp ufs rw 2 2
/dev/vinum/usr /usr ufs rw 2 2
/dev/vinum/var /var ufs rw 2 2
/dev/acd0 /cdrom cd9660 ro,noauto 0 0
proc /proc procfs rw 0 0
As my users reside in /usr/local/ I needed to apply the userquota,groupquota information to the /usr partition so it looked like this:
/dev/vinum/usr /usr ufs rw,userquota,groupquota 2 2
I then rebooted the server.
I added the line:
quota_partition=/usr
to /usr/local/directadmin/conf/directadmin.conf
Once the server was back up, I followed the directions here:
http://help.directadmin.com/item.php?id=42
# /usr/sbin/repquota /usr
this will output information like this:
User used soft hard grace
root -- 417796 0 0 7446 0 0
nobody -- 4 0 0 1 0 0
bin -- 56880 0 0 510 0 0
majordomo -- 8 0 0 2 0 0
diradmin -- 8 0 0 2 0 0
admin -- 200 0 0 44 0 0
user123 -- 100 0 0 22 0 0
user456 -- 100 0 0 22 0 0
If the "used" column is not showing anything, or users are not in the list, then you'll need to run the quotacheck program:
/usr/sbin/quotaoff -a; /sbin/quotacheck -avug; /usr/sbin/quotaon -a;
echo "action=tally&value=all" >> /usr/local/directadmin/data/task.queue
That's all I did. Followed the instrutions and it worked.
Hope this is usefull for someone. If not, at least it's here for the next server I do.
Last edited: