<font size=3 color=blue face="Times New Roman">Hi Pranith,</font>
<br>
<br><font size=3 color=blue face="Times New Roman">I finally understood
what you meant the secure ports, because the issue occurred in one of our
setups once more. It seems one of the clients on serv1 could not open a
connection to the glusterfsd running on serv0. I'd actually started a mail
trail about it (believing it might be something else, initially) here:
</font><a href="http://www.gluster.org/pipermail/gluster-users/2015-February/020465.html"><font size=3 color=blue face="Times New Roman">http://www.gluster.org/pipermail/gluster-users/2015-February/020465.html</font></a>
<br>
<br><font size=3 color=blue face="Times New Roman">I think &nbsp;I can
write me a rudimentary kind of patch altering <i>af_inet_bind_to_port_lt_ceiling()</i>
to get it to call bind with port 0, rather than specify a port explicitly
when the client.bind-insecure is specified ... </font>
<br>
<br><font size=3 color=blue face="Times New Roman">Then I'd need to create
a way to set server.allow-insecure using the cli (or if you already sent
around the patch to do that like you said in the earlier mail, do let me
know). I'll keep you posted about it round here or @ [gluster-devel] if
I can get it to work. </font>
<br>
<br><font size=3 color=blue face="Times New Roman">Thanks a lot,</font>
<br>
<br><font size=3 color=blue face="Times New Roman">Anirban</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">A Ghoshal/MUM/TCS</font>
<br><font size=1 color=#5f5f5f face="sans-serif">To: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">Pranith Kumar Karampuri
&lt;pkarampu@redhat.com&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Cc: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">gluster-users@gluster.org,
Niels de Vos &lt;ndevos@redhat.com&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">01/23/2015 02:45 PM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">Re: [Gluster-users]
In a replica 2 server, file-updates on one server missing on the other
server #Personal#</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Sent by: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">A Ghoshal</font>
<br>
<hr noshade>
<br>
<br><font size=3 color=blue face="Times New Roman">Oh, I didn't I only
read a fragment of the IRC log and assumed --xlator-option would be enough.
Apparently it's a lot more work.... </font>
<br>
<br><font size=3 color=blue face="Times New Roman">I do have a query, though.
These connections, from one of our setups, are these on secure ports? Or,
maybe I didn't get it the first time.....</font>
<br>
<br><font size=2 face="Courier New">root@serv0:/root&gt; ps -ef | grep
replicated_vol</font>
<br><font size=2 face="Courier New">root &nbsp; &nbsp; &nbsp;8851 25307
&nbsp;0 10:03 pts/2 &nbsp; &nbsp;00:00:00 grep replicated_vol</font>
<br><font size=2 face="Courier New">root &nbsp; &nbsp; 29751 &nbsp; &nbsp;
1 &nbsp;4 Jan21 ? &nbsp; &nbsp; &nbsp; &nbsp;01:47:20 /usr/sbin/glusterfsd
-s serv0 --volfile-id replicated_vol.serv0.mnt-bricks-replicated_vol-brick
-p /var/lib/glusterd/vols/_replicated_vol/run/serv0-mnt-bricks-replicated_vol-brick.pid
-S /var/run/dff9fa3c93e82f20103f2a3d91adc4a8.socket --brick-name /mnt/bricks/replicated_vol/brick
-l /var/log/glusterfs/bricks/mnt-bricks-replicated_vol-brick.log --xlator-option
*-posix.glusterd-uuid=1a1d1ebc-4b92-428f-b66b-9c5efa49574d --brick-port
49185 --xlator-option replicated_vol-server.listen-port=49185</font>
<br><font size=2 face="Courier New">root &nbsp; &nbsp; 30399 &nbsp; &nbsp;
1 &nbsp;0 Jan21 ? &nbsp; &nbsp; &nbsp; &nbsp;00:19:06 /usr/sbin/glusterfs
--volfile-id=replicated_vol --volfile-server=serv0 /mnt/replicated_vol</font>
<br>
<br><font size=2 face="Courier New">root@serv0:/root&gt; netstat -p | grep
30399</font>
<br><font size=2 face="Courier New">tcp &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp;
&nbsp; &nbsp;0 serv0:969 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; serv0:49185
&nbsp; &nbsp; &nbsp; &nbsp; ESTABLISHED 30399/glusterfs</font>
<br><font size=2 face="Courier New">tcp &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp;
&nbsp; &nbsp;0 serv0:999 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; serv1:49159
&nbsp; &nbsp; &nbsp; &nbsp; ESTABLISHED 30399/glusterfs</font>
<br><font size=2 face="Courier New">tcp &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp;
&nbsp; &nbsp;0 serv0:1023 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;serv0:24007
&nbsp; &nbsp; &nbsp; &nbsp; ESTABLISHED 30399/glusterfs</font>
<br><font size=2 face="Courier New">root@serv0:/root&gt;</font>
<br>
<br><font size=3 color=blue face="Times New Roman">Thanks again,</font>
<br><font size=3 color=blue face="Times New Roman">Anirban</font>
<br>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">Pranith Kumar Karampuri
&lt;pkarampu@redhat.com&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">To: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">A Ghoshal &lt;a.ghoshal@tcs.com&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Cc: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">gluster-users@gluster.org,
Niels de Vos &lt;ndevos@redhat.com&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">01/23/2015 01:58 PM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">Re: [Gluster-users]
In a replica 2 server, file-updates on one server missing on the other
server #Personal#</font>
<br>
<hr noshade>
<br>
<br>
<br>
<br><font size=3>On 01/23/2015 01:54 PM, A Ghoshal wrote:</font>
<br><font size=3 color=blue face="Times New Roman">Thanks a lot, Pranith.
</font><font size=3><br>
</font><font size=3 color=blue face="Times New Roman"><br>
We'll set this option on our test servers and keep the setup under observation.</font><font size=3>
</font>
<br><font size=3>How did you get the bind-insecure option working?<br>
I guess I will send a patch to make it 'volume set option'<br>
<br>
Pranith</font>
<br><font size=3 color=blue face="Times New Roman"><br>
Thanks,</font><font size=3> </font><font size=3 color=blue face="Times New Roman"><br>
Anirban</font><font size=3> <br>
<br>
<br>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
From: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=1 face="sans-serif">Pranith
Kumar Karampuri </font><a href=mailto:pkarampu@redhat.com><font size=1 color=blue face="sans-serif"><u>&lt;pkarampu@redhat.com&gt;</u></font></a><font size=3>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
To: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=1 face="sans-serif">A
Ghoshal </font><a href=mailto:a.ghoshal@tcs.com><font size=1 color=blue face="sans-serif"><u>&lt;a.ghoshal@tcs.com&gt;</u></font></a><font size=3>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
Cc: &nbsp; &nbsp; &nbsp; &nbsp;</font><a href="mailto:gluster-users@gluster.org"><font size=1 color=blue face="sans-serif"><u>gluster-users@gluster.org</u></font></a><font size=1 face="sans-serif">,
Niels de Vos </font><a href=mailto:ndevos@redhat.com><font size=1 color=blue face="sans-serif"><u>&lt;ndevos@redhat.com&gt;</u></font></a><font size=3>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
Date: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=1 face="sans-serif">01/23/2015
01:28 PM</font><font size=3> </font><font size=1 color=#5f5f5f face="sans-serif"><br>
Subject: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=1 face="sans-serif">Re:
[Gluster-users] In a replica 2 server, file-updates on one server missing
on the other server #Personal#</font><font size=3> <br>
</font>
<hr noshade><font size=3><br>
<br>
<br>
<br>
On 01/22/2015 02:07 PM, A Ghoshal wrote: </font><font size=3 color=blue face="Times New Roman"><br>
Hi Pranith,</font><font size=3> </font><font size=3 color=blue face="Times New Roman"><br>
<br>
Yes, the very same (</font><a href=mailto:chalcogen_eg_oxygen@yahoo.com><font size=3 color=blue face="Times New Roman"><u>chalcogen_eg_oxygen@yahoo.com</u></font></a><font size=3 color=blue face="Times New Roman">).
Justin Clift sent me a mail a while back telling me that it is better if
we all use our business email addresses so I made me a new profile. <br>
<br>
Glusterfs complains about /proc/sys/net/ipv4/ip_local_reserved_ports because
we use a really old Linux kernel (2.6.34) wherein this feature is not present.
We plan to upgrade our Linux so often but each time we are dissuaded from
it by some compatibility issue or the other. So, we get this log every
time - on both good volumes and bad ones. What bothered me was this (on
serv1):</font><font size=3> <br>
Basically to make the connections to servers i.e. bricks clients need to
choose secure ports i.e. port less than 1024. Since this file is not present,
it is not binding to any port as per the code I just checked. There is
an option called client-bind-insecure which bypasses this check. I feel
that is one (probably only way) to get around this. <br>
You have to &quot;volume set server.allow-insecure on&quot; option and
bind-insecure option.<br>
CC ndevos who seemed to have helped someone set bind-insecure option correctly
here (</font><a href="http://irclog.perlgeek.de/gluster/2014-04-09/text"><font size=3 color=blue><u>http://irclog.perlgeek.de/gluster/2014-04-09/text</u></font></a><font size=3>)<br>
<br>
Pranith </font><font size=2 face="Courier New"><br>
<br>
[2015-01-20 09:37:49.151744] T [rpc-clnt.c:1182:rpc_clnt_record_build_header]
0-rpc-clnt: Request fraglen 456, payload: 360, rpc hdr: 96</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:37:49.151780] T [rpc-clnt.c:1499:rpc_clnt_submit] 0-rpc-clnt:
submitted request (XID: 0x39620x Program: GlusterFS 3.3, ProgVers: 330,
Proc: 27) to rpc-transport (replicated_vol-client-0)</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:37:49.151810] T [rpc-clnt.c:1302:rpc_clnt_record] 0-replicated_vol-client-1:
Auth Info: pid: 7599, uid: 0, gid: 0, owner: 0000000000000000</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:37:49.151824] T [rpc-clnt.c:1182:rpc_clnt_record_build_header]
0-rpc-clnt: Request fraglen 456, payload: 360, rpc hdr: 96</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:37:49.151889] T [rpc-clnt.c:1499:rpc_clnt_submit] 0-rpc-clnt:
submitted request (XID: 0x39563x Program: GlusterFS 3.3, ProgVers: 330,
Proc: 27) to rpc-transport (replicated_vol-client-1)</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:37:49.152239] T [rpc-clnt.c:669:rpc_clnt_reply_init] 0-replicated_vol-client-1:
received rpc message (RPC XID: 0x39563x Program: GlusterFS 3.3, ProgVers:
330, Proc: 27) from rpc-transport (replicated_vol-client-1)</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:37:49.152484] T [rpc-clnt.c:669:rpc_clnt_reply_init] 0-replicated_vol-client-0:
received rpc message (RPC XID: 0x39620x Program: GlusterFS 3.3, ProgVers:
330, Proc: 27) from rpc-transport (replicated_vol-client-0)</font><font size=3>
</font><font size=3 color=blue face="Times New Roman"><br>
<br>
When I write on the good server (serv1), we see that an RPC request is
sent to both client-0 and client-1. While, when I write on the bad server
(serv0), the RPC request is sent only to client-0, which is why it is no
wonder that the writes are not synced over to serv1. Somehow I could not
make the daemon on serv0 understand that there are two up-children and
not just one. <br>
<br>
One additional detail - since we are using a kernel that's too old, we
do not have the (Anand Avati's?) FUse readdirplus patches, either. I've
noticed that the fixes in the readdirplus version of glusterfs aren't always
guaranteed to be present on the non-readdirplus version of the patches.
I'd filed a bug around one such anomaly back, but never got around to writing
a patch for it (sorry!) Here it is: </font><a href="https://bugzilla.redhat.com/show_bug.cgi?id=1062287"><font size=3 color=blue face="Times New Roman"><u>https://bugzilla.redhat.com/show_bug.cgi?id=1062287</u></font></a><font size=3>
<br>
I don't this has anything to do with readdirplus. </font><font size=3 color=blue face="Times New Roman"><br>
<br>
Maybe something on similar lines here?</font><font size=3> </font><font size=3 color=blue face="Times New Roman"><br>
<br>
Thanks,</font><font size=3> </font><font size=3 color=blue face="Times New Roman"><br>
Anirban</font><font size=3> </font><font size=3 color=blue face="Times New Roman"><br>
<br>
P.s. Please ignore the #Personal# in the subject line - we need to do that
to push mails to the public domain past the email filter safely.</font><font size=3>
<br>
<br>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
<br>
From: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=1 face="sans-serif">Pranith
Kumar Karampuri </font><a href=mailto:pkarampu@redhat.com><font size=1 color=blue face="sans-serif"><u>&lt;pkarampu@redhat.com&gt;</u></font></a><font size=3>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
To: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=1 face="sans-serif">A
Ghoshal </font><a href=mailto:a.ghoshal@tcs.com><font size=1 color=blue face="sans-serif"><u>&lt;a.ghoshal@tcs.com&gt;</u></font></a><font size=1 face="sans-serif">,
</font><a href="mailto:gluster-users@gluster.org"><font size=1 color=blue face="sans-serif"><u>gluster-users@gluster.org</u></font></a><font size=3>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
Date: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=1 face="sans-serif">01/22/2015
12:09 AM</font><font size=3> </font><font size=1 color=#5f5f5f face="sans-serif"><br>
Subject: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=1 face="sans-serif">Re:
[Gluster-users] In a replica 2 server, file-updates on one server missing
on the other server</font><font size=3> <br>
</font>
<hr noshade><font size=3><br>
<br>
<br>
hi,<br>
 &nbsp;Responses inline.<br>
<br>
PS: You are chalkogen_oxygen?<br>
<br>
Pranith <br>
On 01/20/2015 05:34 PM, A Ghoshal wrote: </font><font size=3 color=blue face="Times New Roman"><br>
Hello,</font><font size=3> </font><font size=3 color=blue face="Times New Roman"><br>
<br>
I am using the following replicated volume:</font><font size=3> </font><font size=2 face="Courier New"><br>
<br>
root@serv0:~&gt; gluster v info replicated_vol</font><font size=3> </font><font size=2 face="Courier New"><br>
<br>
Volume Name: replicated_vol</font><font size=3> </font><font size=2 face="Courier New"><br>
Type: Replicate</font><font size=3> </font><font size=2 face="Courier New"><br>
Volume ID: 26d111e3-7e4c-479e-9355-91635ab7f1c2</font><font size=3> </font><font size=2 face="Courier New"><br>
Status: Started</font><font size=3> </font><font size=2 face="Courier New"><br>
Number of Bricks: 1 x 2 = 2</font><font size=3> </font><font size=2 face="Courier New"><br>
Transport-type: tcp</font><font size=3> </font><font size=2 face="Courier New"><br>
Bricks:</font><font size=3> </font><font size=2 face="Courier New"><br>
Brick1: serv0:/mnt/bricks/replicated_vol/brick</font><font size=3> </font><font size=2 face="Courier New"><br>
Brick2: serv1:/mnt/bricks/replicated_vol/brick</font><font size=3> </font><font size=2 face="Courier New"><br>
Options Reconfigured:</font><font size=3> </font><font size=2 face="Courier New"><br>
diagnostics.client-log-level: INFO</font><font size=3> </font><font size=2 face="Courier New"><br>
network.ping-timeout: 10</font><font size=3> </font><font size=2 face="Courier New"><br>
nfs.enable-ino32: on</font><font size=3> </font><font size=2 face="Courier New"><br>
cluster.self-heal-daemon: on</font><font size=3> </font><font size=2 face="Courier New"><br>
nfs.disable: off</font><font size=3> </font><font size=3 color=blue face="Times New Roman"><br>
<br>
replicated_vol is mounted at /mnt/replicated_vol on both serv0 and serv1.
If I do the following on serv0:</font><font size=3> </font><font size=2 face="Courier New"><br>
<br>
root@serv0:~&gt;echo &quot;cranberries&quot; &gt; /mnt/replicated_vol/testfile</font><font size=3>
</font><font size=2 face="Courier New"><br>
root@serv0:~&gt;echo &quot;tangerines&quot; &gt;&gt; /mnt/replicated_vol/testfile</font><font size=3>
</font><font size=3 color=blue face="Times New Roman"><br>
<br>
And then I check for the state of the replicas in the bricks, then I find
that</font><font size=3> </font><font size=2><br>
<br>
root@serv0:~&gt;cat /mnt/bricks/replicated_vol/brick/testfile</font><font size=3>
</font><font size=2 face="Courier New"><br>
cranberries</font><font size=3> </font><font size=2 face="Courier New"><br>
tangerines</font><font size=3> </font><font size=2 face="Courier New"><br>
root@serv0:~&gt;</font><font size=3> </font><font size=2 face="Courier New"><br>
<br>
root@serv1:~&gt;cat /mnt/bricks/replicated_vol/brick/testfile</font><font size=3>
</font><font size=2 face="Courier New"><br>
root@serv1:~&gt;</font><font size=3> </font><font size=3 color=blue face="Times New Roman"><br>
<br>
As may be seen, the replica on serv1 is blank, when I write into testfile
from serv0 (even though the file is created on both bricks). Interestingly,
if I write something to the file at serv1, then the two replicas become
identical.</font><font size=3> </font><font size=2 face="Courier New"><br>
<br>
root@serv1:~&gt;echo &quot;artichokes&quot; &gt;&gt; /mnt/replicated_vol/testfile</font><font size=3>
</font><font size=2 face="Courier New"><br>
<br>
root@serv1:~&gt;cat /mnt/bricks/replicated_vol/brick/testfile</font><font size=3>
</font><font size=2 face="Courier New"><br>
cranberries</font><font size=3> </font><font size=2 face="Courier New"><br>
tangerines</font><font size=3> </font><font size=2 face="Courier New"><br>
artichokes</font><font size=3> </font><font size=2 face="Courier New"><br>
root@serv1:~&gt;</font><font size=3> </font><font size=2 face="Courier New"><br>
<br>
root@serv0:~&gt;cat /mnt/bricks/replicated_vol/brick/testfile</font><font size=3>
</font><font size=2 face="Courier New"><br>
cranberries</font><font size=3> </font><font size=2 face="Courier New"><br>
tangerines</font><font size=3> </font><font size=2 face="Courier New"><br>
artichokes</font><font size=3> </font><font size=2 face="Courier New"><br>
root@serv0:~&gt;</font><font size=3> </font><font size=3 color=blue face="Times New Roman"><br>
<br>
So, I dabbled into the logs a little bit, after upping the diagnostic level,
and this is what I saw:</font><font size=3> </font><font size=3 face="Times New Roman"><b><u><br>
<br>
When I write on serv0 (bad case):</u></b></font><font size=3> </font><font size=2 face="Courier New"><br>
<br>
[2015-01-20 09:21:52.197704] T [fuse-bridge.c:546:fuse_lookup_resume] 0-glusterfs-fuse:
53027: LOOKUP /testfl(f0a76987-8a42-47a2-b027-a823254b736b)</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:21:52.197959] D [afr-common.c:131:afr_lookup_xattr_req_prepare]
0-replicated_vol-replicate-0: /testfl: failed to get the gfid from dict</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:21:52.198006] T [rpc-clnt.c:1302:rpc_clnt_record] 0-replicated_vol-client-0:
Auth Info: pid: 28151, uid: 0, gid: 0, owner: 0000000000000000</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:21:52.198024] T [rpc-clnt.c:1182:rpc_clnt_record_build_header]
0-rpc-clnt: Request fraglen 456, payload: 360, rpc hdr: 96</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:21:52.198108] T [rpc-clnt.c:1499:rpc_clnt_submit] 0-rpc-clnt:
submitted request (XID: 0x78163x Program: GlusterFS 3.3, ProgVers: 330,
Proc: 27) to rpc-transport (replicated_vol-client-0)</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:21:52.198565] T [rpc-clnt.c:669:rpc_clnt_reply_init] 0-replicated_vol-client-0:
received rpc message (RPC XID: 0x78163x Program: GlusterFS 3.3, ProgVers:
330, Proc: 27) from rpc-transport (replicated_vol-client-0)</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:21:52.198640] D [afr-self-heal-common.c:138:afr_sh_print_pending_matrix]
0-replicated_vol-replicate-0: pending_matrix: [ 0 3 ]</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:21:52.198669] D [afr-self-heal-common.c:138:afr_sh_print_pending_matrix]
0-replicated_vol-replicate-0: pending_matrix: [ 0 0 ]</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:21:52.198681] D [afr-self-heal-common.c:887:afr_mark_sources]
0-replicated_vol-replicate-0: Number of sources: 1</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:21:52.198694] D [afr-self-heal-data.c:825:afr_lookup_select_read_child_by_txn_type]
0-replicated_vol-replicate-0: returning read_child: 0</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:21:52.198705] D [afr-common.c:1380:afr_lookup_select_read_child]
0-replicated_vol-replicate-0: Source selected as 0 for /testfl</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:21:52.198720] D [afr-common.c:1117:afr_lookup_build_response_params]
0-replicated_vol-replicate-0: Building lookup response from 0</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:21:52.198732] D [afr-common.c:1732:afr_lookup_perform_self_heal]
0-replicated_vol-replicate-0: Only 1 child up - do not attempt to detect
self heal</font><font size=3> </font><font size=3 face="Times New Roman"><b><u><br>
<br>
When I write on serv1 (good case):</u></b></font><font size=3> </font><font size=2 face="Courier New"><br>
<br>
[2015-01-20 09:37:49.151506] T [fuse-bridge.c:546:fuse_lookup_resume] 0-glusterfs-fuse:
31212: LOOKUP /testfl(f0a76987-8a42-47a2-b027-a823254b736b)</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:37:49.151683] D [afr-common.c:131:afr_lookup_xattr_req_prepare]
0-replicated_vol-replicate-0: /testfl: failed to get the gfid from dict</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:37:49.151726] T [rpc-clnt.c:1302:rpc_clnt_record] 0-replicated_vol-client-0:
Auth Info: pid: 7599, uid: 0, gid: 0, owner: 0000000000000000</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:37:49.151744] T [rpc-clnt.c:1182:rpc_clnt_record_build_header]
0-rpc-clnt: Request fraglen 456, payload: 360, rpc hdr: 96</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:37:49.151780] T [rpc-clnt.c:1499:rpc_clnt_submit] 0-rpc-clnt:
submitted request (XID: 0x39620x Program: GlusterFS 3.3, ProgVers: 330,
Proc: 27) to rpc-transport (replicated_vol-client-0)</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:37:49.151810] T [rpc-clnt.c:1302:rpc_clnt_record] 0-replicated_vol-client-1:
Auth Info: pid: 7599, uid: 0, gid: 0, owner: 0000000000000000</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:37:49.151824] T [rpc-clnt.c:1182:rpc_clnt_record_build_header]
0-rpc-clnt: Request fraglen 456, payload: 360, rpc hdr: 96</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:37:49.151889] T [rpc-clnt.c:1499:rpc_clnt_submit] 0-rpc-clnt:
submitted request (XID: 0x39563x Program: GlusterFS 3.3, ProgVers: 330,
Proc: 27) to rpc-transport (replicated_vol-client-1)</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:37:49.152239] T [rpc-clnt.c:669:rpc_clnt_reply_init] 0-replicated_vol-client-1:
received rpc message (RPC XID: 0x39563x Program: GlusterFS 3.3, ProgVers:
330, Proc: 27) from rpc-transport (replicated_vol-client-1)</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:37:49.152484] T [rpc-clnt.c:669:rpc_clnt_reply_init] 0-replicated_vol-client-0:
received rpc message (RPC XID: 0x39620x Program: GlusterFS 3.3, ProgVers:
330, Proc: 27) from rpc-transport (replicated_vol-client-0)</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:37:49.152582] D [afr-self-heal-common.c:138:afr_sh_print_pending_matrix]
0-replicated_vol-replicate-0: pending_matrix: [ 0 3 ]</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:37:49.152596] D [afr-self-heal-common.c:138:afr_sh_print_pending_matrix]
0-replicated_vol-replicate-0: pending_matrix: [ 0 0 ]</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:37:49.152621] D [afr-self-heal-common.c:887:afr_mark_sources]
0-replicated_vol-replicate-0: Number of sources: 1</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:37:49.152633] D [afr-self-heal-data.c:825:afr_lookup_select_read_child_by_txn_type]
0-replicated_vol-replicate-0: returning read_child: 0</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:37:49.152644] D [afr-common.c:1380:afr_lookup_select_read_child]
0-replicated_vol-replicate-0: Source selected as 0 for /testfl</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:37:49.152657] D [afr-common.c:1117:afr_lookup_build_response_params]
0-replicated_vol-replicate-0: Building lookup response from 0</font><font size=3>
</font><font size=3 color=blue face="Times New Roman"><br>
<br>
We see that when you write on serv1, the RPC request is sent to both replicated_vol-client-0
and replicated_vol-client-1, while when we write on serv0, the request
is sent only to replicated_vol-client-0, and the FUse client is unaware
of the presence of client-1 in the latter case.</font><font size=3> </font><font size=3 color=blue><br>
<br>
I checked a bit more in the logs. When I turn on my trace, I found many
instances of these logs on serv0 but NOT on serv1:</font><font size=3>
</font><font size=2 face="Courier New"><br>
<br>
[2015-01-20 09:21:15.520784] T [fuse-bridge.c:681:fuse_attr_cbk] 0-glusterfs-fuse:
53011: LOOKUP() / =&gt; 1</font><font size=3> </font><font size=2 face="Courier New"><br>
[2015-01-20 09:21:17.683088] T [rpc-clnt.c:422:rpc_clnt_reconnect] 0-replicated_vol-client-1:
attempting reconnect</font><font size=3> </font><font size=2 face="Courier New"><br>
[2015-01-20 09:21:17.683159] D [name.c:155:client_fill_address_family]
0-replicated_vol-client-1: address-family not specified, guessing it to
be inet from (remote-host: serv1)</font><font size=3> </font><font size=2 face="Courier New"><br>
[2015-01-20 09:21:17.683178] T [name.c:225:af_inet_client_get_remote_sockaddr]
0-replicated_vol-client-1: option remote-port missing in volume replicated_vol-client-1.
Defaulting to 24007</font><font size=3> </font><font size=2 face="Courier New"><br>
[2015-01-20 09:21:17.683191] T [common-utils.c:188:gf_resolve_ip6] 0-resolver:
flushing DNS cache</font><font size=3> </font><font size=2 face="Courier New"><br>
[2015-01-20 09:21:17.683202] T [common-utils.c:195:gf_resolve_ip6] 0-resolver:
DNS cache not present, freshly probing hostname: serv1</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:21:17.683814] D [common-utils.c:237:gf_resolve_ip6] 0-resolver:
returning ip-192.168.24.81 (port-24007) for hostname: serv1 and port: 24007</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:21:17.684139] D [common-utils.c:257:gf_resolve_ip6] 0-resolver:
next DNS query will return: ip-192.168.24.81 port-24007</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:21:17.684164] T [socket.c:731:__socket_nodelay] 0-replicated_vol-client-1:
NODELAY enabled for socket 10</font><font size=3> </font><font size=2 face="Courier New"><br>
[2015-01-20 09:21:17.684177] T [socket.c:790:__socket_keepalive] 0-replicated_vol-client-1:
Keep-alive enabled for socket 10, interval 2, idle: 20</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:21:17.684236] W [common-utils.c:2247:gf_get_reserved_ports]
0-glusterfs: could not open the file /proc/sys/net/ipv4/ip_local_reserved_ports
for getting reserved ports info (No such file or directory)</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:21:17.684253] W [common-utils.c:2280:gf_process_reserved_ports]
0-glusterfs: Not able to get reserved ports, hence there is a possibility
that glusterfs may consume reserved port</font><font size=3> <br>
Logs above suggest that mount process couldn't assign a reserved port because
it couldn't find the file </font><font size=2>/proc/sys/net/ipv4/ip_local_reserved_ports<br>
<br>
I guess reboot of the machine fixed it. Wonder why it was not found in
the first place.<br>
<br>
Pranith.</font><font size=3> </font><font size=2 face="Courier New"><br>
[2015-01-20 09:21:17.684660] D [socket.c:605:__socket_shutdown] 0-replicated_vol-client-1:
shutdown() returned -1. Transport endpoint is not connected</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:21:17.684699] T [rpc-clnt.c:519:rpc_clnt_connection_cleanup]
0-replicated_vol-client-1: cleaning up state in transport object 0x68a630</font><font size=3>
</font><font size=2 face="Courier New"><br>
[2015-01-20 09:21:17.684731] D [socket.c:486:__socket_rwv] 0-replicated_vol-client-1:
EOF on socket</font><font size=3> </font><font size=2 face="Courier New"><br>
[2015-01-20 09:21:17.684750] W [socket.c:514:__socket_rwv] 0-replicated_vol-client-1:
readv failed (No data available)</font><font size=3> </font><font size=2 face="Courier New"><br>
[2015-01-20 09:21:17.684766] D [socket.c:1962:__socket_proto_state_machine]
0-replicated_vol-client-1: reading from socket failed. Error (No data available),
peer (192.168.24.81:49198)</font><font size=3> </font><font size=3 color=blue face="Times New Roman"><br>
<br>
I could not find a 'remote-port' option in /var/lib/glusterd on either
peer. Could somebody tell me where this configuration is looked up from?
Also, sometime later, I rebooted serv0 and that seemed to solve the problem.
However, stop+start of replicated_vol and restart of /etc/init.d/glusterd
did NOT solve the problem.</font><font size=3> <br>
Ignore that log. If no port is given in that volfile, it picks 24007 as
the port, which is the default port where glusterd 'listens'</font><font size=3 color=blue face="Times New Roman"><br>
<br>
<br>
Any help on this matter will be greatly appreciated as I need to provide
robustness assurances for our setup. <br>
<br>
Thanks a lot,</font><font size=3> </font><font size=3 color=blue face="Times New Roman"><br>
Anirban</font><font size=3> </font><font size=3 color=blue face="Times New Roman"><br>
<br>
P.s. Additional details:</font><font size=3> </font><font size=3 color=blue face="Times New Roman"><i><br>
glusterfs version: 3.4.2</i></font><font size=3> </font><font size=3 color=blue face="Times New Roman"><i><br>
Linux kernel version: 2.6.34</i></font><font size=3> </font>
<p><font size=3>=====-----=====-----=====<br>
Notice: The information contained in this e-mail<br>
message and/or attachments to it may contain <br>
confidential or privileged information. If you are <br>
not the intended recipient, any dissemination, use, <br>
review, distribution, printing or copying of the <br>
information contained in this e-mail message <br>
and/or attachments to it are strictly prohibited. If <br>
you have received this communication in error, <br>
please notify us by reply e-mail or telephone and <br>
immediately and permanently delete the message <br>
and any attachments. Thank you </font>
<p><tt><font size=3><br>
<br>
_______________________________________________<br>
Gluster-users mailing list</font></tt><font size=3 color=blue><u><br>
</u></font><a href="mailto:Gluster-users@gluster.org"><tt><font size=3 color=blue><u>Gluster-users@gluster.org</u></font></tt></a><font size=3 color=blue><u><br>
</u></font><a href="http://www.gluster.org/mailman/listinfo/gluster-users"><tt><font size=3 color=blue><u>http://www.gluster.org/mailman/listinfo/gluster-users</u></font></tt></a><font size=3>
</font>
<p>
<p>