Help - Search - Members - Calendar
Full Version: Disk space in new customer account wrong
The Planet Forums > Control Panels > cPanel/WHM
MakingIt
This is what's in a test account:
Quota: 10MB
Space Used: 23MB

There are no files in this test account. I wonder why it says that there is 23MB used.
needhosting.net
This is a known issue

From an ssh session as root run
/scripts/fixquotas


you should get the following

Quotas are now on
Using new and old quota support

Then it should list each sites quota
Run this every 2 weeks or as needed

p.s. There's lots of neat little utilities in the scripts directory, Here's a list of all the "Fix" utils

fixadmin fixipsnm fixpop
fixallcartswithsuexec fixlibnet fixquotas
fixallinterchangeperm fixlocalhostwithphp fixrelayd
fixbuggynamed fixmailandakopia fixrh72ndckey
fixcartwithsuexec fixmailman fixsubconf
fixcgiwrap fixmailmanwithsuexec fixsubdomainlogs
fixcommonproblems fixmuse fixsuexeccgiscripts
fixetchosts fixmysql fixtrojans
fixeverything fixmysqlbsd fixvaliases
fixfpwml fixnamed fixwebalizer
fixheaders fixndc fixwebmail
fixhome fixoldlistswithsuexec fixwwwdir
fixinterchange fixperl
fixinterchangeperm fixperlscript
needhosting.net
This is a known issue

From an ssh session as root run
/scripts/fixquotas


you should get the following

Quotas are now on
Using new and old quota support

Then it should list each sites quota
Run this every 2 weeks or as needed

p.s. There's lots of neat little utilities in the scripts directory, Here's a list of all the "Fix" utils

fixadmin fixipsnm fixpop
fixallcartswithsuexec fixlibnet fixquotas
fixallinterchangeperm fixlocalhostwithphp fixrelayd
fixbuggynamed fixmailandakopia fixrh72ndckey
fixcartwithsuexec fixmailman fixsubconf
fixcgiwrap fixmailmanwithsuexec fixsubdomainlogs
fixcommonproblems fixmuse fixsuexeccgiscripts
fixetchosts fixmysql fixtrojans
fixeverything fixmysqlbsd fixvaliases
fixfpwml fixnamed fixwebalizer
fixheaders fixndc fixwebmail
fixhome fixoldlistswithsuexec fixwwwdir
fixinterchange fixperl
fixinterchangeperm fixperlscript
MakingIt
Now in another account.

It says:
Disk usage 65.75 Megabytes
Disk space available 34.25 Megabytes


But there is ONLY 4MB of files in that account.
Where did the 65.75MB come from?
Michael
Type this in SSH/Telent:
cd /
find -user username (replace username with the user)

All of the files that it finds should be in /home/username or obviously be connected to the username (example /var/spool/mail/username).

Occasionally you will find a whole bunch of System Files chowned to a username. In most cases you can fix the problem by chowning the files it finds to root:root. But you need to be careful here... make sure you write down all of the changes that you make.

I hope this helps...

Thanks,
Michael
MakingIt
This is what I got from cPanel Support:

cPanel uses system quotas to determine disk usage, and these numbers are rarely wrong by a great amount. When the disk usage numbers in cPanel don't match the disk usage under the user's home directory, the problem is most likely that there are files owned by the user somewhere else on your system.

One example of this is backups. Backup files are generally owned by the user of the data being backed up. If the partition you are using for backups has quotas enabled, this data will count against the user's quota.

To list all files owned by a given user, SSH into your server as root and run the command "find / -user username" (replacing "username" with the username of the user whose files you are trying to find). Using this command, you should be able to track down exactly where the disk usage is coming from.


For chowning the users files in "/var/autoinstall" , the command would look like this:
chown -R root:root /var/autoinstall


99.9% of this info was from cPanel Support dudes! They rocks!
Michael
Yep, it's also what I posted, so that would change it to 0.01%... they stole it all from me! icon_biggrin.gif
GreatBritGirl
Ive just run the find user command and its coming up with loads of autoinstaller stuff as being owned by the user, is that right or should it be owned by root?
Michael
QUOTE
Originally posted by GreatBritGirl
Ive just run the find user command and its coming up with loads of autoinstaller stuff as being owned by the user, is that right or should it be owned by root?


Anything not in /home/user with the exception of log/email files should not be chowned to a username. So yes, it should be chowned to root...
jameshsi
Do I must try find -user username in / ?
Can I find in /home ?
Jeewhizz
run this:

find /home -user username

Jee
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.