Skip to content

Procédure projet SAN BORG CLIENT afpa

Auteur : Maxime COURBOULIN | Date : 2026-03-18 09:00:00

Prérequis à la mise en place de la procédure :

Table adressage IP

Connexion internet

Terminal window
nano /etc/network/interfaces

Procédure projet SAN BORG CLIENT afpa

Terminal window
sudo hostnamectl set-hostname gluster
nano /etc/hosts

Procédure projet SAN BORG CLIENT afpa

Terminal window
sudo apt update && sudo apt upgrade –y
sudo apt install glusterfs-server –y
sudo systemctl enable glusterd

Procédure projet SAN BORG CLIENT afpa

Terminal window
sudo systemctl start glusterd
Terminal window
sudo systemctl status glusterd

Procédure projet SAN BORG CLIENT afpa

Terminal window
sudo mkdir -p /data/gluster/brick1
Terminal window
lsblk

Procédure projet SAN BORG CLIENT afpa

Procédure projet SAN BORG CLIENT afpa

Terminal window
fdsik /dev/sdb

Procédure projet SAN BORG CLIENT afpa

Procédure projet SAN BORG CLIENT afpa

(adapté pour le projet)

Terminal window
mkfs.xfs -i size=512 /dev/sdb1

Procédure projet SAN BORG CLIENT afpa

Terminal window
mkdir -p /data/brick1
Terminal window
mount /dev/sdb1 /data/brick1
Terminal window
df -h /data/brick1

Procédure projet SAN BORG CLIENT afpa

Terminal window
blkid /dev/sdb1

Procédure projet SAN BORG CLIENT afpa

UUID=xxxxx /data/brick1 xfs defaults 0 0

Procédure projet SAN BORG CLIENT afpa

Terminal window
mount -a

ne renvoie rien en cas de bon fonctionnement

Procédure projet SAN BORG CLIENT afpa

Terminal window
df -h /data/brick1

Réponse visée :

Procédure projet SAN BORG CLIENT afpa

Terminal window
gluster volume create monvolume SAN:/data/brick1 force
gluster volume start monvolume

Procédure projet SAN BORG CLIENT afpa

Terminal window
gluster volume info

Procédure projet SAN BORG CLIENT afpa

Terminal window
gluster volume status

Procédure projet SAN BORG CLIENT afpa

Terminal window
Apt install fuse -y
Modprobe fuse
Lsmod | grep fuse

Procédure projet SAN BORG CLIENT afpa

Terminal window
nano /etc/network/interfaces

Procédure projet SAN BORG CLIENT afpa

Mettre à jour /etc/hosts avec les interlocuteurs

Section titled “Mettre à jour /etc/hosts avec les interlocuteurs”
nano /etc/hosts

Procédure projet SAN BORG CLIENT afpa

Terminal window
sudo apt install glusterfs-client –y
Terminal window
sudo mkdir -p /mnt/gluster
Terminal window
sudo mount -t glusterfs 192.168.199.100:/gv0 /mnt/gv0
ls /mnt/gv0 # vérifier que c'est accessible
Terminal window
ls /mnt/gluster # vérifier si le volume est accessible
touch /mnt/gluster/test.txt # tester l’écriture
ls -l /mnt/gluster # vérifier que le fichier a été créé
Terminal window
nano /etc/network/interfaces

Procédure projet SAN BORG CLIENT afpa

Mettre à jour /etc/hosts avec les interlocuteurs

Section titled “Mettre à jour /etc/hosts avec les interlocuteurs”
Terminal window
nano /etc/hosts

Procédure projet SAN BORG CLIENT afpa

Terminal window
sudo apt update
sudo apt install borgbackup –y
Terminal window
sudo apt install glusterfs-client –y
Terminal window
ping gluster
ping gluster.gluster.san.local

Procédure projet SAN BORG CLIENT afpa

Terminal window
sudo mkdir -p /mnt/gluster
Terminal window
sudo mount -t glusterfs 192.168.75.100:/gv0 /mnt/gluster
ls /mnt/gluster # vérifier que c'est accessible