Quotas 5.3

BrianUK

Verified User
Joined
Feb 4, 2006
Messages
89
Hi

I'm having problems with disk/bandwidth quotas.

Logining into da as admin i see....

Disk Space (mb) 699.24
Bandwidth (gb) 6.3312

Is this supossed to be for all users or just admin?

If it's for all it's VERY wrong

As per another post i tried

quota -v username

and got

Disk quotas for user brian (uid 1020):
Filesystem usage quota limit grace files quota limit grace
/ 0 0 0 0 0 0

Disk quotas for user picter (uid 1021):
Filesystem usage quota limit grace files quota limit grace
/ 0 0 0 0 0 0

Now these 2 users have quite high traffic/disk usage so why is everything showing up as 0?

I checked quota_partition in the /usr/local/directadmin/conf/directadmin.conf file and it's showing up as / this seems odd to me shouldn't it be /usr/home ?

thanks
 
DA sets / for quotas on all freebsd boxes I have seen and has had to be changed to /usr in some cases it may have to be set to /home if that is its own partition. You will need to set this in both /etc/fstab and /usr/local/directadmin/conf/directadmin.conf.
 
Hi

The users folders are in /usr/home/ so should I set it to this? or just /usr as there isn't a home partition
 
Last edited:
read my post I said /usr :)

you set to partition they on and not the directory.

type mount to check if /usr has quotas enabled.
 
doh sorry bout that, edited the two files,

did the following

/usr/sbin/quotaoff -a; /sbin/quotacheck -aug; /usr/sbin/quotaon -a;
/usr: not mounted
/usr: not mounted
quotacheck: creating quota file /usr/quota.group
/usr: not mounted
/usr: not mounted

echo 'action=tally&value=all'

think I read somewhere that FreeBSD has to have quotas enabled in the Kernel?

thanks
 
Last edited:
Yes it does you have to add the line:

# Quota support
options QUOTA

The generic kernel is located in:

/usr/src/sys/i386/conf/GENERIC

To rebuild kernel do:

cd /usr/src
make buildkernel
make installkernel
shutdown -r now
 
BrianUK said:
doh sorry bout that, edited the two files,

did the following

/usr/sbin/quotaoff -a; /sbin/quotacheck -aug; /usr/sbin/quotaon -a;
/usr: not mounted
/usr: not mounted
quotacheck: creating quota file /usr/quota.group
/usr: not mounted
/usr: not mounted

echo 'action=tally&value=all'

think I read somewhere that FreeBSD has to have quotas enabled in the Kernel?

thanks

seems you dont have a /usr partition can you do an output of mount please.
 
/dev/idad0s1a on / (ufs, local)
devfs on /dev (devfs, local)
/dev/idad0s1e on /tmp (ufs, local, soft-updates)
/dev/idad0s1f on /usr (ufs, local, soft-updates)
/dev/idad0s1d on /var (ufs, local, soft-updates)
procfs on /proc (procfs, local)
 
yes you need to add quota support to the kernel and then enable it or the /usr partition via /etc/fstab and directadmin.conf.
 
Back
Top