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:
On Debian:
On Arch:
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.
from Linux Hint https://ift.tt/3z7P34j
0 Comments