usr/tmpDSK files large - server storage use increasing indefinitely

Shirokumo

Member
Sep 18, 2014
9
0
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
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.
 

Shirokumo

Member
Sep 18, 2014
9
0
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.
 

Shirokumo

Member
Sep 18, 2014
9
0
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.