Description of problem: NIC Bonding is not resolving on system startup. conventional setup with eth0 and eth1 as slaves & bond0 as master. All are specified to start on boot. bootproto for bond0 is "dhcp" and eth0 and eth1 are "none". When the system starts up the connections are not established; ntp + sshd fails afterwards. Once the system is up, "service network restart" establishes the connections and ntp + sshd restarts afterwards. Version-Release number of selected component (if applicable): Fedora Core 8 How reproducible: regularly upon boot Steps to Reproduce: 1. configure nic bonding 2. reboot system; note nic bonding fails 3. "service network restart" enables communications with nic bonding. Actual results: nic bonding fails on startup and requires follow-up restarting of network service Expected results: nic bonding to resolve on startup. Additional info:
-> initscripts
What sort of messages do you get from the kernel?
Created attachment 301905 [details] /var/log/messages Attached is the messages file. NOTE config specifies bootproto=none and generates warning (following) and same config works fine upon service network restart. One other note - when restarting network service message is displayed, "shutting down interface /etc/sysconfig/network-scripts/ifdown-eth1 line 105 : /sys/classes/net/bond0/bonding/slaves : No Such File or Directory" (presumably because the bond didn't set up first time). Also note that while ifcfg-bond0 is set to onboot=yes, it doesn't appear in startup log. Thanks. Apr 9 13:09:38 ptapp1 NetworkManager: <WARN> nm_system_device_get_system_config(): Network configuration for device 'eth1' was invalid (non-DHCP configuration, but no IP address specified. Will use DHCP instead.
Do you have NetworkManager enabled?
I have tried with network manager enabled and disabled. Currently it is disabled in the ifcfg-bond0 + ifcfg-eth0 + ifcfg-eth1 but I've tried with those set to enabled, too. I believe I may have also tried with varying combinations ala enabled for bond but not for ports & vice-versa. Do you have any specific settings you'd like me to try? Also, btw, I noticed in log that ntpd was getting loaded before NetworkManager - should(n't) it be afterwards and what's the optimal way to set that dependency?
What's the output of: chkconfig --list NetworkManager chkconfig --list network Also, can you attach your ifcfg files?
Created attachment 302378 [details] Bonding Port Config
Created attachment 302379 [details] Bonding Port Config
Created attachment 302380 [details] Bonding Port Config
And the chkconfig output?
After system startup, before network restart: network 0:off 1:off 2:off 3:off 4:off 5:off 6:off NetworkManager 0:off 1:off 2:on 3:on 4:on 5:on 6:off After service network restart: network 0:off 1:off 2:off 3:off 4:off 5:off 6:off NetworkManager 0:off 1:off 2:on 3:on 4:on 5:on 6:off FYI - one time it seemed, upon system restart, a ping was issued ... whereby it hung for considerable time (10 seconds) - but whereupon communications (some, at least) were established without need for a service network restart. However, when thereafter issuing the service network restart, it (still) showed the stop as failing and then succeeding on the startup.
This system is a Gateway 9425 server. It has two stock 1 GB Intel ethernet ports. It also has an add-on Intel communications card. In prior editions of Fedora the onboard NICs were not recognized during startup (a known issue with that chipset and earlier linux kernels) and thus required the addition of the card. FC8 recognizes the onboard NICs just fine (outside this reported issue) - so the card is still there but we are using the onboard NICs and is how the ifcfg-eth0 + ifcfg-eth1 files (previously attached) are configured.
You are running with NetworkManager enabled. That *will not work* with bonding. You need to run: - chkconfig --level 345 NetworkManager off - chckonfig --level 345 network on
That does it! THANKS! One problem remaining is that SSHD is still failing upon first startup - what setting or command will ensure proper dependency?
Shouldn't make a difference - what's the ssh error?
Corrected unrelated config issue to resolve - all OK on FC8 bootup :) Thanks!