LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-18-2012, 05:51 PM   #1
jason_not
Member
 
Registered: Aug 2010
Location: Beaverton, Oregon, USA
Distribution: Pfsense, Ubuntu, Centos, Fedora, Redhat, Scientfic, MacOS
Posts: 76

Rep: Reputation: 19
Need a boot delay to wait for network interfaces


Hello,

I have several systems in a cluster ( > 65 nodes and counting) using either bonded ethernet (802.3ad), or mellanox infiniband. I need to delay the boot process until the interfaces are actually configured and running. It can take up to 20 seconds though from the time the kernel module is loaded to the interface being able to function. I have troubleshot this but it pretty much boils down to "the connection takes time to come up".

In the case of the bonded ethernet, I am connected to a cisco switch, and the network admin assures me this time is normal. In the case of the infiniband, it looks like the same thing: the infiniband fabric just takes time to come up.

The result is services don''t start because the network connections are not present, or they timeout and fail.

Other than inserting a sleep statement in the run control scripts, is there a method of handling this? I would like the system to pause only long enough for the interfaces to be operable.

I have this "trouble" with centos5, centos 6, ubuntu 10.04 lts, and ubuntu 12.04lts.

--jason
 
Old 12-19-2012, 10:27 AM   #2
foodown
Member
 
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 611

Rep: Reputation: 221Reputation: 221Reputation: 221
A conditional wait statement in a while loop is going to be your best bet.

(I've never had bonded ethernet interfaces take anywhere near that long to come up. What bonding mode are you using?)
 
Old 12-19-2012, 11:39 AM   #3
jason_not
Member
 
Registered: Aug 2010
Location: Beaverton, Oregon, USA
Distribution: Pfsense, Ubuntu, Centos, Fedora, Redhat, Scientfic, MacOS
Posts: 76

Original Poster
Rep: Reputation: 19
Hello,

The bonding mode is 4 with miimod set to 400. The connections are all to the same cisco switch.

I probably should clarify at least one thing though: dmesg shows that the links themselves are coming up just fine, it's the time it takes for tcp/ip to be functional. While the address is assigned to bond0, it takes a while for the switch to actually begin routing it. The time it takes reminds me of cisco's "spanning-tree portfast" setting being off.

I haven't been looking at it as slow because I have the same trouble with infiniband connections coming up.

--jason
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Java: Delay (sleep, wait or whatever) within the ActionPerformed function rm_-rf_windows Programming 4 10-19-2012 05:21 PM
pc doesnt boot after modifying etc/network/interfaces numtre Linux - Networking 1 04-21-2009 11:17 AM
linux boot failed after configuring network interfaces in the boot procss domeili2006 Linux - General 1 07-14-2006 05:23 AM
How do you set the keyboard wait-until-repeat delay? deanbrown3d Linux - Newbie 2 06-18-2004 09:35 AM
problem with network interfaces during boot time kylnas Linux - Hardware 3 08-15-2003 07:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration