Hi Andeas

I completely forgot this IPaddr2 , you're right ! Many thanks.

And for Matthew, I don't know about  "ifconfig deprecated" on other 
distribution,
I'am working only on RH.

Thanks
Alain



De :    Andreas Kurz <[email protected]>
A :     [email protected]
Date :  19/10/2011 17:38
Objet : Re: [Linux-HA] IPaddr / ifconfig deprecated
Envoyé par :    [email protected]



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




[pièce jointe "signature.asc" supprimée par Alain Moulle/FR/BULL] 
_______________________________________________
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

Reply via email to