Home Lab Chronicles

Table of Contents

This section applies to all nodes:

echo ‘/dev/nvme0n1p1 /gfs/brick01 ext4 defaults 1 2’ >> /etc/fstab
sudo apt install software-properties-common -y
sudo apt-add-repository ppa:gluster/glusterfs-7
sudo apt update
sudo apt install glusterfs-server -y
sudo systemctl enable glusterd.service
sudo systemctl start glusterd.service

This section is to be done on the first node:

sudo gluster peer probe kube2
sudo gluster peer probe kube3

Do this on another node:

sudo gluster peer probe kube1

Do this on all nodes:

sudo gluster peer status

Setting up a volume:

On all nodes:

sudo mkdir -p /gfs/brick01/gv0

On any node:

sudo gluster volume create gv0 replica 3 arbiter 1 transport tcp kube1:/gfs/brick01/gv0/ kube2:/gfs/brick01/gv0/ kube3:/gfs/brick01/gv0/
sudo mkdir -p /mnt/disk
sudo mount -t glusterfs kube1:/gv0 /mnt/disk
sudo su
for i in `seq -w 1 100`; do echo 'test' > /mnt/disk/copy-test-$i; done

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store