Glossary

What is an inode?

An inode is the filesystem record that stores a file's metadata, such as its owner, permissions and where its data blocks are, and every file and directory uses one.

A filesystem such as ext4 creates a fixed number of inodes when it is formatted. Each file, directory and symbolic link uses one, whatever its size. A disk can therefore be full in two ways: out of blocks, or out of inodes. When inodes run out, creating any new file fails with No space left on device, even though df -h shows free space.

This usually happens when something writes millions of tiny files: session or cache directories, mail queues, build artefacts or log fragments. Check with df -i, find the directory with the most entries and clear it. XFS and Btrfs allocate inodes dynamically, which makes the problem rare, but ext4 volumes are common on servers.

Example

$ df -h /var
/dev/nvme0n1p1   50G   21G   27G   44%  /var

$ df -i /var
Filesystem       Inodes    IUsed   IFree  IUse%  Mounted on
/dev/nvme0n1p1  3276800  3276800       0   100%  /var

How WatchTower15 checks it

WatchTower15 watches every volume that holds real storage, including whether it is running out of inodes.