Got a testlab with two cluster networks, a private 3x1Gbs bonded and a public 100Mbs:
I just want to make sure live migration always happens across ring0 network, thus I've assigned unqualified host names in /etc/hosts to ring0 NW:
only live mig. don't pick the ring0 (privat) network now but ring1 (public), it briefly did pick ring0 before last 'dist-upgrade' though... hm wondering why no longer. Hints appreciated!
corosync.conf snippet:
...
nodelist {
node {
name: node5
nodeid: 3
quorum_votes: 1
ring0_addr: 10.0.0.55
ring1_addr: <public node5>
}
node {
name: node6
nodeid: 2
quorum_votes: 1
ring0_addr: 10.0.0.56
ring1_addr: <public node6>
}
node {
name: node7
nodeid: 1
quorum_votes: 1
ring0_addr: 10.0.0.57
ring1_addr: <public node7>
}
}
# Both networks works fine:
# corosync-cfgtool -s
Printing ring status.
Local node ID 2
RING ID 0
id = 10.0.0.56
status = ring 0 active with no faults
RING ID 1
id = <public node6>
status = ring 1 active with no faults
I just want to make sure live migration always happens across ring0 network, thus I've assigned unqualified host names in /etc/hosts to ring0 NW:
/etc/hosts snippet:
...
#
# Ceph vlan 10
10.0.0.1 n1.ceph n1
10.0.0.2 n2.ceph n2
10.0.0.3 n3.ceph n3
10.0.0.4 n4.ceph n4
#
# PVE ring0
10.0.0.55 node5 node5.ring0
10.0.0.56 node6 node6.ring0
10.0.0.57 node7 node7.ring0
node6# cat /etc/resolv.conf
search <public domain>
nameserver <NS1>
nameserver <NS2>
node6# cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: compat
group: compat
shadow: compat
gshadow: files
hosts: files dns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
only live mig. don't pick the ring0 (privat) network now but ring1 (public), it briefly did pick ring0 before last 'dist-upgrade' though... hm wondering why no longer. Hints appreciated!