client


volume client1
  type protocol/client
  option transport-type tcp/client
  option remote-host 127.0.0.1
  option remote-port 6996
  option remote-subvolume brick
end-volume

volume client2
  type protocol/client
  option transport-type tcp/client
  option remote-host 127.0.0.1
  option remote-port 6997
  option remote-subvolume brick
end-volume

volume afr1
  type cluster/afr
  subvolumes client1 client2
  option replicate *:2
  option debug on
end-volume

Server 1


volume posix
  type storage/posix
  option directory /home/rhesa/gluster.test/node1
end-volume

volume brick
  type features/posix-locks
  option mandatory on
  subvolumes posix
end-volume

volume server
  type protocol/server
  option transport-type tcp/server
  option listen-port 6996
  subvolumes brick
  option auth.ip.brick.allow *
end-volume

Server 2


volume posix
  type storage/posix
  option directory /home/rhesa/gluster.test/node2
end-volume

volume brick
  type features/posix-locks
  option mandatory on
  subvolumes posix
end-volume

volume server
  type protocol/server
  option transport-type tcp/server
  option listen-port 6997
  subvolumes brick
  option auth.ip.brick.allow *
end-volume