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