| Summary: | virsh: vol-clone failed with the vol of allocation size with zero | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Nan Zhang <nzhang> |
| Component: | libvirt | Assignee: | Osier Yang <jyang> |
| Status: | CLOSED NOTABUG | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 6.1 | CC: | dallan, dyuan, eblake, llim, xen-maint, yoyzhang |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-01-24 05:20:53 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Nan Zhang
2011-01-20 11:23:33 UTC
What's the version of qemu-img? And could you try to clone the vol from following qemu-img command? (/var/lib/libvirt/images/foo is the zero size vol you created.) /usr/bin/qemu-img convert -f qcow2 -O qcow2 /var/lib/libvirt/images/foo /var/lib/libvirt/images/foo1 (In reply to comment #1) > What's the version of qemu-img? > > And could you try to clone the vol from following qemu-img command? > (/var/lib/libvirt/images/foo is the zero size vol you created.) > > /usr/bin/qemu-img convert -f qcow2 -O qcow2 /var/lib/libvirt/images/foo > /var/lib/libvirt/images/foo1 Command above is what libvirt uses to clone the qcow2 vol, it works for me on newer qemu-img. [root@Osier ~]# /usr/bin/qemu-img convert -f qcow2 -O qcow2 /var/lib/libvirt/images/foo /var/lib/libvirt/images/foo1 [root@Osier ~]# echo $? 0 So, if it doesn't work on your qemu-img version, that's a bug of qemu-img, will reassign. [root@Osier ~]# rpm -q qemu-img qemu-img-0.13.0-1.fc14.x86_64 I just tried both qemu-img and virsh command, it works well. It is curious that it can't be reproduced after rebooting my machine. |