View previous topic :: View next topic |
Author |
Message |
thecooptoo Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 27 Apr 2003 Posts: 1353 Location: UK
|
Posted: Tue Jun 29, 2004 5:03 pm Post subject: ntp cant keep up |
|
|
been running for 2 days after ntpdate server set it correctly now approx 30 mins slow
bash-2.05b# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
ntp0.cis.strath 130.159.248.4 4 u 561 1024 377 33.177 1106637 4352.78
maverick.mcc.ac 193.63.106.104 2 u 501 1024 377 27.710 1107117 4462.66
hades.hosts.net 130.88.200.98 3 u 828 1024 377 24.108 1104905 3609.09
bash-2.05b# date
Tue Jun 29 17:31:44 BST 2004
bash-2.05b# /etc/init.d/ntpd stop
* Stopping ntpd... [ ok ]
bash-2.05b# ntpdate maverick.mcc.ac.uk
Looking for host maverick.mcc.ac.uk and service ntp
host found : maverick.mcc.ac.uk
29 Jun 17:51:01 ntpdate[23322]: step time server 130.88.202.49 offset 1131.759474 sec
router root # cat /etc/ntp.conf
restrict default noquery notrust
restrict 127.0.0.1
restrict 82.39.120.0 mask 255.255.248.0
fudge 127.127.1.0 stratum 3
server 127.127.1.0
server ntp.cis.strath.ac.uk
server ntp2a.mcc.ac.uk
server time-server.ndo.com
driftfile /var/lib/ntp/ntp.drift
logfile /var/log/ntp.log
-------------------------------------
28 Jun 22:15:39 ntpd[6246]: kernel time sync disabled 0041
28 Jun 22:25:16 ntpd[6246]: synchronized to 130.88.202.49, stratum=2
28 Jun 22:25:17 ntpd[6246]: synchronized to 130.159.196.118, stratum=4
28 Jun 22:49:57 ntpd[6246]: synchronized to 130.159.196.118, stratum=4
28 Jun 22:49:57 ntpd[6246]: kernel time sync disabled 0001
28 Jun 22:59:44 ntpd[6246]: synchronized to 130.88.202.49, stratum=2
28 Jun 23:06:07 ntpd[6246]: synchronized to 130.159.196.118, stratum=4
28 Jun 23:09:23 ntpd[6246]: synchronized to 130.88.202.49, stratum=2
28 Jun 23:26:32 ntpd[6246]: no servers reachable
29 Jun 17:31:54 ntpd[6246]: ntpd exiting on signal 15
bash-2.05b# |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Rafje Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/55009191140abed5b76160.jpg)
Joined: 19 May 2004 Posts: 109 Location: .be
|
Posted: Tue Jun 29, 2004 6:48 pm Post subject: |
|
|
Which version of ntp are you running? I have had trouble getting 4.2.0 working. Switching to 4.1.2 did the trick for me.
This topic suggest this might have something to do with the 'restrict' lines in the configuration (but I haven't checked it out). |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
thecooptoo Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 27 Apr 2003 Posts: 1353 Location: UK
|
Posted: Fri Jul 09, 2004 4:59 pm Post subject: |
|
|
net-misc/ntp
Latest version available: 4.2.0-r2
Latest version installed: 4.2.0-r2
Size of downloaded files: 2,455 kB
Homepage: http://www.ntp.org/
Description: Network Time Protocol suite/programs
License: as-is
tried commenting out the restrict lines - still loosing time
how do I roll back ntp to anm earlier version?
is this a bug? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Rafje Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/55009191140abed5b76160.jpg)
Joined: 19 May 2004 Posts: 109 Location: .be
|
Posted: Fri Jul 09, 2004 8:26 pm Post subject: |
|
|
thecooptoo wrote: | how do I roll back ntp to anm earlier version? |
This should do it: Code: | # /etc/init.d/ntpd stop
# emerge unmerge ntp
# mkdir -p /etc/portage
# echo "=net-misc/ntp-4.2.0-r2" >> /etc/portage/package.mask
# emerge ntp
[... configure ntp ...]
# /etc/init.d/ntpd start |
R. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kpack Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 29 Mar 2004 Posts: 137
|
Posted: Fri Jul 09, 2004 9:46 pm Post subject: |
|
|
Save your NTP configuration, then try this simple config:
server ntp.cis.strath.ac.uk
driftfile /var/lib/ntp/ntp.drift
logfile /var/log/ntp.log
I'm assuming you're in the UK since you're using UK servers. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nahpets Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/1571350101426b4fc14d90a.jpg)
Joined: 05 Oct 2003 Posts: 1178 Location: Montreal, Canada
|
Posted: Fri Jul 09, 2004 9:49 pm Post subject: |
|
|
the "restrict" options may be causing your problems. As soon as I removed them from my config, ntp worked fine. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|