By clicking or navigating this website site, you agree to allow our collection of information on Scaleway to offer you an optimal user experience and to keep track of statistics through cookies. Learn more about our Cookie Policy.

Configure a High-Availability Storage with GlusterFS on Ubuntu 18.04 LTS

GlusterFS Overview

GlusterFS is an open-source, scalable network filesystem suitable for high data-intensive workloads such as media streaming, cloud storage, and CDN (Content Delivery Network). Each storage server will be a mirror of the other storage server, and files will be replicated automatically across both storage servers.

Installing GlusterFS Server

1 . Install the glusterfs server on both gluster01 and gluster02 servers.

apt install glusterfs-server -y

2 . Start the glusterd service and enable it to launch every time at system boot

systemctl start glusterd
systemctl enable glusterd

Glusterfs server is now up and running on the gluster01 and gluster02 servers.

3 . Check the services and the installed software version

systemctl status glusterd
glusterfsd --version

The command should return an active (running) status and glusterfs 3.13.2 version.

Configuring GlusterFS Servers

Glusterd services are now up and running, and the next step we will do is to configure those servers by creating a trusted storage pool and creating the distributed glusterfs volume. The first step consists of creating a trusted storage pool.

1 . From the gluster01 server, we need to add the gluster02 server to the glusterfs storage pool

gluster peer probe gluster02

The result peer probe: success is displayed. We added the gluster02 server to the storage trusted pool.