Yesterday I set out to update my corosync config to add a third NIC. That third NIC per machine is to be the main corosync interface. Here's my original config before updating:
I updated the code as follows:
I got the following error in my logs:
What did I do wrong here? I ended up restoring from the corosync backup which I then learned I still had to update config_version to 6 else it didn't work once I rebooted a node to test. Now it is all working as it was with just the two NICs, but trying to figure out my mistake before tackling this again.
Code:
logging {
debug: off
to_syslog: yes
}
nodelist {
node {
name: pve3
nodeid: 3
quorum_votes: 1
ring0_addr: 192.168.2.8
ring1_addr: 192.168.1.22
}
node {
name: pve2
nodeid: 2
quorum_votes: 1
ring0_addr: 192.168.2.7
ring1_addr: 192.168.1.250
}
node {
name: pve1
nodeid: 1
quorum_votes: 1
ring0_addr: 192.168.2.6
ring1_addr: 192.168.1.8
}
}
quorum {
provider: corosync_votequorum
}
totem {
cluster_name: Pantheon
config_version: 4
interface {
linknumber: 0
knet_link_priority: 2
}
interface {
linknumber: 1
knet_link_priority: 1
}
ip_version: ipv4-6
link_mode: passive
secauth: on
version: 2
}
I updated the code as follows:
Code:
logging {
debug: off
to_syslog: yes
}
nodelist {
node {
name: pve3
nodeid: 3
quorum_votes: 1
ring0_addr: 192.168.3.8
ring1_addr: 192.168.2.8
ring2_addr: 192.168.1.22
}
node {
name: pve2
nodeid: 2
quorum_votes: 1
ring0_addr: 192.168.3.7
ring1_addr: 192.168.2.7
ring2_addr: 192.168.1.250
}
node {
name: pve1
nodeid: 1
quorum_votes: 1
ring0_addr: 192.168.3.6
ring1_addr: 192.168.2.6
ring2_addr: 192.168.1.8
}
}
quorum {
provider: corosync_votequorum
}
totem {
cluster_name: Pantheon
config_version: 5
interface {
linknumber: 0
knet_link_priority: 3
}
interface {
linknumber: 1
knet_link_priority: 2
}
interface {
linknumber: 2
knet_link_priority: 1
}
ip_version: ipv4-6
link_mode: passive
secauth: on
version: 2
}
I got the following error in my logs:
Code:
Oct 25 19:45:47 zeus pmxcfs[4154]: [dcdb] notice: wrote new corosync config '/etc/corosync/corosync.conf' (version = 5)
Oct 25 19:45:48 zeus corosync[4257]: [CFG ] Config reload requested by node 1
Oct 25 19:45:48 zeus corosync[4257]: [TOTEM ] new config has different address for link 0 (addr changed from 192.168.2.8 to 192.168.3.8). Internal value was NOT changed.
Oct 25 19:45:48 zeus corosync[4257]: [TOTEM ] new config has different address for link 0 (addr changed from 192.168.2.7 to 192.168.3.7). Internal value was NOT changed.
Oct 25 19:45:48 zeus corosync[4257]: [TOTEM ] new config has different address for link 0 (addr changed from 192.168.2.6 to 192.168.3.6). Internal value was NOT changed.
Oct 25 19:45:48 zeus corosync[4257]: [TOTEM ] new config has different address for link 1 (addr changed from 192.168.1.22 to 192.168.2.8). Internal value was NOT changed.
Oct 25 19:45:48 zeus corosync[4257]: [TOTEM ] new config has different address for link 1 (addr changed from 192.168.1.250 to 192.168.2.7). Internal value was NOT changed.
Oct 25 19:45:48 zeus corosync[4257]: [TOTEM ] new config has different address for link 1 (addr changed from 192.168.1.8 to 192.168.2.6). Internal value was NOT changed.
Oct 25 19:45:48 zeus corosync[4257]: [CFG ] Cannot configure new interface definitions: To reconfigure an interface it must be deleted and recreated. A working interface needs to be available to corosync at all times
Oct 25 19:45:48 zeus corosync[4257]: [KNET ] pmtud: MTU manually set to: 0
Oct 25 19:45:48 zeus pmxcfs[4154]: [dcdb] crit: corosync-cfgtool -R failed with exit code 7#010
What did I do wrong here? I ended up restoring from the corosync backup which I then learned I still had to update config_version to 6 else it didn't work once I rebooted a node to test. Now it is all working as it was with just the two NICs, but trying to figure out my mistake before tackling this again.