<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi, Stas!<br>
<br>
Did you see <a class="moz-txt-link-freetext" href="https://savannah.nongnu.org/bugs/?25681">https://savannah.nongnu.org/bugs/?25681</a> ?<br>
Maybe you have the same problem with AFR as mentioned there (one of
mentioned).<br>
<br>
regards,<br>
Piotr<br>
<br>
Stas Oskin wrote:
<blockquote
cite="mid:77938bc20903090509n483d27kf43ba3077b19a73d@mail.gmail.com"
type="cite">
<div dir="ltr">Hi.
<div><br>
</div>
<div>
<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;">Was
it working for your previously? Any other error logs on machine<br>
with afr? what version are you using? If it was working previously<br>
what changed in your setup recently? Can you paste your vol files<br>
(just to be sure)<br>
</blockquote>
<div><br>
</div>
<div><br>
</div>
<div>Nope, it actually my first setup in lab. No errors - it just
seems as not synchronizing anything. The version I'm using is the
latest one - 2 rc2.</div>
<div><br>
</div>
<div>Perhaps I need to modify anything else in addition to GlusterFS
installation - like file-systems attributes or something?</div>
<div><br>
</div>
<div>The approach I'm using is the one that was recommended by Kieth
over direct emails (Keith, hope you don't mind me posting them :) ).</div>
<div>The idea is basically to have single vol file both for client
and for server, and to have one glusterfs process doing the job both as
client and as server.</div>
<div><br>
</div>
<div>Thanks for the help.</div>
<div><br>
</div>
Server 1:
<div class="im"><br>
volume home1<br>
type storage/posix # POSIX FS translator<br>
</div>
option directory /media/storage # Export this directory
<div class="im"><br>
end-volume<br>
<br>
volume posix-locks-home1<br>
type features/posix-locks<br>
option mandatory-locks on<br>
subvolumes home1<br>
end-volume<br>
<br>
## Reference volume "home2" from remote server<br>
volume home2<br>
type protocol/client<br>
option transport-type tcp/client<br>
</div>
option remote-host 192.168.253.42 # IP address of remote host
<div class="im"><br>
option remote-subvolume posix-locks-home1 # use home1 on remote
host<br>
option transport-timeout 10 # value in seconds; it should be
set relatively low<br>
end-volume<br>
<br>
### Add network serving capability to above home.<br>
volume server<br>
type protocol/server<br>
option transport-type tcp<br>
subvolumes posix-locks-home1<br>
</div>
option auth.addr.posix-locks-home1.allow 192.168.253.42,127.0.0.1 #
Allow access to "home1" volume
<div class="im"><br>
end-volume<br>
<br>
### Create automatic file replication<br>
volume home<br>
type cluster/afr<br>
option metadata-self-heal on<br>
option read-subvolume posix-locks-home1<br>
# option favorite-child home2<br>
subvolumes home2 posix-locks-home1<br>
end-volume<br>
<br>
<br>
</div>
Server 2:
<div class="im"><br>
<br>
volume home1<br>
type storage/posix # POSIX FS translator<br>
</div>
option directory /media/storage # Export this directory
<div class="im"><br>
end-volume<br>
<br>
volume posix-locks-home1<br>
type features/posix-locks<br>
option mandatory-locks on<br>
subvolumes home1<br>
end-volume<br>
<br>
## Reference volume "home2" from remote server<br>
volume home2<br>
type protocol/client<br>
option transport-type tcp/client<br>
</div>
option remote-host 192.168.253.41 # IP address of remote host
<div class="im"><br>
option remote-subvolume posix-locks-home1 # use home1 on remote
host<br>
option transport-timeout 10 # value in seconds; it should be
set relatively low<br>
end-volume<br>
<br>
### Add network serving capability to above home.<br>
volume server<br>
type protocol/server<br>
option transport-type tcp<br>
subvolumes posix-locks-home1<br>
</div>
option auth.addr.posix-locks-home1.allow 192.168.253.41,127.0.0.1 #
Allow access to "home1" volume
<div class="im"><br>
end-volume<br>
<br>
### Create automatic file replication<br>
volume home<br>
type cluster/afr<br>
option metadata-self-heal on<br>
option read-subvolume posix-locks-home1<br>
# option favorite-child home2<br>
subvolumes home2 posix-locks-home1<br>
</div>
<div>end-volume </div>
</div>
</div>
</div>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Gluster-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a>
<a class="moz-txt-link-freetext" href="http://zresearch.com/cgi-bin/mailman/listinfo/gluster-users">http://zresearch.com/cgi-bin/mailman/listinfo/gluster-users</a>
</pre>
</blockquote>
</body>
</html>