[Gluster-devel] [libvirt-users] Libvirt and Glusterfs pool

Vijay Bellur vbellur at redhat.com
Sun Jul 28 14:33:35 UTC 2013


Cc'ing gluster-devel to check if anybody can pick this up.

Thanks,
Vijay

On 07/24/2013 06:17 PM, Pierre-Gilles Mialon wrote:
> 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
>
>
> _______________________________________________
> libvirt-users mailing list
> libvirt-users at redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-users
>





More information about the Gluster-devel mailing list