Space does not free disk space after Linux deletes files

Source: Internet
Author: User

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

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.