How To Expand an EBS Volume After a Disk Resize on Amazon Linux

Published Date Author: , Posted April 17th, 2023 at 9:51:50am

First, use the AWS Console to modify the volume to the desired size, in our example we want to go from 10GB to 25GB for the root filesystem

For a Xen ext4 root volume

For NVMe

First, use lsblk to see the raw partitions:

Note how the partition at 259:1 is only 20GB, while the entire disk at 259:0 is 40GB. A partition resize is required in this case.

For an EXT4 filesystem, use the resize2fs command instead:

For more information, please visit the AWS Docs: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recognize-expanded-volume-linux.html

No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.