On Linux use vim edit file save times Wrong: E514:write error (File system full?) __linux

Source: Internet
Author: User
Tags postgresql redis reserved disk usage


Today on Linux using vim edit file save times the following error



E514:write error (File system full?)


Looking at the error, the disk is full, so use DF-HL to view the disk usage



$ sudo df-hl
filesystem                         Size  Used avail use% mounted on
/dev/mapper/vg_myserver-lv_root    50G   43G  4.6G  91%/
tmpfs                              7.8G  268K  7.8G   1%/dev/shm
/dev/sda1                          477M   61M  391M  14%/boot
/dev/mapper/vg_myserver-lv_home    1.8T  1.7T     0 100%/home


From the results, it is true that the/home disk is full.



But at this point, when I use the root user to write a file in/home, there is no error.



Checked for a long time, the original is Linux in each partition will retain a part of the root user space, which is dedicated to the root users and their groups to use, other users are not available, the general default is 5% of the total block of data.



This reserved space can be viewed using the following command



$ sudo tune2fs-l <device> | grep Reserved


Like what:



$ sudo tune2fs-l/dev/sda1 | grep Reserved

or

$ sudo tune2fs-l/dev/mapper/vg_rhserver33-lv_home | grep Reserved

Reserved block Count:23551078
Reserved GDT blocks:      911 Reserved blocks
uid:      0 (user root)
Reserved blocks GID:      0 ( Group Root)


OK, I know the problem, then we clean up the disk space, clean up some disk space, finally I can continue to write data.


Alibaba Cloud Hot Products

Elastic Compute Service (ECS) Dedicated Host (DDH) ApsaraDB RDS for MySQL (RDS) ApsaraDB for PolarDB(PolarDB) AnalyticDB for PostgreSQL (ADB for PG)
AnalyticDB for MySQL(ADB for MySQL) Data Transmission Service (DTS) Server Load Balancer (SLB) Global Accelerator (GA) Cloud Enterprise Network (CEN)
Object Storage Service (OSS) Content Delivery Network (CDN) Short Message Service (SMS) Container Service for Kubernetes (ACK) Data Lake Analytics (DLA)

ApsaraDB for Redis (Redis)

ApsaraDB for MongoDB (MongoDB) NAT Gateway VPN Gateway Cloud Firewall
Anti-DDoS Web Application Firewall (WAF) Log Service DataWorks MaxCompute
Elastic MapReduce (EMR) Elasticsearch

Alibaba Cloud Free Trail

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.