Bash inodes: Difference between revisions
Jump to navigation
Jump to search
(Created page with "== Find inodes used == If you run out of inodes, it is a pita to deal with unexpectedly. In general it should not come as a suprise when this happens on servers that have man...") |
mNo edit summary |
||
Line 1: | Line 1: | ||
<metadesc>Bash inode use loop command.</metadesc> | |||
== Find inodes used == | == Find inodes used == | ||
If you run out of inodes, it is a pita to deal with unexpectedly. In general it should not come as a suprise when this happens on servers that have many small files. It does come as a suprise on servers like PiHole and the issue is unexpected. | If you run out of inodes, it is a pita to deal with unexpectedly. In general it should not come as a suprise when this happens on servers that have many small files. It does come as a suprise on servers like PiHole and the issue is unexpected. |
Latest revision as of 13:59, 25 April 2024
Find inodes used
If you run out of inodes, it is a pita to deal with unexpectedly. In general it should not come as a suprise when this happens on servers that have many small files. It does come as a suprise on servers like PiHole and the issue is unexpected.
df -i will show the inode count on the mounted volumes
But to really dig into the file system and see where the hell they all are at is going to take a different command Run this against directories /var and /opt and you should find the source of the trouble soon..
for i in `find . -type d `; do echo `ls -a $i | wc -l` $i; done | sort -n