[ovirt-users] Template Size different in dashboard and storage...

Prasad Mukhedkar prasad at mukhedkar.com
Mon Sep 8 05:50:30 UTC 2014


Hey Punit,

Are you sure the image you're looking is the one that is of "CentOS" 
template.
First verify that by  executing below query on ovirt engine system.


  #sh engine-psql.sh -c "select vm_name, image_group_id,image_guid from 
vm_device, vm_static,images where vm_name in('CentOS') and 
vm_device.type='disk' and vm_device.device='disk' and 
vm_device.vm_id=vm_static.vm_guid and 
images.image_group_id=vm_device.device_id order by vm_name ;"

image_guid = is image name that you will need to check inside your 
datastore.
in you're case NFS.

Now run, "qemu-img info <image-path>" to verify actual and virtual size 
of the image.

Thanks,
-ePrasad



On 09/08/2014 09:07 AM, Punit Dambiwal wrote:
> Hi,
>
> I have made one Centos template from one of my running virtual 
> machine...The virtual size of this template is 1GB and the actual size 
> is below 1GB....from the portal dashboard it whowing correctly but if 
> i check it through command line...it shows different size ??
>
> [root at compute1 32199374-4096-4973-9b6a-150e22eb7216]# ls -lh
> total 742M
> -rw-rw---- 8 vdsm kvm  11G Sep  4 16:46 
> ff576789-e946-4bda-94f6-a354b43ab531
> -rw-rw---- 8 vdsm kvm 1.0M Sep  3 13:07 
> ff576789-e946-4bda-94f6-a354b43ab531.lease
> -rw-r--r-- 8 vdsm kvm  278 Sep  3 13:07 
> ff576789-e946-4bda-94f6-a354b43ab531.meta
> [root at compute1 32199374-4096-4973-9b6a-150e22eb7216]#
>
> Inline image 1
>
> Inline image 2
>
> Please let me know why the size store on the storage is different from 
> the dashboard....
>
> [root at compute1 32199374-4096-4973-9b6a-150e22eb7216]# virt-filesystems 
> --all --long -h -a ff576789-e946-4bda-94f6-a354b43ab531
> Name                  Type       VFS  Label MBR Size Parent
> /dev/sda1             filesystem ext4 -     -   200M -
> /dev/36Cloud/LogVol00 filesystem ext4 -     -   820M -
> /dev/36Cloud/LogVol00 lv         -    -     -   820M /dev/36Cloud
> /dev/36Cloud          vg         -    -     -   820M /dev/sda2
> /dev/sda2             pv         -    -     -   820M -
> /dev/sda1             partition  -    -     83  200M /dev/sda
> /dev/sda2             partition  -    -     8e  823M /dev/sda
> /dev/sda              device     -    -     -   11G  -
> [root at compute1 32199374-4096-4973-9b6a-150e22eb7216]#
>
> Thanks,
> Punit
>
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20140908/55a1063f/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 53367 bytes
Desc: not available
URL: <http://lists.ovirt.org/pipermail/users/attachments/20140908/55a1063f/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 122355 bytes
Desc: not available
URL: <http://lists.ovirt.org/pipermail/users/attachments/20140908/55a1063f/attachment-0003.png>


More information about the Users mailing list