qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] qemu-img convert will increase the VM image


From: xuanmao_001
Subject: Re: [Qemu-devel] qemu-img convert will increase the VM image
Date: Wed, 11 Sep 2013 16:50:02 +0800

    the first 30lines output from orignal image:
    1 [                       0]      128/ 4096000 sectors     allocated at offset 0.000000 bytes (1)
    2 [                   65536]     1920/ 4095872 sectors not allocated at offset 64 KiB (0)
    3 [                 1048576]      128/ 4093952 sectors     allocated at offset 1 MiB (1)
    4 [                 1114112]      128/ 4093824 sectors     allocated at offset 1 MiB (1)
    5 [                 1179648]      128/ 4093696 sectors     allocated at offset 1 MiB (1)
    6 [                 1245184]      128/ 4093568 sectors     allocated at offset 1 MiB (1)
    7 [                 1310720]      256/ 4093440 sectors not allocated at offset 1 MiB (0)
    8 [                 1441792]      128/ 4093184 sectors     allocated at offset 1 MiB (1)
    9 [                 1507328]     1792/ 4093056 sectors not allocated at offset 1 MiB (0)
   10 [                 2424832]      128/ 4091264 sectors     allocated at offset 2 MiB (1)
   11 [                 2490368]     2560/ 4091136 sectors not allocated at offset 2 MiB (0)
   12 [                 3801088]      128/ 4088576 sectors     allocated at offset 4 MiB (1)
   13 [                 3866624]      512/ 4088448 sectors     allocated at offset 4 MiB (1)
   14 [                 4128768]      128/ 4087936 sectors     allocated at offset 4 MiB (1)
   15 [                 4194304]      128/ 4087808 sectors     allocated at offset 4 MiB (1)
   16 [                 4259840]      128/ 4087680 sectors     allocated at offset 4 MiB (1)
   17 [                 4325376]      128/ 4087552 sectors     allocated at offset 4 MiB (1)
   18 [                 4390912]      128/ 4087424 sectors     allocated at offset 4 MiB (1)
   19 [                 4456448]      128/ 4087296 sectors     allocated at offset 4 MiB (1)
   20 [                 4521984]      128/ 4087168 sectors     allocated at offset 4 MiB (1)
   21 [                 4587520]      128/ 4087040 sectors     allocated at offset 4 MiB (1)
   22 [                 4653056]      128/ 4086912 sectors     allocated at offset 4 MiB (1)
   23 [                 4718592]      128/ 4086784 sectors     allocated at offset 4 MiB (1)
   24 [                 4784128]      640/ 4086656 sectors     allocated at offset 5 MiB (1)
   25 [                 5111808]      128/ 4086016 sectors     allocated at offset 5 MiB (1)
   26 [                 5177344]      128/ 4085888 sectors     allocated at offset 5 MiB (1)
   27 [                 5242880]     4096/ 4085760 sectors not allocated at offset 5 MiB (0)
   28 [                 7340032]      128/ 4081664 sectors     allocated at offset 7 MiB (1)
   29 [                 7405568]      128/ 4081536 sectors     allocated at offset 7 MiB (1)
   30 [                 7471104]      128/ 4081408 sectors     allocated at offset 7 MiB (1)
 
 
the first 30lines output from modify image:
  1 [                       0]      128/ 4096000 sectors     allocated at offset 0.000000 bytes (1)
  2 [                   65536]     1920/ 4095872 sectors not allocated at offset 64 KiB (0)
  3 [                 1048576]      512/ 4093952 sectors     allocated at offset 1 MiB (1)
  4 [                 1310720]      256/ 4093440 sectors not allocated at offset 1 MiB (0)
  5 [                 1441792]      128/ 4093184 sectors     allocated at offset 1 MiB (1)
  6 [                 1507328]     1792/ 4093056 sectors not allocated at offset 1 MiB (0)
  7 [                 2424832]      128/ 4091264 sectors     allocated at offset 2 MiB (1)
  8 [                 2490368]     2560/ 4091136 sectors not allocated at offset 2 MiB (0)
  9 [                 3801088]     2816/ 4088576 sectors     allocated at offset 4 MiB (1)
 10 [                 5242880]     4096/ 4085760 sectors not allocated at offset 5 MiB (0)
 11 [                 7340032]     4224/ 4081664 sectors     allocated at offset 7 MiB (1)
 12 [                 9502720]      128/ 4077440 sectors not allocated at offset 9 MiB (0)
 13 [                 9568256]      896/ 4077312 sectors     allocated at offset 9 MiB (1)
 14 [                10027008]      896/ 4076416 sectors not allocated at offset 10 MiB (0)
 15 [                10485760]     8320/ 4075520 sectors     allocated at offset 10 MiB (1)
 16 [                14745600]     1920/ 4067200 sectors not allocated at offset 14 MiB (0)
 17 [                15728640]     4480/ 4065280 sectors     allocated at offset 15 MiB (1)
 18 [                18022400]    16000/ 4060800 sectors not allocated at offset 17 MiB (0)
 19 [                26214400]      128/ 4044800 sectors     allocated at offset 25 MiB (1)
 20 [                26279936]    12160/ 4044672 sectors not allocated at offset 25 MiB (0)
 21 [                32505856]    12416/ 4032512 sectors     allocated at offset 31 MiB (1)
 22 [                38862848]     3840/ 4020096 sectors not allocated at offset 37 MiB (0)
 23 [                40828928]     1280/ 4016256 sectors     allocated at offset 39 MiB (1)
 24 [                41484288]      384/ 4014976 sectors not allocated at offset 40 MiB (0)
 25 [                41680896]      128/ 4014592 sectors     allocated at offset 40 MiB (1)
 26 [                41746432]     7040/ 4014464 sectors not allocated at offset 40 MiB (0)
 27 [                45350912]      640/ 4007424 sectors     allocated at offset 43 MiB (1)
 28 [                45678592]     7040/ 4006784 sectors not allocated at offset 44 MiB (0)
 29 [                49283072]      128/ 3999744 sectors     allocated at offset 47 MiB (1)
 30 [                49348608]      384/ 3999616 sectors not allocated at offset 47 MiB (0)
 
they are different.
what caused the problem ?

xuanmao_001
 
From: Kevin Wolf
Date: 2013-09-11 16:28
Subject: Re: qemu-img convert will increase the VM image
Am 11.09.2013 um 09:14 hat xuanmao_001 geschrieben:
> Hi, all:
>  
> I have question about qemu-img convert ...
>  
> I have a orignal image with following information:
> # qemu-img info ori.qcow2       
> image: ori.qcow2
> file format: qcow2
> virtual size: 2.0G (2097152000 bytes)
> disk size: 308M
> cluster_size: 65536
>  
> when I executed with "qemu-img convert -f qcow2 -O qcow2 ori.qcow2 new.qcow2"
> the new.qcow2 like following:
> # qemu-img info new.qcow2 
> image: new.qcow2
> file format: qcow2
> virtual size: 2.0G (2097152000 bytes)
> disk size: 748M
> cluster_size: 65536
>  
> so, my question is why the image size increased after my operation?
 
You can try comparing the output of the qemu-io 'map' command for both
images.
 
Kevin

reply via email to

[Prev in Thread] Current Thread [Next in Thread]