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.
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.
First published: 16th August 2018