The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Incorrect disk space use listed

Discussion in 'General Discussion' started by PCZero, Feb 27, 2012.

  1. PCZero

    PCZero Well-Known Member

    Joined:
    Dec 13, 2003
    Messages:
    526
    Likes Received:
    34
    Trophy Points:
    28
    Location:
    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?
     
  2. PCZero

    PCZero Well-Known Member

    Joined:
    Dec 13, 2003
    Messages:
    526
    Likes Received:
    34
    Trophy Points:
    28
    Location:
    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!
     
  3. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,476
    Likes Received:
    202
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  4. PCZero

    PCZero Well-Known Member

    Joined:
    Dec 13, 2003
    Messages:
    526
    Likes Received:
    34
    Trophy Points:
    28
    Location:
    Earth
    Thank you. That was very helpful.
     
  5. PCZero

    PCZero Well-Known Member

    Joined:
    Dec 13, 2003
    Messages:
    526
    Likes Received:
    34
    Trophy Points:
    28
    Location:
    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.
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,476
    Likes Received:
    202
    Trophy Points:
    63
    Location:
    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.
     
  7. PCZero

    PCZero Well-Known Member

    Joined:
    Dec 13, 2003
    Messages:
    526
    Likes Received:
    34
    Trophy Points:
    28
    Location:
    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?
     
  8. PCZero

    PCZero Well-Known Member

    Joined:
    Dec 13, 2003
    Messages:
    526
    Likes Received:
    34
    Trophy Points:
    28
    Location:
    Earth
    Oops I think you actually answered that for me already! DOH I have being dyslexic...
     
  9. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,476
    Likes Received:
    202
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Easy for you to say. :p

    Good luck!
     
Loading...

Share This Page