Alibaba ec2 diskspace increase

September 27, 2022 . 1 MIN READ

To diagnose disk activity effectively, start by clearing some storage space to accommodate new tools. Then, install iotop, a powerful utility that functions like top but specifically monitors I/O usage.

Run the following command to track cumulative disk usage:

Bash

sudo iotop -a

Why use the -a flag?

By default, iotop shows current I/O bandwidth. The -a (accumulated) flag allows the tool to act as a logger. You can leave it running in the background while you perform other tasks; when you check back, it will display the total amount of data read and written by each process since the command started. This makes it much easier to identify the specific services or scripts responsible for long-term disk wear or performance bottlenecks.

Reference:

https://www.alibabacloud.com/help/en/elastic-compute-service/latest/resize-disks-online-for-linux-instances

https://www.alibabacloud.com/blog/dynamically-increase-storage-capacity-with-lvm-without-rebooting_593935

https://stackoverflow.com/questions/59780194/alibaba-cloud-ecs-always-increasing-disk-space

Leave a Reply

Your email address will not be published. Required fields are marked *