This topic describes disk space-related issues that typically occur on Linux Elastic Compute Service (ECS) instances.
Take note of the following items:
Before you perform high-risk operations such as modifying the configurations or data of Alibaba Cloud instances, we recommend that you check the disaster recovery and fault tolerance capabilities of the instances to ensure data security.
Before you modify the configurations or data of an instance, such as an ECS instance or an ApsaraDB RDS instance, we recommend that you create snapshots or enable backup for the instance. For example, you can enable log backup for an ApsaraDB RDS instance.
If you granted the permissions on sensitive information (such as usernames and passwords) or submitted sensitive information in the Alibaba Cloud Management Console, we recommend that you modify the sensitive information as soon as possible.
The following disk space-related issues typically occur on Linux ECS instances:
Disk space is used up
For information about how to troubleshoot this issue, see What do I do if disk space or inodes are used up on a Linux instance?
The amount of disk space in the df command output differs from that in the du command output
For information about how to troubleshoot this issue, see The results displayed when you run the df and du commands to view the disk are inconsistent.
Negative values are displayed in the df command output
After you run the
df -h command on a Linux instance to check disk usage, negative values are displayed in the command output.
In Linux, a partition that accounts for 5% or more of space on a disk is reserved for the root user or other specific users. When the space of a reserved partition is occupied, a negative value is displayed for disk space.
rm command to delete large files from disks to free up the space of reserved partitions that is occupied by the files. Then, run the
df command to check disk usage again. You can find that no negative values are displayed in the df command output.