<div dir="ltr">Hi.<br><br>Did you mean to change their order to become something like this?<br><br>Otherwise can you please just post the correct version? I&#39;m not quite familiar with the syntax, and will appreciate an example I can work and learn from.<br>
<br>Thanks!<br><br><br><div>glusterfs.vol (client)</div><div><br></div><div><div class="im"><div><div class="im"><div>### Create automatic file replication</div><div>volume home</div><div> type cluster/afr</div><div> option metadata-self-heal on</div>
<div> option read-subvolume posix-locks-home1</div>
<div>#  option favorite-child home2</div></div><div class="im"><div> subvolumes posix-locks-home1 home2</div><div>end-volume</div></div>
<div><br></div>
## Reference volume &quot;home2&quot; from remote server</div><div>volume home2</div><div> type protocol/client</div><div> option transport-type tcp/client</div>
<div> option remote-host 192.168.253.41      # IP address of remote host</div><div> option remote-subvolume posix-locks-home1     # use home1 on remote host</div><div> option transport-timeout 10           # value in seconds; it should be set relatively low</div>

<div>end-volume</div><div><br></div></div><br></div><div>glusterfsd.vol (server)<br><br><div>### Add network serving capability to above home.</div>
<div>volume server</div>
<div> type protocol/server</div>
<div> option transport-type tcp</div>
<div> subvolumes posix-locks-home1</div>

<div> option auth.addr.posix-locks-home1.allow 192.168.253.41,127.0.0.1 # Allow access to &quot;home1&quot; volume</div>
<div>end-volume</div>
<br><div>volume posix-locks-home1</div><div> type features/posix-locks</div><div> option mandatory-locks on</div><div>
 subvolumes home1</div><div>end-volume</div><div><br></div></div><div class="im"><div>volume home1</div><div> type storage/posix                   # POSIX FS translator</div>
