Failed to create volume on LVM-based storage pool if specify 0 to Allocation

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content