This document describes how to troubleshoot the problem of disks being read-only.
Log in to the Windows CVM instance and perform the following operations.
If the disk is full or files cannot be deleted due to an increase in the business volume, we recommend that you expand CBS cloud disks.
If the failure is caused by a faulty hardware component or other problems, submit a ticket.
Log in to the Linux CVM instance and perform the following operations.
df -m
du -f
file_name
with the specific file name. We recommend that you do not delete non third-party files.rm -rf file_name
If the disk is full or files cannot be deleted due to an increase in the business volume, we recommend that you expand CBS cloud disks.
If the disk usage has not reached 100% but the inode resource has been exhausted, it is generally because the generation of many small files exhausted the inode resource.
df -i
In Linux, the partition for the root directory is generally small. If small files are periodically generated and not cleared in a timely manner, the inode resource will soon be exhausted. If the inode resource usage has reached 100%, complete the following steps:
i. Run the following command to identify the directory with the largest number of files.
for i in /*; do echo $i; find $i | wc -l; done
If the directory is known, replace
/*
with the specific directory.
ii. More files will consume more inodes. Therefore, access the directory with many files and run the following command to delete unnecessary files. To do this, you need to replace file_name
with the specific file name. We recommend that you do not delete non third-party files.
rm -rf file_name
If the disk is full or files cannot be deleted due to an increase in the business volume, we recommend that you expand CBS cloud disks.
If the hardware failure is caused by a faulty hardware component or other problems, submit a ticket.
Was this page helpful?