The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

change crontab /bin/optimizefs

Discussion in 'General Discussion' started by Mehrpouyan, Apr 21, 2015.

  1. Mehrpouyan

    Mehrpouyan Active Member

    Joined:
    Nov 5, 2012
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi

    i change bellow default cron :

    45 */8 * * * /usr/bin/test -x /usr/local/cpanel/bin/optimizefs && /usr/local/cpanel/bin/optimizefs

    to :

    45 23,08 * * * /usr/bin/test -x /usr/local/cpanel/bin/optimizefs && /usr/local/cpanel/bin/optimizefs

    This Is OK ? There Is no Technical Problem With This Change ?

    Best Regards,
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,674
    Likes Received:
    647
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. Mehrpouyan

    Mehrpouyan Active Member

    Joined:
    Nov 5, 2012
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi ,
    Because of Increase Server Load from chattr command on hight trafic time ( 4 PM )
    i understand that this cron run chattr command. is it right ?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,674
    Likes Received:
    647
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    This is correct. This script sets the chattr +A flag for certain cPanel system files. This helps reduce I/O. This should not cause noticeable load and helps the performance of the system. This is not necessary if your partitions are mounted with noatime. However, it it does cause load issues, you can disable it per the instructions here:

    https://forums.cpanel.net/threads/disabling-optimizefs.420782/

    Thank you.
     
  5. Mehrpouyan

    Mehrpouyan Active Member

    Joined:
    Nov 5, 2012
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thank You
    I Fixed Problem With Change Cron Time. ( I Think This Is Better Than Disable This Function )
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,674
    Likes Received:
    647
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page