Hi,
When I use the "ip addr show eth0" command, nothing tells me that the virtual
mac address that I specified
in cib.xml is the one binding to the vip address :
[EMAIL PROTECTED]:~# ip addr show eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:04:4b:06:6a:f1 brd ff:ff:ff:ff:ff:ff
inet 192.168.7.1/24 brd 192.168.7.255 scope global eth0
inet 192.168.7.50/24 brd 192.168.7.255 scope global secondary eth0 <<------
inet6 fe80::204:4bff:fe06:6af1/64 scope link
valid_lft forever preferred_lft forever
How could I verify that ?
And After tests, it seems that the arp table on clients doesnt show the virtual
mac address.
So I've just add this fonction to IPaddr (I have pick up this solution
somewhere on the net) :
notify_all() {
if [ $OCF_RESKEY_nic != "" ]; then
INTERFACE=$OCF_RESKEY_nic
IP=$OCF_RESKEY_ip
# notify switches about IP<=>MAC change
# -f : quit on first reply
# -q : be quiet
# -c count : how many packets to send
# -w timeout : how long to wait for a reply
# -I device : which ethernet device to use (eth0)
# -s source : source ip address
# -U : Unsolicited ARP mode, update your neighbours
ocf_log info "Sending arping to <ipaddress>"
/usr/bin/arping -f -q -c 5 -w 5 -I $INTERFACE -s $IP -U
<ipaddress>
fi
}
When the VIP passes on the second node, an arping is sent to all clients PC.
But I can not try it in production at this time :'(
I hope that this solution will resolve definitively the problem I have when the
VIP
change (network very slow on remote clients).
---
azer
-------- Message d'origine--------
De: [EMAIL PROTECTED] de la part de reza
Date: jeu. 8/7/2008 21:45
À: [email protected]
Objet : [Linux-HA] monitor a IPaddr2 vip
Hello,
I'm trying to configure a VIP with a 2 nodes cluster.
I have configured my cib.xml like this :
<instance_attributes id="vip_instance_attrs">
<attributes>
<nvpair id="b92650f0-7a38-43ef-842c-6af49e24dc3c" name="ip"
value="192.168.7.50"/>
<nvpair id="c14b6715-6ece-42e1-bcaa-eda7a9d4c630" name="mac"
value="52:54:00:12:34:18"/>
</attributes>
</instance_attributes>
If I launch the crm_mon, I can see that the vip is running on the first node,
and the ping passes.
But if I type ifconfig, the VIP's interface (eth0:0) not appears. How could I
verify that the virtual
mac address is the one I have specified in the cib.xml ?
Thanks for your helps and sorry for my bad englis (I'm a french people).
---
azer
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems