25% off on first invoice for all services*

SPRING SALE

Use coupon

*Offer valid for new customers only

25% off on first invoice for all services*

SPRING SALE

Use coupon

*Offer valid for new customers only

Need help?

Our experts have had an average response time of 11.43 minutes in March 2024 to fix urgent issues.

We will keep your servers stable, secure, and fast at all times for one fixed price.

What is Linux inode and how we reduce its usage

by | Apr 30, 2020

Do you want to know more about the Linux inode and methods to reduce its usage?

Linux tracks files using a catalog system much like how libraries track books using paper cards. Every file in Linux has a “card” known as inode (or index node).

At Bobcares, servers owners often approach us with exceeded inode usage errors and we fix it as a part of our Server Management Services.

To know more about Linux inodes and its usage, read on.

What is an inode?

The inode stands for the index node. The number of inodes indicates the number of files in the Linux server.

In Linux everything from images, videos, emails, spams, website contents, backups all are files and inode counts every single file.

This is where inode usage needs proper monitoring. If a server has a lot of junk files, spam emails, and old backups, it uses up the allowable inode limit.

The consequence is, the user will not able to make any new file, which can cause websites to crash or mails to bounce.

Even if there is plenty of space left on the server, the user cannot create any files if all inodes are already used up.

So we reduce inode usage by constantly deleting spam emails, unwanted files, older backups, and clearing cache.

 

How to check Linux inode usage?

Usually, we check the inode usage via the terminal. And to check this, first SSH into the server as the root user and run the command,

df -i

And the result appears as,

Linux inode usage

To maintain the performance of the server shared hosting, accounts usually have limits for inode usage. And if the inode limit exceeds then certain action will be taken according to the hosting plans.

 

How to reduce inode usage?

The inode usage track the number of files present in the account. We determine this so that the files in the account don’t fill the disk. We can reduce this in different ways like,

 

1. Remove unnecessary files/folders

We use a file manager or FTP to remove any unwanted files or folders from the account. This basically reduces the inode usage in the server.

Also, we can remove the files via SSH as well. We also remove the old backups from the server if not required.

 

2. Clear the cache

Many CMS like WordPress, Drupal, Joomla, etc store cache on the website.

They store these cache to improve the website performance and load time. These also count to the inode usage. So by clearing these cache, we reduce the inode usage.

 

3. Delete the Spam emails

Almost all accounts will have any spam emails in the email account. Every single email counts to an inode number. So by deleting these emails, we reduce the inode usage.

Also, deleting any emails from the queue reduces inode usage.

 

A common error related to inode usage

Recently, one of our customers approached us with the below error message in the account.

No space left on device or running out of Inodes.

He deleted many files including the old emails as well. But still, the inode usage didn’t reduce. So our Support Engineers ran the below command to confirm about the inode usage

df -ih

Then, we ran a bash command to check which directory with the most number of files.

for i in /*; do echo $i; find $i |wc -l; done

Hence, we found the exact directory that caused the error. And then, we deleted the files from the directory and fixed this error.

 

[Need any assistance in reducing inode usage? – We’ll help you.]

 

Conclusion

In short, the inode is the number of files present in the server. If the inode limit is reached, the user can’t add any new file to the server. Today, we saw how our Support Engineers found the inode usage in the server and fixed the error.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Categories

Tags

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF