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 -hi 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/xvde1But 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.
- SSH to the machine.
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to switch off the mode (command 'c') and change display units to sectors (command 'u')
sudo resize2fs /dev/xvde1
Check the partition size, it should be all set with more space.