Gluster : Création d'un cluster Glusterfs
De www.yakakliker.org
Introduction
L'objectif d'aujourd'hui est de créer un cluster de 3 serveurs web Ubuntu répliqués via Glusterfs
Un réseau dédié va servir à la réplication Gluster.
Un 2ème réseau dédié va servir pour le service web (communication avec le reverse proxy)
Un 3ème réseau servira pour les accès Internet
Paramètres des serveurs
- Web01 :
- IP LAN : 172.20.37.1/29
- IP GLUSTER : 100.85.37.1/29
- IP WWW : 10.20.37.1/29
- Web02 :
- IP LAN : 172.20.37.2/29
- IP GLUSTER : 100.85.37.2/29
- IP WWW : 10.20.37.2/29
- Web03 :
- IP LAN : 172.20.37.3/29
- IP GLUSTER : 100.85.37.3/29
- IP WWW : 10.20.37.3/29
Installation
Edition des fichiers /etc/hosts sur les 3 serveurs
Web01
127.0.0.1 localhost
127.0.1.1 web01.yakakliker.org web01
100.85.37.2 web02.yakakliker.org web02
100.85.37.3 web03.yakakliker.org web03
100.85.37.1 web01.yakakliker.org web01
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Web02
127.0.0.1 localhost
127.0.1.1 web02.yakakliker.org web02
100.85.37.1 web01.yakakliker.org web01
100.85.37.3 web03.yakakliker.org web03
100.85.37.2 web02.yakakliker.org web02
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Web03
127.0.0.1 localhost
127.0.1.1 web03.yakakliker.org web03
100.85.37.2 web02.yakakliker.org web02
100.85.37.1 web01.yakakliker.org web01
100.85.37.3 web03.yakakliker.org web03
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Liens
https://www.it-connect.fr/tuto-glusterfs-cluster-haute-disponibilite-donnees-almalinux-ou-debian/
https://www.howtoforge.com/how-to-install-and-configure-glusterfs-on-ubuntu-22-04/
https://www.server-world.info/en/note?os=Ubuntu_22.04&p=glusterfs&f=2