Modify Live EBS Volume Size On AWS

In this tutorial, We are going to scale up EBS Volume Size on the fly.

AWS will now allow to expand or increase Elastic block store(EBS) storage while it is live. It means customers no need to worry about how much storage might be required tomorrow.

Previously we had choice earlier too to increase the volume size but that time we need to take the server offline first then create a snapshot of volume and after that restoring the snapshot to the new volume and then re-attach new volume to the instance. These steps need downtime to modify live EBS volume size.

AWS makes it really easy to change EBS volume size as per your requirement. if you are new to AWS then please go through my previous articles on AWS which helps you to understand AWS better.

Modify Live EBS Volume Size

1. Log in to AWS panel and then go to the EC2 Dashboard.

EBS Volume Size

2. Go to the Running instances and choose the instance/server on which you want to modify EBS volume size.

In the Block Devices section, click on Block device which you want to modify and copy EBS ID.

EBS Volume Size

3. Click on Volumes from the left panel it will show all available volumes then paste volume id in the search section.

The volume will display below which we going to modify.

EBS Volume Size

4. You will see current volume size is showing 500GB. Now I am going to increase it from 500GB to 600GB.

For that, right click on displayed volume and you will get the option to see the option “Modify volume”.

Click on “Modify Volume”

EBS Volume Size

5. When you click on Modify Volume, you will get pop-up to change the volume size, volume type. But here we are going to change only EBS Volume size.

Once you change the EBS volume size then click Modify Button.

EBS Volume Size
EBS Volume Size

6. Now volume size starts modifying, you will see the status of modifying in the Description tab.

 

EBS Volume size modification will take time depends on the size of the volume and present data inside that volume.

So Be patient. it will not harm your data.

7. if you are using Linux box then you need to run below commands to resize the volume size.

$ resize2fs /dev/nvme4n1

resize2fs 1.42.9 (28-Dec-2013)

Filesystem at /dev/nvme4n1 is mounted on /DATA3; on-line resizing required

old_desc_blocks = 32, new_desc_blocks = 38

The filesystem on /dev/nvme4n1 is now 157286400 blocks long.

Previous

$ df -h

/dev/nvme3n1    493G 298G 170G  64% /DATA

After Size Increased

$ df -h

/dev/nvme4n1    591G 372G 190G  67% /DATA

I hope you like the article if you find any difficulties then please do comment your queries or problem via the comment section, till then stay tuned to techthings.org for more such valuable articles.

Leave a Reply

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