<div dir="ltr"><div><div>Hi,<br><br></div>When S3 is added to master volume from new node, the following cmd should be run to generate and distribute ssh keys<br></div><div><code><br></code></div><div><code></code>1. Generate ssh keys from new node <br></div><div><br></div><div> #gluster system:: execute gsec_create</div><div><br></div><div>2. Push those ssh keys of new node to slave<br></div><div><br></div><div> #gluster vol geo-rep <mastervol> <slavehost>::<slavevol> create push-pem force</div><div><br></div><div>3. Stop and start geo-rep</div><div><br></div><div><br></div><div>But note that while removing brick and adding a brick, you should make sure the data from the brick being removed is synced</div><div>to slave.</div><div><br></div><div>Thanks,<br></div><div>Kotresh HR<br></div><code></code><code class="gmail-command"><br></code><div><code class="gmail-command"><br></code><div><div><br><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 7, 2018 at 4:21 PM, Stefano Bagnara <span dir="ltr"><<a href="mailto:lists@bago.org" target="_blank">lists@bago.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
i had a replica 2 gluster 3.12 between S1 and S2 (1 brick per node)<br>
geo-replicated to S5 where both S1 and S2 were visible in the<br>
geo-replication status and S2 "active" while S1 "passive".<br>
<br>
I had to replace S1 with S3, so I did an<br>
"add-brick replica 3 S3"<br>
and then<br>
"remove-brick replica 2 S1".<br>
<br>
Now I have again a replica 2 gluster between S3 and S2 but the<br>
geo-replica only show S2 as active and no other peer involved. So it<br>
seems S3 does not know about the geo-replica and it is not ready to<br>
geo-replicate in case S2 goes down.<br>
<br>
Here was the original geo-rep status<br>
<br>
# gluster volume geo-replication status<br>
<br>
MASTER NODE MASTER VOL MASTER BRICK SLAVE USER SLAVE<br>
SLAVE NODE STATUS CRAWL STATUS<br>
LAST_SYNCED<br>
------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>----------<br>
S2 sharedvol /home/sharedvol root<br>
ssh://S5::sharedvolslave S5 Passive N/A N/A<br>
S1 sharedvol /home/sharedvol root<br>
ssh://S5::sharedvolslave S5 Active Changelog Crawl<br>
2018-02-07 10:18:57<br>
<br>
Here is the new geo-replication stauts<br>
<br>
# gluster volume geo-replication status<br>
<br>
MASTER NODE MASTER VOL MASTER BRICK SLAVE USER SLAVE<br>
SLAVE NODE STATUS CRAWL STATUS<br>
LAST_SYNCED<br>
------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>---------<br>
S2 sharedvol /home/sharedvol root<br>
ssh://S5::sharedvolslave S5 Active Changelog Crawl<br>
2018-02-07 11:48:31<br>
<br>
<br>
How can I add S3 as a passive node in the geo-replica to S5 ??<br>
<br>
Thank you,<br>
Stefano<br>
______________________________<wbr>_________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://lists.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Thanks and Regards,<br></div>Kotresh H R<br></div></div>
</div>