Wrong calculation of disk size

hamed

Member
Sep 6, 2010
36
0
6
Hi,
It seems that "qm list" only considers first disk to show the size of the VM.
So, if the VM has 2 disks (each 50GB), qm list shows 50GB instead of 100GB.

Do you have any plans on fixing this or is there another way that I can get the total size of VMs disks (aggregated size)?

Thanks
 
Hi,
It seems that "qm list" only considers first disk to show the size of the VM.

yes, that is expected behavior.

So, if the VM has 2 disks (each 50GB), qm list shows 50GB instead of 100GB.

Do you have any plans on fixing this or is there another way that I can get the total size of VMs disks (aggregated size)?

The config of each VM contains a size hint for each disk.
 
Reading config file manually may not be a good approach for me.
Is there any commands to display the hardware specs of the VM so I can parse that?
 
pvesh get /nodes/<nodename>/qemu/<vmid>/config
works for kvm

pvesh get /nodes/<nodename>/openvz/<ctid>/config
works for openvz

if you meant that...

Marco