The disk space is not released after files are deleted.

Source: Internet
Author: User
After the file is deleted, the disk space will not be released and an alarm will be triggered. the disk space will soon be full. $ Df-hwww.2cto.com file system capacity used available % mount point/dev/sda215G937M13G7 % // dev/sda1_1_105g344g24 %/u02/dev/s... after the file is deleted, the disk space will not be released and an alarm will be triggered. the disk space will soon be full. $ Df-h www.2cto.com file system capacity used available % mount point/dev/sda2 15G 937 M 13G 7%/dev/sda3 473G 105G 344G 24%/u02/ dev/sda8 8.6G 7.3G 819 M 91%/tmp/dev/sda7 9.5G 412 M 8.6G 5%/home/dev/sda6 15G 1.9G 12G 14%/usr/dev /sda5 15G 1015 M 13G 8%/var/dev/sda1 122 M 11 M 105 M 10%/boottmpfs 24G 92 K 24G 1%/dev/shm/dev/sdb1 1.4 T 864G 437G 67%/u01 went to the tmp Directory, the 7.1G tmp_collect_msg_u02_io_peien_20111130.log file is large, so rm is dropped. However, df found that the disk space was not released. $ Rm tmp_collect_msg_u02_io_peien_20111130.log $ df-H file system capacity in use available % mount point/dev/sda2 15G 937 M 13G 7%/dev/sda3 473G 105G 344G 24%/ u02/dev/sda8 8.6G 7.3G 819 M 91%/tmp/dev/sda7 9.5G 412 M 8.6G 5%/home/dev/sda6 15G 1.9G 12G 14%/usr /dev/sda5 15G 1015 M 13G 8%/var/dev/sda1 122 M 11 M 105 M 10%/boottmpfs 24G 92 K 24G 1%/dev/shm/dev/ sdb1 1.4 T 864G 437G 67%/u01172.23.142.7: /nas/mysql_bak0535T 23 T 12 T 66 %/Bak3306 is not released because the file is opened. So ps aux | grep tmp found the following process: $ ps axu | grep tmpmysql 6007 0.0 0.0 8700 960? Ss 2011/bin/sh-c/home/mysql/collect_msg_u02_io_peien_20111123.sh>/tmp/Batch 2> & 1 mysql 6008 0.0 0.0 8700 964? Ss 2011/bin/sh-c/home/mysql/collect_msg_u01_io_peien_20111123.sh>/tmp/Secrets 2> & 1 mysql 6009 0.0 0.0 8704 756? S 2011/bin/sh-c/home/mysql/collect_msg_u02_io_peien_20111123.sh>/tmp/Batch 2> & 1 mysql 6011 0.0 0.0 8704 764? S 2011/bin/sh-c/home/mysql/collect_msg_u01_io_peien_20111123.sh>/tmp/Batch 2> & 1 mysql 31669 0.0 0.0 8700 956? Ss 2011/bin/sh-c/home/mysql/collect_msg_u02_io_peien_20111123.sh>/tmp/Batch 2> & 1 mysql 31670 0.0 0.0 8704 756? S 2011/bin/sh-c/home/mysql/collect_msg_u02_io_peien_20111123.sh>/tmp/Batch 2> & 1 mysql 31674 0.0 0.0 8700 960? Ss 2011/bin/sh-c/home/mysql/collect_msg_u01_io_peien_20111123.sh>/tmp/Secrets 2> & 1 mysql 31678 0.0 0.0 8704 760? S 2011/bin/sh-c/home/mysql/collect_msg_u01_io_peien_20111123.sh>/tmp/timeout 2> & 1 11 years of processes, these people are really unreliable, test scripts, it should be cleared after completion. Kill these processes. Release disk space. $ Df-H file system capacity in use % available mount point/dev/sda2 15G 937 M 13G 7%/dev/sda3 473G 105G 344G 24%/u02/dev /sda8 8.6G 190 M 7.9G 3%/tmp/dev/sda7 9.5G 412 M 8.6G 5%/home/dev/sda6 15G 1.9G 12G 14%/usr/dev/ sda5 15G 1015 M 13G 8%/var/dev/sda1 122 M 11 M 105 M 10%/boottmpfs 24G 92 K 24G 1%/dev/shm/dev/sdb1 1.4 T 864G 437G 67%/u01172.23.142.7: /nas/mysql_bak0535T 24 T 12 T 66%/bak3306
Related Article

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.