Linux disk space is full

Source: Internet
Author: User
The linux disk space is full. I encountered a problem this evening. the request failed to respond and the ping was successful. No log changes can be seen after numerous restarts. A colleague saw the Shell code df-hl and found that the disk space was full. Immediately delete the file and restart tomcat to restore...
The linux disk space is full. I encountered a problem this evening. the request failed to respond and the ping was successful. No log changes can be seen after numerous restarts. A colleague saw the Shell code df-hl and found that the disk space was full. Immediately delete the file and restart tomcat to restore normal. The reference Df command is used in linux to view the file system by disk partition. you can add a parameter to view the remaining disk space information. the command format is df-hl www.2cto.com. the display format is: file system capacity in Use available % mount point Filesystem Size Used Avail Use % Mounted on/dev/hda2 45G 19G 24G 44%/dev/hda1 494 M 19 M 450 M 4% /boot/dev/hda6 4.9G 2.2G 2.5G 47%/home/dev/hda5 9.7G 2.9G 6.4G 31%/opt none 1009 M 0 1009 M 0%/dev/shm/ dev/hda3 9.7G 7.2G 2.1G 78%/usr/local/dev/hdb2 75G 75G 0 100%/dev/hdb2 75G 75G 0 100%/w For example, the output above ww.2cto.com indicates the second hard disk (B) of the HD hard disk interface, the second partition (2), the capacity is 75 GB, and 75 GB is used, the availability is 0, so the utilization is 100%, and is mounted to the root partition Directory (/). The following is an explanation of the relevant commands: df-hl view remaining disk space df-h view partition size of each root path du-sh [directory name] return the size of this directory du-sm [folder] return the total size of this folder M for more functions, run the following command: df -- help du -- help www.2cto.com view the hard disk partition # sudo fdisk-l view the IDE hard disk information # sudo hdparm-I/dev/hda view the STAT hard disk information # sudo hdparm-I/dev /sda or # sudo apt-get install blktool # sudo blktool/dev/sda id to view the remaining space on the hard disk # df-h # df-H to view the space occupied by the Directory # du-hs directory name the USB flash drive cannot be detached # sync fuser-km/media/usbdisk author makemyownlife
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.