1. The space is full
df -h #查看空间占用情况
2. The number of file inodes exceeds the limit
df -i
(Free video tutorial sharing: linux video tutorial)
Solution:
1. If you use NetApp storage server, modify the number of inodes
maxfiles volname [new_number_of_files]
Note: If the number of inodes is set, it will be almost full (80%). Just increase it gradually.
2. Delete useless files
For example, output the number of files in each folder in the home directory
for i in ~/home;do echo $i;find $i|wc -l;done
If you find which directory has too many files, delete the files in that directory appropriately. .
Recommended related articles and tutorials: linux tutorial
The above is the detailed content of Failed to write file under linux. For more information, please follow other related articles on the PHP Chinese website!