[SOLVED] Creating VM on LVM2 not possible

fennecus

Member
May 1, 2022
13
1
8
Tried to find a solutions but it seemed none of the descriptions matched my precondition:

I am trying to create a VM on an LVM2. I am using the following setup:

Proxmox 7.1.7 on a Dell T440.

- Physical Disks 0 and 1 (each 600GB total, of which 100G partition is reserved/used for PVE installation, rest free/unassigned), Hardware Raid 1 and PVE installed on it.

- Physical Disks 2, 3 & 4 (each 12T), mdadm Raid 5 (results in a 24T space (md0), protected for 1 disk failure). PV / VG and LV (vmspace) created and all mounted to /mnt/vmspace

pvscan
PV /dev/sdd3 VG pve lvm2 [<99.50 GiB / <12.38 GiB free]
PV /dev/md0 VG vmspace lvm2 [<21.83 TiB / 0 free]

vgscan
Found volume group "pve" using metadata type lvm2
Found volume group "vmspace" using metadata type lvm2

lvscan
ACTIVE '/dev/pve/swap' [8.00 GiB] inherit
ACTIVE '/dev/pve/root' [24.75 GiB] inherit
ACTIVE '/dev/pve/data' [52.37 GiB] inherit
ACTIVE '/dev/vmspace/vmspace' [<21.83 TiB] inherit

I can see the LVM in the list...

1651360089954.png

...however I cannot choose the respective LVM as the space for the VM.

1651360148687.png
 
You need to create a datastore (Datacenter -> Storage -> Add -> LVM).
You can specify your volume group as existent.
Unmount and remove vmspace logical volume. LVs will be created automatically (1 LV per VM disk).
 
Last edited: