8th December 2023

Learn the article to know the steps to extend the tmp partition in cPanel. Bobcares, as part of our cPanel & WHM Help Providers provides options to each question that comes our means.

Learn how to improve the tmp partition in cPanel?

The cPanel /tmp filesystem has a default dimension of 4GB, or 5% of the /usr filesystem dimension, whichever is much less. To allow this filesystem to retailer further info, we have to increase its dimension. We should additionally keep in mind to hold out this improve throughout a scheduled devoted time because it requires quickly stopping the providers that write to /tmp.

This steps solely works on servers on which cPanel has generated /tmp. cPanel-generated /tmp filesystems have /dev/loop of their names.

Steps to extend tmp partition in cPanel

1. Modify this line in /scripts/securetmp to set tmpdsksize to the specified dimension. For instance, for 10 GB:

cpanel increase tmp partition

2. Remark out this part of /scripts/securetmp:

cpanel increase tmp partition

3. Verify which providers are at present utilizing /tmp:

cpanel increase tmp partition

4. Quickly disable monitoring for the providers utilizing /tmp, for instance:

5. Cease the providers that use /tmp, for instance:

cpanel increase tmp partition

6. Unmount /tmp and /var/tmp:

7. Transfer /usr/tmpDSK file to a different location (in case you have to mount it elsewhere to protect information):

cpanel increase tmp partition

8. Run this script to create the bigger /tmp filesystem:

cpanel increase tmp partition

9. Restart the providers you stopped beforehand, for instance:

10. Re-enable monitoring for the providers, for instance:

cpanel increase tmp partition

[Looking for a solution to another query? Reach out to us if you have any further questions.]


To conclude, we offer the steps to extend the cPanel tmp partition on this article.


By no means once more lose clients to poor server velocity! Allow us to aid you.

Our server specialists will monitor & keep your server 24/7 in order that it stays lightning quick and safe.


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.