[libvirt-users] libvirt with glusterfs problem

lyz_pro lyz_pro at 163.com
Fri Apr 11 08:10:21 UTC 2014


Sorry, My mistake. the libvirt error output is:
error: Timed out during operation: cannot acquire state change lock 

------------------				 
lyz_pro
2014-04-11

-------------------------------------------------------------
发件人:"lyz_pro"<lyz_pro at 163.com>
发送日期:2014-04-11 16:02
收件人:libvirt-users
抄送:
主题:[libvirt-users] libvirt with glusterfs problem

Hi
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"/>
  </source>
  <target bus="virtio" dev="vdb"/>
  <serial>257e07bd-9e80-4d06-8d6d-5f83979de1fd</serial>
</disk>
 
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

Also:
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
glusterfs-3.4.1-3.el6.x86_64
--------------
lyz_pro
2014-04-11

_______________________________________________
libvirt-users mailing list
libvirt-users at redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users






More information about the libvirt-users mailing list