There are two possibilities for Linux to view disk space consumption through the command df-h, in fact, to view the disk block occupied by the file (block) Df-ih View index node occupancy (inodes) One, facing the disk full, the following command to find the unused large file deletion, An interface disk block and an index node are full, causing the file to be unable to be created, prompting disk space to be full. So please note that there is room to view the disk, but the creation of the file indicates that the space is full, possibly the Inodes node is full 1. by command:Find/-size +100m |xargs ls-lhList files larger than 100M within the System 2. By command:du-h--max-depth=1View the size of the folder in the current directory can be tested in two ways, sometimes, occupy a lot of space is actually the system log or business attachments, such as small files, second, the index node inodes full, Solution 1. Enter/root directory and executeFind */!-type L | cut-d/-F 1 | uniq-c2. Then one layer to find the file up to the directory, to locate which directory occupies inodes most (usually inodes because the small file too many) 3. [Email protected] clientmqueue]#RM-RF *Delete all files, Discover prompt-bash:/bin/rm:argument list too long, too many files, the server is too lazy to perform delete 4. with commandsls | xargs rm-fAfter some time finally deleted all the files 5.df-ih can see Inodes finally come back a lot of space 6. If you delete the file up to the directory is/var/spool/clientmqueue, then you use a scheduled task, and the notes are executed in seconds: Why Var/spool/clientmqueue generates a lot of files, check the data because Cron executes the relevant results in mail to the execution user's account, but when SendMail does not start This is the case when all the letters will be in this directory for the time being. 7. Modify the Cronwtab fileCrontab-e (Modify a scheduled task, it's a good idea to refresh the scheduled task or wait a few minutes for it to take effect)* * * * * Root run-parts/etc/cron.hourly
>/dev/null 2>&1
4 * * * Root run-parts/etc/cron.daily
>/dev/null 2>&18. Modify the planning task so that there is no record, the perfect ending inodes space full problem!
Description of the full processing method for Linux disk space