
Hi Prasad, I didn't find this script "engine-psql.sh" in my engine server,would you mind to let me know the exact path for this script file... Secondly yes i am referring the Template CentOS...every details i provide you in the previous mail is correct... Thanks, Punit On Mon, Sep 8, 2014 at 1:50 PM, Prasad Mukhedkar <prasad@mukhedkar.com> wrote:
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@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@compute1 32199374-4096-4973-9b6a-150e22eb7216]#
[image: Inline image 1]
[image: Inline image 2]
Please let me know why the size store on the storage is different from the dashboard....
[root@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@compute1 32199374-4096-4973-9b6a-150e22eb7216]#
Thanks, Punit
_______________________________________________ Users mailing listUsers@ovirt.orghttp://lists.ovirt.org/mailman/listinfo/users
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users