(k)rafaeldtinoco@kcluster03:~$ crm status
Stack: corosync
Current DC: kcluster02 (version 2.0.1-9e909a5bdd) - partition with quorum
Last updated: Thu Oct 10 17:13:19 2019
Last change: Thu Oct 10 17:11:48 2019 by root via cibadmin on kcluster01
3 nodes configured
5 resources configured
Online: [ kcluster01 kcluster02 kcluster03 ]
Full list of resources:
fence_kcluster01 (stonith:fence_virsh): Started kcluster02
fence_kcluster02 (stonith:fence_virsh): Started kcluster01
fence_kcluster03 (stonith:fence_virsh): Started kcluster01
Resource Group: webserver_virtual_ip
webserver (systemd:lighttpd): Started kcluster03
virtual_ip (ocf::heartbeat:IPaddr2): Started kcluster03
(k)rafaeldtinoco@kcluster03:~$ ip addr show eth3
5: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 52:54:00:b0:c3:06 brd ff:ff:ff:ff:ff:ff
inet 10.0.3.4/24 brd 10.0.3.255 scope global eth3
valid_lft forever preferred_lft forever
inet 10.0.3.1/24 brd 10.0.3.255 scope global secondary eth3
valid_lft forever preferred_lft forever
inet6 fe80::5054:ff:feb0:c306/64 scope link
valid_lft forever preferred_lft forever
(k)rafaeldtinoco@kcluster03:~$ ip addr show eth3
5: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 52:54:00:b0:c3:06 brd ff:ff:ff:ff:ff:ff
inet 10.0.3.4/24 brd 10.0.3.255 scope global eth3
valid_lft forever preferred_lft forever
inet6 fe80::5054:ff:feb0:c306/64 scope link
valid_lft forever preferred_lft forever
<wait for resource monitor timeout, pacemaker starts virtual_ip again>
(k)rafaeldtinoco@kcluster03:~$ ip addr show eth3
5: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 52:54:00:b0:c3:06 brd ff:ff:ff:ff:ff:ff
inet 10.0.3.4/24 brd 10.0.3.255 scope global eth3
valid_lft forever preferred_lft forever
inet 10.0.3.1/24 brd 10.0.3.255 scope global secondary eth3
valid_lft forever preferred_lft forever
inet6 fe80::5054:ff:feb0:c306/64 scope link
valid_lft forever preferred_lft forever
(k)rafaeldtinoco@kcluster03:~$
Pacemaker logs:
Oct 10 17:14:37 kcluster03 IPaddr2(virtual_ip)[6901]: INFO: IP status = no, IP_CIP=
Oct 10 17:14:37 kcluster03 pacemaker-controld[1266]: notice: Result of stop operation for virtual_ip on kcluster03: 0 (ok)
Oct 10 17:14:37 kcluster03 IPaddr2(virtual_ip)[6951]: INFO: Adding inet address 10.0.3.1/24 with broadcast address 10.0.3.255 to device eth3
Oct 10 17:14:37 kcluster03 IPaddr2(virtual_ip)[6956]: INFO: Bringing device eth3 up
Oct 10 17:14:37 kcluster03 IPaddr2(virtual_ip)[6961]: INFO: /usr/lib/heartbeat/send_arp -i 200 -r 5 -p /run/resource-agents/send_arp-10.0.3.1 eth3 10.0.3.1 auto not_used not_used
Oct 10 17:14:37 kcluster03 pacemaker-controld[1266]: notice: Result of start operation for virtual_ip on kcluster03: 0 (ok)
Test Case:
(k)rafaeldtinoc o@kcluster03: ~$ crm status
Stack: corosync
Current DC: kcluster02 (version 2.0.1-9e909a5bdd) - partition with quorum
Last updated: Thu Oct 10 17:13:19 2019
Last change: Thu Oct 10 17:11:48 2019 by root via cibadmin on kcluster01
3 nodes configured
5 resources configured
Online: [ kcluster01 kcluster02 kcluster03 ]
Full list of resources:
fence_kcluster01 (stonith: fence_virsh) : Started kcluster02 fence_virsh) : Started kcluster01 fence_virsh) : Started kcluster01 virtual_ ip :IPaddr2) : Started kcluster03
fence_kcluster02 (stonith:
fence_kcluster03 (stonith:
Resource Group: webserver_
webserver (systemd:lighttpd): Started kcluster03
virtual_ip (ocf::heartbeat
(k)rafaeldtinoc o@kcluster03: ~$ ip addr show eth3 MULTICAST, UP,LOWER_ UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 ff:feb0: c306/64 scope link
5: eth3: <BROADCAST,
link/ether 52:54:00:b0:c3:06 brd ff:ff:ff:ff:ff:ff
inet 10.0.3.4/24 brd 10.0.3.255 scope global eth3
valid_lft forever preferred_lft forever
inet 10.0.3.1/24 brd 10.0.3.255 scope global secondary eth3
valid_lft forever preferred_lft forever
inet6 fe80::5054:
valid_lft forever preferred_lft forever
(k)rafaeldtinoc o@kcluster03: ~$ systemctl restart systemd-networkd
(k)rafaeldtinoc o@kcluster03: ~$ ip addr show eth3 MULTICAST, UP,LOWER_ UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 ff:feb0: c306/64 scope link
5: eth3: <BROADCAST,
link/ether 52:54:00:b0:c3:06 brd ff:ff:ff:ff:ff:ff
inet 10.0.3.4/24 brd 10.0.3.255 scope global eth3
valid_lft forever preferred_lft forever
inet6 fe80::5054:
valid_lft forever preferred_lft forever
<wait for resource monitor timeout, pacemaker starts virtual_ip again>
(k)rafaeldtinoc o@kcluster03: ~$ ip addr show eth3 MULTICAST, UP,LOWER_ UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 ff:feb0: c306/64 scope link o@kcluster03: ~$
5: eth3: <BROADCAST,
link/ether 52:54:00:b0:c3:06 brd ff:ff:ff:ff:ff:ff
inet 10.0.3.4/24 brd 10.0.3.255 scope global eth3
valid_lft forever preferred_lft forever
inet 10.0.3.1/24 brd 10.0.3.255 scope global secondary eth3
valid_lft forever preferred_lft forever
inet6 fe80::5054:
valid_lft forever preferred_lft forever
(k)rafaeldtinoc
Pacemaker logs:
Oct 10 17:14:37 kcluster03 IPaddr2( virtual_ ip)[6901] : INFO: IP status = no, IP_CIP= controld[ 1266]: notice: Result of stop operation for virtual_ip on kcluster03: 0 (ok) virtual_ ip)[6951] : INFO: Adding inet address 10.0.3.1/24 with broadcast address 10.0.3.255 to device eth3 virtual_ ip)[6956] : INFO: Bringing device eth3 up virtual_ ip)[6961] : INFO: /usr/lib/ heartbeat/ send_arp -i 200 -r 5 -p /run/resource- agents/ send_arp- 10.0.3. 1 eth3 10.0.3.1 auto not_used not_used controld[ 1266]: notice: Result of start operation for virtual_ip on kcluster03: 0 (ok)
Oct 10 17:14:37 kcluster03 pacemaker-
Oct 10 17:14:37 kcluster03 IPaddr2(
Oct 10 17:14:37 kcluster03 IPaddr2(
Oct 10 17:14:37 kcluster03 IPaddr2(
Oct 10 17:14:37 kcluster03 pacemaker-
for the operation.