Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Feb 13, 2004 10:05 pm 
Offline
Senior Newbie
User avatar

Joined: Thu Feb 12, 2004 7:31 pm
Posts: 9
I've been running NTP on my Linux network at home for years with no problems.

After reading some threads here it appears that the Linode host machines are running NTP and are keeping the Linodes' clocks in synch. I thought it'd be nice to run an NTP server in my Linode that does not synchronize the clock but simply provides the time for other machines.

I'm having trouble getting this working. I set the "disable ntp" flag in ntp.conf so it won't try to change the system clock. I read in the NTP FAQ that I should add the following lines to ntp.conf to make it a "local clock" (not sure why it's necessary, but ok):

Code:
server 127.127.1.1              # LCL, local clock
fudge  127.127.1.1 stratum 12   # increase stratum

When I run ntpdate from another machine, ntpdate complains with the so-unhelpful "no server suitable for synchronization found". Okay, BUT WHY? The debug mode of ntpdate gives more information, but nothing I can understand and none of it is explained in the ntpdate documentation:

Quote:
client:# ntpdate -d linodeServer
13 Feb 17:31:58 ntpdate[18546]: ntpdate 4.1.0 Mon Mar 25 23:39:50 UTC 2002 (2)
transmit(10.10.0.4)
receive(10.10.0.4)
transmit(10.10.0.4)
receive(10.10.0.4)
transmit(10.10.0.4)
receive(10.10.0.4)
transmit(10.10.0.4)
receive(10.10.0.4)
transmit(10.10.0.4)
server 10.10.0.4, port 123
stratum 16, precision -15, leap 11, trust 000
refid [0.0.0.0], delay 0.04883, dispersion 0.00201
transmitted 4, in filter 4
reference time: 00000000.00000000 Wed, Feb 6 2036 22:28:16.000
originate timestamp: c3d7f90f.05e9d0e9 Fri, Feb 13 2004 17:31:59.023
transmit timestamp: c3d7f90f.036c8b43 Fri, Feb 13 2004 17:31:59.013
filter delay: 0.05600 0.04883 0.05693 0.05148
0.00000 0.00000 0.00000 0.00000
filter offset: -0.00368 -0.00131 -0.00427 -0.00343
0.000000 0.000000 0.000000 0.000000
delay 0.04883, dispersion 0.00201
offset -0.001310

13 Feb 17:31:59 ntpdate[18546]: no server suitable for synchronization found

It seems odd to me that it prints "stratum 16"--based on my ntp.conf I expect "stratum 12".

I'm doing this through a VPN tunnel so there are no firewall issues to get in the way.

I'm running Debian and I've got the ntp-refclock package installed.

Any suggestions?

Thanks,
Maturin


Top
   
 Post subject:
PostPosted: Fri Feb 13, 2004 10:24 pm 
Offline
Senior Newbie
User avatar

Joined: Thu Feb 12, 2004 7:31 pm
Posts: 9
Well, I've got something working. I never could get ntpdate to work, but I was using it only as a diagnostic anyway.

I redid my ntp.conf, limiting my changes to:

Code:
disable ntp
server 127.127.1.1

Instead of ntpdate on the client, I fired up ntpd and gave it plenty of time before trying:

Quote:
client# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
linodeServer LOCAL(1) 6 u 105 64 2 22.774 -1.987 0.008

That's all I really wanted, so I'm happy now.

Thanks for listening. :)

Maturin


Top
   
 Post subject:
PostPosted: Sat Feb 14, 2004 12:18 am 
Offline
Senior Member

Joined: Sun Jul 20, 2003 8:29 am
Posts: 100
Website: http://www.ipo-australia.com
Location: Tropical Queensland, Australia
I asked about clock synchronisation about 6 months ago.

Chris now ensures clocks are accureate to <1sec.


Top
   
 Post subject:
PostPosted: Sun Feb 15, 2004 12:28 am 
Offline
Senior Newbie
User avatar

Joined: Thu Feb 12, 2004 7:31 pm
Posts: 9
Cool, thanks.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 8 guests


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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group