Web Hosting Talk







View Full Version : Cpanel reporting wrong disk usage


e1ven
12-08-2003, 09:17 PM
On one account on my server, du shows that the account is using 580 meg. cPanel shows it is using
"Disk usage
1825.13 Megabytes"

I've tried making sure all the files are properly owned, and belong to the right group. I ran /scripts/fixquotas, and /scripts/resetquotas --useplandefaults

It's not helping.
Is there any advise you could offer?

Colin

Nymix-CB
12-08-2003, 10:46 PM
Maybe the logs?

We had this problem on Ensim.

A website had 1.4GB of files...with like 75MB of "real files".

Logs...;)

IGobyTerry
12-08-2003, 11:16 PM
Try checking in the user's /etc/ folder. Sometimes Webalizer will leave huge core dumps taking up quite a bit of the users space.

Or their mySQL Databases could be rather large, as I believe cPanel finally started including that as part of the disk usage. Of course a database 1 gigabyte in size is pretty big, but hey who knows.

e1ven
12-09-2003, 01:56 AM
Good suggestions, but not in this case.
I did a du -hs on the /home/user folder, which includes the etc folder. It's not in there.

I also checked the SQL databases. They're 6megs.

I don't see where the over 1 gigabyte discrepancy comes from ;)


I'd love any other ideas. Thanks for trying to help,
Colin

blackmoont
12-09-2003, 02:10 AM
as i know , That was a problem with cpanel when backup option is turn on (especial in some RAID system ) . U can try to turn backup off and remove a backup folder , then run fixquotas , everything will fix .

e1ven
12-09-2003, 05:27 AM
That looks like it's the cause of the problem. It's including the backups in the size of the used space.
Friggin cPanel..

Thanks. It's not resolved, but at least I can explain it, now.

blackmoont
12-09-2003, 06:41 AM
arg , Cpanel sometime suck , i'v got a same problem with u and this is what i did :
Turn a backup options off
Remove a backup folder
Set pakage for all of account (Coz a lot of my accounts with unknow pakage i'v created by root )
Then run /scripts/fixquota under ssh ( run in whm will not fix )

Hope this help

sprintserve
12-09-2003, 06:51 AM
You can try disabling quota support for your backup partition by editing /etc/fstab and refreshing the mount by using mount -oremount option. If you let Cpanel mount/dismount after a backup, then this won't work.