########################################################################################## # # storage-node-01.my-domain.local:/etc/glusterfs/glusterfs-server.vol # ########################################################################################## ### Exporte le répertoire /home/export en tant que volume "brick" volume brick type storage/posix option directory /home/export end-volume ### Exporte le répertoire /home/afr-export en tant que volume "brick-afr" volume brick-afr type storage/posix option directory /home/afr-export end-volume ### Partage les deux volumes via un serveur TCP volume server type protocol/server subvolumes brick brick-afr option transport-type tcp/server # For TCP/IP transport option auth.ip.brick.allow * # access to "brick" volume option auth.ip.brick-afr.allow * # access to "brick" volume end-volume ########################################################################################## # # storage-node-02.my-domain.local:/etc/glusterfs/glusterfs-server.vol # ########################################################################################## ### Exporte le répertoire /home/export en tant que volume "brick" volume brick type storage/posix option directory /home/export end-volume ### Exporte le répertoire /home/afr-export en tant que volume "brick-afr" volume brick-afr type storage/posix option directory /home/afr-export end-volume ### Partage les deux volumes via un serveur TCP volume server type protocol/server subvolumes brick brick-afr option transport-type tcp/server # For TCP/IP transport option auth.ip.brick.allow * # access to "brick" volume option auth.ip.brick-afr.allow * # access to "brick" volume end-volume ########################################################################################## # # front-node-01.my-domain.local:/etc/glusterfs/glusterfs-client.vol # ########################################################################################## ### Etablie une connection cliente sur storage-node-01.my-domain.local:brick volume brick1 type protocol/client option transport-type tcp/client option remote-host 192.168.1.10 # adresse IP de storage-node-01.my-domain.local option remote-subvolume brick end-volume ### Etablie une connection cliente sur storage-node-01.my-domain.local:brick-afr volume brick1-afr type protocol/client option transport-type tcp/client option remote-host 192.168.1.10 # adresse IP de storage-node-01.my-domain.local option remote-subvolume brick-afr end-volume ### Etablie une connection cliente sur storage-node-02.my-domain.local:brick volume brick2 type protocol/client option transport-type tcp/client option remote-host 192.168.1.11 # adresse IP de storage-node-02.my-domain.local option remote-subvolume brick end-volume ### Etablie une connection cliente sur storage-node-02.my-domain.local:brick-afr volume brick2-afr type protocol/client option transport-type tcp/client option remote-host 192.168.1.11 # adresse IP de storage-node-02.my-domain.local option remote-subvolume brick-afr end-volume ### Couple brick1 et brick2-afr en mirroir volume afr1 type cluster/afr subvolumes brick1 brick2-afr option replicate *.html:2,*.db:1,*:2 # *.html -> en mirroir # *.db -> uniquement sur brick1 # tout le reste -> en mirroir end-volume ### Couple brick2 et brick1-afr en mirroir volume afr2 type cluster/afr subvolumes brick2 brick1-afr option replicate *.html:2,*.db:1,*:2 # *.html -> en mirroir # *.db -> uniquement sur brick2 # tout le reste -> en mirroir end-volume ### Unifie les deux volumes de stockage pour distribuer la charge volume bricks type cluster/unify subvolumes afr1 afr2 option scheduler rr option rr.limits.min-free-disk 5% end-volume