"How to Increase EBS Volume Size Without Downtime"

"How to Increase EBS Volume Size Without Downtime"

For critical applications, running out of storage can lead to performance degradation. Fortunately, in AWS, you can increase the EBS volume size dynamically without any downtime or restart. Here's how:

Steps to Increase Volume Size:

  1. Modify the Volume from AWS Console or CLI:

  • Navigate to EC2 > Volumes in the AWS Management Console.
  • Select the EBS volume attached to your instance.
  • Click Modify Volume, then increase the size (e.g., from 100 GB to 200 GB).
  • Alternatively, use the AWS CLI:

aws ec2 modify-volume --volume-id vol-0123456789abcdef --size 200        

Verify the Volume Resizing:

  • Check the progress of the resizing process:

lsblk        

  • Resize the filesystem:

sudo resize2fs /dev/xvdf  # For ext4
sudo xfs_growfs /dev/xvdf  # For xfs        

Verify the new size:

df -h        

Key Benefits:

  • No downtime or application restart is required.
  • Works seamlessly for critical applications running in production.

To view or add a comment, sign in

More articles by Khijar Shaikh

Insights from the community

Others also viewed

Explore topics