TASK ERROR: unable to create VM 104 - no such volume group 'drive2'

zoltanb

New Member
Nov 1, 2021
10
0
1
49
Hello,

I am new to ProxMox and currently testing it in my local environment with 3 nodes: i3, msi and smhome.

Under Datacenter / Storage I added a new LVM (drive2) which is physically attached to "i3" node but it is also shared with my 2 other nodes: "msi" and "smhome".
When I want to create a new VM, I can do it without any issue on the "i3" node, but not on "smhome" node.
For some reason, "smhome" node reports drive2 as 0 b available 0 b capacity although it let me select it, but the VM is not created, this is the error message I receive:

"Command failed with status code 5.
command '/sbin/vgscan --ignorelockingfailure --mknodes' failed: exit code 5
TASK ERROR: unable to create VM 104 - no such volume group 'drive2'"

This is what I see on i3 node:

root@i3:~# pvs
PV VG Fmt Attr PSize PFree
/dev/sda2 drive2 lvm2 a-- <2.73t <2.70t
/dev/sdb3 pve lvm2 a-- <223.07g <16.00g
root@i3:~# vgs
VG #PV #LV #SN Attr VSize VFree
drive2 1 1 0 wz--n- <2.73t <2.70t
pve 1 6 0 wz--n- <223.07g <16.00g
root@i3:~# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
vm-103-disk-0 drive2 -wi-a----- 32.00g
data pve twi-aotz-- 140.45g 5.38 1.39
root pve -wi-ao---- 55.75g
swap pve -wi-ao---- 8.00g
vm-100-disk-0 pve Vwi-aotz-- 32.00g data 4.88
vm-101-disk-0 pve Vwi-aotz-- 32.00g data 4.91
vm-102-disk-0 pve Vwi-aotz-- 96.00g data 4.61

And this is what I see on smhome node:

root@smhome:~# pvs
PV VG Fmt Attr PSize PFree
/dev/sda2 centos lvm2 a-- <297.09g 4.00m
/dev/sdb3 pve lvm2 a-- <223.07g 15.99g
root@smhome:~# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
home centos -wi-a----- 243.33g
root centos -wi-a----- 50.00g
swap centos -wi-a----- 3.75g
data pve twi-aotz-- 144.37g 0.00 1.10
root pve -wi-ao---- 55.75g
swap pve -wi-ao---- 4.00g
root@smhome:~# vgs
VG #PV #LV #SN Attr VSize VFree
centos 1 3 0 wz--n- <297.09g 4.00m
pve 1 3 0 wz--n- <223.07g 15.99g

What am I doing wrong? Why do I see the LVM on web interface (attached) but I can't use it to create a VM?

Thank you in advance.
 

Attachments

  • pve.png
    pve.png
    12.5 KB · Views: 4
I checked under storage and this is what I see under "i3":

Enabled Yes

Active Yes

Content Disk image, Container

Type LVM

Usage 0.00% (0 B of 3.00 TB)


Under "smhome", I see it as Active No and usage NA.

Enabled Yes

Active No

Content Disk image, Container

Type LVM

Usage NA
 
Hi,
the grey question mark means that Proxmox VE wasn't able to find the storage. Proxmox VE is not able to automatically share your LVM storage to other nodes. If you need that, you need to set it up yourself. Otherwise, you should adapt your storage configuration and restrict the storage to the nodes where it actually is available.
 
Hi,
the grey question mark means that Proxmox VE wasn't able to find the storage. Proxmox VE is not able to automatically share your LVM storage to other nodes. If you need that, you need to set it up yourself. Otherwise, you should adapt your storage configuration and restrict the storage to the nodes where it actually is available.
Thanks Fabian. I thought so, but it was strange that I could select the drive of another node on the web GUI.
 

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!