Web Hosting Talk







View Full Version : cpanel *Space Used* Issue.


samuk
08-11-2001, 02:55 PM
I've tried quite a bit to get this working. I can't.

Why would my clients CPANEL's sometimes show disk usage FAR lower then actual usage? I have tried using /sbin/quotacheck -av to correct this. No luck.

Can anyone give me any ideas?

Thanks.

bombino
08-11-2001, 07:36 PM
I'm not an expert with CPanel, but this is what I would assume:

If CPanel gets disk usage stats by using the Linux 'quota' program, then that would only count files owned by that user. The problem comes in when the user has PHP scripts (or something similar) that create files in his account, as they would write files under the userid of 'nobody' (or whatever your Apache user is) and they would not show up in the quota.

As a workaround, we compute disk usage by issuing this command: 'du -sk /home/user/'. That outputs the total usage for that directory. (We also subtract the size of the logs from that).

Hope that helps.

Walter
08-12-2001, 10:57 AM
And don't forget to count the space for mysql databases which sometimes are not in the user directory...

Craig
08-12-2001, 11:01 AM
im sure this issue has been brought up on support.cpanel.net

Check it out

Regards

Craig

kunal
08-12-2001, 12:23 PM
the cpanel space used feature, only checks for the space used in the users /home dir.. thats it.. it doesnt check for mysql dbases or anything else... which is kinda sad...

there has been an issue with is since the day it was released :(