Hello, On 10/19/2011 04:35 PM, [email protected] wrote: > Hi > > Florian, just for information, following my remark last week on mysql > option -O deprecated, I also noticed in the script IPaddr the use of > "ifconfig"
Please use IPaddr2 RA for current setups ... IPaddr is only here for backwards compatibility and for platforms without "ip" utility. Regards, Andreas -- Need help with Pacemaker? http://www.hastexo.com/now > command which is flagged as deprecated (at least on RH) and this generates > lots of useless syslog messages. > > So I replace all the $IFCONFIG functions in IPaddr script (but only for > SYSTYPE=Linux as I'm on RHEL6) , and this seems to work fine. > > function delete_interface : > CMD="ip addr del $ipaddr dev $ifname";; > > function find_generic_interface : > ifname=`ip addr | grep $ipaddr | awk '{print $NF}'` > case $ifname in > *:*) echo $ifname; return $OCF_SUCCESS ;; > *) return $OCF_ERR_GENERIC;; > esac > > function find_free_interface : > IFLIST=`ip addr | grep "eth1:[0-9]" | awk '{print $NF}'` > > function add_interface : > CMD=`ip addr add $ipaddr/$CidrNetmask broadcast $broadcast > dev $iface_base label $iface`;; > providing the CidrNetmask is retrieved in hex format from the iface_base > line, or given in hex format in the pacemaker primitive > > Just a few suggestions which seems to work ... > Alain > > > > > > > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
