<div dir="ltr">Hi.<br><br>Thanks for the example, but how actually server-side AFR works?<br><br>I mean, when you put a file on one server, it writes to the second one? And vice-versa?<br><br>Regards.<br><br><div class="gmail_quote">
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">here&#39;s my server configs:<br>
<br>
volume home1<br>
 &nbsp;type storage/posix &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # POSIX FS translator<br>
 &nbsp;option directory /gluster/home &nbsp; &nbsp; &nbsp; &nbsp;# Export this directory<br>
end-volume<br>
<br>
volume posix-locks-home1<br>
 &nbsp;type features/posix-locks<br>
 &nbsp;option mandatory on<br>
 &nbsp;subvolumes home1<br>
end-volume<br>
<br>
## Reference volume &quot;home2&quot; from remote server<br>
volume home2<br>
 &nbsp;type protocol/client &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # POSIX FS translator<br>
 &nbsp;option transport-type tcp/client<br>
 &nbsp;option remote-host <a href="http://192.168.2.2" target="_blank">192.168.2.2</a> &nbsp; &nbsp; &nbsp; # IP address of remote host<br>
 &nbsp;option remote-subvolume posix-locks-home1 &nbsp; &nbsp; # use home1 on remote host<br>
 &nbsp;option transport-timeout 10<br>
end-volume<br>
<br>
### Create automatic file replication<br>
volume home<br>
 &nbsp;type cluster/afr<br>
 &nbsp;option read-subvolume posix-locks-home1<br>
 &nbsp;subvolumes posix-locks-home1 home2<br>
end-volume<br>
<br>
### Add network serving capability to above home.<br>
volume server<br>
 &nbsp;type protocol/server<br>
 &nbsp;option transport-type tcp/server &nbsp; &nbsp; # For TCP/IP transport<br>
 &nbsp;subvolumes posix-locks-home1<br>
 &nbsp;option auth.addr.posix-locks-home1.allow <a href="http://192.168.2.2" target="_blank">192.168.2.2</a>,<a href="http://127.0.0.1" target="_blank">127.0.0.1</a><br>
<br>
<br>
###I believe the following will do what you want, it&#39;s not exactly the same as mine since I added the auth option for the clients (192.168.1.x) to mount home--the AFR volume<br>
 &nbsp;option auth.addr.home.allow <a href="http://92.168.1.1" target="_blank">92.168.1.1</a>,<a href="http://192.168.1.2" target="_blank">192.168.1.2</a>,<a href="http://127.0.0.1" target="_blank">127.0.0.1</a> #<br>
end-volume<br>
<br>
<br>
<br>
</blockquote></div></div>