my notes

Setup lvm2

Create physical volume

pvcreate /dev/sda4

Physical volume "/dev/sda4" successfully created

Create a logical volume group called pve

vgcreate pve /dev/sda4

Volume group "pve" successfully created

Create volume group

If you really need to assign all space on partition this is the way to do it. This is not a good idea as snapshots will not work.

lvcreate -l 100%VG -n storage pve

to use 90%
lvcreate -l 90%VG -n storage pve

Tags

lvm