Logical Volume Manager
Add disk to LVM volume
Create a new physical volume on the new disk:
sudo pvcreate /dev/vdb sudo lvmdiskscan -l
Add the newly created physical volume (/dev/vdb
) to an existing logical volume:
sudo vgextend almalinux /dev/vdb
Extend the /dev/almalinux/root
to create a total 1000GB:
sudo lvm lvextend -l +100%FREE /dev/almalinux/root
Grow the filesystem of the root volume:
# ext4 sudo resize2fs -p /dev/mapper/almalinux-root # xfs sudo xfs_growfs /