Disk Space in linux is invisible

Source: Internet
Author: User
Article Title: questions about the invisible occupation of disk space in linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

One day, I log on to a server and find the following strange situations:

: ~> Df-h

Filesystem Size Used Avail Use % Mounted on

/Dev/cciss/c0d0p1 9.9G 1.5G 7.9G 16%/

Udev 16G 164 K 16G 1%/dev

/Dev/cciss/c0d0p3 20G 261 M 19G 2%/usr/local

/Dev/cciss/c0d0p4 104G 42G 56G 43%/data

:/Data # du-sh ./*

4.0 K./corefile

4.0 K./iostat. tmp

4.0 K./log_manager

4.0 K./log_manager1

16 K./lost + found

2.2 GB./web

Clearly, the data directory is only occupied by 2 GB. Why do we see 42 GB in df?

After checking, it turned out to be a good thing for some deleted processes.

# Lsof | grep delete

Ttserver 30316 REG 2946659 7979020/data/ttserver/bin/ttserver (deleted)

Ttserver 30316 REG 70393 8028168/data // tt_feeds/log/tt. log (deleted)

Ttserver 30316 REG 42446163552 8028170/data/pet50/ttserver/tt_feeds/data/tt_feeds.tch (deleted)

The process in the data directory is not stopped, and then the file is deleted, so that the processes that are already in the memory continue to run and write to the disk ~~~

If you also find that your disk has become smaller without an end, is there the same problem?

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.