Expanding Amazon EBS Volume in a EC2 instance.

4 February, 2016.
Under: tech aws

I had an AWS image which was created using an EC2 instance of size 8 GB. Whenever i try to launch an instance i usually change the storage size to something say 20 GB. But once the system is launched when i do a

df -h
i still see 8 GB and not 20 GB.

On further reading i understood i need to resize the disk size. So i did the same using

sudo resize2fs /dev/xvde1
But i was getting the following error:
 The filesystem is already *** blocks long. Nothing to do!

Then to reolve this issue i have to perform the following steps.

Check the partition size, it should be all set with more space.

Share Tweet
comments powered by Disqus