<div dir="ltr">We are happy to help you out. Please find the answers inline.<br><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 6, 2018 at 4:39 PM, Marcus Pedersén <span dir="ltr"><<a href="mailto:marcus.pedersen@slu.se" target="_blank">marcus.pedersen@slu.se</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br>
<br>
I am planning my new gluster system and tested things out in<br>
a bunch of virtual machines.<br>
I need a bit of help to understand how geo-replication behaves.<br>
<br>
I have a master gluster cluster replica 2<br>
(in production I will use an arbiter and replicatied/distributed)<br>
and the geo cluster is distributed with 2 machines.<br>
(in production I will have the geo cluster distributed)<br></blockquote><div><br></div><div>It's recommended to use slave also to be distribute replicate/aribiter/ec. Choosing only distribute will cause issues</div><div>when of the slave node is down and a file is being synced which belongs to that node. It would not sync</div><div>later.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Everything is up and running and creating files from client both<br>
replicates and is distributed in the geo cluster.<br>
<br>
The thing I am wondering about is:<br>
When I run: gluster volume geo-replication status<br>
I see both slave nodes one is active and the other is passive.<br>
<br>
MASTER NODE MASTER VOL MASTER BRICK SLAVE USER SLAVE SLAVE NODE STATUS CRAWL STATUS LAST_SYNCED<br>
------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>---------------------<br>
gluster1 interbullfs /interbullfs geouser ssh://geouser@gluster-geo1::<wbr>interbullfs-geo gluster-geo2 Active Changelog Crawl 2018-02-06 11:46:08<br>
gluster2 interbullfs /interbullfs geouser ssh://geouser@gluster-geo1::<wbr>interbullfs-geo gluster-geo1 Passive N/A N/A<br>
<br>
<br>
If I shutdown the active slave the status changes to faulty<br>
and the other one continues to be passive.<br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
MASTER NODE MASTER VOL MASTER BRICK SLAVE USER SLAVE SLAVE NODE STATUS CRAWL STATUS LAST_SYNCED<br>
------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>----------<br>
gluster1 interbullfs /interbullfs geouser ssh://geouser@gluster-geo1::<wbr>interbullfs-geo N/A Faulty N/A N/A<br>
gluster2 interbullfs /interbullfs geouser ssh://geouser@gluster-geo1::<wbr>interbullfs-geo gluster-geo1 Passive N/A N/A<br>
<br>
<br>
In my understanding I thought that if the active slave stopped<br>
working the passive slave should become active and should<br>
continue to replicate from master.<br>
<br>
Am I wrong? Is there just one active slave if it is setup as<br>
a distributed system?<br></blockquote><div><br></div><div><div>The Active/Passive notion is for master node. If gluster1 master node is down glusterd2 master node will become Active.</div><div>It's not for slave node.<br></div><div><br></div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
What I use:<br>
Centos 7, gluster 3.12<br>
I have followed the geo instructions:<br>
<a href="http://docs.gluster.org/en/latest/Administrator%20Guide/Geo%20Replication/" rel="noreferrer" target="_blank">http://docs.gluster.org/en/<wbr>latest/Administrator%20Guide/<wbr>Geo%20Replication/</a><br>
<br>
Many thanks in advance!<br>
<br>
Bets regards<br>
Marcus<br>
<br>
--<br>
******************************<wbr>********************<br>
* Marcus Pedersén *<br>
* System administrator *<br>
******************************<wbr>********************<br>
* Interbull Centre *<br>
* ================ *<br>
* Department of Animal Breeding & Genetics — SLU *<br>
* Box 7023, SE-750 07 *<br>
* Uppsala, Sweden *<br>
******************************<wbr>********************<br>
* Visiting address: *<br>
* Room 55614, Ulls väg 26, Ultuna *<br>
* Uppsala *<br>
* Sweden *<br>
* *<br>
* Tel: +46-(0)18-67 1962 *<br>
* *<br>
******************************<wbr>********************<br>
* ISO 9001 Bureau Veritas No SE004561-1 *<br>
******************************<wbr>********************<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></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div>Thanks and Regards,<br></div>Kotresh H R<br></div></div>
</div></div></div></div></div>