Hi,<br><br>With your help I have these results: <br><br>1- Changed data on server1, data changed on server2 and client. OK<br>2- Changed data on client, data changed on server1 and server2. OK<br>3- Changed data on server2, data <b>no </b>changed on server1 and client. :(<br>
<br>config:<br><br>#server1<br><br>volume ser01<br>&nbsp;type storage/posix<br>&nbsp;option directory /home/export/<br>end-volume<br><br>volume ser011<br>&nbsp;type features/locks<br>&nbsp;subvolumes ser01<br>end-volume<br><br>### Add network serving capability to above brick.<br>
volume server<br>&nbsp;type protocol/server<br>&nbsp;option transport-type tcp<br>&nbsp;subvolumes ser011<br>&nbsp;option auth.addr.ser01.allow * # Allow access to &quot;ser01&quot; volume<br>&nbsp;option auth.addr.ser011.allow * # Allow access to &quot;ser011&quot; volume<br>
end-volume<br><br>#server2<br><br>volume ser02<br>&nbsp;type storage/posix<br>&nbsp;option directory /home/export/<br>end-volume<br><br>volume ser022<br>&nbsp;type features/locks<br>&nbsp;subvolumes ser02<br>end-volume<br><br>### Add network serving capability to above brick.<br>
volume server<br>&nbsp;type protocol/server<br>&nbsp;option transport-type tcp<br>&nbsp;subvolumes ser022<br>&nbsp;option auth.addr.ser02.allow * # Allow access to &quot;ser02&quot; volume<br>&nbsp;option auth.addr.ser022.allow * # Allow access to &quot;ser022&quot; volume<br>
end-volume<br><br>#client<br><br>### Add client feature and attach to remote subvolume of server1<br>volume cli01<br>&nbsp;type protocol/client<br>&nbsp;option transport-type tcp/client<br>&nbsp;option remote-host 192.168.240.227&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # IP address of the remote brick<br>
&nbsp;option remote-subvolume ser011&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # name of the remote volume<br>end-volume<br><br>### Add client feature and attach to remote subvolume of server2<br>volume cli02<br>&nbsp;type protocol/client<br>&nbsp;option transport-type tcp<br>
&nbsp;option remote-host 192.168.240.228&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # IP address of the remote brick<br>&nbsp;option remote-subvolume ser022&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # name of the remote volume<br>end-volume<br><br>volume afr<br>&nbsp;type cluster/afr<br>&nbsp;subvolumes cli01 cli02<br>
end-volume<br><br>Regards<br><br><div class="gmail_quote">2009/2/13 Krishna Srinivas <span dir="ltr">&lt;<a href="mailto:krishna@zresearch.com">krishna@zresearch.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">On Fri, Feb 13, 2009 at 1:50 PM, Alain Gonzalez &lt;<a href="mailto:alaingonza@gmail.com">alaingonza@gmail.com</a>&gt; wrote:<br>
&gt; I changed vol files, because I need data replicated on three machine (two<br>
&gt; servers and one client). If I changed data on 1 machine, data must be<br>
&gt; changed on the other two machines...<br>
&gt;<br>
&gt; My actual vol file:<br>
&gt;<br>
&gt; Server1:<br>
&gt;<br>
&gt; volume brick<br>
&gt; &nbsp;type storage/posix<br>
&gt; &nbsp;option directory /home/export/<br>
&gt; end-volume<br>
&gt;<br>
&gt;<br>
&gt; ### Add network serving capability to above brick.<br>
&gt; volume server<br>
&gt; &nbsp;type protocol/server<br>
&gt; &nbsp;option transport-type tcp<br>
&gt; &nbsp;subvolumes brick<br>
&gt; &nbsp;option auth.addr.brick.allow * # Allow access to &quot;brick&quot; volume<br>
&gt; end-volume<br>
&gt;<br>
&gt; Server2<br>
&gt;<br>
&gt; volume brick<br>
&gt; &nbsp;type storage/posix<br>
&gt; &nbsp;option directory /home/export/<br>
&gt; end-volume<br>
&gt;<br>
&gt; ### Add network serving capability to above brick.<br>
&gt; volume server<br>
&gt; &nbsp;type protocol/server<br>
&gt; &nbsp;option transport-type tcp<br>
&gt; &nbsp;subvolumes brick<br>
&gt; &nbsp;option auth.addr.brick.allow * # Allow access to &quot;brick&quot; volume<br>
&gt; end-volume<br>
&gt;<br>
&gt; Client:<br>
&gt;<br>
&gt; ### Add client feature and attach to remote subvolume of server1<br>
&gt; volume brick1<br>
&gt; &nbsp;type protocol/client<br>
&gt; &nbsp;option transport-type tcp<br>
&gt; &nbsp;option remote-host 192.168.240.227 &nbsp; &nbsp; &nbsp;# IP address of the remote brick<br>
&gt; &nbsp;option remote-subvolume brick &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # name of the remote volume<br>
&gt; end-volume<br>
&gt;<br>
&gt; ### Add client feature and attach to remote subvolume of server2<br>
&gt; volume brick2<br>
&gt; &nbsp;type protocol/client<br>
&gt; &nbsp;option transport-type tcp<br>
&gt; &nbsp;option remote-host 192.168.240.228 &nbsp; &nbsp; &nbsp;# IP address of the remote brick<br>
&gt; &nbsp;option remote-subvolume brick &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # name of the remote volume<br>
&gt; end-volume<br>
&gt;<br>
&gt; volume afr<br>
&gt; &nbsp;type cluster/afr<br>
&gt; &nbsp;subvolumes brick1 brick2<br>
&gt; end-volume<br>
&gt;<br>
&gt; Raghavendra G said me that in Glusterfs 2.0 requires posix-locks. I proved<br>
&gt; changed &quot;type storage/posix&quot; for &quot;type features/posix-locks&quot; but not working<br>
&gt; correctly.<br>
&gt;<br>
<br>
<br>
</div></div>You need to have a separate &quot;features/locks&quot; translator between<br>
&quot;storage/posix&quot; and &quot;protocol/server&quot; volumes.<br>
</blockquote></div><br><br clear="all"><br>-- <br>Alain Gonzalez<br>