[libvirt-users] libvirt with glusterfs problem

lyz_pro lyz_pro at 163.com
Fri Apr 11 08:02:32 UTC 2014

I have two node: hcg3, hcg4  which run glusterfs
Also run libvirtd on each node.
The problem cames when I use `virsh attach-device` to attach a glusterfs type disk .
My device xml like:
<disk type="network" device="disk">
  <driver name="qemu" type="raw" cache="none"/>
  <source protocol="gluster" name="h2312v3/volume-257e07bd-9e80-4d06-8d6d-5f83979de1fd">
    <host name="hcg4"/>
  <target bus="virtio" dev="vdb"/>
when I attach a gluster disk to a domain running on hcg4.
the above xml work great. 
BUT when I try to change the tag `host` name attribute to hcg3, the attach action will fail with output:
error: Requested operation is not valid: domain is not running

I can use `qemu-kvm` command to start vm successful with gluster://hcg3 or gluster://hcg4.

I have stop both nodes' iptables. and my libvirt and qemu version is :
Compiled against library: libvirt 1.1.4
Using library: libvirt 1.1.4
Using API: QEMU 1.1.4
Running hypervisor: QEMU 1.6.2

More information about the libvirt-users mailing list