PDA

View Full Version : Disk usage and bandwith always in zero



elcambur
02-16-2004, 08:36 PM
Hi
No matter how many files I upload to the server, the disk usage and bandwith for all the users in the server show zero.

What could it be?

ProWebUK
02-16-2004, 08:51 PM
It gets re-tallied every night (quotas shown in DA are currenly *not* live)

To update the quotas manually run the following command in ssh (as root)

echo "action=tally&value=all" >> /usr/local/directadmin/data/task.queue

Chris

elcambur
02-16-2004, 09:26 PM
I did it and it is still not working.

Thank you

DirectAdmin Support
02-17-2004, 09:52 AM
Hello,

As root, type:

quota -v username

to see what the system quotas think you have. Also, how are you uploading your files? where are you saving them and what user owns them.

John

elcambur
02-17-2004, 12:00 PM
This user has more than 4 MB in the folder public_html, I uploaded the files through FTP, the owner is user facilred


Disk quotas for user facilred (uid 506):
Filesystem blocks quota limit grace files quota limit grace
/dev/ubd/0 0 102400 102400 0 0 0

DirectAdmin Support
02-18-2004, 10:01 AM
Hello,

Did you upload those files as root or facilred?

You can rerun the quotacheck program to update the system quotas (this is for RedHat):

/sbin/quotaoff -a;
/sbin/quotacheck -augm;
/sbin/quotaon -a;

John

elcambur
02-19-2004, 03:17 PM
I uploaded the files using the facilred user, I have many users in the server and all of them are uploading stuff, but the bandwith and disk usage are still in zero. I have no clue why this is happenning.

I run

/sbin/quotaoff -a;
/sbin/quotacheck -augm;
/sbin/quotaon -a;


but only the second one actually run, but the disk usage is still in zero.

these where the results.

[root@www root]# /sbin/quotaoff -a;
quotaoff: quotactl on /dev/ubd/0 [/]: No such process
quotaoff: quotactl on /dev/ubd/0 [/]: No such process
[root@www root]# /sbin/quotacheck -augm;
[root@www root]# /sbin/quotaon -a;
quotaon: using //aquota.group on /dev/ubd/0 [/]: No such process
quotaon: Quota format not supported in kernel.
quotaon: using //aquota.user on /dev/ubd/0 [/]: No such process
quotaon: Quota format not supported in kernel.
[root@www root]#

Thank you

S2S-Robert
02-19-2004, 04:37 PM
You have to enable quota's in order for it to work, the log pretty much says it all "quotaon: Quota format not supported in kernel."

Update your kernel to include quota's.

elcambur
02-24-2004, 04:27 PM
I have updated my kernel and now quota's are working but I can not see the disk usage and bandwith for my users either.

I run
echo "action=tally&value=all" >> /usr/local/directadmin/data/task.queue

and nothing

my user shows

Disk quotas for user facilred (uid 506):
Filesystem blocks quota limit grace files quota limit grace
/dev/ubd/0 6076 102400 102400 689 0 0

it shows the number of blocks but directadmin it is still not showing the disk usage or bandwith

Thank you

DirectAdmin Support
02-25-2004, 11:04 AM
Hello,

Check your /usr/local/directadmin/data/task.queue file... it shouldn't exist after 1 minute.. if it does, then you have no cron daemon running.

run:
/usr/sbin/cron

John

elcambur
02-25-2004, 11:39 AM
Thank you very much for your help