I have two Virtual machines with two network interfaces.

See configuration below:

*eth0 - service network
*eth1 - heartbeat network

*vi /etc/hosts - RhelA(ip of eth1) / RhelB(ip of eth1)
*service firewalld stop

*pcs resource create VirtualIP ocf:heartbeat:IPaddr2 ip=(virtual ip)
cidr_netmas=32 op monitor interval =30s

*pcs resource create eth1-monitor ethmonitor interface=eth1 --clone

*pcs constraint location VirtualIP rule score=-INFINITY ethmonitor-ens192
ne 1

+++++++++++

I tried to ifdown eth0(service network). The result is:

1. VirtualIP resource switched to Node2
2. Got an error from pcs status, Error "unable to find nic...."
3. Even after a successful failover, error still exist

Since it automatically switced to Node2, my goal is to failover again to
Node1. This is what I did:

1. Enable eth0 of node1, wait for 15 seconds.
2. Disable eth0 of node2
2. VirtualIP resource got stopped
3. Even after enabling eth0 of node1, error from previous procedure still
exist.
4. Got an additional error, I have two errors now
5. VirtualIP resource doesn't start


Regards,

imnotarobot
_______________________________________________
Users mailing list: Users@clusterlabs.org
https://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org

Reply via email to