Hi,

There are 2 different ways to create a vm from a template:
* thin
* clone

If you create a vm that is a thin-copy of a template, it works like a snapshot, 
creating a new volume on top of the template's disk.
If you create a vm that is a full clone then you clone the whole disk image.

did you created a thin-copy of the template?

Gadi Ickowicz

----- Original Message -----
From: "Sven Kieske" <s.kie...@mittwald.de>
To: "Users@ovirt.org List" <Users@ovirt.org>
Sent: Wednesday, February 12, 2014 5:57:28 PM
Subject: [Users] actual disk size of vm via api

Hi,

I got a question regarding the reported actual disk size
of a vm.

you can obtain this value fine via api:

https://your_engine/api/vms/{id}/disks/

however, if the vm is cloned from a template

this disk size does not seem to show the
actual size of the whole disk but instead
the difference from the actual template size.

is this a bug or a feature?
I would like to obtain the "real" size.

e.g. I have a template with 50GB (thin provisioned)
the actual size of this template is 1,5 GB

I clone a vm from this template, the actual size
which gets reported via api is about 8 MB (stuff that
changes from the template).

So I can not obtain the complete used size of the vm.

This was tested under ovirt 3.3.2
-- 
Mit freundlichen Grüßen / Regards

Sven Kieske

Systemadministrator
Mittwald CM Service GmbH & Co. KG
Königsberger Straße 6
32339 Espelkamp
T: +49-5772-293-100
F: +49-5772-293-333
https://www.mittwald.de
Geschäftsführer: Robert Meyer
St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen
Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen
_______________________________________________
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
_______________________________________________
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users

Reply via email to