Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

LVM

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 to an existing logical volume.

sudo vgextend almalinux /dev/vdb

Extend the /dev/almalinux/root to create a total 1000 GB.

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 /