   volume data1-ds
           type storage/posix                   	# POSIX FS translator
           option directory /glusterfs/data1    	# Export this directory
   end-volume
 
   volume data1-ns
           type storage/posix                   	# POSIX FS translator
           option directory /glusterfs/namespace1       # Export this directory
   end-volume
 
   volume data1-gluster1-ds
           type protocol/client
           option transport-type tcp/client
           option remote-host 127.0.0.1
           option remote-subvolume data1-ds
   end-volume
 
   volume data1-gluster1-ns
           type protocol/client
           option transport-type tcp/client
           option remote-host 127.0.0.1
           option remote-subvolume data1-ns
   end-volume
 
   volume data1-gluster2-ds
           type protocol/client
           option transport-type tcp/client
           option remote-host 192.168.0.138
           option remote-subvolume data1-ds
   end-volume
 
   volume data1-gluster2-ns
           type protocol/client
           option transport-type tcp/client
           option remote-host 192.168.0.138
           option remote-subvolume data1-ns
   end-volume

# Add AFR to Datastorage
   volume data1-ds-afr
           type cluster/afr
           # There appears to be a bug with AFR and Local Posix Volumes.
           # To get around this we pretend the local volume is remote with an extra client volume named mailspool-santa1-ds.
           subvolumes data1-gluster1-ds data1-gluster2-ds
           option replicate *:2
   end-volume

# Add AFR to Namespacestorage
   volume data1-ns-afr
           type cluster/afr
           # There appears to be a bug with AFR and Local Posix Volumes.
           # To get around this we pretend the local volume is remote with an extra client volume named mailspool-santa1-ns.
           # subvolumes mailspool-ns mailspool-santa2-ns mailspool-santa3-ns
           subvolumes data1-gluster1-ns data1-gluster2-ns
           option replicate *:2
   end-volume
 
# Unify
   volume data1-unify
           type cluster/unify
           subvolumes data1-ds-afr
           option namespace data1-ns-afr
           option scheduler rr
   end-volume

# Performance
   volume data1
           type performance/io-threads
           option thread-count 8
           option cache-size 64MB
           subvolumes data1-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 data1
     option auth.ip.data1-ds.allow 192.168.0.*,127.0.0.1 # Allow access to "brick" volume
     option auth.ip.data1-ns.allow 192.168.0.*,127.0.0.1 # Allow access to "brick" volume
     option auth.ip.data1.allow * # Allow access to "brick" volume
   end-volume
