- Take a snapshot of your volume - wait 5 min
- open the main volume, click modify and increase the size from e.g. 30 GB to e.g. 40 GB
- Exted OS filesystem
- SSH into you instance.
- Type
df -h
to check volume size; You will still have 30GB of volume size. - Type
lsblk
Your increased volume will be shown just above your current volume, e.g. xvda1 is your current volume with 30GB size and xvda with 40GB size. - Extend the partition by typing
sudo growpart /dev/xvda 1
; Note thatdev/xvda
is the partition name and 1 is the partition number. - Extend the volume by typing
sudo xfs_growfs /dev/xvda1
orsudo resize2fs /dev/xvda1
If you see error try the other one.