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.

[Resolved] increase space in /tmp

Discussion in 'General Discussion' started by numarketing, Jan 27, 2014.

Thread Status:
Not open for further replies.
  1. numarketing

    numarketing Member

    Joined:
    Jan 9, 2014
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    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
     
  2. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    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
     
  3. numarketing

    numarketing Member

    Joined:
    Jan 9, 2014
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    hi
    it worked
    thanks for the advise
    sanjay
     
  4. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    You are most welcome. I am happy I was able to help.
     
Loading...
Thread Status:
Not open for further replies.

Share This Page