Walker News

How To Find Or Check Linux inode Usage?

In computer programming, inode is a data structure that store all information, except data and name, of files on Linux filesystem.

Each inode is identified by an unique numeric ID (inode number) and exposes metadata that describe a file, i.e. file ownership, file access permission, file size, physical storage address, timestamp (file creation, modification, and last access), and link counts.

If a Linux file system storing huge number of small files until running out of free inode, the Linux system will not able to create new files even there is a lot of free disk space :(

On Redhat Linux (RHEL 5.2), there are 4 commands available to check or display Linux inode availability status.

Uses df command to display inode usage of each mounted filesystem:
[walker@localhost]# df -i
Filesystem            Inodes   IUsed   IFree IUse% Mounted on
/dev/mapper/VolGroup00-LogVol00
                     2981888  123789 2858099    5% /
/dev/hda1              26104      33   26071    1% /boot
tmpfs                  31949       1   31948    1% /dev/shm

Uses tune2fs, stat, or dumpe2fs command to check inode availability status on particular filesystem, e.g.:
tune2fs -l /dev/hda1 | grep -i "^inode"
stat -f /dev/hda1
dumpe2fs /dev/hda1 | grep -i ^inode

Custom Search

2016  •  Privacy Policy