Are you sure that isn't JUST RHEL6 ? I'm currently running CentOS 5.6 and it doesn't appear to be spewing anything to Syslog if I run /sbin/ifconfig.
Matthew Soffen Lead Computer Scientist ISO New England - http://www.iso-ne.com/ -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of [email protected] Sent: Wednesday, October 19, 2011 10:36 AM To: [email protected] Subject: [Linux-HA] IPaddr / ifconfig deprecated 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" 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 _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
