Tmp directory of dns only-updates

Elizabeta

Well-Known Member
Mar 21, 2018
230
31
28
Mostar
cPanel Access Level
Root Administrator
size of /tmp is 951MB, so even if you delete everything in /tmp there will be only 951MB free in it.
Maybe it's possible to configure commvault to use another location instead of /tmp
Yes, you are right. Maybe i will to configure commvault to use another location instead of /tmp .

Thank you all!

Best regards,
Elizabeta
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,297
1,259
313
Houston
Also, @Elizabeta

Keep in mind that this will continue to clear files in temp every 10 days. The files it didn't remove were because of the following caveats:

1. Directories will not be removed by default - this would be anything with the d flag such as:
Code:
drwx------   2 root root 4.0K Sep  5 13:53 11489._USR_LOCAL_CPANEL_SCRIPTS_UPDATENOW__.de06719d.tmp
2. The only files that look like they should have been removed are some of the UPDATENOW tmp files:
Code:
-rw-------   1 root root  970 Sep  5 13:53 11489._USR_LOCAL_CPANEL_SCRIPTS_UPDATENOW__.a18704ef.tmp
-rw-------   1 root root 3.8K Aug  1 12:09 12691._USR_LOCAL_CPANEL_SCRIPTS_UPDATENOW__.24487523.tmp
-rw-------   1 root root  970 Aug  1 12:09 12691._USR_LOCAL_CPANEL_SCRIPTS_UPDATENOW__.684d489d.tmp
And I believe this to be related to some attribute of the file - they're formatted differently than the rest of them with a ._USR instead of .USR

So I feel confident in saying that this is working as intended.

If you're curious as I am about why those specific files didn't get removed provide me the output as follows:

Code:
stat /tmp/11489._USR_LOCAL_CPANEL_SCRIPTS_UPDATENOW__.a18704ef.tmp
Code:
lsattr /tmp/11489._USR_LOCAL_CPANEL_SCRIPTS_UPDATENOW__.a18704ef.tmp

As far as the size of /tmp - @quietFinn is correct, your tmp dir is too small for the recommended amount of space. If you're not able to store those files elsewhere, you can try and run /scripts/securetmp to change the size of /tmp as well, based on the size of your disk. There are also a number of useful tutorials on the internet for increasing the size of the /tmp parition