Ask Your Question
0

QCOW2 image convertion consumes disk space

asked 2014-09-04 01:27:48 -0500

Praveenkumar.2608 gravatar image

Hi,

I am trying to convert my 500 G and 1 TB KVM running back end as LVM to qcow2 using the following command:

qemu-img convert -c -f raw -O qcow2 /dev/vg000/vm10 /home/images/Praveen.qcow2

The /home/images/ has 100 GB free space. How ever, the conversion takes all the space and getting error:

qemu-img : error while compressiong sector: no space left on the device.

Note :-

The 500 GB and 1 TB machine does not have any big data in it.

Please let me know the steps to convert this KVM LVM to qcow2 with less size of qcow2 format.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-09-04 04:48:36 -0500

SGPJ gravatar image

Earlier I faced similar issue, so what I did is workaround: I copied the raw image to another machine (different openstack controller) with required resources then used qemu-img convert and this was successful.

In old openstack controller: Removed the old raw image and then uploaded the qcow2 image back.

edit flag offensive delete link more

Comments

Hi,

Thank you for your answer. I can not copy the raw image. The KVM was created by Virt Manager and it directly sits on LVM partition. Please suggest me a technique to convert large instance to qcow2 with lesser size.

Praveenkumar.2608 gravatar imagePraveenkumar.2608 ( 2014-09-04 22:29:53 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-09-04 01:27:48 -0500

Seen: 1,053 times

Last updated: Sep 04 '14