volume src1
	type protocol/client
	option transport-type socket
	option transport.address-family inet
	option remote-host 10.2.0.11
	option remote-port 7001
	option remote-subvolume src1
end-volume

volume src1-writebehind
        type performance/write-behind
        option cache-size 2MB           # default is equal to aggregate-size
        option flush-behind on          # default is 'off'
        option enable-O_SYNC on
        subvolumes src1
end-volume

volume src1-iocache
        type performance/io-cache
        option cache-size 64MB
        option cache-timeout 2          # default is 1 second
        subvolumes src1-writebehind
end-volume

##############################################################################

volume src3
	type protocol/client
	option transport-type socket
	option transport.address-family inet
	option remote-host 10.2.0.13
	option remote-port 7001
	option remote-subvolume src3
end-volume

volume src3-writebehind
        type performance/write-behind
        option cache-size 2MB           # default is equal to aggregate-size
        option flush-behind on          # default is 'off'
        option enable-O_SYNC on
        subvolumes src3
end-volume

volume src3-iocache
        type performance/io-cache
        option cache-size 64MB
        option cache-timeout 2          # default is 1 second
        subvolumes src3-writebehind
end-volume

##############################################################################

volume src-store
	type storage/posix
	option directory /gluster/src
end-volume

volume src2
	type features/posix-locks
	subvolumes src-store
end-volume

volume src2-writebehind
        type performance/write-behind
        option cache-size 2MB           # default is equal to aggregate-size
        option flush-behind on          # default is 'off'
        option enable-O_SYNC on
        subvolumes src2
end-volume

volume src2-iocache
        type performance/io-cache
        option cache-size 64MB
        option cache-timeout 2          # default is 1 second
        subvolumes src2-writebehind
end-volume

##############################################################################

volume server
	type protocol/server
	option transport-type socket
	option transport.address-family inet
	option transport.socket.listen-port 7001
	subvolumes src2
	option auth.addr.src2.allow 127.0.0.1,10.*
end-volume

volume src
	type cluster/replicate
	subvolumes src2-iocache src1-iocache src3-iocache
	option read-subvolume src2-iocache
	option favorite-child src2-iocache
end-volume

volume server-src
	type protocol/server
	option transport-type socket
	option transport.address-family inet
	option transport.socket.listen-port 7002
	subvolumes src
	option auth.addr.src.allow 127.0.0.1,10.*
end-volume
