- Newest
- Most votes
- Most comments
I found this solution and yet to try
https://hackernoon.com/tutorial-how-to-extend-aws-ebs-volumes-with-no-downtime-ec7d9e82426e
try this one as well and share your reviews on it, i tried and it works perfectly, although you need to do some modifications according to your need
https://www.magicpowershell.com/2022/07/extend-live-ebs-volume-on-aws-ec2-instance.html
Hello
You need to do following to successfully increase volume size
-
Increase volume size from AWS console
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-modify-volume.html
-
SSH into the instance.
-
Extend the partition
$ sudo growpart /dev/nvme0n1 1
-
Find out type of filesystem and extend it (use command appropriate to file system that you have)
$ sudo file -s /dev/nvme0n1p1
Then please follow commands given in document https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recognize-expanded-volume-linux.html (check section extending file system) to find the commands related to ext and xfs file systems.
you can refer the below blog for the powershell script that will extend the EBS volume by providing the drive letter, size to increase and instance name as an input and it will extend the EBS volume from AWS end as well as from OS end
Relevant content
- asked 7 months ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 6 months ago
you can do it from this powershell script its super easy
https://www.magicpowershell.com/2022/07/extend-live-ebs-volume-on-aws-ec2-instance.html