About the cluster joining a synchronization problem

SCM

Well-Known Member
Aug 9, 2019
43
2
48
21
I modified the ssh port, A and B clusters can also log in to each other, but the clusters cannot be synchronized. When I use the default port 22, restarting the service is fine. I confirm that ssh_config and sshd_config have been modified, and the ssh login is normal

such as:
connect('dbname=Proxmox_ruledb;host=/run/pmgtunnel;port=2;','root',...) failed: could not connect to server: No such file or directory#012#011Is the server running locally and accepting#012#011connections on Unix domain socket "/run/pmgtunnel/.s.PGSQL.2"? at /usr/share/perl5/PMG/DBTools.pm line 68.​
 
which modification to the ssh config did you make?
In general PMG assumes that the ssh config stays more or less the same, and it cannot support arbitrary changes to the config, since cluster synchronization relies (partially) on ssh

check if the command:
Code:
 /usr/bin/ssh -N -o BatchMode=yes -o HostKeyAlias=<node>-L /run/pmgtunnel/.s.PGSQL.2:/var/run/postgresql/.s.PGSQL.5432 <node-ip>
works, where you replace <node> by the nodename as it's written in the cluster.conf, and <node-ip> as the ip of the node in the cluster config...

I hope this helps!