Linux/Ubuntu: Server: Add disks to lvm

PHOTO EMBED

Mon Aug 29 2022 14:33:17 GMT+0000 (UTC)

Saved by @marcopinero #bash

sudo vgdisplay #ver vg/lvm
sudo pvcreate /dev/sdX /dev....
sudo vgextend <name-vg> /dev/sdX
sudo lvextend -l +100%FREE /dev/<name-vg>/root
sudo resize2fs /dev/<name-vg>/root
content_copyCOPY