Under the Linux operating system, there is a useless file occupied 400G, and then deleted.
[Email protected] log]# RM-RF messages
[Email protected] log]# df-h
Filesystem Size used Avail use% mounted on
/dev/sda3 545G 438G 101G 82%/
Tmpfs 32G 0 32G 0%/dev/shm
/DEV/SDA1 1008M 62M 896M 7%/boot
/dev/sdb 1.7T 9.3G 1.6T 1%/bak
Space is still not released.
View with Lsof
[Email protected] log]# lsof |grep deleted
RSYSLOGD 2663 Root 1w REG 8,3 450728036742 422854/var/log/messages (Deleted)
Perform a kill operation to ensure that there are no effects or no use of the condition
[Email protected] var]# kill-9 2663
[Email protected] var]# lsof |grep deleted
There are no 450728036742 422854/var/log/messages (deleted) process information
[Email protected] var]# df-h
Filesystem Size used Avail use% mounted on
/dev/sda3 545G 19G 521G 4%/
Tmpfs 32G 0 32G 0%/dev/shm
/DEV/SDA1 1008M 62M 896M 7%/boot
/dev/sdb 1.7T 9.3G 1.6T 1%/bak
The space is freed up.
Space does not free disk space after Linux deletes files