Hi,
<br>
<br> I have a problem. I need to replicate data between three machines. Two of machines are servers and one is a client.
<br><br>
If I change data in client, also changed in the two servers. And if I change any data on a server1, also changed in the other server2 and
client. <br><br>I have done tests with the tutorials of glusterfs, but I donīt have good results.<br>
<br> Someone who can help me? <br><br>#server1<br><pre>volume brick1<br> type storage/posix<br> option directory /home/export #created<br>end-volume<br><br>volume brick2<br> type protocol/client<br> option transport-type tcp/client<br>
option remote-host 192.168.x.x # IP address of server2<br> option remote-subvolume brick1 # use brick1 on server2<br>end-volume<br><br>volume afr<br> type cluster/afr<br> subvolumes brick1 brick2<br>end-volume<br>
<br>volume server<br> type protocol/server<br> option transport-type tcp/server<br> subvolumes brick1 afr<br> option auth.ip.brick1.allow *all<br> option auth.ip.afr.allow *all<br>end-volumevolume brick1<br><br>
</pre>#server2<br><pre>volume brick1<br> type storage/posix<br> option directory /home/export #created<br>end-volume<br><br>volume brick2<br> type protocol/client<br> option transport-type tcp/client<br> option remote-host 192.168.x.x # IP address of server1<br>
option remote-subvolume brick1 # use brick1 on server1<br>end-volume<br><br>volume afr<br> type cluster/afr<br> subvolumes brick2 brick1<br>end-volume<br><br>volume server<br> type protocol/server<br> option transport-type tcp/server<br>
subvolumes brick1 afr<br> option auth.ip.brick1.allow * #all<br> option auth.ip.afr.allow * #all<br>end-volume<br></pre><br>#client<br><pre>volume brick<br> type protocol/client<br> option transport-type tcp/client # for TCP/IP transport<br>
option remote-host 192.168.x.x # IP address of the server ----> IP of the server1<br> option remote-subvolume afr # name of the remote volume<br>end-volume<br></pre>Best Regards<br clear="all"><br>-- <br>Alain Gonzalez<br>