Solving the difference in space capacity between DF and du viewing is a big problem

Source: Internet
Author: User

Environment: Centos 6.5


Today, there is a strange thing is that df-h when viewing disk space, the display uses a space of 100%, unable to write to the disk, but when viewed with du-sh/home/*, the sum of space used is about 20%.

650) this.width=650; "style=" Float:none; "title=" 1.png "alt=" wkiol1b_8u_y4mmjaaiaejkdh90184.png "src="/HTTP/ S2.51cto.com/wyfs02/m02/7e/70/wkiol1b_8u_y4mmjaaiaejkdh90184.png "/>

650) this.width=650; "style=" Float:none; "title=" 2.png "alt=" wkiol1b_8vwi6hbhaatbdty06im435.png "src="/HTTP/ S4.51cto.com/wyfs02/m00/7e/70/wkiol1b_8vwi6hbhaatbdty06im435.png "/>

Finally, it was found that a large file was previously deleted, although it was rm-rf, but because there are other process calls to the file, it is equivalent to not being deleted. When we use RM-RF to delete a file, we simply delete the file's index on disk, not the actual deletion, which is overwritten when a new file is written.

650) this.width=650; "title=" 1.png "alt=" Wkiom1b_8oldmi5taaknltimlaw085.png "src=" http://s2.51cto.com/wyfs02/M00/ 7e/73/wkiom1b_8oldmi5taaknltimlaw085.png "/>

At this point, you can use kill-9 14930来 to end the process and let the disk free up space, such as:

650) this.width=650; "title=" 2.png "alt=" Wkiol1b_8aaig5kpaagowir4n1w826.png "src=" http://s5.51cto.com/wyfs02/M00/ 7e/70/wkiol1b_8aaig5kpaagowir4n1w826.png "/>

OK, now the capacity of the disk is normal.

This article from "Pengcheng-soy sauce bottle" blog, declined reprint!

Solving the difference in space capacity between DF and du viewing is a big problem

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.