[virt-tools-list] virt-manager not really allocating disk space
Peter Velas
peto.vel at gmail.com
Tue Feb 19 18:24:23 UTC 2013
'Allocate entire disk now' is working correctly.
But if I need to add another volume to VM I use -> Connection Details -> Storage -> New Volume
So what's the reason if I fill up
Max Capacity: 10240 MB
Allocation: 10240 MB ---> description (Allocation: Actual size allocated to volume at this time)
As I wrote before file isn't really allocated.
If I leave there default 0 than your answer is correct from my point of view.
On 02/19/2013 06:26 PM, Michal Privoznik wrote:
> On 19.02.2013 13:19, Peter Velas wrote:
>> Hello guys,
>>
>>
>> My environment
>> Fedora 18 with kernel 3.7.8-202.fc18.x86_64
>> Virtual Machine Manager 0.9.4
>>
>> when creating New Storage Volume in virt-manager
>> newVM.img with qcow2 format for example with following settings:
>>
>>
>> Max Capacity: 10240 MB
>> Allocation: 10240 MB
>>
>> But then if I check the file its still small
>> ls -lha newVM.img
>> -rw------- 1 root root 193K Feb 19 12:59 newVM.img
>>
>> So I am not sure if its bug or this feature isn't implemented yet.
>> qemu-img create / convert preallocation is working fine.
>>
>>
> In fact, this is feature. QCOW images are dynamically allocated as the
> amount of written data grows. If you don't want this behavior, you can
> check the 'Allocate entire disk now' checkbox in the 4th step when
> creating a new domain. However, be aware that allocating huge files may
> takes some time. But on the other hand, guest IOs are not delayed as if
> they were in case of self allocating QCOW.
>
> BTW: you can always check QCOW disk size via:
>
> qemu-img info /some/path
>
> Michal
>
More information about the virt-tools-list
mailing list