hyperreal.coffee

Add disk to LVM volume

Create a new physical volume on the new disk:

1sudo pvcreate /dev/vdb
2sudo lvmdiskscan -l

Add the newly created physical volume to an existing logical volume:

1sudo vgextend almalinux /dev/vdb

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

1sudo lvm lvextend -l +100%FREE /dev/almalinux/root

Grow the filesystem of the root volume:

1# ext4
2sudo resize2fs -p /dev/mapper/almalinux-root
3
4# xfs
5sudo xfs_growfs /

Reply to this post by email ↪