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.