Virtual machines created with cockpit: backup size not thin provisioned #129
-
First of all I want to say thank you for this great software. I am trying remote backup which works. Both full backup and incremental. But the first full backup does not have thin allocation, but thick (raw). |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 4 replies
-
hi, what disk format is the virtual machine using? raw or qcow images? Thin provisioned backup and incremental backup only https://github.com/abbbi/virtnbdbackup#supported-disk-formats--raw-disks |
Beta Was this translation helpful? Give feedback.
-
The backed up VM disk is in qcow2 format. Backup log: Backup size: OS: |
Beta Was this translation helpful? Give feedback.
-
qemu-img info after backup looks like this:
The disk image is created with thin allocation and has not been formatted - filled with data - zeros. I created the VM from Cockpit. I am attaching the verbose log as an attachment. |
Beta Was this translation helpful? Give feedback.
-
the backup uses the same extents with the qemu utils. What happens if you resize the image from 20 to 50 GB with I really think this has to do with the way cockpit creates the images, havent seen this behavior either on my systems
there is only one extend returned with data: false, which means this extend, from the image block layer does
all other extents returned from the NBD service contain data: true, which means its actual data from the qemu image Alternative may be that there is an bug in qemu/libvirt in the versions your are using, from virtnbdbackups point of view
|
Beta Was this translation helpful? Give feedback.
-
I did a resize +10G > then a new full backup. The size of the backup is 21GB (not 30GB like the virtual disk). I created a new disk via cli - qemu-img ... > new full backup. The backup size is 2.1GB. Image size is 10GB. In this case, thin provisioning is OK. This is how it looks like Cockpit really does something different.
Disk vda create via Cockpit |
Beta Was this translation helpful? Give feedback.
-
yes, might depend on the installtion method used. Cockpit seems to use virt-install under the hood. |
Beta Was this translation helpful? Give feedback.
yes, might depend on the installtion method used. Cockpit seems to use virt-install under the hood.
If the "Download OS" option is used a prepared image is downloaded which is then adjusted in it size for the virtual disk chosen.
Not sure how they re-size or cloning the images but that seems to result in the situation youre having.