Gice

Technology and General Blog

This tutorial will stroll you through how to increase your XFS Filesystem without having LVM.

Note: I examined the principles in this tutorial on a CentOS 8 method. Nevertheless, the methods reviewed will get the job done on any System working with the XFS File system.

Move 1: Show partition scheme information and facts

The 1st stage is to get information and facts about the readily available partitions. You can do this by using the lsblk command as:

Step 2: Increase disk room

The future area is to lengthen the disk place. You can do this by generating a new partition—or insert a new push.

Verify disk changes employing the lsblk command as previously mentioned.

Action 3: Mature the partition

The up coming phase is to expand the partition. For this, we need to install the growpart package.

On CentOS:

sudo yum install cloud-utils-growpart gdisk

On Debian:

sudo apt-get install gdisk cloud-guest-utils

On Arch:

sudo pacman -S gdisk cloud-guest-utils

Stage 4: Extend & resize partition

The up coming move is to use growpart to increase the partition. The command for that is:

The command over will resize the 3rd partition on /dev/sda as demonstrated in the lsblk command.

Last but not least, resize the root partition to fill the space utilizing the resize2fs command. For case in point:

Conclusion

This tutorial covered the fundamental measures of extending the XFS filesystem without having using LVM.

Leave a Reply

Your email address will not be published. Required fields are marked *