General guidelines for preventing inode full issue
OS : RHEL 6.5
Last week , one of our main applcation was down for nearly an hour because of inode getting full for /app filesystem. This filesystem was 70GB in size and it was only 40GB utilized (30GB free). But, because of high number of log files and trace files , the inode has reached it max for this filesystem. We had to delete lots of these unwanted files to fix this. Two questions : 1 . What will you do if the inode has maxed out for a filesystem and deleting small files does not fix the issue ? 2. Any guidelines to prevent inode getting full issue ? My colleague was saying that if you create the filesystem with higher block size , the inode maxing out issue can be prevented. Is this true? Googling didn't help much . Hence posting it here. |
Quote:
Quote:
|
Realistically, you need to find a better thing to do with all those log and trace files. For instance, you could put them into a database table . . .
|
Thank You Bernd.
If you can extend the filesystem, do that. E.g. it resides on a logical volume, and there is still free space in the volume group. This is a quick fix but wasteful. You mean, number of inodes value will increase dynamically when the filesystem size is increased (LVM) ? |
Quote:
|
Quote:
After increasing the underlying volume, you will also have to resize your filesystem with the resize2fs command (if it's ext[234]). |
All times are GMT -5. The time now is 09:05 AM. |