Wednesday, July 24, 2013

cpanel increase tmp , how to resize tmp

if your server’s tmp is getting filled up very fast and want to increase it.
I give you list of commands and instructions on how to resizing the tmp partition?
Note: this works only on CPanel server.
1- edit the file: /scripts/securetmp
nano  /scripts/securetmp
2 – find and change the following value:
my $tmpdsksize     = 5120000;    # Must be larger than 250000
5120000 = 512MB
if you want 1GB replace it with: 10240000
2GB : 20480000
3 – now we want to delete the old tmp partition
lsof /tmp
4 – Then umount /tmp and /var/tmp:
umount -l /tmp
umount -l /var/tmp
5 – Then remove the corrupt partition file:
rm -fv /usr/tmpDSK
6- Then create a new one: (only valid for Cpanel servers)
/scripts/securetmp



done.

No comments:

Post a Comment