--- AWS Dashboard EBS Step ---
-
Log into your AWS account and navigate to EC2
-
View Instance Details looking for the Root Device and Block Devices to identify the volume you want to resize
-
Click the storage Device and select the EBS ID
-
While in the Volumes panel click Actions at the top of the page
-
Select Modify Volume to modify that particular volume
-
Enter the desired volume size in GBs and click modify, yes to confirm
-
SSH into your Instance
--- Command Steps ---
-
Run
lsblk
to list available blocks (volumes) and note the volume size / names -
Run
sudo growpart /dev/volumename 1
on the volume you want to resize, in our case it was sudo growpart /dev/xvda 1 -
Run
sudo resize2fs /dev/xvda1
to expand file system -
Check new size with df -h command
Reference: