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