Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Increasing number of inodes for /tmp using securetmp script

Discussion in 'Security' started by kavos1332, Nov 1, 2014.

  1. kavos1332

    kavos1332 Active Member

    Joined:
    Dec 17, 2012
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hi All,

    My server is hardened by using cPanel's securetmp script. I have installed Nginx using Nginx Admin plugin. My problem is every few days, Nginx fails to processes some phppages and states in its logs that no space is left in /tmp. However in such cases, "df -h" shows that a lot of disk space is left on the tmpDSK which is mounted under /tmp. So I think no inode is left on the device. So I would like to mount /tmp with some more inodes. As I know tmpDSK is mounted on boot so there should be a setting that can control number od inodes.

    I look forward for your helpful answers.
    TIA
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,878
    Likes Received:
    89
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    You will have to setup the cron job to clean /tmp directory, Following cron will automatically cleanup your /tmp/nginx_client directory so that you will not get any issues with tmp inodes.

    Code:
    0 */1 * * * /usr/sbin/tmpwatch -am 1 /tmp/nginx_client
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,897
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    I suggest reviewing the /tmp partition to verify what's taking up the available inodes. It's possible that you need to setup a tmpwatch script as referenced in the previous post to automatically clean up older files.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice