How to convert preallocated disks to thin provisioned disks?

Solution Verified - Updated -

Environment

  • Red Hat Virtualization 4

Issue

  • How to convert preallocated disks to thin provisioned disks?
  • Is there an option in RHEV-M GUI to convert preallocated disks to thin provisioned disks?

Resolution

  • There isn't any direct option in RHEV-M to convert preallocated disks to thin provisioned disks .
  • A Feature Request is filed in the bugzilla 977778

Workaround

  • recommended Clone the VM with preallocated disks. This will create a clone with all disk thin-provisioned.
  • Create an additional thin provisioned image of the required size, attach it to the VM, and use dd or a similar command to copy the contents of the preallocated disk to the preallocated disk from within the VM. The the original disk can be removed from the VM.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.