[TriLUG] Increasing storage for an AWS EC2 instance

Jojo Almario via TriLUG trilug at trilug.org
Fri Apr 5 11:32:32 EDT 2024


Hi guys!

New to the list, haven't touched Linux in 20 years (RedHat 7 or 8) and kind
of inexperienced in AWS.  Everything I have done so far has been through
Googling or asking people near me, so I have no idea if the following is
the correct way to do it.

To start, here is my set up:
EC2 instance = t3.medium
OS = Ubuntu 20.04 LTS
Running: Apache2

User says storage is full so I go to the Instance -> EBS Volumes, find the
specific volume and then choose "Modify".  I increased it from 70 GB to 200
GB.  I ssh onto the console of the server and do 'sudo lsblk' .  It shows
that Name = nvme0n1 (with part nvme0n1p1) is now at 200GB, so then I do the
command 'growpart /dev/nvme0n1 1 .  This also seems to work.  After a day
or 2 get notification that it is still filling up and can't start apache.
More googling, delete some garbage enough to start apache2.  Learn how to
use df -h and see that /dev/nvme01n is still at it's original size.

So somewhere I missed a step after increasing the volume.  I assume that
'lsblk' does not show the same info as 'df -hm'.  Can someone gently tell
me what step(s)  I missed in order to expand the storage space?

Thanks for any info.


More information about the TriLUG mailing list