Web Hosting Talk







View Full Version : CPanel misreporting disk usage


Precise
08-31-2001, 12:24 AM
... Another hair bytes the dust ...

CPanel is misreporting the disk usage for at least one account. It is saying that this account is using about 23 MB of space, however, it is about 22 MB off...

So, I ran /sbin/quotacheck -av (didn't fix the prob) and I also ran /scripts/initquotas (didn't work either).

What can I do to fix this AND keep my hair from turning grey?

Thanks,
Patrick

Jm4n
08-31-2001, 12:32 AM
I'm not familiar with the control panel part of it -- but is it 22 megs high or low? If it's reporting less than actual usage, check and see if this user has files under someone else's ownership in his/her directory (for example, if PHP creates files owned by the webserver user, it's possible your tool isn't counting it).

This is, of course, just a wild guess, but I've seen a similar problem in the past...

Precise
08-31-2001, 12:39 AM
It is reporting 23 MB and they are actually using under 1 MB. There are no extra un-accounted for files that I can see.

Thank you for your suggestion though. ANyone else have any ideas?

Thanks,
Patrick

JTY
08-31-2001, 12:52 AM
What about log files?

JonnyQuags
08-31-2001, 01:06 AM
EMail takes up space, as do the webalizer and analog reports in the tmp folder.

Do du -sm in the user's home dir to get the exact space they are using.

Precise
08-31-2001, 01:15 AM
that reports "0". That couldn't be right, could it?

Patrick

Precise
08-31-2001, 01:18 AM
not the log files either...

Jm4n
08-31-2001, 03:35 AM
The only thing I can recommend (if this is even possible?) is to grep through the control panel code and see what exactly it's doing to determine the disk usage. If it's closed-source, perhaps the documentation would give some information on where the information comes from.

Also, does it show a breakdown of the usage? Does it break it down by directory, or by type (email, web files, database, etc)?

You might also do a find for all files owned by that user, perhaps some files in /tmp are being counted (but again, it's best to find out exactly what it is the CP is doing to determine the usage)...

Wish I could be of more help, but the source code would really be the best source of information or, barring that, the documentation. If neither of these is available... well, that's why I love Open Source ;)

Félix C.Courtemanche
08-31-2001, 05:20 AM
use find

with it you can find all files owned by a certain user... do that on the root, add up the info you get.

It is possible that the system is bugged, but more than likely it is taking its data straight from the quota info given by the system.

just some ideas...

Chicken
09-01-2001, 01:33 PM
I had this happen on a RaQ4 as well. User had no files in directory, no email on server, nothing that I could find, though the cp showed that they were over their quota. Never did figure out what the heck caused that but am watching this thread to see if maybe it is a general apache/RH thing...

Synergy
09-01-2001, 08:29 PM
I have a users that says

-441 MB in their CP

I fixed it by editing the quota in WHM and it worked fine and the -441 went back to 49 MB of storage left for that account.

Precise
09-01-2001, 09:30 PM
Thank you for reply Synergy.

WHat exactly do you mean by editing the quota. I am pretty sure I know what you mean, but if you clarify that would be great.

Thanks,
Patrick

Synergy
09-01-2001, 09:45 PM
Go to quota modification with your root WHM. Just update your account and it should be fine... Worked for me but I'm not sure if thats a solution to it.

KualoJo
09-03-2001, 04:41 PM
I had exactly the same problem with a client... it was going up daily by a few megs in WHM when it actually wasn't changing at all in their account. I simply downloaded a back up and deleted and recreated the account and uploaded the backup... not the best solution I know but it was only a few days after they signed up so wasn't a complete disaster.

Solved the problem alright though... :)