No space Left on device (summary)

Source: Internet
Author: User
.. 1 Prompt the disk is full df-ht not full

May I ask why?

Maybe the inode is full because there are too many small files on the machine.

Use Df-hi to view

.. 2 hint No disk space is full

.. 2.1 Problem Description:

Found to be too many log files, after deletion, df-h usage or 99%,DU-HS display or not reach the total capacity of the disk

.. 2.2 Analysis

Although the file was Rm-f logname, the volume was not actually released because a process opened the file.

.. 2.3 Workaround

..

1 Service Restart: 2 Do not delete, directly redirect the file to empty

Solution:

.. 3 Description File Deletion principle

The file name is stored in the block area of the parent directory, and when a file is deleted, only the data of the block area of the parent directory is deleted, the file real inode and block have not been deleted, so there is a possibility of recovery. However, when the system finds that no file name points to the inode, it deletes the inode and the block corresponding to the inode, updating the inode map block map

In-depth: controlled by two parameters

I_link = = Number of hard connections

I_count = = Process Call

File Delete condition, i_link and I_count = = 0

No space Left on device (summary)

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.