Skip to main content

AWS Troubleshooting

· One min read
Jiaqi Liu

New Volume in EC2 Instance Not Reflecting

When we have increased the size of the volume attached a running EC2 instance. We are able to see the new volume using lsblk:

Error loading ec2-volume-1.png

But when df -h command still displays the old volume size:

Error loading ec2-volume-2.png

This is because new volumes should be formatted to be accessible. Resized existing volumes should also be modified (resized) from the inside of the operating system. The general information on how to do this safely (e.g. with snapshots) is given in the following AWS documentation:

sudo growpart /dev/xvda 1
sudo resize2fs /dev/xvda1