Sometimes we may have to increase the /tmp partition in a cPanel server. cPanel has got an inbuilt script for this and the procedure to do this is as follows:
1) Stop mysql, apache, cpanel, litespeed to prevent using /tmp partition
Now, move /usr/tmpDSK to a different location(sometimes we may have to prefer this for later)
mv /usr/tmpDSK /usr/tmpDSK_back
2) Umount /var/tmp and /tmp.
If you find partition busy then do an (lsof | grep /tmp) and kill the process.
Or go a lazy umount as follows:
umount -l /tmp
umount -l /var/tmp
Modify the following script as below:
Look for following line:
my $tmpdsksize = 512000; # Must be larger than 250000
Increase the value to a desired value and re-run the script:
This will recreate /tmp (tmpDSK) partition.
After this restart cpanel,apache and mysql.