<div> option directory /media/storage        # Export this directory</div><div>end-volume</div><div><br></div></div>Regards.<br><br><div class="gmail_quote">2009/3/12 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;">Hi Stats,<br>
Excuse me for missing out on this mail.<br>
<br>
Your vol files for having 2 servers and 2 clients are incorrect.<br>
<br>
on server vol (both the machines) you need to have:<br>
protocol/server -&gt; features/locks -&gt; storage/posix<br>
<br>
On client vol (both the machines) you need to have:<br>
cluster/afr -&gt; (two protocol/clients)<br>
<br>
each of the protocol/clients connect to each of the servers.<br>
<br>
You would use the client vol to mount the glusterfs.<br>
<br>
Let us know if you still face problems.<br>
<font color="#888888"><br>
Krishna<br>
</font><div><div></div><div class="h5"><br>
On Tue, Mar 10, 2009 at 1:32 AM, Stas Oskin &lt;<a href="mailto:stas.oskin@gmail.com">stas.oskin@gmail.com</a>&gt; wrote:<br>
&gt; Hi.<br>
&gt; The boxes participating in AFR are running OpenVZ host kernels - can it be<br>
&gt; related in any way to the issue?<br>
&gt; Regards.<br>
&gt;<br>
&gt; 2009/3/9 Stas Oskin &lt;<a href="mailto:stas.oskin@gmail.com">stas.oskin@gmail.com</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; Hi.<br>
&gt;&gt; These are my new 2 vol files, one for client and one for server.<br>
&gt;&gt; Can you advice if they are correct?<br>
&gt;&gt; Thanks in advance.<br>
&gt;&gt; glusterfs.vol (client)<br>
&gt;&gt; ## Reference volume &quot;home2&quot; from remote server<br>
&gt;&gt; volume home2<br>
&gt;&gt;  type protocol/client<br>
&gt;&gt;  option transport-type tcp/client<br>
&gt;&gt;  option remote-host 192.168.253.41      # IP address of remote host<br>
&gt;&gt;  option remote-subvolume posix-locks-home1     # use home1 on remote host<br>
&gt;&gt;  option transport-timeout 10           # value in seconds; it should be<br>
&gt;&gt; set relatively low<br>
&gt;&gt; end-volume<br>
&gt;&gt; ### Create automatic file replication<br>
&gt;&gt; volume home<br>
&gt;&gt;  type cluster/afr<br>
&gt;&gt;  option metadata-self-heal on<br>
&gt;&gt;  option read-subvolume posix-locks-home1<br>
&gt;&gt; #  option favorite-child home2<br>
&gt;&gt;  subvolumes posix-locks-home1 home2<br>
&gt;&gt; end-volume<br>
&gt;&gt;<br>
&gt;&gt; glusterfsd.vol (server)<br>
&gt;&gt;<br>
&gt;&gt; volume home1<br>
&gt;&gt;  type storage/posix                   # POSIX FS translator<br>
&gt;&gt;  option directory /media/storage        # Export this directory<br>
&gt;&gt; end-volume<br>
&gt;&gt; volume posix-locks-home1<br>
&gt;&gt;  type features/posix-locks<br>
&gt;&gt;  option mandatory-locks on<br>
&gt;&gt;  subvolumes home1<br>
&gt;&gt; end-volume<br>
&gt;&gt; ### Add network serving capability to above home.<br>
&gt;&gt; volume server<br>
&gt;&gt;  type protocol/server<br>
&gt;&gt;  option transport-type tcp<br>
&gt;&gt;  subvolumes posix-locks-home1<br>
&gt;&gt;  option auth.addr.posix-locks-home1.allow 192.168.253.41,127.0.0.1 # Allow<br>
&gt;&gt; access to &quot;home1&quot; volume<br>
&gt;&gt; end-volume<br>
&gt;&gt; 2009/3/9 Krishna Srinivas &lt;<a href="mailto:krishna@zresearch.com">krishna@zresearch.com</a>&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Stats,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I think there was nothing changed between rc2 and rc4 that could<br>
&gt;&gt;&gt; affect this functionality.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Your vol files look fine, i will look into why it is not working.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Do not use single process as both server and client as we saw issues<br>
&gt;&gt;&gt; related to locking. Can you see if using different processes for<br>
&gt;&gt;&gt; server and client works fine w.r.t replication?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Also subvolumes list of all AFRs should be in same order (in your case<br>
&gt;&gt;&gt; its interchanged)<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Regards<br>
&gt;&gt;&gt; Krishna<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Mon, Mar 9, 2009 at 5:44 PM, Stas Oskin &lt;<a href="mailto:stas.oskin@gmail.com">stas.oskin@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt; &gt; Actually, I see a new version came out, rc4.<br>
&gt;&gt;&gt; &gt; Any idea if anything related was fixed?<br>
&gt;&gt;&gt; &gt; Regards.<br>
&gt;&gt;&gt; &gt; 2009/3/9 Stas Oskin &lt;<a href="mailto:stas.oskin@gmail.com">stas.oskin@gmail.com</a>&gt;<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; Hi.<br>
&gt;&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;&gt; Was it working for your previously? Any other error logs on machine<br>
&gt;&gt;&gt; &gt;&gt;&gt; with afr? what version are you using? If it was working previously<br>
&gt;&gt;&gt; &gt;&gt;&gt; what changed in your setup recently? Can you paste your vol files<br>
&gt;&gt;&gt; &gt;&gt;&gt; (just to be sure)<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; Nope, it actually my first setup in lab. No errors - it just seems as<br>
&gt;&gt;&gt; &gt;&gt; not<br>
&gt;&gt;&gt; &gt;&gt; synchronizing anything. The version I&#39;m using is the latest one - 2<br>
&gt;&gt;&gt; &gt;&gt; rc2.<br>
&gt;&gt;&gt; &gt;&gt; Perhaps I need to modify anything else in addition to GlusterFS<br>
&gt;&gt;&gt; &gt;&gt; installation - like file-systems attributes or something?<br>
&gt;&gt;&gt; &gt;&gt; The approach I&#39;m using is the one that was recommended by Kieth over<br>
&gt;&gt;&gt; &gt;&gt; direct emails (Keith, hope you don&#39;t mind me posting them :) ).<br>
&gt;&gt;&gt; &gt;&gt; The idea is basically to have single vol file both for client and for<br>
&gt;&gt;&gt; &gt;&gt; server, and to have one glusterfs process doing the job both as client<br>
&gt;&gt;&gt; &gt;&gt; and<br>
&gt;&gt;&gt; &gt;&gt; as server.<br>
&gt;&gt;&gt; &gt;&gt; Thanks for the help.<br>
&gt;&gt;&gt; &gt;&gt; Server 1:<br>
&gt;&gt;&gt; &gt;&gt; volume home1<br>
&gt;&gt;&gt; &gt;&gt;  type storage/posix                   # POSIX FS translator<br>
&gt;&gt;&gt; &gt;&gt;  option directory /media/storage        # Export this directory<br>
&gt;&gt;&gt; &gt;&gt; end-volume<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; volume posix-locks-home1<br>
&gt;&gt;&gt; &gt;&gt;  type features/posix-locks<br>
&gt;&gt;&gt; &gt;&gt;  option mandatory-locks on<br>
&gt;&gt;&gt; &gt;&gt;  subvolumes home1<br>
&gt;&gt;&gt; &gt;&gt; end-volume<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; ## Reference volume &quot;home2&quot; from remote server<br>
&gt;&gt;&gt; &gt;&gt; volume home2<br>
&gt;&gt;&gt; &gt;&gt;  type protocol/client<br>
&gt;&gt;&gt; &gt;&gt;  option transport-type tcp/client<br>
&gt;&gt;&gt; &gt;&gt;  option remote-host 192.168.253.42      # IP address of remote host<br>
&gt;&gt;&gt; &gt;&gt;  option remote-subvolume posix-locks-home1     # use home1 on remote<br>
&gt;&gt;&gt; &gt;&gt; host<br>
&gt;&gt;&gt; &gt;&gt;  option transport-timeout 10           # value in seconds; it should<br>
&gt;&gt;&gt; &gt;&gt; be<br>
&gt;&gt;&gt; &gt;&gt; set relatively low<br>
&gt;&gt;&gt; &gt;&gt; end-volume<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; ### Add network serving capability to above home.<br>
&gt;&gt;&gt; &gt;&gt; volume server<br>
&gt;&gt;&gt; &gt;&gt;  type protocol/server<br>
&gt;&gt;&gt; &gt;&gt;  option transport-type tcp<br>
&gt;&gt;&gt; &gt;&gt;  subvolumes posix-locks-home1<br>
&gt;&gt;&gt; &gt;&gt;  option auth.addr.posix-locks-home1.allow 192.168.253.42,127.0.0.1 #<br>
&gt;&gt;&gt; &gt;&gt; Allow<br>
&gt;&gt;&gt; &gt;&gt; access to &quot;home1&quot; volume<br>
&gt;&gt;&gt; &gt;&gt; end-volume<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; ### Create automatic file replication<br>
&gt;&gt;&gt; &gt;&gt; volume home<br>
&gt;&gt;&gt; &gt;&gt;  type cluster/afr<br>
&gt;&gt;&gt; &gt;&gt;  option metadata-self-heal on<br>
&gt;&gt;&gt; &gt;&gt;  option read-subvolume posix-locks-home1<br>
&gt;&gt;&gt; &gt;&gt; #  option favorite-child home2<br>
&gt;&gt;&gt; &gt;&gt;  subvolumes home2 posix-locks-home1<br>
&gt;&gt;&gt; &gt;&gt; end-volume<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; Server 2:<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; volume home1<br>
&gt;&gt;&gt; &gt;&gt;  type storage/posix                   # POSIX FS translator<br>
&gt;&gt;&gt; &gt;&gt;  option directory /media/storage        # Export this directory<br>
&gt;&gt;&gt; &gt;&gt; end-volume<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; volume posix-locks-home1<br>
&gt;&gt;&gt; &gt;&gt;  type features/posix-locks<br>
&gt;&gt;&gt; &gt;&gt;  option mandatory-locks on<br>
&gt;&gt;&gt; &gt;&gt;  subvolumes home1<br>
&gt;&gt;&gt; &gt;&gt; end-volume<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; ## Reference volume &quot;home2&quot; from remote server<br>
&gt;&gt;&gt; &gt;&gt; volume home2<br>
&gt;&gt;&gt; &gt;&gt;  type protocol/client<br>
&gt;&gt;&gt; &gt;&gt;  option transport-type tcp/client<br>
&gt;&gt;&gt; &gt;&gt;  option remote-host 192.168.253.41      # IP address of remote host<br>
&gt;&gt;&gt; &gt;&gt;  option remote-subvolume posix-locks-home1     # use home1 on remote<br>
&gt;&gt;&gt; &gt;&gt; host<br>
&gt;&gt;&gt; &gt;&gt;  option transport-timeout 10           # value in seconds; it should<br>
&gt;&gt;&gt; &gt;&gt; be<br>
&gt;&gt;&gt; &gt;&gt; set relatively low<br>
&gt;&gt;&gt; &gt;&gt; end-volume<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; ### Add network serving capability to above home.<br>
&gt;&gt;&gt; &gt;&gt; volume server<br>
&gt;&gt;&gt; &gt;&gt;  type protocol/server<br>
&gt;&gt;&gt; &gt;&gt;  option transport-type tcp<br>
&gt;&gt;&gt; &gt;&gt;  subvolumes posix-locks-home1<br>
&gt;&gt;&gt; &gt;&gt;  option auth.addr.posix-locks-home1.allow 192.168.253.41,127.0.0.1 #<br>
&gt;&gt;&gt; &gt;&gt; Allow<br>
&gt;&gt;&gt; &gt;&gt; access to &quot;home1&quot; volume<br>
&gt;&gt;&gt; &gt;&gt; end-volume<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; ### Create automatic file replication<br>
&gt;&gt;&gt; &gt;&gt; volume home<br>
&gt;&gt;&gt; &gt;&gt;  type cluster/afr<br>
&gt;&gt;&gt; &gt;&gt;  option metadata-self-heal on<br>
&gt;&gt;&gt; &gt;&gt;  option read-subvolume posix-locks-home1<br>
&gt;&gt;&gt; &gt;&gt; #  option favorite-child home2<br>
&gt;&gt;&gt; &gt;&gt;  subvolumes home2 posix-locks-home1<br>
&gt;&gt;&gt; &gt;&gt; end-volume<br>
&gt;<br>
</div></div></blockquote></div></div>