Failed to write file under linux

王林
Release: 2020-01-10 15:53:05
Original
3274 people have browsed it

Failed to write file under linux

1. The space is full

df -h #查看空间占用情况
Copy after login

2. The number of file inodes exceeds the limit

df -i
Copy after login

(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]
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!