cPanel How to increase /tmp and /var/tmp size – Re: The file system /tmp, which is mounted at /var/tmp, has reached critical status because it is full.

Download PDF

What size is your /tmp partition? You can resize it if it isn’t large enough. Many servers have only 500MB for /tmp which isn’t large enough and should be around 2GB instead. You could edit /scripts/securetmp for this line:

Code:
my $tmpdsksize     = 512000;    # Must be larger than 250000

Change to this line for 2GB:

Code:
my $tmpdsksize     = 2097152;    # Must be larger than 250000

Save the file (:wq), then run these commands to resize /tmp partition:

Code:
umount -l /tmp
umount -l /var/tmp
rm -fv /usr/tmpDSK
/scripts/securetmp

Would you like to secure /tmp & /var/tmp at boot time? (y/n) y

Would you like to secure /tmp & /var/tmp now? (y/n) y


Securing /tmp & /var/tmp

/tmp is already secure

/var/tmp is already secure

Checking fstab for entries …Done

Logrotate TMPDIR already configured

Process Complete

 

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply