Results 1 to 2 of 2
-
14th Jun 2012, 06:15 AM #1
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
Code:nano /usr/local/cpanel/scripts/securetmp
In /usr/local/cpanel/scripts/securetmp file, look for a line like this:
my $tmpdsksize = 512000; # Must be larger than 250000
my $tmpdsksize = 2097152; # Must be larger than 250000
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
Code:shutdown -r 0
Code:df -h
RegardsBharat 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
-
14th Jun 2012, 06:30 AM #2Member
Thank you for giving tut...
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Filesonic should Increase Their Max File Size Limit?
By jooker in forum File Host DiscussionReplies: 12Last Post: 10th Jan 2012, 10:34 AM -
Increase code box size
By champ_007_bond in forum vBulletinReplies: 0Last Post: 21st Nov 2011, 05:12 PM -
How to increase the size of Status Icon?
By Arthur in forum vBulletinReplies: 0Last Post: 26th Oct 2010, 11:20 AM -
bypass 2gb file size limit on centos
By bachbell in forum Server ManagementReplies: 2Last Post: 30th Jul 2010, 07:28 PM -
Increase pm Inbox Size
By CyberHacK in forum Feedback and SuggestionsReplies: 3Last Post: 5th Dec 2009, 08:57 PM
themaManager - edit and manage...
Version 4.04 released. Open older version (or...