Linux disk space Full processing method

Source: Internet
Author: User

There may be two situations in which there is space under Linux

You can view disk space consumption by command df-h, and actually view the file (block) occupied by the disk block Df-i view the occupied (inodes) disk block and index node of the index node is full, resulting in the inability to create the file, prompting disk space is full. So please note that there is room for the view disk, but the creation of the file prompt is full, possibly the Inodes node is full via command: Find/-size +100m |xargs ls-lh lists files larger than 100M in the system du-h--max-depth= 1 View the size of the folder in the current directory can be tested in two ways, sometimes, occupy a lot of space is actually the system log or business accessories, such as small files, so according to the size of the file to find not necessarily can identify the disk space is occupied by the "directory" or file, the recommended use of the second log file large Web Access log, It is recommended to do a scheduled task log cutting, in days to do a compressed backup (can be implemented through scripting), to keep a certain time for viewing, there is a need to do log analysis. For example, in the case of a one-click installation package, the/alidata/log/directory is a log file that checks to see if the file size is full disk usage, and generally, the Access directory file is the log of the error. If the disk is slow, these logs are not important, then you can do the empty processing, Method 1, RM Delete, 2 echo "" >access.log a large number of small files due to business needs, resulting in a large number of small files, need to consider new additions to the disk or the use of OSS storage Services/HTTP Help.aliyun.com/all/11108271.html?spm=5176.383377.1996834802.6.7hpore can be based on the above steps to troubleshoot, if still unable to resolve, you can submit after-sales work orders, Server account password information, etc., for troubleshooting.

Linux disk space Full processing method

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.