restoring stream+compressed backup to original allocation, not thin-provisioned? #208
-
i've installed a source rpm build of v2.13 branch
i've a vm up & running
it's preallocated to ~50G
but actual usage in guest is, atm, ~5G
live backup via stream + compress works, thin provisioning via stream as expected,
subsequent restore
works; guest's up & operational. but, the qcow2's restored to nominal size,
not its originally allocated ~50G. i can certainly reallocate and resize with qemu-img, etc afterwards, and restore to exact original guest config,
but that can get a bit messy/tedious. is there a 'built-in' virtnbdbackup + virtnbdrestore procedure that gets me the maximum size reduction of the backup -- as above with stream + compress -- AND restores to the original disk/filesystem allocation(s)? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
hi again, i think your desired behavior would be if the restore creates the image with preallocate=full option, this works by now using |
Beta Was this translation helpful? Give feedback.
hi again,
i think your desired behavior would be if the restore creates the image with preallocate=full option, this works by now using
the --preallocate option in virtnbdrestore.