All Products
Search
Document Center

FAQs related to Linux instance disk space

Last Updated: Dec 17, 2020

Disclaimer: This article may contain information about third-party products. Such information is for reference only. Alibaba Cloud does not make any guarantee, express or implied, with respect to the performance and reliability of third-party products, as well as potential impacts of operations on the products.

 

Overview

This article describes FAQs related to Linux instance disk space.

 

Background

Alibaba Cloud reminds you that:

  • Before you perform operations that may cause risks, such as modifying instance configurations or data, we recommend that you check the disaster recovery and fault tolerance capabilities of the instances to ensure data security.
  • If you modify the configurations and data of instances including but not limited to ECS and RDS instances, we recommend that you create snapshots or enable RDS log backup.
  • If you have authorized or submitted security information such as the logon account and password in the Alibaba Cloud Management console, we recommend that you modify such information in a timely manner.

The following table lists the common issues that may occur during Linux of disk space ECS instances.

 

Disk space full

For more information, see how to troubleshoot the Linux instance disk space and inode full problem.

 

Run the df and du commands to check whether the disk space size is inconsistent.

For more information, seethe df and du commands are inconsistent when viewing the disk.

 

Run the df command to check whether the disk space is negative.

Problem description

When using a Linux server, a negative value is displayed sometimes when you run the df-h command to View disk usage.
1.png

 

Cause

Disk partitions in Linux have the concept of a reserved zone, which reserves 5% or more space for root or specified users. When using the space in this reserved zone, the calculation of fdisk is negative.

 

Solution

You need to run the rm command to delete large files from the disk, release the occupied space, and then run the df command to query the disk usage.

 

Application scope

  • ECS