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

volume home1-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 home1
end-volume

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

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

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

volume home3-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 home3
end-volume

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

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

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

volume home2
	type features/posix-locks
	subvolumes home-store
end-volume

volume home2-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 home2
end-volume

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

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

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

volume home
	type cluster/replicate
	subvolumes home2-iocache home1-iocache home3-iocache
	option read-subvolume home2-iocache
	option favorite-child home2-iocache
end-volume
