Default partition of /tmp in cpanel is 500MBs and if for some reasons it get full, cpanel start sending alerts.
1 |
Drive Critical: /usr/tmpDSK (/tmp) is 100% full |
It also cause the services like apache, mysql to stop working because whenever these services run, they create temporary files which stop in /tmp, these files includes
- PHP session files
- PHP temporary file uploads
- MySQL temporary files
- Cache files for certain Apache modules
In such cases when you make backups of large space accounts, like if your account in cpanel is of 10GB of data then it may let your default sized /tmp full and stop other services, therefore it requires you to increase the size of /tmp before you make the backup of yoru accounts.
The process to increase the size is simple
Stop mysql, apache and cpanel to prevent them making any more files
1 2 3 |
service mysql stop service httpd stop service cpanel stop |
Make backup of /tmp contents
1 |
cp -rfp /tmp /tmp-backup |
Unmount /tmp
1 |
umount -l /tmp |
Delete /usr/tmpDSK
1 |
rm -rf /usr/tmpDSK |
Now open /scripts/securetmp
1 |
emacs /scripts/securetmp |
And find for
1 |
my $tmpdsksize = 512000; # Must be larger than 250000 |
increase this size to what you want to setup, save file and close
and after that run
1 |
/scripts/securetmp |
It will take time depending on how big size of /tmp you need and will setup new sized /tmp for your usage, after that start mysq,apache and cpanel again
1 2 3 |
service mysql start service httpd start service cpanel start |
Comment Policy:
Your words are your own, so be nice and helpful if you can. Please, only use your real name, not your business name or keywords. Using business name or keywords instead of your real name will lead to the comment being deleted. Anonymous commenting is not allowed either. Limit the amount of links submitted in your comment. We accept clean XHTML in comments, but don't overdo it please.