Hi again,
IMHO the lvs_restore_loopback() isn't working correct:
01:lvs_restore_loopback() {
02: ipaddr="$1"
03:
04: if [ ! -s "$VLDIR/$ipaddr" ]; then
05: return
06: fi
07:
08: ifname=`cat "$VLDIR/$ipaddr"`
09:
10:
11: ocf_log info "Restoring loopback IP Address $ipaddr on $ifname."
12:
13: CMD="OCF_RESKEY_cidr_netmask=32 OCF_RESKEY_ip=$1 \
OCF_RESKEY_nic=$ifname $FINDIF"
14: if
15: NICINFO=`eval $CMD`
16: then
17: netmask_text=`echo "$NICINFO" | cut -f2 -d " "`
18: broadcast=`echo "$NICINFO" | cut -f3 -d " "`
19: else
20: echo "ERROR: $CMD failed (rc=$rc)"
21: exit $OCF_ERR_GENERIC
22: fi
23:
24: add_interface "$ipaddr" "$ifname" "$ifname" $netmask_text $broadcast
25: rm -f "$VLDIR/$ipaddr"
26:}
I have executed the commands manually with following outputs:
Line08:
# cat /var/run/heartbeat/rsctmp/IPaddr/172.30.4.170
lo:0
Line15:
# eval OCF_RESKEY_cidr_netmask=32 OCF_RESKEY_ip=172.30.4.170 \
OCF_RESKEY_nic=lo:0 /usr/lib/heartbeat/findif
lo:0: warning: name may be invalid
lo:0 netmask 255.255.255.255 broadcast 172.30.4.170
Line17:
netmask_text="255.255.255.255 broadcast"
Line18:
broadcast="172.30.4.170"
So I arrive at the conclusion that the first line of the
output from the findif is the cause why add_interface breaks.
But why should the name lo:0 may be invalid?
Is it possible to switch off this warning??
Many thanks in advance,
Stephan
HELPING HEADS for Hard- and Software
-------------------------------------------------------------------------
Für Ihre Projekte entwickeln wir maßgeschneiderte Lösungen - schnell,
flexibel und direkt vor Ort. Unser eingespieltes Team an erfahrenen Hard-
und Software-Spezialisten unterstützt Sie dort, wo Sie uns brauchen.
--------------------------------------------------------------------------
SysDesign GmbH
Säntisstrasse 25
D-88079 Kressbronn am Bodensee
Geschäftsführer: Franz Kleiner, Achim Solle
Handelsregister: Ulm 632138
--------------------------------------------------------------------------
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems