#1 Global Leader in Data Resilience

Converting Disk from RAW to QCOW2 to Allow For Incremental Backup

KB ID: 4345
Product: Veeam Backup for Oracle Linux Virtualization Manager and Red Hat Virtualization
Published: 2022-08-31
Last Modified: 2024-09-30
mailbox
Get weekly article updates
By subscribing, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.

Cheers for trusting us with the spot in your mailbox!

Now you’re less likely to miss what’s been brewing in our knowledge base with this weekly digest

error icon

Oops! Something went wrong.

Please, try again later.

Purpose

This article documents how to convert a Disk from RAW to QCOW2, allowing Veeam Backup for Oracle Linux Virtualization Manager and Red Hat Virtualization to create an incremental backup of the disk.

As documented in the Veeam Backup for Oracle Linux Virtualization Manager and Red Hat Virtualization User Guide, Incremental Backup requires that "the disk is formatted in QCOW2 format."

Solution

Method 1: Convert Disk Format Using REST API

With oVirt version 4.5 and higher, RHV REST API can be used to convert a RAW disk to QCOW2 format.

For more information, review: oVirt REST API documentation - disk - convert POST 

Example API request:

curl \
--cacert '/etc/pki/ovirt-engine/ca.pem' \
--user 'admin@internal:mypassword' \
--request POST \
--header 'Version: 4' \
--header 'Content-Type: application/xml' \
--header 'Accept: application/xml' \
--data '
<action>
   <disk>
     <sparse>true</sparse>
     <format>cow</format>
   </disk>
 </action>
' \
https://<myengine.example.com>/ovirt-engine/api/disks/<disk id>/convert

Note:

  • To determine the disk id, in the RHV Administration portal, navigate to Storage > Disks.
  • The operation will be processed in the background.
  • The conversion time depends on the disk size.
  • To check whether the disk format has been changed, you can send a GET request in the following format:
    https://<myengine.example.com>/ovirt-engine/api/disks/<disk id>
    

Method 2: Convert Disk Format via Backup and Restore

A secondary method to convert the disk's format is to:

  1. Back up the VM that has RAW disks.
  2. Restore the VM disks in the QCOW2 format.
To submit feedback regarding this article, please click this link: Send Article Feedback
To report a typo on this page, highlight the typo with your mouse and press CTRL + Enter.

Spelling error in text

This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

Oops! Something went wrong.

Please, try again later.

You have selected too large block!

Please try select less.

KB Feedback/Suggestion

This form is only for KB Feedback/Suggestions, if you need help with the software open a support case

By submitting, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.
This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.
Verify your email to continue your product download
We've sent a verification code to:
  • Incorrect verification code. Please try again.
An email with a verification code was just sent to
Didn't receive the code? Click to resend in sec
Didn't receive the code? Click to resend
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

error icon

Oops! Something went wrong.

Please, try again later.