User Tools

Site Tools


expandir_volumen_lvm_xfs

This is an old revision of the document!


Certainly! Here's a comment for each step of the process to resize (expand) an LVM xfs volume on CentOS and increase the size of the /home folder by adding 200 GB of disk space:

1. growpart /dev/sda 2: This command is used to expand the partition on the /dev/sda disk. The “2” represents the partition number that needs to be resized. This step is necessary to make the additional disk space available for the LVM volume.

2. lvresize -L +200G /dev/cs/home: This command resizes the logical volume named “/dev/cs/home” by adding 200 GB of disk space. The “+200G” specifies the amount of space to be added. This step increases the capacity of the LVM volume.

3. xfs_growfs /dev/cs/home: This command expands the xfs file system residing on the “/dev/cs/home” logical volume to utilize the increased space. It adjusts the file system size to match the new size of the logical volume, making the additional disk space available for use by the /home folder.

These steps collectively allow you to resize the LVM xfs volume and increase the size of the /home folder by adding 200 GB of disk space.

https://www.thegeekdiary.com/how-to-grow-extend-xfs-filesytem-in-centos-rhel-using-xfs_growfs-command/

expandir_volumen_lvm_xfs.1684798097.txt.gz · Last modified: 2024/10/17 21:42 (external edit)