[libvirt-users] failure creating a snapshot volume within a lvm-based pool

Hi I have defined a logical pool and a volume within it # virsh vol-create-as images_lvm myvol 2G Vol myvol created # virsh vol-list images_lvm Name Path ----------------------------------------- myvol /dev/libvirt_images_vg/myvol if I try to create another volume using the previous one as backing-vol, the creation fails with what looks like an incorrect commandline for lvcreate: # virsh vol-create-as images_lvm myvol-instance 2G --backing-vol myvol error: Failed to create vol myvol-instance error: internal error Child process (/usr/sbin/lvcreate --name myvol-instance -L 2097152K -s=/dev/libvirt_images_vg/myvol) unexpected exit status 3: /usr/sbin/lvcreate: invalid option -- '=' Error during parsing of command line. Exactly the same happens if I specify a qcow2 format (the doc however says that The logical volume pool does not use the volume format type element). is this a known bug? I'm running Fedora 18 # virsh version Compiled against library: libvirt 0.10.2 Using library: libvirt 0.10.2 Using API: QEMU 0.10.2 Running hypervisor: QEMU 1.2.2 -------------------------------------------------- regards, Edoardo Comar WebSphere Application Service Platform for Networks (ASPN) ecomar@uk.ibm.com Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU

On 04/22/2013 07:40 PM, Edoardo Comar wrote:
Hi
Hi,
if I try to create another volume using the previous one as backing-vol, the creation fails with what looks like an incorrect commandline for lvcreate:
# virsh vol-create-as images_lvm myvol-instance 2G --backing-vol myvol error: Failed to create vol myvol-instance error: internal error Child process (/usr/sbin/lvcreate --name myvol-instance -L 2097152K -s=/dev/libvirt_images_vg/myvol) unexpected exit status 3: /usr/sbin/lvcreate: invalid option -- '=' Error during parsing of command line.
this has been fixed in 1.0.2 by commit ffee627a: http://libvirt.org/git/?p=libvirt.git;a=commitdiff;h=ffee627a
Exactly the same happens if I specify a qcow2 format (the doc however says that The logical volume pool does not use the volume format type element).
Yes, volume format has no effect on logical pools. Jan

Thanks I have opened https://bugzilla.redhat.com/show_bug.cgi?id=955371 as would be nice to get the fix in the packages of the distro -------------------------------------------------- regards, Edoardo Comar WebSphere Application Service Platform for Networks (ASPN) From: Ján Tomko <jtomko@redhat.com> To: Edoardo Comar/UK/IBM@IBMGB, Cc: libvirt-users@redhat.com Date: 22/04/2013 19:02 Subject: Re: [libvirt-users] failure creating a snapshot volume within a lvm-based pool On 04/22/2013 07:40 PM, Edoardo Comar wrote:
Hi
Hi,
if I try to create another volume using the previous one as backing-vol,
the creation fails with what looks like an incorrect commandline for lvcreate:
# virsh vol-create-as images_lvm myvol-instance 2G --backing-vol myvol error: Failed to create vol myvol-instance error: internal error Child process (/usr/sbin/lvcreate --name myvol-instance -L 2097152K -s=/dev/libvirt_images_vg/myvol) unexpected exit status 3: /usr/sbin/lvcreate: invalid option -- '=' Error during parsing of command line.
this has been fixed in 1.0.2 by commit ffee627a: http://libvirt.org/git/?p=libvirt.git;a=commitdiff;h=ffee627a
Exactly the same happens if I specify a qcow2 format (the doc however
says
that The logical volume pool does not use the volume format type element).
Yes, volume format has no effect on logical pools. Jan Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
participants (2)
-
Edoardo Comar
-
Ján Tomko