[libvirt-users] Libvirt and Glusterfs pool

Pierre-Gilles Mialon pmialon at gmail.com
Wed Jul 24 12:47:18 UTC 2013


Hi,

I use the QEMU-GlusterFS native integration (no Fuse mount) with the
libvirt.

Now I create a volume issuing :

# qemu-img create gluster://localhost/gv1/test.img 5G

Then using the libvirt I declare the following lines in my domain.xml :

    <disk type='network' device='disk'>
      <driver name='qemu' cache='none'/>
      <source protocol='gluster' name='gv1/test.img'>
        <host name='127.0.0.1' transport='tcp' />
      </source>
      <target dev='vda' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05'
function='0x0'/>
    </disk>

It works really well. But the better way, would be to only use the libvirt.


Is it planned to support a native glusterFS pool type ?
That would be great to be able to define a pool like this:

<pool type='glusterfs'>
  <name>myname</name>
  <source protocol='gluster' volume='gv0'>
    <host name='127.0.0.1'/>
  </source>
  <target>
    <permissions>
      <mode>0700</mode>
      <owner>-1</owner>
      <group>-1</group>
    </permissions>
  </target>
</pool>

And then create new images using vol-create.



Regards,

-- 
Pierre-Gilles Mialon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20130724/922f6a0f/attachment.htm>


More information about the libvirt-users mailing list