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.

usr/tmpDSK files large - server storage use increasing indefinitely

Discussion in 'General Discussion' started by Shirokumo, Sep 18, 2014.

  1. Shirokumo

    Shirokumo Member

    Joined:
    Sep 18, 2014
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hey guys,

    First off: This is my first webserver setup ever, so I'm completely green to linux and to cPanel. No advice is trivial for me.

    I recently set up a CentOS 6.5 server with the typical cPanel installation (stuck with the default settings for the most part). However, I've noticed that the nightly server images are getting bigger and bigger. They started around 3 GB 8 days ago and have gotten up to 9 GB. I only have 3 cPanel users, with one domain each, and they are using a combined total of ~300mb of space.

    After running the command:
    find / -type f -size +50000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
    I found that 3 /usr/tmpDSK files are reading at 1.7 GB.
    One is simply /usr/tmpDSK, the other two are /home/virtfs/$username/usr/tmpDSK.

    My research lead me to quite a few people complaining about the cPanel tmp folder maximum size of 500 mb... which doesn't seem to be the case for me...

    On top of all this, it also bears mentioning that I only did the most basic of server setups. Installed cPanel, and configured iptables, that's about it. I haven't set up any sort of cleanup chrons or sql log truncation.

    If anyone has any idea how I can keep these tmp folders under control, or can offer any general maintenance tips as far as automating server cleanup, etc. I would be greatly appreciative.

    Thank you for any help you can offer, guys.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Have you reviewed the images instead of the actual server to verify where the disk space usage is coming from?

    A bind mount is a transparent link between two places on the file system. For example, if a user views the contents of /home/virtfs/username/usr/bin, the user actually sees the contents of /usr/bin. Thus, the /home/virtfs/$user directory itself is not actually using up any additional space than already exists. Data is not actually duplicated.

    Thank you.
     
  3. Shirokumo

    Shirokumo Member

    Joined:
    Sep 18, 2014
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I've not reviewed the images, they were simply my indication that something was wrong.

    When I run the df-h command, I can see that the server's disk use is at 9.5 GB, and slowly increasing. If the tmpDSK file is only responsible for 1.7 GB of it, then I'm going to need to figure out some basic storage management methods and try to find what is using the rest of that space.
     
  4. Shirokumo

    Shirokumo Member

    Joined:
    Sep 18, 2014
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hey Michael,

    This is exactly the newbie's guide to storage management I was looking for. Thank you very much, I'll read through it and reply to this thread with my results.
     
Loading...

Share This Page