Activity Stream
48,167 MEMBERS
6855 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 2 of 2
  1.     
    #1
    Respected Member
    Bharat's Avatar
    Website's:
    ShineServers.Com Pickadedi.com

    Default How To Increase size of /var/tmp and /tmp (Centos)

    I was frequently getting an error message that the /var/tmp directory in one of my cPanel CentOS 5.5 server is full and I need to delete some data. A cronjob is already there in crontab to cleanup the temporary data periodically, but I was still getting that error.

    I looked at the error log and found that the tmp partition goes full when the scheduled backup runs. Therefore, I had nothing to do but increase the size of the tmp partition. After that, my server runs fine and no issues or error messages since then.

    Here is How to increase the size of /var/tmp and /tmp partition

    You need to have root access to your server. If not, you can?t increase the size of /tmp and /var/tmp partition directory, sorry.

    Shutdown httpd and mysql using these commands

    Code: 
    service httpd stop
    service mysql stop
    First, you need to edit the file securetmp in /usr/local/cpanel/scripts/ folder.

    Code: 
    nano /usr/local/cpanel/scripts/securetmp
    As default the size for tmp is 512 MB , just make it something that is convenient to you .

    In /usr/local/cpanel/scripts/securetmp file, look for a line like this:

    my $tmpdsksize = 512000; # Must be larger than 250000
    and change it to

    my $tmpdsksize = 2097152; # Must be larger than 250000
    This will allow us to allot 2GB of space size for the tmp partition.
    Now, you need to log in to SSH using root account to make the changes. Once you are in, run these commands one by one.

    Code: 
    umount -l /tmp
    umount -l /var/tmp
    rm -fv /usr/tmpDSK
    /usr/local/cpanel/scripts/securetmp
    Then Restart the server :-

    Code: 
    shutdown -r 0
    Now when the server is fully restarted, you can check the partitions using the following command.

    Code: 
    df -h


    Regards
    Bharat Reviewed by Bharat on . How To Increase size of /var/tmp and /tmp (Centos) I was frequently getting an error message that the /var/tmp directory in one of my cPanel CentOS 5.5 server is full and I need to delete some data. A cronjob is already there in crontab to cleanup the temporary data periodically, but I was still getting that error. I looked at the error log and found that the tmp partition goes full when the scheduled backup runs. Therefore, I had nothing to do but increase the size of the tmp partition. After that, my server runs fine and no issues or error Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Thank you for giving tut...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Filesonic should Increase Their Max File Size Limit?
    By jooker in forum File Host Discussion
    Replies: 12
    Last Post: 10th Jan 2012, 10:34 AM
  2. Increase code box size
    By champ_007_bond in forum vBulletin
    Replies: 0
    Last Post: 21st Nov 2011, 05:12 PM
  3. How to increase the size of Status Icon?
    By Arthur in forum vBulletin
    Replies: 0
    Last Post: 26th Oct 2010, 11:20 AM
  4. bypass 2gb file size limit on centos
    By bachbell in forum Server Management
    Replies: 2
    Last Post: 30th Jul 2010, 07:28 PM
  5. Increase pm Inbox Size
    By CyberHacK in forum Feedback and Suggestions
    Replies: 3
    Last Post: 5th Dec 2009, 08:57 PM

Tags for this Thread

BE SOCIAL