Home  >  Article  >  Operation and Maintenance  >  Failed to write file under linux

Failed to write file under linux

王林
王林Original
2020-01-10 15:53:053258browse

Failed to write file under linux

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn