<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Sep 3, 2014 at 8:20 PM, M S Vishwanath Bhat <span dir="ltr">&lt;<a href="mailto:vbhat@redhat.com" target="_blank">vbhat@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"><div class="">On 01/09/14 23:09, Paul Mc Auley wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Folks,<br>
<br>
Bit of a query on the process for setting this up and the best practices for same.<br>
<br>
I&#39;m currently working with a prototype using 3.5.2 on vagrant and I&#39;m running into assorted failure modes with each pass.<br>
<br>
The general idea is I start with two sites A and B where A has 3 bricks used to build a volume vol at replica 3 and<br>
B has 2 bricks with at replica 2 to also build vol.<br>
I create 30 files is A::vol and then set up geo-replication from A to B after which I verify that the files have appeared in B::vol.<br>
What I want to do then is double the size of volumes (presumably growing one and not the other is a bad thing)<br>
by adding 3 bricks to A and 2 bricks to B.<br>
<br>
I&#39;ve had this fail number of ways and so I have a number of questions.<br>
<br>
Is geo-replication from a replica 3 volume to a replica 2 volume possible?<br>
</blockquote></div>
Yes. geo-replication just needs two gluster volumes (master -&gt; slave). It doesn&#39;t matter what configuration master and slave has. But slave should be big enough to have all the data in master.<div class=""><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Should I stop geo-replication before adding additional bricks? (I assume yes)<br>
</blockquote></div>
There is no need to stop geo-rep while adding more bricks to the volume.<div class=""><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Should I stop the volume(s) before adding additional bricks? (Doesn&#39;t _seem_ to be the case)<br>
</blockquote></div>
No.<div class=""><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Should I rebalance the volume(s) after adding the bricks?<br>
</blockquote></div>
Yes. After add-brick, rebalance should be run.<div class=""><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Should I need to recreate the geo-replication to push-pem subsequently, or can I do that out-of-band?<br>
...and if so should I have to add the passwordless SSH key back in? (As opposed to the restricted secret.pem)<br>
For that matter in the inital setup is it an expected failure mode that the initial geo-replication create will fail if the slave host&#39;s SSH key isn&#39;t known?<br>
</blockquote></div>
After the add-brick, the newly added node will not have any pem files. So you need to do &quot;geo-rep create push-pem force&quot;. This will actually push the pem files to the newly added node as well. And then you need to do &quot;geo-rep start force&quot; to start the gsync processes in newly added node.<br>

<br>
So the sequence of steps for you will be,<br>
<br>
1. Add new nodes to both master and slave using gluster add-brick command.<br></blockquote><div>After this, we need to run  &quot;gluster system:: execute gsec_create &quot; on master node and then proceed with step 2.</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2. Run geo-rep create push-pem force and start force.<br>
3. Run rebalance.<br>
<br>
Hope this works and hope it helps :)<br>
<br>
<br>
Best Regards,<br>
Vishwanath<div class="HOEnZb"><div class="h5"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks,<br>
    Paul<br>
______________________________<u></u>_________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br>
<a href="http://supercolony.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://supercolony.gluster.<u></u>org/mailman/listinfo/gluster-<u></u>users</a><br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br>
<a href="http://supercolony.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://supercolony.gluster.<u></u>org/mailman/listinfo/gluster-<u></u>users</a><br>
</div></div></blockquote></div><br></div></div>