Problem with enlarge a non root filesystem

0

Hi all, good Sunday everyone, appreciate your help on my issue below

I have an EC2 instance and it has a filesystem which is a volume of 100G mounted on a folder. The filesystem is ext4 and is encrypted if that matters. I am running out of space on that volume. The volume does not appear to have any partition as lsblk does not show any partition.

I followed the information from this link https://www.daniloaz.com/en/how-to-enlarge-the-size-of-an-ebs-volume-in-aws-and-extend-an-ext4-partition/. I basically unmounted it first, took a snapshot of the volume and then made a new volume from the snapshot with the size of 200G (double the original 100). I then mounted the new volume.

Now from lsblk, it shows"xvdf 202:80 0 200G 0 disk /var/www/html", but from df -v it still shows "/dev/xvdf 103081248 58847604 38974380 61% /var/www/html". Still the same 100G and not increased to 200G.

What I missed doing here?

Thanks in advanced

Edited by: ebsllc on Jan 31, 2021 9:39 AM

ebsllc
질문됨 3년 전251회 조회
4개 답변
2
답변함 3년 전
1

I missed performing the resize2fs command in case others find it helpful.

Thanks.

ebsllc
답변함 3년 전
0

Any help or pointer? becoming desperate. I guess I can make a new 200G volume and copy the data from old one to the new one as a workaround...

Thanks.

ebsllc
답변함 3년 전
0

Hi There

After the volume is increased, you would need to resize the filesystem as mentioned earlier. Once that is done, you will see the changes in df output.

AWS
지원 엔지니어
Satyam
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