To change the size of an existing EBS volume on an EC2 instance without deleting it, you can follow these steps:
a. In the AWS Management Console, go to the “Elastic Block Store” section.
b. Select your EBS volume that you want to resize.
c. Click the “Actions” button and choose “Modify Volume.”
d. In the “Modify Volume” dialog, increase the “Size” field to your desired size.
e. Click “Modify” to apply the changes.
resize2fs
command:
df
or lsblk
to check the available space.