About this list Date view Thread view Subject view Author view Attachment view

From: Helmut Wollmersdorfer (helmut.wollmersdorfer_at_gmx.at)
Date: Sun 10 Jul 2005 - 19:48:18 BST


Oliver Welter wrote:

> I run openntpd, in the debug log I see
> reply from 62.94.26.10: offset 6.151850 delay 0.067772, next query 30s
> adjusting local clock by 6.134870s

> but the local time is NOT adjusted - you can see this as the clock difts
> away more and more....

On my test-machine ntp works with the vserver kernel.

First, after boot the clock had an offset of 24 sec.:

# date; ntpq -p
Sun Jul 10 20:15:00 CEST 2005
      remote refid st t when poll reach delay offset
  jitter
==============================================================================
  ntp2.arttoday.c .INIT. 16 u 1727 64 0 0.000 0.000
4000.00
*192.168.0.10 .SHM. 1 u 21 64 377 0.211 -24491.
  0.341
+192.168.0.11 .SHM. 1 u 26 64 377 0.245 -24492.
  0.399
  LOCAL(0) LOCAL(0) 13 l 22 64 377 0.000 0.000
   0.002

Then after a while

Jul 10 20:15:20 cel600 ntpd[3274]: time reset -24.491496 s
Jul 10 20:19:41 cel600 ntpd[3274]: synchronized to LOCAL(0), stratum 13
Jul 10 20:20:45 cel600 ntpd[3274]: synchronized to 192.168.0.10, stratum 1
cel600:/etc/init.d# date; ntpq -p
Sun Jul 10 20:26:17 CEST 2005
      remote refid st t when poll reach delay offset
  jitter
==============================================================================
  ntp2.arttoday.c .STEP. 16 u 40m 512 0 0.000 0.000
4000.00
*192.168.0.10 .SHM. 1 u 14 64 377 0.251 1.041
  0.103
+192.168.0.11 .SHM. 1 u 15 64 377 0.196 -0.225
  0.285
  LOCAL(0) LOCAL(0) 13 l 10 64 377 0.000 0.000
   0.002
cel600:/etc/init.d# uptime
  20:28:00 up 39 min, 1 user, load average: 0.00, 0.00, 0.00

Something else must be wrong with your configuration.

Are you sure that you don't have adjtimex or some similar things active?

Helmut Wollmersdorfer
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Sun 10 Jul 2005 - 19:48:48 BST by hypermail 2.1.3