2010. 11. 25. 21:54 Unix
[UnixTip] 파일시스템 inode full
UNIX GURU UNIVERSE
UNIX HOT TIP
Unix Tip 3577 - November 25, 2010
http://www.ugu.com/sui/ugu/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
FULL OF FILESYSTEM INODES
We recently had a problem where a file system had 100% inode usage.
Unfortunately there isn't an easy way to search for directories with
a lot of files in them (1 file = 1 inode). And if the files are small,
you can't rely on du to help you out.
Here is a find command that will print all the directories in the
current filesystem, with the number of files (inodes) in that directory.
find . -xdev -type d -exec /bin/echo -n {} \; -exec sh -c "ls {} | wc -l" \;