I have hardware 1 node cluster. Volumes stored on local LVM.
I create VM with 2 virtio disks (vda,vdb). First for root and secon for test.
on vdb disk I create LVM with VG named "main" and LV named "disk"
root@ha-stor1:~# vgs
VG #PV #LV #SN Attr VSize VFree
main 1 1 0 wz--n- 16.00g 15.00g
root@ha-stor1:~# pvs
PV VG Fmt Attr PSize PFree
/dev/vdb main lvm2 a-- 16.00g 15.00g
root@ha-stor1:~# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
disk main -wi-a----- 1.00g
But now i can see this LV and VG in hardware node
root@node:~# vgs
VG #PV #LV #SN Attr VSize VFree
main 1 1 0 wz--n- 16.00g 15.00g
pve 1 22 0 wz--n- 2.73t 2.26t
root@node:~# lvs
LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert
disk main -wi------ 1.00g
data pve -wi-ao--- 16.00g
root pve -wi-ao--- 8.00g
swap pve -wi-ao--- 8.00g
vm-160-disk-1 pve -wi-ao--- 32.00g
Why it is bug.
If I create two VM-s with same named VG-s I see on hardware node duplicated VG-s
root@node:~# vgs
VG #PV #LV #SN Attr VSize VFree
main 1 1 0 wz--n- 16.00g 15.00g
main 1 1 0 wz--n- 16.00g 15.00g
pve 1 22 0 wz--n- 2.73t 2.26t
And all operations with LVM on hardware node imediately start to run very slow. Because on every VM creation proxmox runs vgs or vgscan and this operation takes much time because of duplicated VG-s
I create VM with 2 virtio disks (vda,vdb). First for root and secon for test.
on vdb disk I create LVM with VG named "main" and LV named "disk"
root@ha-stor1:~# vgs
VG #PV #LV #SN Attr VSize VFree
main 1 1 0 wz--n- 16.00g 15.00g
root@ha-stor1:~# pvs
PV VG Fmt Attr PSize PFree
/dev/vdb main lvm2 a-- 16.00g 15.00g
root@ha-stor1:~# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
disk main -wi-a----- 1.00g
But now i can see this LV and VG in hardware node
root@node:~# vgs
VG #PV #LV #SN Attr VSize VFree
main 1 1 0 wz--n- 16.00g 15.00g
pve 1 22 0 wz--n- 2.73t 2.26t
root@node:~# lvs
LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert
disk main -wi------ 1.00g
data pve -wi-ao--- 16.00g
root pve -wi-ao--- 8.00g
swap pve -wi-ao--- 8.00g
vm-160-disk-1 pve -wi-ao--- 32.00g
Why it is bug.
If I create two VM-s with same named VG-s I see on hardware node duplicated VG-s
root@node:~# vgs
VG #PV #LV #SN Attr VSize VFree
main 1 1 0 wz--n- 16.00g 15.00g
main 1 1 0 wz--n- 16.00g 15.00g
pve 1 22 0 wz--n- 2.73t 2.26t
And all operations with LVM on hardware node imediately start to run very slow. Because on every VM creation proxmox runs vgs or vgscan and this operation takes much time because of duplicated VG-s