Skip to content

Instantly share code, notes, and snippets.

@broland07
Created August 22, 2022 13:14
Show Gist options
  • Save broland07/4e5ad733be5c3064205fb93a7f1c9bc5 to your computer and use it in GitHub Desktop.
Save broland07/4e5ad733be5c3064205fb93a7f1c9bc5 to your computer and use it in GitHub Desktop.
GlusterFS 10 on Ubuntu 20.04
3 glusterfs server + 1 client.
On all 4 nodes:
apt install software-properties-common
add-apt-repository ppa:gluster/glusterfs-10
glusterfs-server:
apt update && apt install glusterfs-server
glusterfs-client:
apt update && apt install glusterfs-client
On all 4 nodes:
systemctl enable --now glusterd
systemctl status glusterd
Add every node in /etc/hosts all the 4 server.
Any server node:
gluster peer status
gluster peer probe gluster(1,2,3)
gluster volume list
Make the volume space, eg.:
mkdir /gluster
gluster volume create volume1 replica 3 gluster1:/gluster/brick1 gluster2:/gluster/brick1 glusterN:/gluster/brick1
gluster volume list
gluster volume info
gluster volume start volume1
Mount on client node:
mkdir /mnt/gluster
mount -t glusterfs gluster1:volume1 /mnt/gluster (You can mount from any gluster(1,2,3) node)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment