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
 

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!