Quota refresh

Mathieu

Verified User
Joined
Sep 23, 2004
Messages
15
Hello

How can I refresh the quota of my accounts?
He says now 78.9 / 50 but earlier we have deleten some big files...

And i can't use the quotaoff -a ???
Some help plz???

Thanks in advance!
 
This command is what DA runs:
/usr/sbin/quotaoff -a; /sbin/quotacheck -aug; /usr/sbin/quotaon -a;

Be sure to include the full path to the quotaoff utility when you run the command ;)
 
quotaoff: /: Operation not supported
quotaon: using //quota.user on
quotaon: /: Operation not supported
 
What operating system and version are you using?
and have you compiled the kernel to enable quota?

If so have you searched for quotaon and quotaoff to find if they exist and if so what the full command should look like?
 
Hello

FreeBSD 4.10-RELEASE #0 Tue May 25 22:47

No, those files does not exist..
 
That would probably be why :p

You will need to compile your kernel with quota.

Put the following in the cd /usr/src/sys/i386/conf/GENERIC file
Code:
options         QUOTA                   #enable disk quotas
Then build your kernel

Code:
cd /usr/src
make -j4 buildkernel KERNCONF=GENERIC
make installkernel KERNCONF=GENERIC
shutdown -r now

I think thats it. I'm not sure if that will add the tools necassary but the kernel will at least support it. If it doesn't add those tools, then you will want to copy them over from the cd or download the from one of the FreeBSD ftp servers. Although they should have been there along whether or not your kernel supports quota (at least thats the way its been for me)
 
I think fedora comes with quota support builtin by default. I've never used Fedora so don't take my word for it. Do any of the quota commands work? Such as quotacheck, quotaon, or quotaoff ?

Quick search on google revealed this tutorial for rh9 which supposedly should also work for fedora, but it looks like it assumes quota is compiled which might indicate it is by default. http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/custom-guide/ch-disk-quotas.html
 
Last edited:
Same Here

i think the problem is the cron jobs arent working

On my system it looks as though when I installed DA there were no crontab entries added. If i check root and the directadmin user it adds neither has any cronjobs listed with regard to directadmin.

What would need to be added to cron for DA on FreeBSD 4.10?
 
Crontabs for users is stored in the corresponding users data directory which crontab should be setup to scan (not really sure on the details behind it)

I'm not sure if this has changed since my installation, but if nothing regarding directadmin is in /etc/crontab you might try checking all crontab files for it since on other operating systems, DA's crontab is located in different places.

Here is what the crontab should contain by default
Code:
* * * * * root /usr/local/directadmin/dataskq
2 0-23/6 * * * root echo 'action=vacation&value=all' >> /usr/local/directadmin/data/task.queue;
5 5 * * 0 root /sbin/quotaoff -a; /sbin/quotacheck -augm; /sbin/quotaon -a;
10 0 * * * root echo 'action=tally&value=all' >> /usr/local/directadmin/data/task.queue
20 4 1 * * root echo 'action=reset&value=all' >> /usr/local/directadmin/data/task.queue
0 4 * * * root echo 'action=check&value=license' >> /usr/local/directadmin/data/task.queue
 
Back
Top