<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Gilberto,<div class=""><br class=""></div><div class="">Happy to see georepsetup tool is useful for you. The repo I moved to&nbsp;<a href="https://github.com/aravindavk/gluster-georep-tools" class="">https://github.com/aravindavk/gluster-georep-tools</a>&nbsp;(renamed as “gluster-georep-setup”).</div><div class=""><br class=""></div><div class="">I think the georep command failure is due to respective node’s(peer) Glusterd is not reachable/down.</div><div class=""><br class=""></div><div class=""><div>Aravinda Vishwanathapura</div><div><a href="https://kadalu.io" class="">https://kadalu.io</a></div><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">On 27-Oct-2020, at 2:15 AM, Gilberto Nunes &lt;<a href="mailto:gilberto.nunes32@gmail.com" class="">gilberto.nunes32@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">I was&nbsp;able to solve the issue restarting all servers.</div><div class=""><br class=""></div>Now I have&nbsp;another issue!<div class=""><br class=""></div><div class="">I just powered off the gluster01 server and then the geo-replication entered in faulty status.</div><div class="">I tried to stop and start the gluster geo-replication like that:</div><div class=""><br class=""></div><div class=""><span style="font-family:monospace" class=""><span style="" class="">gluster volume geo-replication DATA root@gluster03::DATA-SLAVE resume &nbsp;</span><br class="">Peer gluster01.home.local, which is a part of DATA volume, is down. Please bring up the peer and retry.
<br class="">geo-replication command failed<br class="">
<br class=""></span></div><div class=""><span style="font-family:monospace" class="">How can I have geo-replication with 2 master and 1 slave?</span></div><div class=""><span style="font-family:monospace" class=""><br class=""></span></div><div class=""><span style="font-family:monospace" class="">Thanks</span></div><div class=""><br class=""></div><div class=""><br clear="all" class=""><div class=""><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class="">---</div><div class=""><div class=""><div class="">Gilberto Nunes Ferreira</div></div><div class=""><br class=""></div><div class=""><p style="font-size:12.8px;margin:0px" class=""></p><div style="font-size: 12.8px; margin: 0px;" class=""><br class=""></div><div style="font-size: 12.8px; margin: 0px;" class=""><br class=""></div></div></div><div class=""><br class=""></div></div></div></div></div></div></div></div><br class=""></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em seg., 26 de out. de 2020 às 17:23, Gilberto Nunes &lt;<a href="mailto:gilberto.nunes32@gmail.com" class="">gilberto.nunes32@gmail.com</a>&gt; escreveu:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class="">Hi there...<div class=""><br class=""></div><div class="">I'd created a 2 gluster vol and another 1 gluster server acting as a backup server, using geo-replication.</div><div class="">So in gluster01 I'd issued the command:</div><div class=""><br class=""></div><div class=""><span style="font-family:monospace" class=""><span style="" class="">gluster peer probe gluster02;gluster peer probe gluster03</span><br class=""></span></div><div class=""><span style="font-family:monospace" class=""><span style="" class="">gluster vol create DATA replica 2 gluster01:/DATA/master01-data gluster02:/DATA/master01-data/</span><br class=""></span></div><div class=""><span style="font-family:monospace" class=""><span style="" class=""><br class=""></span></span></div><div class=""><span style="font-family:monospace" class=""><span style="" class="">Then in gluster03 server:</span></span></div><div class=""><span style="font-family:monospace" class=""><span style="" class=""><br class=""></span></span></div><div class=""><span style="font-family:monospace" class=""><span style="" class="">gluster vol create DATA-SLAVE gluster03:/DATA/slave-data/</span></span></div><div class=""><span style="font-family:monospace" class=""><font class=""><br class=""></font></span></div><div class=""><span style="font-family:monospace" class=""><font class="">I'd setted the ssh powerless session between this 3 servers.</font></span></div><div class=""><span style="font-family:monospace" class=""><font class=""><br class=""></font></span></div><div class=""><span style="font-family:monospace" class=""><font class="">Then I'd used this script</font></span></div><div class=""><br class=""></div><div class=""><a href="https://github.com/gilbertoferreira/georepsetup" target="_blank" class="">https://github.com/gilbertoferreira/georepsetup</a><br class=""></div><div class=""><br class=""></div><div class="">like this</div><div class=""><br class=""></div><div class=""><span style="font-family:monospace" class=""><span style="" class="">georepsetup &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><br class="">/usr/local/lib/python2.7/dist-packages/paramiko-2.7.2-py2.7.egg/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supp<br class="">orted by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
<br class=""> &nbsp;from cryptography.hazmat.backends import default_backend
<br class="">usage: georepsetup [-h] [--force] [--no-color] MASTERVOL SLAVE SLAVEVOL
<br class="">georepsetup: error: too few arguments
<br class="">gluster01:~# georepsetup DATA gluster03 DATA-SLAVE
<br class="">/usr/local/lib/python2.7/dist-packages/paramiko-2.7.2-py2.7.egg/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supp<br class="">orted by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
<br class=""> &nbsp;from cryptography.hazmat.backends import default_backend
<br class="">Geo-replication session will be established between DATA and gluster03::DATA-SLAVE
<br class="">Root password of gluster03 is required to complete the setup. NOTE: Password will not be stored.
<br class="">
<br class="">root@gluster03's password: &nbsp;<br class=""><span style="color:rgb(24,178,24)" class="">[ &nbsp;&nbsp;&nbsp;OK]</span><span style="" class=""> gluster03 is Reachable(Port 22)
</span><br class=""><span style="color:rgb(24,178,24)" class="">[ &nbsp;&nbsp;&nbsp;OK]</span><span style="" class=""> SSH Connection established root@gluster03
</span><br class=""><span style="color:rgb(24,178,24)" class="">[ &nbsp;&nbsp;&nbsp;OK]</span><span style="" class=""> Master Volume and Slave Volume are compatible (Version: 8.2)
</span><br class=""><span style="color:rgb(24,178,24)" class="">[ &nbsp;&nbsp;&nbsp;OK]</span><span style="" class=""> Common secret pub file present at /var/lib/glusterd/geo-replication/common_secret.pem.pub
</span><br class=""><span style="color:rgb(24,178,24)" class="">[ &nbsp;&nbsp;&nbsp;OK]</span><span style="" class=""> common_secret.pem.pub file copied to gluster03
</span><br class=""><span style="color:rgb(24,178,24)" class="">[ &nbsp;&nbsp;&nbsp;OK]</span><span style="" class=""> Master SSH Keys copied to all Up Slave nodes
</span><br class=""><span style="color:rgb(24,178,24)" class="">[ &nbsp;&nbsp;&nbsp;OK]</span><span style="" class=""> Updated Master SSH Keys to all Up Slave nodes authorized_keys file
</span><br class=""><span style="color:rgb(24,178,24)" class="">[ &nbsp;&nbsp;&nbsp;OK]</span><span style="" class=""> Geo-replication Session Established</span><br class="">
<br class=""></span></div><div class=""><span style="font-family:monospace" class="">Then I reboot the 3 servers...</span></div><div class=""><span style="font-family:monospace" class="">After a while everything works ok, but after a few minutes, I get Faulty status in gluster01....</span></div><div class=""><span style="font-family:monospace" class=""><br class=""></span></div><div class=""><span style="font-family:monospace" class="">There's the log</span></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><span style="font-family:monospace" class=""><span style="" class="">[2020-10-26 20:16:41.362584] I [gsyncdstatus(monitor):248:set_worker_status] GeorepStatus: Worker Status Change [{status=Initializing...}]
</span><br class="">[2020-10-26 20:16:41.362937] I [monitor(monitor):160:monitor] Monitor: starting gsyncd worker [{brick=/DATA/master01-data}, {slave_node=gluster03}]
<br class="">[2020-10-26 20:16:41.508884] I [resource(worker /DATA/master01-data):1387:connect_remote] SSH: Initializing SSH connection between master and slave.<br class="">..
<br class="">[2020-10-26 20:16:42.996678] I [resource(worker /DATA/master01-data):1436:connect_remote] SSH: SSH connection between master and slave established. <br class="">[{duration=1.4873}]
<br class="">[2020-10-26 20:16:42.997121] I [resource(worker /DATA/master01-data):1116:connect] GLUSTER: Mounting gluster volume locally...
<br class="">[2020-10-26 20:16:44.170661] E [syncdutils(worker /DATA/master01-data):110:gf_mount_ready] &lt;top&gt;: failed to get the xattr value
<br class="">[2020-10-26 20:16:44.171281] I [resource(worker /DATA/master01-data):1139:connect] GLUSTER: Mounted gluster volume [{duration=1.1739}]
<br class="">[2020-10-26 20:16:44.171772] I [subcmds(worker /DATA/master01-data):84:subcmd_worker] &lt;top&gt;: Worker spawn successful. Acknowledging back to monitor
<br class="">[2020-10-26 20:16:46.200603] I [master(worker /DATA/master01-data):1645:register] _GMaster: Working dir [{path=/var/lib/misc/gluster/gsyncd/DATA_glu<br class="">ster03_DATA-SLAVE/DATA-master01-data}]
<br class="">[2020-10-26 20:16:46.201798] I [resource(worker /DATA/master01-data):1292:service_loop] GLUSTER: Register time [{time=1603743406}]
<br class="">[2020-10-26 20:16:46.226415] I [gsyncdstatus(worker /DATA/master01-data):281:set_active] GeorepStatus: Worker Status Change [{status=Active}]
<br class="">[2020-10-26 20:16:46.395112] I [gsyncdstatus(worker /DATA/master01-data):253:set_worker_crawl_status] GeorepStatus: Crawl Status Change [{status=His<br class="">tory Crawl}]
<br class="">[2020-10-26 20:16:46.396491] I [master(worker /DATA/master01-data):1559:crawl] _GMaster: starting history crawl [{turns=1}, {stime=(1603742506, 0)},<br class=""> {etime=1603743406}, {entry_stime=(1603743226, 0)}]
<br class="">[2020-10-26 20:16:46.399292] E [resource(worker /DATA/master01-data):1312:service_loop] GLUSTER: Changelog History Crawl failed [{error=[Errno 0] Su<br class="">cesso}]
<br class="">[2020-10-26 20:16:47.177205] I [monitor(monitor):228:monitor] Monitor: worker died in startup phase [{brick=/DATA/master01-data}]
<br class="">[2020-10-26 20:16:47.184525] I [gsyncdstatus(monitor):248:set_worker_status] GeorepStatus: Worker Status Change [{status=Faulty}]<br class="">
<br class=""></span></div><div class=""><br class=""></div><div class="">Any advice will be welcome.</div><div class=""><br class=""></div><div class="">Thanks</div><div class=""><br clear="all" class=""><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class="">---</div><div class=""><div class=""><div class="">Gilberto Nunes Ferreira</div></div><div class=""><br class=""></div><div class=""><p style="font-size:12.8px;margin:0px" class=""></p><div style="font-size: 12.8px; margin: 0px;" class=""><br class=""></div><div style="font-size: 12.8px; margin: 0px;" class=""><br class=""></div></div></div><div class=""><br class=""></div></div></div></div></div></div></div></div></div></div>
</blockquote></div>
________<br class=""><br class=""><br class=""><br class="">Community Meeting Calendar:<br class=""><br class="">Schedule -<br class="">Every 2nd and 4th Tuesday at 14:30 IST / 09:00 UTC<br class="">Bridge: <a href="https://bluejeans.com/441850968" class="">https://bluejeans.com/441850968</a><br class=""><br class="">Gluster-users mailing list<br class=""><a href="mailto:Gluster-users@gluster.org" class="">Gluster-users@gluster.org</a><br class="">https://lists.gluster.org/mailman/listinfo/gluster-users<br class=""></div></blockquote></div><br class=""><div class="">
<div><br class=""></div><br class="Apple-interchange-newline">

</div>
<br class=""></div></body></html>