Skip to content

Instantly share code, notes, and snippets.

@olivierlambert
Created July 26, 2017 11:41
Show Gist options
  • Save olivierlambert/f9502f8dfa3f24cbd2b2b46f632ecf8c to your computer and use it in GitHub Desktop.
Save olivierlambert/f9502f8dfa3f24cbd2b2b46f632ecf8c to your computer and use it in GitHub Desktop.
Quick instructions to use Xen on gluster mount

In order to have your VM disk hosted on a Gluster share, you need:

  • to install Gluster client
  • mount your Gluster share
  • create your VM disks on the share and use the path in your domU config file

Install Gluster client

Pre req

Gluster client is the thing that allows you to mount the Gluster share. It uses the FUSE library, so be sure to have fuse module loaded: modprobe fuse.

dmesg | grep -i fuse should show you that FUSE is loaded.

Also, on this tutorial, you must already have a Gluster volume already available somewhere. It's only the client side in this (on your Xen machine).

Gluster client packages

You can download them here: https://download.gluster.org/pub/gluster/glusterfs/LATEST/ Instruction are displayed for each distro

Mount your Gluster volume

Gluster is really close to NFS in terms of usage. When you have the gluster client package installed, just mount it like that:

mount -t glusterfs server1:/test-volume /mnt/glusterfs

Obviously, you can mount it anywhere. More options/details are available here: http://gluster.readthedocs.io/en/latest/Administrator%20Guide/Setting%20Up%20Clients

Xen configuration

Just use this mounted folder as a local folder for your Xen images.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment