<div dir="ltr">Thanks, Javier.<div><br></div><div>I'll change the code.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-08-27 13:24 GMT-03:00 Javier Fontan <span dir="ltr"><<a href="mailto:jfontan@opennebula.org" target="_blank">jfontan@opennebula.org</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This happens because the stat method (the one that gets the size about<br>
the image) is called before the image is uncompressed. This is<br>
something we have to fix. You can make the way it gets the size in the<br>
"stat" script from the datastore remotes dir. Change "qemu-img" info<br>
to "du" and parse the output.<br>
<div><div class="h5"><br>
On Mon, Aug 25, 2014 at 9:28 PM, Paulo A L Rego <<a href="mailto:pauloalr.alu@gmail.com">pauloalr.alu@gmail.com</a>> wrote:<br>
> Hello all,<br>
><br>
> I downloaded two imagens from marketplace (Ubuntu 14.04 and CentOS 7.0).<br>
> Both images disk size are + - 1 GB, with 10G virtual size..<br>
> Using "qemu-img info" something like this appears...<br>
> file format: qcow2<br>
> virtual size: 10G (10737418240 bytes)<br>
> disk size: 919M<br>
> All good for these two images.<br>
><br>
> The problem is: I created my own image of Ubuntu using vmbuilder with a 30<br>
> GB hard disk...The image disk size is 1 GB too. This is the "qemu-img info":<br>
> file format: qcow2<br>
> virtual size: 31G (33555480576 bytes)<br>
> disk size: 1.0G<br>
><br>
> However, when i use "oneimage list"...the images downloaded from marketplace<br>
> appear occupying quite lower space.<br>
> Actually, they are occupying exactly the "disk size", and my image seems to<br>
> be occupying the "virtual size".<br>
><br>
> $ oneimage list<br>
>   ID USER       GROUP      NAME                DATASTORE     SIZE   TYPE PER<br>
> STAT RVMS<br>
>    0 oneadmin   oneadmin   UbuntuServer-14     qcow               1.1G   OS<br>
> No rdy     0<br>
>    2 oneadmin   oneadmin   UbuntuServer-12     qcow               31.3G OS<br>
> No rdy     0<br>
>    3 oneadmin   oneadmin   CentOS-7.0_x86_   qcow               919M  OS<br>
> No rdy     0<br>
><br>
> Whats is going on? How can i make my image "occupy" less space too?<br>
><br>
> Ps:. My datastore is using qcow driver.<br>
><br>
> Thanks a lot!<br>
><br>
</div></div>> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
> <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Javier Fontán Muiños<br>
Developer<br>
OpenNebula - Flexible Enterprise Cloud Made Simple<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | @OpenNebula | <a href="http://github.com/jfontan" target="_blank">github.com/jfontan</a><br>
</font></span></blockquote></div><br></div>