Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Users

Suggestion for ocf script IPaddr : "route -n" instead of "route"

 

 

Linux-HA users RSS feed   Index | Next | Previous | View Threaded


Alain.Moulle at bull

Aug 27, 2010, 7:03 AM

Post #1 of 2 (197 views)
Permalink
Suggestion for ocf script IPaddr : "route -n" instead of "route"

Hi,

in script IPaddr, in the ip_stop function where we have :

if [ `$ROUTE | grep $OCF_RESKEY_ip` ]

I suggest to change by :
if [ `$ROUTE -n | grep $OCF_RESKEY_ip` ]

so that if name resolution (dns) is not responding, it does
not prevent the ip_stop to run and the IP addr to be unconfigured .

I had fallen in this case ...
And -n avoids the problem to occur.

Am I right ?

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


dejanmm at fastmail

Aug 27, 2010, 8:11 AM

Post #2 of 2 (191 views)
Permalink
Re: Suggestion for ocf script IPaddr : "route -n" instead of "route" [In reply to]

Hi,

On Fri, Aug 27, 2010 at 04:03:33PM +0200, Alain.Moulle wrote:
> Hi,
>
> in script IPaddr, in the ip_stop function where we have :
>
> if [ `$ROUTE | grep $OCF_RESKEY_ip` ]
>
> I suggest to change by :
> if [ `$ROUTE -n | grep $OCF_RESKEY_ip` ]
>
> so that if name resolution (dns) is not responding, it does
> not prevent the ip_stop to run and the IP addr to be unconfigured .
>
> I had fallen in this case ...
> And -n avoids the problem to occur.
>
> Am I right ?

Suggestion accepted. Thanks for the information.

Cheers,

Dejan

> Thanks
> Alain
> _______________________________________________
> Linux-HA mailing list
> Linux-HA [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Linux-HA users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.