mirror of
https://codeberg.org/hyperreal/techne
synced 2024-11-01 06:13:06 +01:00
626 B
626 B
LVM2
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 /