How to deal with CentOS server disk full

Source: Internet
Author: User
Tags centos server

How to deal with CentOS server disk full

[Root @ localhost mapper] # df

File System 1 K-block used available % mount point/dev/mapper/VolGroup00-LogVol00269232512 255332084 3520 100% 101086 // dev/sda1 20998 74869 22% 5956256/boottmpfs 5956256 0 0%/dev/shmnone 5956256 104 5956152 1%/var/lib/xenstored mount point/full... Run the command du-sh/* | sort-nr to view [root @ localhost data0] # du-sh/* | sort-nr200G/data1 (this directory is too large) 677 M/var240M/lib236K/root148K/dev134M/etc56K/tmp42M/sbin23M/lib6416M/boot16K/lost + found/bin8.1G/found/mnt found/data1 directory too large, find out the reason. This is the NGINX log record. After directly deleting (rm), you can view the summary. Run the command to check whether the file occupies a large space, then analyze what the file is like. If it is a log or something like this, back up and kill it directly.

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.