Project

General

Profile

Actions

Bug #3585

closed

Image import via QEMU-IMG results in a corrupt rbd

Added by Matt Anderson over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
-
% Done:

0%

Source:
Community (user)
Tags:
Backport:
Regression:
Severity:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

This is a follow on from the mailing list topic VM Corruption on "0.54 when 'client cache = false'". After upgrading to 0.55 and doing testing on a single server it appeared to be resolved. I've now setup a third server and the corruption issue is back again. I've narrowed the issue down to what I think is a qemu-img problem. Different client cache settings don't appear to have any influence on the problem like I first thought.

I'm importing an existing image using the command : qemu-img convert -f raw -O rbd /mnt/gluster1-norep/templates/testImage.raw rbd:nearline/iHost-Test-TS8

This completes successfully in a normal amount of time but when I boot the VM it appears corrupt and the VM can't boot citing a corrupt or missing kernel. I've also tried importing a raw image via qemu-img which displays the same problem which suggests it isn't specific to the QED image format. When importing the same raw image via the RBD tool the image boots perfectly. Also, if I reinstall windows from an ISO over the top of the corrupt image the VM works perfect thereafter with no ongoing corruption which suggests that QEMU is working fine and it's just QEMU-IMG that is causing the problem.

QEMU-IMG version is 1.1.2
Ceph version is 0.55 (690f8175606edf37a3177c27a3949c78fd37099f)
Kernel version is 3.6.8-1.el6.elrepo.x86_64

My ceph.conf and a client log of the import are attached. The cluster was in a healthy state at the time.

Thanks
-Matt


Files

ceph.conf (4.75 KB) ceph.conf Matt Anderson, 12/07/2012 12:21 AM
ceph.client.log (28.5 MB) ceph.client.log Ceph client log of the command 'qemu-img convert -f raw -O rbd /mnt/gluster1-norep/templates/testImage.raw rbd:nearline/iHost-Test-TS8' Matt Anderson, 12/07/2012 12:21 AM
client.admin.log (22.6 MB) client.admin.log Matt Anderson, 12/13/2012 11:48 PM
compare.txt (15 MB) compare.txt Matt Anderson, 12/13/2012 11:48 PM
Actions

Also available in: Atom PDF