Tutorial: How to Extend AWS EBS Volumes with No Downtime

Andrea Marinaro
Geek Culture
Published in
2 min readMar 27, 2019

--

This can be applied whenever you need to extend your EBS volume size avoiding to stop the instance and detach the volume.

Cool if you need to do it on prod, right? :)

In order to extend the volume size, follow these simple steps:

  1. Login to your AWS console
  2. Choose “EC2” from the services list
  3. Click on “Volumes” under ELASTIC BLOCK STORE menu (on the left)
  4. Choose the volume that you want to resize, right-click on “Modify Volume”
  5. You’ll see an option window like this one:

6. Set the new size for your EBS volume (in this case i extended an 8GB volume to 20GB)

7. Click on modify.

Now, we need to extend the partition itself.

SSH to the EC2 instance where the EBS we’ve just extended is attached to.

Type the following command to list our block devices:

[ec2-user ~]$ lsblk

You should be able to see a similar output:

NAME    MAJ:MIN RM…

--

--