informatique:glusterfs
Ceci est une ancienne révision du document !
GlusterFS
- glusterfs-01: Scaleway DEV1-M, 3 x vCPU, 4 GB, 40 GB NVMe, 300 Mbit/s
- glusterfs-02: OVH B2-7, 2 x vCPU, 7 GB, 50 GB SSD, 250 Mbit/s
Debian 10 (Buster)
root@glusterfs-01:~# ping -c 6 glusterfs-02 --- glusterfs-02 ping statistics --- 6 packets transmitted, 6 received, 0% packet loss, time 13ms rtt min/avg/max/mdev = 6.097/6.221/6.390/0.122 ms debian@glusterfs-02:~$ ping -c 6 glusterfs-01 --- glusterfs-01 ping statistics --- 6 packets transmitted, 6 received, 0% packet loss, time 13ms rtt min/avg/max/mdev = 6.112/6.355/6.783/0.219 ms
Install
À faire sur les 2 machines
# Mise à jour
$ sudo apt update && sudo apt upgrade -y
$ sudo apt install software-properties-common -y
# Dépot GlusterFS
# "LATEST" remplacé par "9" pour trouver "rsa.pub"
$ wget -O - https://download.gluster.org/pub/gluster/glusterfs/9/rsa.pub | sudo apt-key add -
$ DEBID=$(grep 'VERSION_ID=' /etc/os-release | cut -d '=' -f 2 | tr -d '"')
$ DEBVER=$(grep 'VERSION=' /etc/os-release | grep -Eo '[a-z]+')
$ DEBARCH=$(dpkg --print-architecture)
$ echo deb https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/${DEBID}/${DEBARCH}/apt ${DEBVER} main | sudo tee /etc/apt/sources.list.d/gluster.list
# Install server & client
$ sudo apt update
$ sudo apt install glusterfs-server glusterfs-client
# Démarrer et activer le service
$ sudo systemctl start glusterd
$ sudo systemctl enable glusterd
informatique/glusterfs.1629209637.txt.gz · Dernière modification : de cyrille
