Increasing /tmp size

  • February 23, 2013
  • 0 Comments
​Stop tailwatchd. This ensures that it won't be starting Apache or MySQL while /tmp is being redone.
ROOT[~]# killall tailwatchd

Stop Apache
ROOT[~]# service httpd stop

Stop MySQL
ROOT[~]# service mysql stop

Check to make sure that nothing else is using /tmp and kill any processes that is using it
ROOT[~]# lsof | grep /tmp

Umount /tmp
ROOT[~]# umount /tmp

At this point you're going to want to modify the /scripts/securetmp file using nano. 

ROOT[~]# nano /scripts/securetmp
Search for $tmpdsksize
CTRL+W >> $tmpdsksize

It must be larger than 250000, as the comment says. Don't accidentally delete the semi-colon " ; ". 
$tmpdsksize is in KB. Common values are:
2097152 = 2GB
3146000 = 3GB 
3670000 = 3.5FB
4194000 = 4GB
Save the file and exit. 

CTRL+X >> Save the changes by selecting "Yes". 

Implement the changes
Remove /usr/tmpDSK

ROOT[~]# rm /usr/tmpDSK
Run the script /scripts/securetmp

ROOT[~]# /scripts/securetmp
Clean up and get things going again

Change into the /tmp directory and create a symbolic link to /var/lib/mysql/mysql.sock
ROOT[~]# cd /tmp; ln -s /var/lib/mysql/mysql.sock

Restart mysql
ROOT[~]# service mysql start

Restart apache
ROOT[~]# service httpd start

Restart tailwatchd
ROOT[~]# /scripts/restartsrv_tailwatchd

How helpful was this article to you?

Posting has been disabled.