Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the js_composer domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/holhol2/public_html/wp-includes/functions.php on line 6121

How to Extend XFS Filesystem in Linux Without LVM

By holhol24 | July 16, 2021
How to Extend XFS Filesystem in Linux Without LVM

This tutorial will walk you through how to extend your XFS Filesystem without LVM.

NOTE: I tested the concepts in this tutorial on a CentOS 8 system. However, the approaches discussed will work on any System using the XFS File system.

Step 1: Show partition scheme information

The first step is to get information about the available partitions. You can do this by using the lsblk command as:

Step 2: Extend disk space

The next space is to extend the disk space. You can do this by creating a new partition—or add a new drive.

Confirm disk changes using the lsblk command as above.

Step 3: Grow the partition

The next step is to grow 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

Step 4: Extend & resize partition

The next step is to use growpart to extend the partition. The command for that is:

The command above will resize the third partition on /dev/sda as shown in the lsblk command.

Finally, resize the root partition to fill the space using the resize2fs command. For example:

Conclusion

This tutorial covered the basic steps of extending the XFS filesystem without using LVM.

holhol24

I am a Linux server pro admin and enthusiast, an upcoming web developer, junior php developer. I am currently a content creator for Holhol24, I love to play with Linux and all other distributions of it. I loves working with computers and strongly believes in sharing knowledge. Follow me For more insight into what is happening in Tech.

Advertisement Share: Facebook Twitter WhatsApp

Deprecated: File Theme without comments.php is deprecated since version 3.0.0 with no alternative available. Please include a comments.php template in your theme. in /home/holhol2/public_html/wp-includes/functions.php on line 6121

Leave a Reply

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