How Do I Fix File Creation Failures Due to Inode Exhaustion?
Symptom
When you create a file or directory, you get the error message "No space left on device", "Cannot create directory", or "Couldn't create temporary archive name."
Possible Causes
In Linux, both of the following use the disk space:
- Data
- Inode
An inode (index node) stores metadata of a file system object, such as a file, directory, device file, socket, and pipe in the file system, but does not contain the object's data and filename.
Constraints
The procedures described in this section involve disk initialization. Back up data in advance.
Solution
- Run the following command to check the available space on the disk:
As shown in Figure 1, the disk still has enough available space.
- Run the following command to check the available inodes on the disk:
If the value of Use% in the command output is 100%, inodes are used up. Perform the following operations to free up inodes:
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.