[libvirt] server side copy from one volume to another
Pino Toscano
ptoscano at redhat.com
Tue Apr 18 14:00:13 UTC 2017
On Tuesday, 18 April 2017 13:03:11 CEST Vasiliy Tolstov wrote:
> 2017-04-18 8:39 GMT+03:00 Michal Privoznik <mprivozn at redhat.com>:
> > s that right? Here I'm successfully cloning a volume across two storage pools:
>
>
> Yes, it works but....
> Source image:
> image: /var/lib/libvirt/images/sda/143177
> file format: qcow2
> virtual size: 5.0G (5368709120 bytes)
> disk size: 902M
> cluster_size: 65536
> Format specific information:
> compat: 0.10
> refcount bits: 16
>
> Dest image:
> image: /var/lib/libvirt/images/sda/test
> file format: qcow2
> virtual size: 5.0G (5368709120 bytes)
> disk size: 902M
> cluster_size: 65536
> Format specific information:
> compat: 0.10
> refcount bits: 16
>
>
> But
> -rw------- 1 root 908M Apr 18 13:59 143177
> -rw------- 1 root 902M Apr 18 13:59 test
>
> Why size is changed on destination image? In case of cp
> --spwarse=always size does not changed.
As Michal and Daniel said, this should not be a problem. Also, you can
check the content is the same using virt-diff (part of libguestfs):
# virt-diff \
-a /var/lib/libvirt/images/sda/143177 \
-A /var/lib/libvirt/images/sda/test > log
Most probably log should be empty, since the actual content of the
image did not change.
--
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170418/d16bccc8/attachment-0001.sig>
More information about the libvir-list
mailing list