Delete file, disk space does not change

Source: Internet
Author: User

Log in to the Ubuntu server, and use the TAB command to error: Cannot create temp file for Here-document:no spaces left on device. Due to a process using strace for tracking, Strace-o, will monitor the results, saved to the file, less than five or six hours, the file size reached more than 100GB, resulting in insufficient space for the system. Using the command df-h to view, it is true that the remaining space is almost 0.
The file is then deleted using RM. After the file is deleted, there is no change in disk space ... Then remembered that I was using the screen command, in which there was the use of the Strace command, the resulting file, which was generated by this strace, but I just deleted the resulting file and did not close the corresponding process for this file. So you can close this process.
Also, refer to reference page 1 and lsof This command to see the process in which a file is being used. In other cases, there may be a hard link to the deleted file, or disk corruption. Let's say you can use echo "" >/path/filename to override a file if you don't want to close the process. Refer to online cleanup of log files generated by Web services such as Apache, Tomcat, and Nginx

Reference Web page
1 Linux deleted file disk space does not release the reason http://blog.csdn.net/mr253727942/article/details/38361469

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.