Configurare un cluster di storage distribuito con GlusterFS in Proxmox
Jump to navigation
Jump to search
- Creare un dataset ZFS su ogni nodo del cluster:
zfs create GLUSTER-TEST/gluster-test -o mountpoint=/media/gluster-test 67 zfs set compression=lz4 GLUSTER-TEST 68 zfs get compression GLUSTER-TEST 69 zfs get compression GLUSTER-TEST/gluster-test 70 zfs set acltype=posixacl GLUSTER-TEST 71 dpkg -l | grep gluster
echo "options zfs zfs_arc_min=8G zfs_arc_max=18G zfs_vdev_min_pending=1 zfs_vdev_max_pending=1 zfs_prefetch_disable=1 zfs_txg_timeout=5" > /etc/modprobe.d/zfs.conf
- Installare i pacchetti su tutti i nodi
apt install glusterfs-server glusterfs-client
- Abilitare e far partire il daemon:
systemctl enable glusterd.service ; systemctl start glusterd.service ; systemctl status glusterd.service
- Inserire i nomi di tutti i nodi su tutti i nodi in /etc/hosts
vi /etc/hosts
...
- Sul primo nodo, collegare gli altri:
gluster peer probe node2 gluster peer probe node3
- Sul primo nodo, crrare un nodo replicato su tutti gli altri:
gluster volume create \ gluster-test \ replica 3 \ node01.mydomain.net:/export/sdb1/brick \ node02.mydomain.net:/export/sdb1/brick \ node03.mydomain.net:/export/sdb1/brick
- Verificare
gluster volume info
- Avviare il volume
gluster volume start gluster-test
Riferimenti