Bug 879780
| Summary: | vol-clone failed to clone LVM volumes | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | János Tamási <janusz> |
| Component: | libvirt | Assignee: | Ján Tomko <jtomko> |
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.4 | CC: | acathrow, dyasny, dyuan, jtomko, mjenner, mzhan, rwu, whuang, zpeng |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | libvirt-0.10.2-10.el6 | Doc Type: | Bug Fix |
| Doc Text: |
Cause: A cleanup in virStorageBackendLogicalCreateVol removed the setting of volume type.
Consequence: Volume was treated as a file without a format and libvirt was unable to clone it.
Fix: Set the volume type.
Result: Logical volumes can be cloned.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-02-21 07:27:42 UTC | Type: | Bug |
| 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: | 881827 | ||
|
Description
János Tamási
2012-11-24 10:20:27 UTC
Reproducible with libvirt-0.10.2-9.el6 as well. Proposed upstream patch: https://www.redhat.com/archives/libvir-list/2012-November/msg01055.html Fixed upstream by:
commit 70f0bbe8e046dae1b811378f735872d3e61f4609
Author: Ján Tomko <jtomko>
AuthorDate: 2012-11-25 02:59:33 +0100
Commit: Michal Privoznik <mprivozn>
CommitDate: 2012-11-26 14:01:29 +0100
storage: fix logical volume cloning
Downstream backport:
http://post-office.corp.redhat.com/archives/rhvirt-patches/2012-November/msg00266.html
I can reproduce this with build:
libvirt-0.10.2-9.el6.x86_64
verify with:
libvirt-0.10.2-10.el6.x86_64
step:
1: create a lvm pool
# virsh pool-dumpxml lvm
<pool type='logical'>
<name>lvm</name>
<uuid>a2dc4aad-ff27-41d5-f598-612dbfe91620</uuid>
<capacity unit='bytes'>20967325696</capacity>
<allocation unit='bytes'>11811160064</allocation>
<available unit='bytes'>9156165632</available>
<source>
<device path='/dev/sda2'/>
<name>vg_virt</name>
<format type='lvm2'/>
</source>
<target>
<path>/dev/vg_virt</path>
<permissions>
<mode>0755</mode>
<owner>-1</owner>
<group>-1</group>
</permissions>
</target>
</pool>
2: clone lvm vol
# virsh vol-clone --pool lvm vgtest1 vgtest3
Vol vgtest3 cloned from vgtest1
# virsh vol-list lvm
Name Path
-----------------------------------------
vgtest1 /dev/vg_virt/vgtest1
vgtest2 /dev/vg_virt/vgtest2
vgtest3 /dev/vg_virt/vgtest3
vgtest3 created w/o error, verification passed.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2013-0276.html |