[one-users] qcow2 image virtual size

Ruben S. Montero rsmontero at opennebula.org
Wed May 15 06:04:02 PDT 2013


Hi

This is a bug indeed, We are adding this as part of #1770

thanks

Ruben


On Tue, May 14, 2013 at 8:14 PM, Tobias Honacker
<t.honacker at googlemail.com>wrote:

> FYI
>
> [oneadmin at xxx iso]$ oneimage show 5
> WARNING: Nokogiri was built against LibXML version 2.9.0, but has
> dynamically loaded 2.9.1
> IMAGE 5 INFORMATION
> ID             : 5
> NAME           : QEMU DATABLOCK
> USER           : oneadmin
> GROUP          : oneadmin
> DATASTORE      : production
> TYPE           : DATABLOCK
> REGISTER TIME  : 05/11 21:48:28
> PERSISTENT     : No
> SOURCE         : xxx:vg0.lv-one-5
> PATH           : /iso/data.img
> SIZE           : 1M
> STATE          : rdy
> RUNNING_VMS    : 0
>
> PERMISSIONS
> OWNER          : um-
> GROUP          : ---
> OTHER          : ---
>
> IMAGE TEMPLATE
> DESCRIPTION="image: data.img
> file format: qcow2
> virtual size: 100G (107374182400 bytes)
> disk size: 136K
> cluster_size: 65536"
> DEV_PREFIX="vd"
> DRIVER="qcow2"
>
>
> 2013/5/14 Tobias Honacker <t.honacker at googlemail.com>
>
>>  Hi guys,
>>
>>
>> the virtual size doesn't show up at the sunstone frontend while creating
>> an image with qcow2 format to LVM.
>>
>>
>> [oneadmin at xxx ~]$ onedatastore show 100
>>
>> WARNING: Nokogiri was built against LibXML version 2.9.0, but has
>> dynamically loaded 2.9.1
>>
>> DATASTORE 100 INFORMATION
>>
>> ID             : 100
>>
>> NAME           : production
>>
>> USER           : oneadmin
>>
>> GROUP          : oneadmin
>>
>> CLUSTER        : -
>>
>> TYPE           : IMAGE
>>
>> DS_MAD         : lvm
>>
>> TM_MAD         : lvm
>>
>> BASE PATH      : /var/lib/one/datastores/100
>>
>> DISK_TYPE      : FILE
>>
>>
>> I did the following steps:
>>
>>
>> 1. [oneadmin at xxx iso]# qemu-img create –f qcow2 data.img 100G
>>
>>
>> 2. [oneadmin at xxx iso]# qemu-img info data.img
>>
>> image: data.img
>>
>> file format: qcow2
>>
>> virtual size: 100G (107374182400 bytes)
>>
>> disk size: 136K
>>
>> cluster_size: 65536
>>
>>
>> 3. Login to Sunstone and create an image and provide the path from the
>> qcow2 file (data.img) + Advanced options and add driver qcow2
>>
>>
>> At the Dashboard the Storage doesn't grow up because the disk size of
>> qcow2 images is 136K.
>>
>> With raw files (qemu-img create –f raw data.img 100G) the disk size is
>> 100G and it works.
>>
>> The qcow2 image was added successfully but the size is not 100G.
>>
>>
>>
>> Any hints?
>>
>>
>>
>> Best regards,
>>
>> Tobias
>>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>


-- 
-- 
Join us at OpenNebulaConf2013 in Berlin, 24-26 September, 2013
-- 
Ruben S. Montero, PhD
Project co-Lead and Chief Architect
OpenNebula - The Open Source Solution for Data Center Virtualization
www.OpenNebula.org | rsmontero at opennebula.org | @OpenNebula
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130515/9dc0fbcc/attachment-0002.htm>


More information about the Users mailing list