Hi,

playing with 2.0.8 we found some issues with heartbeat/lvs and these lvs
setups where you need an loopback alias for the application to bind on
on startup. If a loopback alias exists for a vip ip address, error
messages will be issued. Debugging this showed:

- There is an option OCF_RESKEY_lvs_support
in .../ocf/resource.d/heartbeat/IPaddr which is not really documented
but needed for this kind of setup. Where is the place to configure this
variable? 

- mentioned IPaddr is broken:

lvs_restore_loopback()

        netmask_text=`echo "$NICINFO" | cut -f2`
        broadcast=`echo "$NICINFO" | cut -f3`

cut without -d ' ' does not work here. Use awk w/print or fix the cut
options. If i remember correctly, even the field numbers are wrong
here. 

This part:

: ${OCF_RESKEY_lvs_support=0}
# Normalize the value of lvs_support
if [ "${OCF_RESKEY_lvs_support}" = "true" \
    -o "${OCF_RESKEY_lvs_support}" = "on" ]; then
    OCF_RESKEY_lvs_support=1
else
    OCF_RESKEY_lvs_support=0
fi

resets OCF_RESKEY_lvs_support to 0 if you try to enable this
(undocumented) variable with =1 instead of true / on.

Cheers,

-Michael




_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to