Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Minor issues with ntp and net
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
apberzerk
Apprentice
Apprentice


Joined: 11 Jan 2004
Posts: 278
Location: kansas...

PostPosted: Fri Jul 08, 2005 7:17 am    Post subject: Minor issues with ntp and net Reply with quote

Can anyone explain the following behavior?

Short story: init.d scripts in the default runlevel that require net (such as ntp-client and nfsmount) fail to start while booting, but I can start them manually just fine. If I put net.eth0 in the boot runlevel, there's a warning that it must wait until default runlevel, but then ntp-client and nfsmount start just fine!

Long Story: I looked around on the forums and could not find this anywhere, so I apologize if this is a duplicate thread.

Ever since my last round of updates, the network has been behaving rather strangely.

First of all, is net.eth0 supposed to come on by itself now? Even when I remove it with rc-update, it still seems to come up (I suppose this is convenient).

Also, I am having a problem with ntp-client when it starts. It is part of the default runlevel, and when it starts it says "temporary failure in name resolution" and fails. However, if I start it manually after the boot process, it works fine. The same thing happens sometimes for nfs mounts. They fail to mount while booting, but I can manually mount them myself after booting is complete.

It seems almost as if ntp-client and nfsmount are starting too early, before net.eth0. However, I checked the init.d scripts and they "need", "use", and "provide" all make sense, plus I have no modified them.

Now here's the interesting part. If I had net.eth0 to the boot runlevel, it gives me an error while it is booting, saying that it has to wait until after the boot runlevel to start it, but then it starts it during the default runlevel and ntp-client and nfsmount actually start correctly!

- Phil
Back to top
View user's profile Send private message
Adrien
Advocate
Advocate


Joined: 13 Jul 2004
Posts: 2326
Location: Bretagne

PostPosted: Fri Jul 08, 2005 8:31 am    Post subject: Reply with quote

And, what if you put net.eth0 to the default runlevel? 'cause, that's where it has to be....:roll:
EDIT: sorry I didn't understand you simply wanted an explaination...but anyway net.eth0 as to be into the default runlevel for things to work properly..
Back to top
View user's profile Send private message
apberzerk
Apprentice
Apprentice


Joined: 11 Jan 2004
Posts: 278
Location: kansas...

PostPosted: Fri Jul 08, 2005 6:00 pm    Post subject: Reply with quote

Sorry, I guess I didn't explain it well enough. When net.eth0 is in the default runlevel, ntp-client and netmount fail to start. They act like the network isn't up yet, as if they are starting too soon, but they have "need net" in their init.d scripts.

But, after the computer boots, I can always start them manually....
Back to top
View user's profile Send private message
apberzerk
Apprentice
Apprentice


Joined: 11 Jan 2004
Posts: 278
Location: kansas...

PostPosted: Fri Jul 08, 2005 6:01 pm    Post subject: Reply with quote

Oh yeah, and many init.d scripts that require net (like sshd) work fine.
Back to top
View user's profile Send private message
ulysses_cruz
n00b
n00b


Joined: 08 Apr 2004
Posts: 66
Location: Chicago, IL

PostPosted: Sat Jul 09, 2005 5:12 am    Post subject: Reply with quote

I have the same problem. Some network services (like ntp-client) are starting before eth0 starts, and those that try to connect to an outside server (as opposed to waiting for connections from outside) fail because there is no working network connection.

The odd thing is that ntp-client tries to start before eth0 and dies, while ntpd (with the same need and use settings) starts after eth0 and has no problem.

Fortunately for me there are no critical services on my server with this problem.
_________________
If it were'nt for the voices in my head, I'd go insane from loneliness.
-Me, Myself and I

Iwill DK8X, 2x Opteron 244, 8x 512Mb PC2700, Geforce FX5600, Audigy 2 ZS Plat., MegaRAID SATA150-6
Back to top
View user's profile Send private message
Mben
Guru
Guru


Joined: 29 Mar 2004
Posts: 465
Location: New York, USA

PostPosted: Fri Aug 05, 2005 11:41 pm    Post subject: Reply with quote

i had this problem (with ntp-client) and was just about to ask also when i found the setting.
in /etc/conf.d/rc adjust this:

Code:

# RC_NET_STRICT_CHECKING allows some flexability with the 'net' service.
# The following values are allowed:
#  none  - The 'net' service is always considered up.
#  no    - This basically means that at least one net.* service besides net.lo
#          must be up.  This can be used by notebook users that have a wifi and
#          a static nic, and only wants one up at any given time to have the
#          'net' service seen as up.
#  lo    - This is the same as the 'no' option, but net.lo is also counted.
#          This should be useful to people that do not care about any specific
#          interface being up at boot.
#  yes   - For this ALL network interfaces MUST be up for the 'net' service to
#          be considered up.

RC_NET_STRICT_CHECKING="none"


to
Code:

RC_NET_STRICT_CHECKING="no"


you could also use "yes" if that is better for your situation.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Sat Aug 06, 2005 12:05 am    Post subject: Reply with quote

Unfortunately, init ordering is badly foobared in baselayout.1.11.x

It's fixed in baselayout-1.12.0_pre4
Back to top
View user's profile Send private message
Mben
Guru
Guru


Joined: 29 Mar 2004
Posts: 465
Location: New York, USA

PostPosted: Sat Aug 06, 2005 12:07 am    Post subject: Reply with quote

the above fixed it for me using baselayout 1.11.13 on a ~x86 system
Back to top
View user's profile Send private message
apberzerk
Apprentice
Apprentice


Joined: 11 Jan 2004
Posts: 278
Location: kansas...

PostPosted: Sun Aug 07, 2005 2:11 am    Post subject: Reply with quote

I still have the same problem with ntp-client. It fails at startup, saying no servers could be found, but if I start it manually, it works.

- Phil
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Mon Aug 08, 2005 6:00 am    Post subject: Reply with quote

What version of baselayout do you have?
Back to top
View user's profile Send private message
apberzerk
Apprentice
Apprentice


Joined: 11 Jan 2004
Posts: 278
Location: kansas...

PostPosted: Mon Aug 08, 2005 6:39 pm    Post subject: Reply with quote

baselayout: 1.11.13
ntp: 4.2.0.20040617-r2

- Phil
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Tue Aug 09, 2005 9:02 am    Post subject: Reply with quote

Chances are that ntp-client is starting before net.xxx scripts. This is a baselayout bug and has been fixed in 1.12.0_pre4 but I'd wait for 1.12.0_pre5 if you're running vmware, samba and cups.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum