Current usage Bug ?

Tim

Verified User
Joined
Oct 8, 2003
Messages
117
DA + FreeBSD 4.9

Disk Usage
0.0551643

Log Usage
0.0581245

Total Disk Usage (meg) 15.5
Email Disk Usage 495 Kb
Database Disk Usage 0.00 Kb

And i just uploaded 2 files 1 .html file and 1 picture (total: 55kb)

Euh.... where is the 15.5MB coming from?

There are more users with this problem...

1 has +/- 5MB in his folder and DA says: Total usage: 37,5MB !

Help?
 
Hi Tim,

You can check

quota -v username

This will show you how much space (According to the OS) the user is taking up. If it's wrong you can do:

quotaoff -a
quotacheck -avugm
quotaon -a

Tallies are run at midnight, so you would have to wait until then or run:

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

That will recount quotas in one minute.

Mark
 
It says 15MB

su-2.05b# quotaoff -a
quotaoff: /: Operation not supported
quotaoff: /: Operation not supported

erm?
 
It looks like you don't have quotas compiled into your kernel, so that would probably explain why the quotas seem wrong.

Run quotacheck -avugm

See if that makes any difference.

Mark
 
allright, quota is now in the kernel

but still the same problem. :(
 
So the "quota -v username" is showing the disk usage?

Run the following to see all the files owned by the user:

find / -user username | less

John
 
Code:
Disk quotas for user wico (uid 1015):
     Filesystem   usage   quota   limit   grace   files   quota   limit   grace
              /   14976       0       0              32       0       0

Code:
/usr/home/wico
/usr/home/wico/.cshrc
/usr/home/wico/.login
/usr/home/wico/.login_conf
/usr/home/wico/.mailrc
/usr/home/wico/.profile
/usr/home/wico/.shrc
/usr/home/wico/.mail_aliases
/usr/home/wico/.rhosts
/usr/home/wico/.shadow
/usr/home/wico/domains
/usr/home/wico/domains/wicon.nl
/usr/home/wico/domains/wicon.nl/public_html
/usr/home/wico/domains/wicon.nl/public_html/cgi-bin
/usr/home/wico/domains/wicon.nl/public_html/cgi-bin/.htaccess
/usr/home/wico/domains/wicon.nl/public_html/index.html
/usr/home/wico/domains/wicon.nl/public_html/82096201.gif
/usr/home/wico/domains/wicon.nl/public_html/82096202.jpg
/usr/home/wico/domains/wicon.nl/public_html/82096203.jpg
/usr/home/wico/domains/wicon.nl/.htpasswd
/usr/home/wico/domains/wicon.nl/.htpasswd/.protected.list
/usr/home/wico/domains/wicon.nl/private_html
/usr/home/wico/domains/wicon.nl/private_html/index.html
/usr/home/wico/domains/wicon.nl/public_ftp
/usr/home/wico/domains/wicon.nl/public_ftp/incoming
/usr/home/wico/mail
/usr/home/wico/mail/Sent Items
/usr/home/wico/public_html
/var/mail/wico
/var/spool/virtual/wicon.nl
/var/spool/virtual/wicon.nl/w.mourik
/var/spool/virtual/wicon.nl/j.mourik

nothing weird, mail box size is correct in DA
and the public html files are together just 50kb
 
Well *something* should be causing it.. From previous issues of this type, it's almost always the email in /var/mail/username caused by a cron job gone bad :)

In any case, if you've rerun the quotacheck, it should be counted up right, so there would be a file lingering around.

John
 
I did a quotacheck, but nothing. Still to much MB's

/var/mail/username give's this:

17.524.987 *17MB*

DA says: Email Disk Usage 477 Kb
Total Disk Usage (meg) 17.8

There's the 17MB !

Another user:

Total Disk Usage (meg) 38.3
Email Disk Usage 0.00 Kb
37,928,352 *37MB*

allright, i see!

The user is using to much way in the e-mail account

Now i know where the problem is and how ican fix it :) thanks

But there is still a bug in DA:

Email Disk Usage 477 Kb, but it's 17MB! Fix needed?
 
Hello,

If the system quotas are reporting an incorrect disk usage, there isn't much DA can do.. the problem would like somewhere in the system quotas (DA just reads the number it spits out).

Total Disk Usage (meg) 38.3
Email Disk Usage 0.00 Kb
The user is using to much way in the e-mail account
Not sure where you're getting that email is using up the disk space.. the number you've posted says it's zero...

In any case, if you want me to have a look to sort it out, just send over your ip, root pass, and affected username to [email protected] or use https://www.directadmin.com/clients/safesubmit.php

John
 
John,

there's is nothing wrong, but DA say's 0kb used by e-mail usage.

But the /var/mail/username file is 17MB big. (Al the mail of that user, i checked that)

So, DA doesnt give the right size of the mail box. simple as that.
 
John,

I think Tim is trying to say that he found out there's nothing wrong with the quota (the user is indeed using 17MB), though DA's own counter is making a mistake with the mail size, which made the confusion.

So there's a bug in DA's counter.
 
*kick*

Ok, let's see, i thought it was yesterday a new user was added by a reseller. At the nightly tally i got a nice mail about the user exceeding his disk space limit, fine by me, as i forgat to compile quota support in that kernel. So i logged in, and saw the user statistics:
http://people.zeelandnet.nl/sebsoft/DAprobleem.png (yes, this is my ISP's provided space instead of own domain)

Now this was rather strange so i reran the nightly tally this morning, still the same.
I did a quotacheck and a quota -v:
Code:
[root@horus /]# quota -v dutch
Disk quotas for user dutch (uid 573):
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
       /dev/md0  191072* 102400  102400           13220       0       0
[root@horus /]#
I have no clue how more than 100 MB got there, can't find anything in the mail dir, user has no mysql db's and as far as i know, the home dir is rather empty...

Anyone got an idea ?

[edit]
Solution
I had a hunch about userids, so i did a ls -nalR > /root/ls.dat and started searching in the new ls.dat file. It appears the kernel was tarred under the same user, so that explains. I chowned the kernel source directory to the right user (root) and am currently running a retally.
:)
[/edit]
 
Last edited:
Back
Top