installing Gluster fs on Ubuntu 18.04 server
installing Gluster FS on Ubuntu 18.04 server (three nodes)
Find the latest version
You can go to https://launchpad.net/~gluster and see all the versions, and for this installation I picked up version 9 , the blow links
or
Add the repository and update the list (all nodes)
DNS setups (all nodes)
I just used /etc/hosts but any other DNS resolution should be good to go
Install the gulsterfs-server (all nodes)
for other OS' you can refer to this link: https://docs.gluster.org/en/v3/Install-Guide/Install/
Start and enable the service (all nodes)

Add peers (just one of nodes) for me gluster1
Verify adding peers

Verify pool list
the last one shows localhost because I am on the node (= gluster1)

Adding DISK to all your machines (all nodes)
If you have not done it so far, you can do it now, at the this I added new disk and rebooted my VMs, so after booting up again I had /dev/sdb on all nodes
Partitioning the DISK we added (all nodes)
for more about this commands you can see this video
Verify result of partitioning (all nodes)
Format the partition (all nodes)
Add an entry to /etc/fstab (all nodes)
Mount the partition as a Gluster "brick" (all nodes)
Verify if it has been mounted (all nodes)
Set up a Gluster volume (just on one of nodes)
Verify our volume (all nodes)

Start the volume (node you have set it up)
Install glusterfs-client (optional)
if you already did not setup the client, install it, otherwise no need to do.
Make a directory for gv0 (all nodes)
Mount the volume
Verify the mounted volume
Test it (final)
Now you should see one.txt file on other nodes and if you modify it, you see the modification on others nodes.
node 1 (= master) (= gluster1)

node 2 (= worker-1) (= gluster2)

node 3 (= worker-2) (= gluster3)

also my /etc/hosts

please notice that
is not for gluster-fs it was for k8s which I have set it up already
resources
Last updated
Was this helpful?