No space left on device - how to determine which directory occupies the most inodes
This document (7014803) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 11 Service Pack 1 (SLES 11 SP1)
SUSE Linux Enterprise Server 11 Service Pack 2 (SLES 11 SP2)
SUSE Linux Enterprise Server 11 Service Pack 3 (SLES 11 SP3)
SUSE Linux Enterprise Desktop 11
SUSE Linux Enterprise Desktop 11 Service Pack 1 (SLED 11 SP1)
SUSE Linux Enterprise Desktop 11 Service Pack 2 (SLED 11 SP2)
SUSE Linux Enterprise Desktop 11 Service Pack 3 (SLED 11 SP3)
Situation
Resolution
find / -xdev -type f | cut -d "/" -f 2 | sort | uniq -c | sort -nThis will show the directory using the most inodes as:
susemanager:~ # cd /To narrow down the directory structure:
susemanager:/ # find . -xdev -type f | cut -d "/" -f 2 | sort | uniq -c | sort -n
15 tmp
39 root
100 bin
163 lib64
190 sbin
2158 lib
2901 etc
7029 srv
41669 usr
59915 var
cd /varwhich will show
find . -xdev -type f | cut -d "/" -f 2 | sort | uniq -c | sort -n
susemanager:/var # find . -xdev -type f | cut -d "/" -f 2 | sort | uniq -c | sort -nRepeat this until the problematic directory has been identified and check if files can be deleted to free up inodes.
1 opt
8 spool
9 lock
24 run
201 log
223 adm
1459 cache
5612 lib
52378 spacewalk
Cause
Additional Information
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7014803
- Creation Date: 26-Mar-2014
- Modified Date:03-Mar-2020
-
- SUSE Linux Enterprise Desktop
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com