Linux disk space is occupied, and no usage files are found

Source: Internet
Author: User

The new company's test server disk space is very small, log a lot, also very big, do a log compression script, 4:30 in the night automatically run, the second day found disk space is full, had to delete useless logs, empty space, can be weird is how to delete useless files, space or occupy a lot.

650) this.width=650; "title=" QQ picture 20160627141444.png "style=" height:141px;width:671px; "alt=" Wkiom1dwxixdgxgraaaaqqah3qu890.png "src=" http://s2.51cto.com/wyfs02/M01/83/53/ Wkiom1dwxixdgxgraaaaqqah3qu890.png "width=" 368 "height=" 102 "/>

With the Du root directory, it is found that these files plus a small footprint is also very low.

650) this.width=650; "title=" QQ picture 20160627142007.png "alt=" wkiom1dwxkkiwsxpaabvdhmvevy009.png "src="/http S1.51cto.com/wyfs02/m00/83/54/wkiom1dwxkkiwsxpaabvdhmvevy009.png "/>

After checking with lsof, the reason is that there is a file being deleted, and the process is still alive, resulting in a space-occupying phenomenon.

650) this.width=650; "title=" QQ picture 20160627142545.png "alt=" wkiol1dwxyuyuqvaaalbpgeb-b8975.png "src="/http S3.51cto.com/wyfs02/m01/83/52/wkiol1dwxyuyuqvaaalbpgeb-b8975.png "/>

As a result, it is clear that the Nohup log file process is still

650) this.width=650; "title=" QQ picture 20160627143038.png "alt=" wkiom1dwyb-ix6_caadvx7090ks667.png "src="/http S5.51cto.com/wyfs02/m01/83/54/wkiom1dwyb-ix6_caadvx7090ks667.png "/>

After the process is killed, the space is freed according to the process number listed by Lsof.

This article is from "Linux OPS rookie" blog, please be sure to keep this source http://zhangchuang.blog.51cto.com/10884116/1793281

Linux disk space is occupied, and no usage files are found

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.