Re: [ClusterLabs] What's wrong with IPsrcaddr?

2022-03-18 Thread ZZ Wave
Thank you, a group way works fine пт, 18 мар. 2022 г. в 12:07, Reid Wahl : > On Thu, Mar 17, 2022 at 9:20 AM ZZ Wave wrote: > > > > Thank you for the idea about a bug in resource script. > > > > ... > > NETWORK=`$IP2UTIL route list dev $INTERFACE scope link $PROTO match > $ipaddress|grep -m 1

Re: [ClusterLabs] What's wrong with IPsrcaddr?

2022-03-18 Thread Reid Wahl
On Thu, Mar 17, 2022 at 9:20 AM ZZ Wave wrote: > > Thank you for the idea about a bug in resource script. > > ... > NETWORK=`$IP2UTIL route list dev $INTERFACE scope link $PROTO match > $ipaddress|grep -m 1 -o '^[^ ]*'` > ... > > $NETWORK was surprisingly empty when a bug occurs, something wrong

Re: [ClusterLabs] What's wrong with IPsrcaddr?

2022-03-17 Thread ZZ Wave
Thank you for the idea about a bug in resource script. ... NETWORK=`$IP2UTIL route list dev $INTERFACE scope link $PROTO match $ipaddress|grep -m 1 -o '^[^ ]*'` ... $NETWORK was surprisingly empty when a bug occurs, something wrong was with $PROTO variable. Command above returns the correct

Re: [ClusterLabs] What's wrong with IPsrcaddr?

2022-03-17 Thread Andrei Borzenkov
On 17.03.2022 14:14, ZZ Wave wrote: >> Define "network connectivity to node2". > > pacemaker instances can reach each other, I think. This is called split brain, the only way to resolve it is fencing. > In case of connectivity > loss (turn off network interface manually, disconnect eth cable

Re: [ClusterLabs] What's wrong with IPsrcaddr?

2022-03-17 Thread ZZ Wave
> Define "network connectivity to node2". pacemaker instances can reach each other, I think. In case of connectivity loss (turn off network interface manually, disconnect eth cable etc), it should turn off virtsrc and then virtip on active node, turn virtip on and then virtsrc on second node, and

Re: [ClusterLabs] What's wrong with IPsrcaddr?

2022-03-16 Thread Andrei Borzenkov
On 16.03.2022 12:24, ZZ Wave wrote: > Hello. I'm trying to implement floating IP with pacemaker but I can't > get IPsrcaddr to work correctly. I want a following thing - floating > IP and its route SRC is started on node1. If node1 loses network > connectivity to node2, node1 should instantly

[ClusterLabs] What's wrong with IPsrcaddr?

2022-03-16 Thread ZZ Wave
Hello. I'm trying to implement floating IP with pacemaker but I can't get IPsrcaddr to work correctly. I want a following thing - floating IP and its route SRC is started on node1. If node1 loses network connectivity to node2, node1 should instantly remove floating IP and restore default route,