- What is an inode?On Linux file systems, an inode is a record that describes one file or one folder: who owns it, its size, its permissions and…
- Why do hosts limit inodes?On a shared server many accounts share the same disk and file system.
- What uses the most inodes?Email: on many setups each message is a file, so large mailboxes use a lot.
What is an inode?
On Linux file systems, an inode is a record that describes one file or one folder: who owns it, its size, its permissions and where its data is on the disk. Every file and every directory uses one inode, no matter how small it is. A folder with 10,000 tiny files uses 10,000 inodes, even if they total only a few megabytes. That is why inode count and storage size are different measures, and why a site can run out of one without running out of the other.
Why do hosts limit inodes?
On a shared server many accounts share the same disk and file system. A huge number of files slows backups, scans and file operations for everyone, and uses memory in the file system. A limit on inodes protects the server from one account that creates millions of files, and it is a way to stop an account from using the plan as a file store. Typical limits on shared plans range from tens of thousands to a few hundred thousand inodes, and the number is usually found in the plan details or in the control panel, rather than on the main plan page. Read it before you buy; see what unlimited hosting really means.
What uses the most inodes?
- Email: on many setups each message is a file, so large mailboxes use a lot.
- Cache directories created by caching plugins and applications.
- Old backups kept inside the account, especially full copies unpacked as folders.
- Image thumbnails, because a CMS can create several sizes of every uploaded picture.
- Session files, logs and temporary files that are never cleaned.
- Many installed themes, plugins and libraries with thousands of small files each.
How do you check your inode usage?
- Open the control panel
cPanel and similar panels show inode use on the main page or in a disk usage tool.
- Find the biggest folders
Use the disk usage tool to see which directories hold the most files.
- Check email separately
Mailboxes are often the biggest contributor.
- On a server with SSH
Commands that count files per directory show where the numbers are; see what SSH access is.
How do you reduce inode usage?
- Delete old backups from the account and keep them elsewhere; see website backups.
- Clear caches, and limit how long caching plugins keep files.
- Remove unused themes, plugins and old application copies.
- Clean email: delete spam and old messages, or move archives off the server.
- Reduce the number of image sizes your theme generates and remove unused ones.
- Archive many small files into a single compressed file you store elsewhere.
What happens when you hit the limit?
The effects depend on the host, but they are usually unpleasant. You may be unable to upload files, create backups or install updates. Incoming email can bounce because new messages cannot be written. The site may show errors if the cache or session folders cannot be created. Some hosts send a warning first and then suspend writes, and a few ask you to upgrade the plan. Fix it quickly, since deleting files can take a while on a large account.
How do inodes relate to storage and plan choice?
They are separate limits, and a plan can be generous on one and tight on the other. When you compare plans, look at the disk space, the inode limit and the CPU and process caps together. If your site is large or generates many files, such as a store with many product images, an image gallery or a site with large mailboxes, consider a VPS or managed plan where limits are expressed differently; see how to choose a VPS size and bandwidth, storage and transfer.
What are the common mistakes?
- Looking only at storage and ignoring inodes.
- Leaving old unpacked backups in the account.
- Never cleaning mailboxes.
- Installing many plugins “just in case”.
- Assuming “unlimited” means there is no file limit.
A worked example: finding 300,000 hidden files
A site owner gets a warning that the account is at 95 percent of its inode limit, although it uses only a fraction of its storage. They open the disk usage tool and see that one folder holds about 200,000 files: an old caching plugin’s cache directory. Another 60,000 are email messages in a mailbox that was never cleaned, and 30,000 are unpacked backup folders from a past migration. They delete the old backups, clear the cache and set the plugin to expire entries, and archive the mailbox. Within an hour the count drops by two thirds.
The site did not change at all. The lesson is that inode problems nearly always come from housekeeping, not from the site’s real content.
How can you prevent inode problems?
- Set a monthly reminder to review disk and inode usage.
- Configure caches to expire and limit their size.
- Store backups off the account.
- Clean mailboxes or use a mail service with its own storage.
- Delete unused plugins and old copies of the site.