On Thu, Aug 6, 2020 at 5:35 PM Jorge Visentini <jorgevisent...@gmail.com> wrote: > > Hi oVirt land. > > Can I convert the disks of Thin Provision to Preallocated?
We don't have a way to convert the format for the same disk. We should have this in future version, since it is important for incremental backup. The most flexible way now is to download and upload the disk. During upload you can convert the disk format. Here is an example: Download qcow2 disks to raw-sparse format: $ ./download_disk.py \ --engine-url https://engine3 \ --username admin@internal \ --password-file engine3-password \ --cafile engine3.pem \ --format raw \ 58daea80-1229-4c6b-b33c-1a4e568c8ad7 \ /var/tmp/download.raw Connecting... Creating image transfer... Transfer ID: fe4c3409-7e82-4d68-a68b-8b61b9d70647 Transfer host name: host4 Downloading image... Formatting '/var/tmp/download.raw', fmt=raw size=6442450944 [ 100.00% ] 6.00 GiB, 9.45 seconds, 650.28 MiB/s Finalizing image transfer... $ qemu-img info /var/tmp/download.raw image: /var/tmp/download.raw file format: raw virtual size: 6 GiB (6442450944 bytes) disk size: 2.18 GiB We could download also to qcow2 format, this was just an example how you can convert the format during download. Now upload back to new disk in raw preallocated format. $ ./upload_disk.py \ --engine-url https://engine3 \ --username admin@internal \ --password-file engine3-password \ --cafile engine3.pem \ --sd-name nfs1 \ --disk-format raw \ /var/tmp/download.raw Checking image... Image format: raw Disk format: raw Disk content type: data Disk provisioned size: 6442450944 Disk initial size: 6442450944 Disk name: download.raw Disk backup: False Connecting... Creating disk... Disk ID: beb2435e-9607-4a09-b6a6-b5e5f4ae9fd8 Creating image transfer... Transfer ID: b9fd2ad9-be85-4db8-998b-c5f981f8103c Transfer host name: host4 Uploading image... [ 100.00% ] 6.00 GiB, 5.30 seconds, 1.13 GiB/s Finalizing image transfer... Upload completed successfully You can replace now the old thin disk (58daea80-1229-4c6b-b33c-1a4e568c8ad7) with the new preallocated disk (beb2435e-9607-4a09-b6a6-b5e5f4ae9fd8). Nir _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/TKO5DVRPURQ66QVUQZBHEX73MOC6VPH7/