The virtual disk of a virtual machine is the HDD image. Virtual disks are stored in a local or network storage. GlusterFS is a network fault-tolerant storage. This article describes how to configure a GlusterFS -storage. For more information please refer to the article Network storages.

For more information about the storage, please refer to the GlusterFS official site.

This storage type works slower than a local storage. We recommend using this storage only for locating additional virtual disks.

Due to libvirt limitations, we can specify only one of the nodes. We recommended specifying a domain name, which is reserved only for this purpose. In this way, if a GlusterFS node fails, it's possible to connect to another node by changing the domain name's IP address in DNS, which you use for the connection.

If you use domain names for connection between cluster nodes while creating the GlusterFS cluster, use FQDN-names and specify a full domain name of the cluster node. Make sure that all used domain names are resolved correctly to IP addresses on all VMmanager cluster nodes.

Don't forget to provide the access of VMmanager cluster to GlusterFS cluster nodes, by creating firewall rules as follows:

-A INPUT -p tcp -s <ip>/<mask> -m state --state NEW -m multiport --dports 2049,24007:24009,49152:49251 -j ACCEPT
BASH
<ip>/<mask> — IP address of VMmanager node with the mask (e.g. 10.0.0.1/24).