How to change update on Disk Quota?

splitech

Verified User
Joined
Sep 28, 2004
Messages
47
How come the update on disk quota takes so long. I uploaded a 9.5 gig file into a users account, and directadmin still shows only using .3067 for used disk space, Still does not show the 9.5gig file usage. How to change so it shows up faster?
 
Change the cron of directadmin /etc/cron.d/directadmin_cron

There's a line:

5 5 * * 0 root /sbin/quotaoff -a; /sbin/quotacheck -augm; /sbin/quotaon -a;

This one will only run at 05:05 at night.

you could change it to 5 * * * 0 root ......

So it runs every hour. Don't know if this really enhances the performance :p
 
Didn't refresh?

Hello. I changed the 5 5 * root ..... to 5 * * root ... still didn't update all day, Any way to force update manually? like from the [root@monkey root ] prompt?
 
Simply execute: /sbin/quotaoff -a; /sbin/quotacheck -augm; /sbin/quotaon -a;

If you want de diskquota's otherwise you chould use the tally all of DA. in the /etc/cron.d/directadmin and change this.

Maybe you should look in the Knowledgebase of DA as it is perfectly explained there:

http://help.directadmin.com/item.php?id=48
 
ok, more in detail please

Could you please explain what the:

10 */4 * * * root echo `........

what the 10,
what the */4
what the *
what the *
what the *

All means??
 
minute This controls what minute of the hour the command will run on,
and is between '0' and '59'
hour This controls what hour the command will run on, and is specified in
the 24 hour clock, values must be between 0 and 23 (0 is midnight)
dom This is the Day of Month, that you want the command run on, e.g. to
run a command on the 19th of each month, the dom would be 19.
month This is the month a specified command will run on, it may be specified
numerically (0-12), or as the name of the month (e.g. May)
dow This is the Day of Week that you want a command to be run on, it can
also be numeric (0-7) or as the name of the day (e.g. sun).
user This is the user who runs the command.
cmd This is the command that you want run. This field may contain
multiple words or spaces.


Man pages
 
To add to your post, */4 in the second column may not be immediately understandable to the original poster; it means every four hours.

Jeff
 
Back
Top