<div dir="ltr"><div>Hello,<br></div><div><br></div><div>I want to create geo replication between two volumes. Volumes works just fine. But geo-replication doesn&#39;t work at all.</div><div><br></div><div>My master volume nodes are:</div><div>192.168.0.120</div><div>192.168.0.121<br></div><div>192.168.0.122<br></div><div><br></div><div>My slave volume nodes are:</div><div>192.168.0.123<br></div><div>192.168.0.124<br></div><div>192.168.0.125<br></div><div><br></div><div>My OS is: CentOS 7</div><div>I am running GlusterFS 3.8.5</div><div><br></div><div>Here is the status of geo-replication session:</div><div># gluster volume geo-replication gv0 geoaccount@192.168.0.123::gv0 status</div><div> </div><div>MASTER NODE      MASTER VOL    MASTER BRICK        SLAVE USER    SLAVE                            SLAVE NODE       STATUS    CRAWL STATUS       LAST_SYNCED                  </div><div>------------------------------------------------------------------------------------------------------------------------------------------------------------------</div><div>192.168.0.120    gv0           /data/brick1/gv0    geoaccount    geoaccount@192.168.0.123::gv0    192.168.0.123    Active    Changelog Crawl    2016-11-25 22:25:12          </div><div>192.168.0.121    gv0           /data/brick1/gv0    geoaccount    geoaccount@192.168.0.123::gv0    N/A              Faulty    N/A                N/A                          </div><div>192.168.0.122    gv0           /data/brick1/gv0    geoaccount    geoaccount@192.168.0.123::gv0    N/A              Faulty    N/A                N/A </div><div><br></div><div><br></div><div>I don&#39;t understand why it doesn&#39;t work. Here are interesting log files from the master node (192.168.0.120):</div><div>/var/log/glusterfs/etc-glusterfs-glusterd.vol.log - <a href="http://paste.openstack.org/show/590503/">http://paste.openstack.org/show/590503/</a></div><div><br></div><div>/var/log/glusterfs/mnt.log - <a href="http://paste.openstack.org/show/590504/">http://paste.openstack.org/show/590504/</a></div><div><br></div><div>/var/log/glusterfs/run-gluster-shared_storage.log - <a href="http://paste.openstack.org/show/590505/">http://paste.openstack.org/show/590505/</a></div><div><br></div><div>/var/log/glusterfs/geo-replication/gv0/ssh%3A%2F%2Fgeoaccount%40192.168.0.123%3Agluster%3A%2F%2F127.0.0.1%3Agv0.log - <a href="http://paste.openstack.org/show/590506/">http://paste.openstack.org/show/590506/</a></div><div><br></div><div>Here is a log file from the slave node (192.168.0.123):</div><div>/var/log/glusterfs/geo-replication-slaves/5afe64e3-d4e9-452b-a9cf-10674e052616\:gluster%3A%2F%2F127.0.0.1%3Agv0.gluster.log  - <a href="http://paste.openstack.org/show/590507/">http://paste.openstack.org/show/590507/</a></div><div><br></div><div>Here is how I have created a session:</div><div>On slave nodes:</div><div><div>useradd geoaccount</div><div>groupadd geogroup</div><div>usermod -a -G geogroup geoaccount</div><div>usermod -a -G geogroup root</div><div>passwd geoaccount</div></div><div><div>mkdir -p /var/mountbroker-root</div><div>chown root:root -R /var/mountbroker-root</div><div>chmod 0711 -R /var/mountbroker-root</div><div>chown root:geogroup -R /var/lib/glusterd/geo-replication/*</div></div><div>chmod g=rwx,u=rwx,o-rwx -R /var/lib/glusterd/geo-replication/*<br></div><div><br></div><div>On the slave (192.168.0.123):</div><div><div>gluster system:: execute mountbroker opt mountbroker-root /var/mountbroker-root</div><div>gluster system:: execute mountbroker opt geo-replication-log-group geogroup</div><div>gluster system:: execute mountbroker opt rpc-auth-allow-insecure on</div></div><div>gluster system:: execute mountbroker user geoaccount gv0<br></div><div>/usr/libexec/glusterfs/set_geo_rep_pem_keys.sh geoaccount gv0 gv0<br></div><div>gluster volume set all cluster.enable-shared-storage enable<br></div><div><br></div><div>Then I have restarted all the slaves:</div><div>systemctl restart glusterd<br></div><div><br></div><div>On the master node (192.168.0.120):</div><div>ssh-keygen<br></div><div>ssh-copy-id <a href="mailto:geoaccount@192.168.0.123">geoaccount@192.168.0.123</a><br></div><div>gluster system:: execute gsec_create container</div><div>gluster volume set all cluster.enable-shared-storage enable<br></div><div>gluster volume geo-replication gv0 geoaccount@192.168.0.123::gv0 create ssh-port 22 push-pem<br></div><div><div>gluster volume geo-replication gv0 geoaccount@192.168.0.123::gv0 config remote-gsyncd /usr/libexec/glusterfs/gsyncd</div><div>gluster volume geo-replication gv0 geoaccount@192.168.0.123::gv0 config use-meta-volume true</div><div>gluster volume geo-replication gv0 geoaccount@192.168.0.123::gv0 config sync-jobs 3</div><div>gluster volume geo-replication gv0 geoaccount@192.168.0.123::gv0 start</div></div><div><br></div><div>Does somebody know what is wrong with this installation? I tried to install geo-replication for several times but without success.. Please help me</div><div><br></div><div>Sincerely,</div><div>Alexandr</div></div>