Increase xfs root partition on AWS instance without LVM

On an EC2 instance with an EBS volume of 200GB I right-clicked the volume and chose to ‘Modify Volume’, then set a new size for the disk.

On the OS (RHEL 7.6) you can check that the new size of the disk is visible with:

fdisk -l
lsblk

Then increase the partition with:

growpart /dev/nvme0n1 2

And confirm the change:

lsblk
df -h

Then grow the XFS filesystem:

xfs_growfs /

And confirm the change:

df -h

Leave a Reply

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>