For Techs.... Techniques.... Technologies....


EC2 instance inode got full

We have recently faced one issue that the one code-igniter application server inode got full. While checking in detail, the session files for code-igniter application was causing the issue. All those session file are created in the folder "/var/lib/php5/sessions".

We can remove the older session files to free up the inodes and it will not affect the application.

#find /var/lib/php/sessions -type f -cmin +24 -name "ci_session*" -exec rm -f {} \;

This command will remove all code-igniter session files older than one day.

Its better to configured this script as a daily cron so that we can avoid these issue in future.

That's all…

Leave a Reply