VM Managet shows the wrong disk information

docent

Renowned Member
Jul 23, 2009
96
1
73
I created LVM disks for some VMs by hand.
Now VM Manager shows these disks with 0 size and some disks from other VMs as unused.

Code:
[FONT=Courier New][B]Hardware device list for VM 101[/B]
Hard disks
Bus       Device       Size (GB)   Volume ID
IDE       IDE 0:0      0.00        drbdvg0:vm-101-disk-1
VIRTIO    VIRTIO 0:0   350.00      drbdvg1:vm-101-disk-1
 
Size (GB)  Unused disk images
8.00       drbdvg0:vm-105-disk-1
350.00     drbdvg0:vm-106-disk-2
[/FONT]
How can I correct this mistakes?

PS. All VMs are working properly.
 
I created LVM disks for some VMs by hand.
Now VM Manager shows these disks with 0 size and some disks from other VMs as unused.

Code:
[FONT=Courier New][B]Hardware device list for VM 101[/B]
Hard disks
Bus       Device       Size (GB)   Volume ID
IDE       IDE 0:0      0.00        drbdvg0:vm-101-disk-1
VIRTIO    VIRTIO 0:0   350.00      drbdvg1:vm-101-disk-1
 
Size (GB)  Unused disk images
8.00       drbdvg0:vm-105-disk-1
350.00     drbdvg0:vm-106-disk-2
[/FONT]
How can I correct this mistakes?

PS. All VMs are working properly.
Hi,
it's look like, that you have the wrong tags on the lvs!
Look with
Code:
lvs --options 'vg_name,lv_name,lv_size,tags'
I assume, if you delete the wrong tags and add the right your output will be fine.

Udo
 
Thanks. It helped me, but partially.
I've corrected the tags and the unused disks disappeared.
However I still have the disk with a zero size.
Code:
[FONT=Courier New][B]Hardware device list for VM 101[/B]
Hard disks
Bus       Device       Size (GB)   Volume ID
IDE       IDE 0:0      0.00        drbdvg0:vm-101-disk-1
VIRTIO    VIRTIO 0:0   350.00      drbdvg1:vm-101-disk-1[/FONT]
Code:
# lvs --options 'vg_name,lv_name,lv_size,tags'
File descriptor 7 left open
  VG      LV               LSize   LV Tags
  drbdvg0 vm-101-disk-1      8.00G pve-vm-101
  drbdvg0 vm-102-disk-1      8.00G pve-vm-102
  drbdvg0 vm-103-disk-1     10.00G pve-vm-103
  drbdvg0 vm-104-disk-1     10.00G pve-vm-104
  drbdvg0 vm-105-disk-1      8.00G pve-vm-105
  drbdvg0 vm-106-disk-1      8.00G pve-vm-106
  drbdvg0 vm-106-disk-2    350.00G pve-vm-106
  drbdvg0 vzsnap-node1-1     1.00G
  drbdvg1 vm-101-disk-1    350.00G pve-vm-101
  drbdvg1 vzsnap-node1-0     1.00G
Code:
# cat /etc/qemu-server/101.conf
name: dc
vlan0: e1000=72:B2:70:32:9E:F0
vlan1: e1000=72:B2:70:32:9E:F1
vlan2: e1000=72:B2:70:32:9E:F2
bootdisk: ide0
ostype: l26
ide0: drbdvg0:vm-101-disk-1
memory: 1024
onboot: 1
sockets: 1
cores: 8
boot: cd
freeze: 0
cpuunits: 1000
acpi: 1
kvm: 1
virtio0: drbdvg1:vm-101-disk-1
lock: backup
 

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!