Article source: AWS

This is a log to keep a note to help me on resizing the linux file system in the future. The steps are :

adjust the volume on the AWS, and wait for the complete of volume resizing process

check if the disk was resized


extend the disk

sudo growpart /dev/xvdf 1

resize the volume to the new capacity (I am using the xfs file system, other file systems command may be different)

sudo xfs_growfs -d /mnt

check the new volume size

df -h