<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<font face="FreeSerif">I am trying to test a trivial configuration
of 2 hosts, each of which has a simple 1-brick volume, that I wish
to geo-rep from one to the other.<br>
When I first experimented with this a couple years ago, it worked,
but that effort ended prematurely and I never finished the real
setup. I am coming back to it now for other purposes.<br>
<br>
I'm on Fedora 39 with gluster 11.1. I'm using this guide:<br>
<a class="moz-txt-link-freetext" href="https://docs.gluster.org/en/main/Administrator-Guide/Geo-Replication/">https://docs.gluster.org/en/main/Administrator-Guide/Geo-Replication/</a><br>
<br>
Hosts are pjs and pms, with respective volumes j and n.<br>
I have created, started, and mounted the volumes, each on their
own localhost.<br>
I can also have each mount the other's volume, so general
operation seems ok.<br>
</font><br>
<font face="FreeSerif">I have added the geoacct user and group, set
up password-less login for </font><font face="FreeSerif">each </font><font
face="FreeSerif">local root -> geoacct@other.</font><font
face="FreeSerif"><br>
</font><font face="FreeSerif">gluster-mountbroker things have been
done and "gluster-mountbroker status" is sensible.</font><br>
<font face="FreeSerif">"gluster-georep-sshkey generate" has done
what I'd expect.<br>
<br>
I'm at the point of creating geo-replication. Command on pjs is:<br>
<br>
</font><font face="monospace">gluster volume geo-replication j
geoacct@pms::n create ssh-port 6247 push-pem</font><font
face="FreeSerif"><br>
(Yes, sshd listens on a nonstandard port.)<br>
<br>
This fails with:<br>
</font><font face="monospace">Please check gsync config file. Unable
to get statefile's name<br>
geo-replication command failed</font><font face="FreeSerif"><br>
<br>
Logs, which I have been tail(1)ing as it happens, show:<br>
<br>
</font><font face="monospace">Received mount request for volume j <br>
Config file
(/var/lib/glusterd/geo-replication/j_pms_n/gsyncd.conf) missing.
Looking for template config file
(/var/lib/glusterd/geo-replication/gsyncd_template.conf) [No such
file or directory]<br>
Using default config
template(/var/lib/glusterd/geo-replication/gsyncd_template.conf).
<br>
reading data from child failed <br>
Unable to get configuration data for j(primary),
geoacct@pms::n(secondary) from template config <br>
Please check gsync config file. Unable to get statefile's name <br>
Staging of operation 'Volume Geo-replication Create' failed on
localhost : Please check gsync config file. Unable to get
statefile's name<br>
</font><font face="FreeSerif"><br>
When I check on the files named, a bit of unhappiness is found:<br>
<br>
</font><font face="monospace">$ ls -l
/var/lib/glusterd/geo-replication/j_pms_n/gsyncd.conf
/var/lib/glusterd/geo-replication/gsyncd_template.conf<br>
ls: cannot access
'/var/lib/glusterd/geo-replication/j_pms_n/gsyncd.conf': No such
file or directory<br>
-rwxr-xr-x 1 root geoacct 0 Aug 11 08:13
/var/lib/glusterd/geo-replication/gsyncd_template.conf</font><font
face="FreeSerif"><br>
<br>
That the first is missing seems normal; geo-rep creation should
instantiate it, yes? The problem seems to be that the template
file is present but empty.<br>
<br>
How does the template file come into existence, and how should it
be populated?<br>
<br>
(~geoacct is /var/lib/glusterd/geoacct.)<br>
<br>
Any clues would be most welcome. It feels strange to have
everything working right up to the point of geo-rep creation.<br>
<br>
--karl</font><br>
</body>
</html>