AWS Ec2 Modify Volume Size

By | October 9, 2023

Scenario : You want to increase volume size of attached EBS disk

Step 1: Go to volumes and click mody volume

Step 2:

Wait for 5 minutes after modify volume.

Step 3: sudo apt install cloud-guest-utils

Step 4: find out the device path.

Step 5 :

sudo growpart /dev/nvme0n1 3

Step 6 :

sudo resize2fs /dev/nvme0n1p3

Finally test with df -h command