Extending a Linux File System after Resizing the Volume

[ec2-user@ip-172-31-21-110 ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 7.8G 7.7G 48M 100% /
devtmpfs 993M 56K 992M 1% /dev
tmpfs 1001M 0 1001M 0% /dev/shm
[ec2-user@ip-172-31-21-110 ~]$ sudo resize2fs /dev/xvda1
resize2fs 1.42.12 (29-Aug-2014)
Filesystem at /dev/xvda1 is mounted on /; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 1
The filesystem on /dev/xvda1 is now 4193787 (4k) blocks long.

[ec2-user@ip-172-31-21-110 ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 16G 7.7G 8.0G 50% /
devtmpfs 993M 56K 992M 1% /dev
tmpfs 1001M 0 1001M 0% /dev/shm

  •  
  •  
  •  
  •  

Viet Luu has written 318 articles

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Buy Me A Coffee

We are thankful for your never ending support.

Leave a Reply