L
L
lapka-admin2018-07-16 22:19:57
linux
lapka-admin, 2018-07-16 22:19:57

Run out of inodes how to solve the problem?

How to find out in which folder the most files have accumulated? tmp folder is empty

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Komarchuk, 2018-07-16
@lapka-admin

Before doing anything, you need to make sure that the problem is with inodes.
Use the command:

[alexsystem ~]# df -i
Filesystem            Inodes   IUsed   IFree IUse% Mounted on
/dev/hda2            121896960  227651 121669309    1% /
/dev/hda1              26104      44   26060    1% /boot
tmpfs                  64417       1   64416    1% /dev/shm

The values ​​IUsed, IFree, IUse% will give you an idea on which file system (partition) you have a problem.
Then you need to see which folder has the most nested items (files and folders), and then display them in a list, sort the list in ascending order, use this pipeline:
mindepth 2 or 3 because it is enough to view/count files in folders of 2/3 nesting levels. tail -10 means the top 10 folders with the most items will be shown.
In fact, when everything is done correctly in the system, then such a problem as a lack of inodes does not arise.
At a minimum, this confirms my experience of using SCO UNIX 3.2v4.2 in an industrial enterprise, SCO Open Desktop 3, OpenServer 5 in a bank for the banking system, RedHat Linux, CentOS in various "dispatching" (call centers). There were no problems with inodes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question