[TriLUG] Increasing storage for an AWS EC2 instance

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


That was it!

Thanks!

On Fri, Apr 5, 2024 at 12:42 PM Marc Wiatrowski <mwia at iglass.net> wrote:

> Grow the filesystem?  resize2fs?
>
> On Fri, Apr 5, 2024 at 11:32 AM Jojo Almario via TriLUG <trilug at trilug.org>
> wrote:
>
>> 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.
>> --
>> This message was sent to: Marc Wiatrowski <mwia at iglass.net>
>> To unsubscribe, send a blank message to trilug-leave at trilug.org from
>> that address.
>> TriLUG mailing list : https://www.trilug.org/mailman/listinfo/trilug
>> Unsubscribe or edit options on the web  :
>> https://www.trilug.org/mailman/options/trilug/mwia%40iglass.net
>> Welcome to TriLUG: https://trilug.org/welcome
>
>


More information about the TriLUG mailing list