The disk space used by Linux does not match the display space.
Source: Internet
Author: User
The size and display of Linux disk space are inconsistent. operator told me that the disk space of XX server is insufficient. let me help solve the problem. Immediately go to ssh, df-TH to see if 99% is used. All right, switch to the directory where du-sh * an usr account for 17 GB. the space used by other largest Linux disks does not match the display space. Today, operator told me, the disk space of the XX server is insufficient. please help me solve the problem. Immediately go to ssh, df-TH to see if 99% is used. All right, switch to the/directory, and the du-sh * usr accounts for 1.7 GB. The maximum folders of the others cannot exceed 300 MB, which means more than 2 GB. Du collects statistics on hidden files, so it is definitely not a problem to hide files, use this command to try lsof | grep delete rsyslogd 1294 root 4u REG 253,0 1963708027 186990/var/log/secure (deleted )............... ........ okay, that's it! The secure file was deleted without stopping rsyslogd, so the space was not released. Service rsyslogd restart to continue df-TH all OK.
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