<div dir="ltr">Hi Kotresh,<div><br></div><div>Thanks for the tip. Unfortunately that does not seem to have any effect. The path to the gluster binaries was already in $PATH. I did try adding the path to the gsyncd binary, but same result. Contents of $PATH are:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/libexec/glusterfs/<br></blockquote><div><br></div><div>It seems like perhaps one of the remote gsyncd processes cannot find the gluster binary, because I see the following in the geo-replication/shares/ssh...log. Can you point me toward how I can find out what is throwing this log entry?</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">[2014-12-10 07:20:53.886676] E [syncdutils(monitor):218:log_raise_exception] &lt;top&gt;: execution of &quot;gluster&quot; failed with ENOENT (No such file or directory)</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">[2014-12-10 07:20:53.886883] I [syncdutils(monitor):192:finalize] &lt;top&gt;: exiting.</blockquote></blockquote><div><br></div><div>I think that whatever process is trying to use the gluster command has the incorrect path to access it. Do you know how I could modify <i>that</i> path? </div><div><br></div><div>I&#39;ve manually tested the ssh_command and ssh_command_tar variables in the relevant gsyncd.conf; both connect to the slave server successfully and appear to execute the command they&#39;re supposed to.</div><div><br></div><div>gluster_command_dir in gsyncd.conf is also the correct directory (/usr/local/sbin).</div><div><br></div><div>In summary: I think we&#39;re on to something with setting the path, but I think I need to set it somewhere other than my shell.</div><div> </div><div>Thanks,</div><div>Dave</div><div> </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 9, 2014 at 11:52 PM, Kotresh Hiremath Ravishankar <span dir="ltr">&lt;<a href="mailto:khiremat@redhat.com" target="_blank">khiremat@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If that is the case, as a workaround, try adding &#39;gluster&#39; path<br>
to PATH environment variable or creating symlinks to gluster,<br>
glusterd binaries.<br>
<br>
1. export PATH=$PATH:&lt;path where gluster binaries are installed&gt;<br>
<br>
Above should work, let me know if doesn&#39;t.<br>
<span class="im HOEnZb"><br>
Thanks and Regards,<br>
Kotresh H R<br>
<br>
----- Original Message -----<br>
From: &quot;David Gibbons&quot; &lt;<a href="mailto:david.c.gibbons@gmail.com">david.c.gibbons@gmail.com</a>&gt;<br>
</span><div class="HOEnZb"><div class="h5">To: &quot;Kotresh Hiremath Ravishankar&quot; &lt;<a href="mailto:khiremat@redhat.com">khiremat@redhat.com</a>&gt;<br>
Cc: &quot;gluster-users&quot; &lt;<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a>&gt;, <a href="mailto:vnosov@stonefly.com">vnosov@stonefly.com</a><br>
Sent: Tuesday, December 9, 2014 6:16:03 PM<br>
Subject: Re: [Gluster-users] Geo-Replication Issue<br>
<br>
Hi Kotresh,<br>
<br>
Yes, I believe that I am. Can you tell me which symlinks are missing/cause<br>
geo-replication to fail to start? I can create them manually.<br>
<br>
Thank you,<br>
Dave<br>
<br>
On Tue, Dec 9, 2014 at 3:54 AM, Kotresh Hiremath Ravishankar &lt;<br>
<a href="mailto:khiremat@redhat.com">khiremat@redhat.com</a>&gt; wrote:<br>
<br>
&gt; Hi Dave,<br>
&gt;<br>
&gt; Are you hitting the below bug and so not able to sync symlinks ?<br>
&gt; <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1105283" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=1105283</a><br>
&gt;<br>
&gt; Does geo-rep status say &quot;Not Started&quot; ?<br>
&gt;<br>
&gt; Thanks and Regards,<br>
&gt; Kotresh H R<br>
&gt;<br>
&gt; ----- Original Message -----<br>
&gt; From: &quot;David Gibbons&quot; &lt;<a href="mailto:david.c.gibbons@gmail.com">david.c.gibbons@gmail.com</a>&gt;<br>
&gt; To: &quot;gluster-users&quot; &lt;<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a>&gt;<br>
&gt; Cc: <a href="mailto:vnosov@stonefly.com">vnosov@stonefly.com</a><br>
&gt; Sent: Monday, December 8, 2014 7:03:31 PM<br>
&gt; Subject: Re: [Gluster-users] Geo-Replication Issue<br>
&gt;<br>
&gt; Apologies for sending so many messages about this! I think I may be<br>
&gt; running into this bug:<br>
&gt; <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1105283" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=1105283</a><br>
&gt;<br>
&gt; Would someone be so kind as to let me know which symlinks are missing when<br>
&gt; this bug manifests, so that I can create them?<br>
&gt;<br>
&gt; Thank you,<br>
&gt; Dave<br>
&gt;<br>
&gt;<br>
&gt; On Sun, Dec 7, 2014 at 11:01 AM, David Gibbons &lt; <a href="mailto:david.c.gibbons@gmail.com">david.c.gibbons@gmail.com</a><br>
&gt; &gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Ok,<br>
&gt;<br>
&gt; I was able to get geo-replication configured by changing<br>
&gt; /usr/local/libexec/glusterfs/gverify.sh to use ssh to access the local<br>
&gt; machine, instead of accessing bash -c directly. I then found that the hook<br>
&gt; script was missing for geo-replication, so I copied that over manually. I<br>
&gt; now have what appears to be a &quot;configured&quot; geo-rep setup:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; # gluster volume geo-replication shares gfs-a-bkp::bkpshares status<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; MASTER NODE MASTER VOL MASTER BRICK SLAVE STATUS CHECKPOINT STATUS CRAWL<br>
&gt; STATUS<br>
&gt;<br>
&gt;<br>
&gt; --------------------------------------------------------------------------------------------------------------------------------------------------------<br>
&gt;<br>
&gt; gfs-a-3 shares /mnt/a-3-shares-brick-1/brick gfs-a-bkp::bkpshares Not<br>
&gt; Started N/A N/A<br>
&gt;<br>
&gt; gfs-a-3 shares /mnt/a-3-shares-brick-2/brick gfs-a-bkp::bkpshares Not<br>
&gt; Started N/A N/A<br>
&gt;<br>
&gt; gfs-a-3 shares /mnt/a-3-shares-brick-3/brick gfs-a-bkp::bkpshares Not<br>
&gt; Started N/A N/A<br>
&gt;<br>
&gt; gfs-a-3 shares /mnt/a-3-shares-brick-4/brick gfs-a-bkp::bkpshares Not<br>
&gt; Started N/A N/A<br>
&gt;<br>
&gt; gfs-a-2 shares /mnt/a-2-shares-brick-1/brick gfs-a-bkp::bkpshares Not<br>
&gt; Started N/A N/A<br>
&gt;<br>
&gt; gfs-a-2 shares /mnt/a-2-shares-brick-2/brick gfs-a-bkp::bkpshares Not<br>
&gt; Started N/A N/A<br>
&gt;<br>
&gt; gfs-a-2 shares /mnt/a-2-shares-brick-3/brick gfs-a-bkp::bkpshares Not<br>
&gt; Started N/A N/A<br>
&gt;<br>
&gt; gfs-a-2 shares /mnt/a-2-shares-brick-4/brick gfs-a-bkp::bkpshares Not<br>
&gt; Started N/A N/A<br>
&gt;<br>
&gt; gfs-a-4 shares /mnt/a-4-shares-brick-1/brick gfs-a-bkp::bkpshares Not<br>
&gt; Started N/A N/A<br>
&gt;<br>
&gt; gfs-a-4 shares /mnt/a-4-shares-brick-2/brick gfs-a-bkp::bkpshares Not<br>
&gt; Started N/A N/A<br>
&gt;<br>
&gt; gfs-a-4 shares /mnt/a-4-shares-brick-3/brick gfs-a-bkp::bkpshares Not<br>
&gt; Started N/A N/A<br>
&gt;<br>
&gt; gfs-a-4 shares /mnt/a-4-shares-brick-4/brick gfs-a-bkp::bkpshares Not<br>
&gt; Started N/A N/A<br>
&gt;<br>
&gt; gfs-a-1 shares /mnt/a-1-shares-brick-1/brick gfs-a-bkp::bkpshares Not<br>
&gt; Started N/A N/A<br>
&gt;<br>
&gt; gfs-a-1 shares /mnt/a-1-shares-brick-2/brick gfs-a-bkp::bkpshares Not<br>
&gt; Started N/A N/A<br>
&gt;<br>
&gt; gfs-a-1 shares /mnt/a-1-shares-brick-3/brick gfs-a-bkp::bkpshares Not<br>
&gt; Started N/A N/A<br>
&gt;<br>
&gt; gfs-a-1 shares /mnt/a-1-shares-brick-4/brick gfs-a-bkp::bkpshares Not<br>
&gt; Started N/A N/A<br>
&gt;<br>
&gt; So that&#39;s a step in the right direction (and I can upload a patch for<br>
&gt; gverify to a bugzilla). However, gverify *should* have worked with bash-c,<br>
&gt; and I was not able to figure out why it didn&#39;t work, other than it didn&#39;t<br>
&gt; seem able to find some programs. I&#39;m thinking that maybe the PATH variable<br>
&gt; is wrong for Gluster, and that&#39;s why gverify didn&#39;t work out of the box.<br>
&gt;<br>
&gt; When I attempt to start geo-rep now, I get the following in the geo-rep<br>
&gt; log:<br>
&gt;<br>
&gt;<br>
&gt; [2014-12-07 10:52:40.893594] E<br>
&gt; [syncdutils(monitor):218:log_raise_exception] &lt;top&gt;: execution of &quot;gluster&quot;<br>
&gt; failed with ENOENT (No such file or directory)<br>
&gt;<br>
&gt; [2014-12-07 10:52:40.893886] I [syncdutils(monitor):192:finalize] &lt;top&gt;:<br>
&gt; exiting.<br>
&gt;<br>
&gt; Which seems to agree that maybe gluster isn&#39;t running with the same path<br>
&gt; variable that my console session is running with. Is this possible? I know<br>
&gt; I&#39;m grasping :).<br>
&gt;<br>
&gt; Any nudge in the right direction would be very much appreciated!<br>
&gt;<br>
&gt; Cheers,<br>
&gt; Dave<br>
&gt;<br>
&gt;<br>
&gt; On Sat, Dec 6, 2014 at 10:06 AM, David Gibbons &lt; <a href="mailto:david.c.gibbons@gmail.com">david.c.gibbons@gmail.com</a><br>
&gt; &gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Good Morning,<br>
&gt;<br>
&gt; I am having some trouble getting geo-replication started on a 3.5.3 volume.<br>
&gt;<br>
&gt; I have verified that password-less SSH is functional in both directions<br>
&gt; from the backup gluster server, and all nodes in the production gluster. I<br>
&gt; have verified that all nodes in production and backup cluster are running<br>
&gt; the same version of gluster, and that name resolution works in both<br>
&gt; directions.<br>
&gt;<br>
&gt; When I attempt to start geo-replication with this command:<br>
&gt;<br>
&gt;<br>
&gt; gluster volume geo-replication shares gfs-a-bkp::bkpshares create push-pem<br>
&gt;<br>
&gt; I end up with the following in the logs:<br>
&gt;<br>
&gt;<br>
&gt; [2014-12-06 15:02:50.284426] E<br>
&gt; [glusterd-geo-rep.c:1889:glusterd_verify_slave] 0-: Not a valid slave<br>
&gt;<br>
&gt; [2014-12-06 15:02:50.284495] E<br>
&gt; [glusterd-geo-rep.c:2106:glusterd_op_stage_gsync_create] 0-:<br>
&gt; gfs-a-bkp::bkpshares is not a valid slave volume. Error: Unable to fetch<br>
&gt; master volume details. Please check the master cluster and master volume.<br>
&gt;<br>
&gt; [2014-12-06 15:02:50.284509] E [glusterd-syncop.c:912:gd_stage_op_phase]<br>
&gt; 0-management: Staging of operation &#39;Volume Geo-replication Create&#39; failed<br>
&gt; on localhost : Unable to fetch master volume details. Please check the<br>
&gt; master cluster and master volume.<br>
&gt;<br>
&gt; Would someone be so kind as to point me in the right direction?<br>
&gt;<br>
&gt; Cheers,<br>
&gt; Dave<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Gluster-users mailing list<br>
&gt; <a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
&gt; <a href="http://supercolony.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a><br>
&gt;<br>
</div></div></blockquote></div><br></div>