root@santa1:/etc/glusterfs# cat glusterfs-server.vol ### file: server-volume.spec.sample ############################################## ### GlusterFS Server Volume Specification ## ############################################## #### CONFIG FILE RULES: ### "#" is comment character. ### - Config file is case sensitive ### - Options within a volume block can be in any order. ### - Spaces or tabs are used as delimitter within a line. ### - Multiple values to options will be : delimitted. ### - Each option should end within a line. ### - Missing or commented fields will assume default values. ### - Blank/commented lines are allowed. ### - Sub-volumes should already be defined above before referring. ### Export volume "brick" with the contents of "/home/export" directory. volume mailspool-ds type storage/posix # POSIX FS translator option directory /home/export/mailspool # Export this directory end-volume volume mailspool-ns type storage/posix # POSIX FS translator option directory /home/export/mailspool-ns # Export this directory end-volume volume mailspool-santa2-ds type protocol/client option transport-type tcp/client option remote-host 192.168.252.2 option remote-subvolume mailspool-ds end-volume volume mailspool-santa2-ns type protocol/client option transport-type tcp/client option remote-host 192.168.252.2 option remote-subvolume mailspool-ns end-volume volume mailspool-santa3-ds type protocol/client option transport-type tcp/client option remote-host 192.168.252.3 option remote-subvolume mailspool-ds end-volume volume mailspool-santa3-ns type protocol/client option transport-type tcp/client option remote-host 192.168.252.3 option remote-subvolume mailspool-ns end-volume volume mailspool-ds-io type performance/io-threads option thread-count 8 option cache-size 64MB subvolumes mailspool-ds end-volume volume mailspool-ns-io type performance/io-threads option thread-count 8 option cache-size 64MB subvolumes mailspool-ns end-volume volume mailspool-santa2-ds-io type performance/io-threads option thread-count 8 option cache-size 64MB subvolumes mailspool-santa2-ds end-volume volume mailspool-santa2-ns-io type performance/io-threads option thread-count 8 option cache-size 64MB subvolumes mailspool-santa2-ns end-volume volume mailspool-santa3-ds-io type performance/io-threads option thread-count 8 option cache-size 64MB subvolumes mailspool-santa3-ds end-volume volume mailspool-santa3-ns-io type performance/io-threads option thread-count 8 option cache-size 64MB subvolumes mailspool-santa3-ns end-volume volume mailspool-ns-afr type cluster/afr subvolumes mailspool-ns-io mailspool-santa2-ns-io mailspool-santa3-ns-io option replicate *:3 end-volume volume mailspool-ds-afr type cluster/afr subvolumes mailspool-ds-io mailspool-santa2-ds-io mailspool-santa3-ds-io option replicate *:3 end-volume volume mailspool-ns-io type performance/io-threads option thread-count 8 option cache-size 64MB subvolumes mailspool-ns-afr end-volume volume mailspool-ds-io type performance/io-threads option thread-count 8 option cache-size 64MB subvolumes mailspool-ds-afr end-volume volume mailspool-unify type cluster/unify subvolumes mailspool-ds-io option namespace mailspool-ns-io option scheduler rr end-volume volume mailspool type performance/io-threads option thread-count 8 option cache-size 64MB subvolumes mailspool-unify end-volume ### Add network serving capability to above brick. volume server type protocol/server option transport-type tcp/server # For TCP/IP transport subvolumes mailspool option auth.ip.mailspool-ds.allow 192.168.252.*,127.0.0.1 # Allow access to "brick" volume option auth.ip.mailspool-ns.allow 192.168.252.*,127.0.0.1 # Allow access to "brick" volume option auth.ip.mailspool.allow * # Allow access to "brick" volume end-volume