PCZero

Well-Known Member
Dec 13, 2003
780
103
193
Earth
I am setting up a new whm/cpanel box. I have noticed that for LL of my accounts (newly built accounts AND accounts transferred over from an old box) that the disk space is NOT being calculated. In WHM disk space is 0MB for all accounts. In cPanel its the same in the main cPanel window. When I click Disk Space Usage in cPanel, the details show the actual space used (there is a lot of usage in /tmp for all accounts for some reason. Is it safe to delete this?)... How do I get the disk space to calculate correctly?
 

PCZero

Well-Known Member
Dec 13, 2003
780
103
193
Earth
I just ran /scripts/fixquotas and it seems to have resolved the issues of disk space. I do have two questions still...

1) Is that a one shot fix in that I will hve to keep doing it form time to time, or will WHM/cPanel keep track correctly going forward?

2) About all that space used in /tmp. Is it safe to nuke all of that? (I'd like to reclaim the disk space.)

Thanks!
 

Infopro

Well-Known Member
May 20, 2003
17,075
524
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter

PCZero

Well-Known Member
Dec 13, 2003
780
103
193
Earth
Let me make sure we are talking the same thing here though... The /tmp i am speaking of is within each users /home and specifically NOT any global /tmp.
 

Infopro

Well-Known Member
May 20, 2003
17,075
524
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
We were not, my apologies.

The files in the user's tmp directory are statistics files as you might guess by checking the names of the directories inside tmp. One thing that might take up a lot of space would be analog stats, if this is enabled via:
WHM > Server Configuration > Statistics Software Configuration
You might want to disable it there. You could then if you wish remove that directory.

If you empty out the tmp directory, the account will lose all stats generated to date.
 

PCZero

Well-Known Member
Dec 13, 2003
780
103
193
Earth
Thanks for the quick reply. After looking at your first answer I was thinking we might be talking different things. So thinking logically (or at least my feeble attempt to do so) if I were to purge all the content of a /home/tmp folder, the net effect would be to lose all historic stats data for that account. Is this correct?
 

PCZero

Well-Known Member
Dec 13, 2003
780
103
193
Earth
Oops I think you actually answered that for me already! DOH I have being dyslexic...