Add disk to LVM volume
Create a new physical volume on the new disk:
1sudo pvcreate /dev/vdb
2sudo lvmdiskscan -lAdd the newly created physical volume to an existing logical volume:
1sudo vgextend almalinux /dev/vdbExtend the /dev/almalinux/root to create a total 1000GB:
1sudo lvm lvextend -l +100%FREE /dev/almalinux/rootGrow the filesystem of the root volume:
1# ext4
2sudo resize2fs -p /dev/mapper/almalinux-root
3
4# xfs
5sudo xfs_growfs /