Hi,
I'm getting mad at trying to configure this.
After my last resinstall of the 3 nodes I did the following:
(sorry, for legacy reasons my nodes are called mynode0, mynode3 and mynode4)
- each machine has 2 eth network connection, a public one and a "private" one, which is in fact on a dedicated network of my hosting provider
- each machine works fine, in cli/ssh as well as in gui/web, all are updated to the last versions
- the /etc/hosts on each machine starts with its public IP and corresponding name, and the 3 lines defining the IPs of the nodes, eg
- none hosts any container or vm yet, and will not until the cluster is up and running
- I have copied the ssh keys etc: from mynode0, ssh root@node3 and ssh@node4 connect passwordless (and similar from the 2 others)
I've started pvecm on mynode3
- then edited /etc/corosync/corosync.conf, to activate the two_node mode (in the hope to avoid quorum issues), and other options found in corosync.conf manpage, and the unicast "udpu" as found in the totem manpage:
Then reboot the machine to be sure, and once it is on (check pvecm status: ok) use a different ssh window to connect to mynode4 and type "pvecm add mynode3"
It fails...
OK, let's try something else: ssh to mynode3, type "pvecm addnode mynode0"
Fails too.
1 - Any hint at where I went wrong? or is it related to my config and how can I work around it?
2 - Is there some way to resolve the situation without reinstalling (and reinstall fail2ban, postfix, etx)
3 - If no other way than reinstall, what should I do differently?
I'm getting mad at trying to configure this.
After my last resinstall of the 3 nodes I did the following:
(sorry, for legacy reasons my nodes are called mynode0, mynode3 and mynode4)
- each machine has 2 eth network connection, a public one and a "private" one, which is in fact on a dedicated network of my hosting provider
- each machine works fine, in cli/ssh as well as in gui/web, all are updated to the last versions
- the /etc/hosts on each machine starts with its public IP and corresponding name, and the 3 lines defining the IPs of the nodes, eg
127.0.0.1 localhost
xx.xxx.xxx.xxx myserver.com myserver
yy.71.84.10 mynode0
yy.71.80.16 mynode3
yy.71.83.18 mynode4
(ip obfuscated of course)xx.xxx.xxx.xxx myserver.com myserver
yy.71.84.10 mynode0
yy.71.80.16 mynode3
yy.71.83.18 mynode4
- none hosts any container or vm yet, and will not until the cluster is up and running
- I have copied the ssh keys etc: from mynode0, ssh root@node3 and ssh@node4 connect passwordless (and similar from the 2 others)
I've started pvecm on mynode3
- then edited /etc/corosync/corosync.conf, to activate the two_node mode (in the hope to avoid quorum issues), and other options found in corosync.conf manpage, and the unicast "udpu" as found in the totem manpage:
logging {
debug: off
to_syslog: yes
}
nodelist {
node {
name: mynode3
nodeid: 1
quorum_votes: 1
ring0_addr: mynode3
}
}
quorum {
auto_tie_breaker: 1
last_man_standing: 1
last_man_standing_window: 10000
provider: corosync_votequorum
two_node: 1
}
totem {
cluster_name: mycluster
config_version: 2
ip_version: ipv4
secauth: on
transport: udpu
version: 2
interface {
bindnetaddr: yy.71.80.16
ringnumber: 0
}
}
debug: off
to_syslog: yes
}
nodelist {
node {
name: mynode3
nodeid: 1
quorum_votes: 1
ring0_addr: mynode3
}
}
quorum {
auto_tie_breaker: 1
last_man_standing: 1
last_man_standing_window: 10000
provider: corosync_votequorum
two_node: 1
}
totem {
cluster_name: mycluster
config_version: 2
ip_version: ipv4
secauth: on
transport: udpu
version: 2
interface {
bindnetaddr: yy.71.80.16
ringnumber: 0
}
}
Then reboot the machine to be sure, and once it is on (check pvecm status: ok) use a different ssh window to connect to mynode4 and type "pvecm add mynode3"
It fails...
OK, let's try something else: ssh to mynode3, type "pvecm addnode mynode0"
Fails too.
1 - Any hint at where I went wrong? or is it related to my config and how can I work around it?
2 - Is there some way to resolve the situation without reinstalling (and reinstall fail2ban, postfix, etx)
3 - If no other way than reinstall, what should I do differently?