Bug 537655
Summary: | qemu-img: error creating a new preallocated volume image on FCP storage | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | yeylon <yeylon> |
Component: | kvm | Assignee: | Kevin Wolf <kwolf> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | high | Docs Contact: | |
Priority: | urgent | ||
Version: | 5.4.z | CC: | abaron, bazulay, ehabkost, ilvovsky, kwolf, llim, mkenneth, ovirt-maint, Rhev-m-bugs, srevivo, tburke, virt-maint, ykaul |
Target Milestone: | rc | Keywords: | Regression |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | kvm-83-147.el5 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-03-30 07:52:40 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 511072, 550957 |
Description
yeylon@redhat.com
2009-11-15 14:03:35 UTC
There is a regression with qemu-img. For some reason, formatting with raw format always fails: [root@green-vdsa ~]# /usr/bin/qemu-img create -f raw /dev/fe3fc2d8-ba10-4836-a957-be3f0a5fc1ef/51760b89-3eff-4e83-8ec0-014726393630 1G Formatting '/dev/fe3fc2d8-ba10-4836-a957-be3f0a5fc1ef/51760b89-3eff-4e83-8ec0-014726393630', fmt=raw, size=1048576 kB qemu-img: Error while formatting [root@green-vdsa ~]# /usr/bin/qemu-img create -f host_device /dev/fe3fc2d8-ba10-4836-a957-be3f0a5fc1ef/51760b89-3eff-4e83-8ec0-014726393630 1G Formatting '/dev/fe3fc2d8-ba10-4836-a957-be3f0a5fc1ef/51760b89-3eff-4e83-8ec0-014726393630', fmt=host_device, size=1048576 kB What is the kvm version? Do you know when it worked? If it works with -f host_device, then it's a device and not a raw file. That it doesn't work any more with -f raw is a bug fix (errors during image creation were not always reported), not a regression. You need to correct your call. I may be missing something but I think this doesn't work [root@dhcp-X reg]# rpm -qa kvm kvm-83-147.el5 [root@dhcp-X reg]# lvcreate -n test system --size 1g Logical volume "test" created [root@dhcp-X reg]# qemu-img create -f raw /dev/system/test 500M Formatting '/dev/system/test', fmt=raw, size=512000 kB qemu-img: Error while formatting (In reply to comment #22) > I may be missing something but I think this doesn't work > > [root@dhcp-X reg]# rpm -qa kvm > kvm-83-147.el5 > [root@dhcp-X reg]# lvcreate -n test system --size 1g > Logical volume "test" created > [root@dhcp-X reg]# qemu-img create -f raw /dev/system/test 500M > Formatting '/dev/system/test', fmt=raw, size=512000 kB > qemu-img: Error while formatting I was indeed missing something (didn't update kvm-qemu-img). Seems to work now. *** Bug 540883 has been marked as a duplicate of this bug. *** An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2010-0271.html |