Tutorial: how to extend #aws #ebs volumes with no downtime
▻https://hackernoon.com/tutorial-how-to-extend-aws-ebs-volumes-with-no-downtime-ec7d9e82426e?sou
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:Login to your AWS consoleChoose “EC2” from the services listClick on “Volumes” under ELASTIC BLOCK STORE menu (on the left)Choose the volume that you want to resize, right click on “Modify Volume”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 ~]$ lsblkYou should be able to see a similar output:NAME (...)