[Resolved] increase space in /tmp

Status
Not open for further replies.

numarketing

Member
Jan 9, 2014
9
0
1
cPanel Access Level
Root Administrator
hi
I am new to cpanel and vps administration.
I need some help please.
I installed a vps on transip the vps is running Centos 6.5 with cpanel and whm
I am hosting clients sites on the vps as a webbhosting supplier.

Here is the issue.
one of my client installed wordpress blog on his space. and he reported yesterday, while installing new theme it will not install.
I checked around and found my temp folder is out of space
it reads like as below
Device Size Used Available Percentage used Mount point
/usr/tmpDSK 485M 460M 0 100% /tmp

the /tmp seems full to 100%

what am i suppose to do???
I thought cron should clear the folder?? but it seems it hasn't done for 2 days.
My cron setting are to be done every day??

how do i increase space in my /tmp folder.
or how do i change the partition as i am worried of the clients data.

I was thinking if i can take a snapshot of my vps?? and reinstall the centos & cpanel and redeply the snapshot< is it the best approach???
Please someone help??
sanjay kumar
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
23
143
Houston, TX
cPanel Access Level
Root Administrator
You do not need to reinstall CentOS and cPanel to fix this. That is a very drastic approach to a problem you can solve much more easily.

First, look at what is filling up the /tmp directory. Usually, that problem is caused by a script not cleaning up after itself. If you can reconfigure the script to not create as many temporary files, that will solve the problem.

Second, even if scripts are cleaning up after themselves, 485MB may be a bit small on a very busy server. If this is the case, you can simply resize the /tmp directory. You can resize the /tmp directory without needing to reinstall the operating system and cPanel. The reason that you can do this is that /tmp is not actually a partition. It is a file, /usr/tmpDSK, that is mounted as a directory.

The following threads explain how to resize the /tmp directory:

http://forums.cpanel.net/f5/what-usr-tmpdsk-209201.html
http://forums.cpanel.net/f189/resize-tmp-directory-need-help-181851.html
http://forums.cpanel.net/f5/how-resize-tmp-86345.html
 
Status
Not open for further replies.