Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Debian8 - Install GlusterFS 3.8

If you install GlusterFS from the Debian repositories, then you will get version 3.5.2. The scripts below will install the latest version of GlusterFS 3.8.x so that you can make use of later features like better support for heterogeneous bricks.

This tutorial is only for showing how to install a later version of GlusterFS. If you wish to know how to deploy a cluster, please refer to "Deploying a GlusterFS Cluster".

Server

#!/bin/bash
sudo echo "Installing Glusterfs 3.8 server" # this is only really here to set the sudo session for the next command
sudo wget -O - http://download.gluster.org/pub/gluster/glusterfs/3.8/LATEST/rsa.pub | sudo apt-key add -
sudo echo deb http://download.gluster.org/pub/gluster/glusterfs/3.8/LATEST/Debian/jessie/apt jessie main | sudo tee /etc/apt/sources.list.d/gluster.list 
sudo apt-get update
sudo apt-get install glusterfs-server

As usual, you can install through prog-exec with one command like so:

prog-exec "26/1" "63d4aa80bb53de2030e74f73bf9e4762e8d01dc24dfa671d37c83ed3411a1011"

Client Only

If you only want to install the client, then you will need to run this script instead:

#!/bin/bash
sudo echo "Installing Glusterfs 3.8 client" # this is only really here to set the sudo session for the next command
sudo wget -O - http://download.gluster.org/pub/gluster/glusterfs/3.8/LATEST/rsa.pub | sudo apt-key add -
sudo echo deb http://download.gluster.org/pub/gluster/glusterfs/3.8/LATEST/Debian/jessie/apt jessie main | sudo tee /etc/apt/sources.list.d/gluster.list 
sudo apt-get update
sudo apt-get install glusterfs-client

The matching prog-exec command is:

prog-exec "27/1" "b419bdbb47fcedf4263a384225ceb93b26e66ed8c31c17f759b3c9df979a9191"

References

These scripts are based upon the content provided at download.gluster.org here. You can pretty much traverse that area to get the commands you need for most distributions and versions of GlusterFS.

Last updated: 20th June 2021
First published: 16th August 2018

This blog is created by Stuart Page

I'm a freelance web developer and technology consultant based in Surrey, UK, with over 10 years experience in web development, DevOps, Linux Administration, and IT solutions.

Need support with your infrastructure or web services?

Get in touch