Re: [ovirt-users] Consult actual size the disk vm
Hi Amit, the value is disk.get_actual_size(), but i see that after create snapshot the value is the disk snapshot e not base. right? Thanks. 2016-04-21 8:40 GMT-03:00 Amit Aviram : > Hi Marcelo. > > Using the API: > - "disk.get_actual_size()" will return the actual size in bytes, which > is the value you can find as "Actual size" in GB in oVirt's webadmin, where > Idan wrote (Virtual Machines tab -> Disks sub tab -> actual size, Thanks > Idan) > > - "disk.get_provisioned_size()" will return the size in bytes which is the > value you can find as "Virtual size" in GB also under the disks sub tab. > > After transforming the value you got to GB, does the values seem correct? > > Thanks, Amit. > > > On Thu, Apr 21, 2016 at 1:08 PM, Marcelo Leandro > wrote: > >> Thanks for reply, but for my script is necessary consult the actual size >> with python-api or database. >> Hi Marcelo, >> >> Please note that under the Virtual Machines tab -> Disks sub tab, >> assuming we are talking about an image, you can click on the Images radio >> button and see the disk's virtual and actual size. >> Hope it helps. >> >> >> Regards, >> Idan >> >> On Thu, Apr 21, 2016 at 6:06 AM, Marcelo Leandro >> wrote: >> >>> Hello, >>> >>> i am try automate an task, i am try consult the actual size the disk of >>> vm, but not have success, i try in database in table imagens, i try with >>> python-api with command: >>> >>> vm = api.vms.get(vmname) >>> disk = vm.disks.get(diskname) >>> disk.get_actual_size() >>> >>> but the informations not is equal with that shown in the dashboard. >>> >>> Can someone help me? >>> >>> >>> >>> ___ >>> Users mailing list >>> Users@ovirt.org >>> http://lists.ovirt.org/mailman/listinfo/users >>> >>> >> >> ___ >> Users mailing list >> Users@ovirt.org >> http://lists.ovirt.org/mailman/listinfo/users >> >> > ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Consult actual size the disk vm
Hi Marcelo. Using the API: - "disk.get_actual_size()" will return the actual size in bytes, which is the value you can find as "Actual size" in GB in oVirt's webadmin, where Idan wrote (Virtual Machines tab -> Disks sub tab -> actual size, Thanks Idan) - "disk.get_provisioned_size()" will return the size in bytes which is the value you can find as "Virtual size" in GB also under the disks sub tab. After transforming the value you got to GB, does the values seem correct? Thanks, Amit. On Thu, Apr 21, 2016 at 1:08 PM, Marcelo Leandro wrote: > Thanks for reply, but for my script is necessary consult the actual size > with python-api or database. > Hi Marcelo, > > Please note that under the Virtual Machines tab -> Disks sub tab, assuming > we are talking about an image, you can click on the Images radio button and > see the disk's virtual and actual size. > Hope it helps. > > > Regards, > Idan > > On Thu, Apr 21, 2016 at 6:06 AM, Marcelo Leandro > wrote: > >> Hello, >> >> i am try automate an task, i am try consult the actual size the disk of >> vm, but not have success, i try in database in table imagens, i try with >> python-api with command: >> >> vm = api.vms.get(vmname) >> disk = vm.disks.get(diskname) >> disk.get_actual_size() >> >> but the informations not is equal with that shown in the dashboard. >> >> Can someone help me? >> >> >> >> ___ >> Users mailing list >> Users@ovirt.org >> http://lists.ovirt.org/mailman/listinfo/users >> >> > > ___ > Users mailing list > Users@ovirt.org > http://lists.ovirt.org/mailman/listinfo/users > > ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Consult actual size the disk vm
Thanks for reply, but for my script is necessary consult the actual size with python-api or database. Hi Marcelo, Please note that under the Virtual Machines tab -> Disks sub tab, assuming we are talking about an image, you can click on the Images radio button and see the disk's virtual and actual size. Hope it helps. Regards, Idan On Thu, Apr 21, 2016 at 6:06 AM, Marcelo Leandro wrote: > Hello, > > i am try automate an task, i am try consult the actual size the disk of > vm, but not have success, i try in database in table imagens, i try with > python-api with command: > > vm = api.vms.get(vmname) > disk = vm.disks.get(diskname) > disk.get_actual_size() > > but the informations not is equal with that shown in the dashboard. > > Can someone help me? > > > > ___ > Users mailing list > Users@ovirt.org > http://lists.ovirt.org/mailman/listinfo/users > > ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Consult actual size the disk vm
Hi Marcelo, Please note that under the Virtual Machines tab -> Disks sub tab, assuming we are talking about an image, you can click on the Images radio button and see the disk's virtual and actual size. Hope it helps. Regards, Idan On Thu, Apr 21, 2016 at 6:06 AM, Marcelo Leandro wrote: > Hello, > > i am try automate an task, i am try consult the actual size the disk of > vm, but not have success, i try in database in table imagens, i try with > python-api with command: > > vm = api.vms.get(vmname) > disk = vm.disks.get(diskname) > disk.get_actual_size() > > but the informations not is equal with that shown in the dashboard. > > Can someone help me? > > > > ___ > Users mailing list > Users@ovirt.org > http://lists.ovirt.org/mailman/listinfo/users > > ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] Consult actual size the disk vm
Hello, i am try automate an task, i am try consult the actual size the disk of vm, but not have success, i try in database in table imagens, i try with python-api with command: vm = api.vms.get(vmname) disk = vm.disks.get(diskname) disk.get_actual_size() but the informations not is equal with that shown in the dashboard. Can someone help me? ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users