2 дек. 2022 г.

Add disk to LVM array , extend ext4 filesystem

Not required

  • create partition
  • unmount volume (for ext4)

Check

df -h
fdisk -l
lsblk
lvdisplay
pvdisplay

Extend

pvcreate /dev/vdg
vgextend data /dev/vdg
lvextend -l +100%FREE /dev/data/lvol0
resize2fs -p /dev/mapper/data-lvol0