Failed to create volume on LVM-based storage pool if specify 0 to Allocation
Issue
- Using virt-manager, creating volume on LVM-based storage pool fail if specifying 0 to Allocation.
The following messages were written in /var/log/libvirt/libvirtd.log
2013-02-11 21:50:05.656+0000: 3042: error : virCommandWait:2345 : internal error Child process (/sbin/lvremove -f guest_images_lvm/volume1) unexpected exit status 5: One or more specified logical volume(s) not found.
2013-02-11 21:50:05.808+0000: 3042: error : virCommandWait:2345 : internal error Child process (/sbin/lvchange -aln guest_images_lvm/volume1) unexpected exit status 5: One or more specified logical volume(s) not found.
virsh command:
# virsh vol-create-as --pool lvm sparsetest --capacity 16M --allocation 0
error: Failed to create vol sparsetest
error: internal error Child process (/sbin/lvchange -aln vgtest/sparsetest) unexpected exit status 5: One or more specified logical volume(s) not found.
Environment
- Red Hat Enterprise Linux 6.4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.