[SOLVED] Creating VM on LVM2 not possible

fennecus

New Member
May 1, 2022
2
0
1
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:
That did it! (and also understanding that choosing the LV only comes under 'disks'). Thanks!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!