Установка и настройка GlusterFS на двух нодах с репликацией тома Ноды, на которых устаналивается GlusterFS-сервер используют Debian9
1 2 |
proxmox6.mydomain.com - 192.168.100.1 proxmox7.mydomain.com - 192.168.100.2 |
В качестве GlusterFS-сервера используем Ubuntu16.04 LTS Установка GlusterFS-сервера на обоих нодах Создание и выполнение скрипта для добавления репозитария GlusterFS на Debian
1 |
# nano add_repo.sh |
1 2 3 4 5 6 |
# /bin/bash wget -O - https://download.gluster.org/pub/gluster/glusterfs/4.1/rsa.pub | 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 > /etc/apt/sources.list.d/gluster.list |
1 |
# chmod +x add_repo.sh |
1 |
# bash add_repo.sh |
Проверяем добавленный репозитарий
1 |
# cat /etc/apt/sources.list.d/gluster.list |
1 |
deb https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/9/amd64/apt stretch main |
1 |
# apt-get update && apt-get install glusterfs-server |
1 |
# systemctl status glusterd |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
● glusterd.service - GlusterFS, a clustered file-system server Loaded: loaded (/lib/systemd/system/glusterd.service; enabled; vendor preset: enabled) Active: active (running) since Thu 2018-05-17 22:05:44 BST; 34s ago Process: 12431 ExecStart=/usr/sbin/glusterd -p /var/run/glusterd.pid --log-level $LOG_LEVEL $GLUSTERD_OPTIONS (code=exited, status=0/SUCCESS) Main PID: 12438 (glusterd) Tasks: 8 (limit: 4915) Memory: 5.9M CPU: 657ms CGroup: /system.slice/glusterd.service └─12438 /usr/sbin/glusterd -p /var/run/glusterd.pid --log-level INFO May 17 22:05:43 proxmox6 systemd[1]: Starting GlusterFS, a clustered file-system server... May 17 22:05:44 proxmox6 systemd[1]: Started GlusterFS, a clustered file-system server. |
1 |
# systemctl status glustereventsd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
● glustereventsd.service - Gluster Events Notifier Loaded: loaded (/lib/systemd/system/glustereventsd.service; enabled; vendor preset: enabled) Active: active (running) since Thu 2018-05-17 22:05:44 BST; 1min 0s ago Main PID: 12486 (python) Tasks: 2 (limit: 4915) Memory: 10.2M CPU: 69ms CGroup: /system.slice/glustereventsd.service ├─12486 python /usr/sbin/glustereventsd --pid-file /var/run/glustereventsd.pid └─12538 python /usr/sbin/glustereventsd --pid-file /var/run/glustereventsd.pid May 17 22:05:44 proxmox6 systemd[1]: Started Gluster Events Notifier. May 17 22:05:44 proxmox6 glustereventsd[12486]: Unable to get Port details from Config |
[…]