[CentOS] ntpd

Wed Dec 12 09:49:53 UTC 2007
Tru Huynh <tru at centos.org>

On Wed, Dec 12, 2007 at 01:24:23AM -0500, Jason Pyeron wrote:
> > 
> > I am running a server inside of VMWare, and the clock gains 
> > ~30 seconds
> > every 1000 seconds or 1.03X.
> 
> ...

What CentOS, kernel version?

Maybe a better followup to the centos-virt mailing list...

> 
> > Ideas? If I cannot get ntpd working, then I will have to 
> > resort to a cron *
> > * * * * rdate -s time.intranet.pdinc.us
> > 
> 
> 
> ntpdc -p 
> 
>      remote           local      st poll reach  delay   offset    disp
> =======================================================================
> =time            0.0.0.0          3   64    1 0.00046 -34.34546 7.93799
> =LOCAL(0)        127.0.0.1       10   64    1 0.00000  0.000000 7.93752
> =time2           0.0.0.0          3   64    1 0.00040 -34.33556 7.93799
> =time3           0.0.0.0          3   64    1 0.00050 -34.33738 7.93799
> 

why don't you configure ntpd to an external server?

> ntpdc -c sysinfo
> 
> system peer:          0.0.0.0
> system peer mode:     unspec
> leap indicator:       11
> stratum:              16
> precision:            -16
> root distance:        0.00000 s
> root dispersion:      0.00099 s
> reference ID:         [0.0.0.0]
> reference time:       00000000.00000000  Thu, Feb  7 2036  1:28:16.000
> system flags:         auth monitor ntp kernel stats
> jitter:               0.000015 s
> stability:            0.000 ppm
> broadcastdelay:       0.007996 s
> authdelay:            0.000000 s
> 
> 
> But still no clock setting...
> 
> 
> By the time I wrote the above:
> 
>  st poll reach  delay   offset    disp
> =======================================
>   3   64   37 0.00058 -52.85483 0.43922
>  10   64   37 0.00000  0.000000 0.43831
>   3   64   37 0.00034 -52.79517 0.43925
>   3   64   37 0.00055 -52.80582 0.43925
> 
> 
no issue here:
[tru at centos5-i386-vm ~]$ date
Wed Dec 12 10:46:02 CET 2007
[tru at centos5-i386-vm ~]$ sudo ntpdc -p
     remote           local      st poll reach  delay   offset    disp
=======================================================================
=LOCAL(0)        127.0.0.1       10   64    1 0.00000  0.000000 2.81735
=ntp.pasteur.fr  157.99.90.56     1   64    1 0.00131  0.004765 2.81740
[tru at centos5-i386-vm ~]$ ntpdc -p
     remote           local      st poll reach  delay   offset    disp
=======================================================================
=LOCAL(0)        127.0.0.1       10   64    1 0.00000  0.000000 2.81735
=ntp.pasteur.fr  157.99.90.56     1   64    1 0.00131  0.004765 2.81740
[tru at centos5-i386-vm ~]$ ntpdc -c sysinfo
system peer:          0.0.0.0
system peer mode:     unspec
leap indicator:       11
stratum:              16
precision:            -20
root distance:        0.00000 s
root dispersion:      0.00055 s
reference ID:         [73.78.73.84]
reference time:       00000000.00000000  Thu, Feb  7 2036  7:28:16.000
system flags:         auth monitor ntp kernel stats
jitter:               0.000000 s
stability:            0.000 ppm
broadcastdelay:       0.003998 s
authdelay:            0.000000 s
[tru at centos5-i386-vm ~]$ uname -a
Linux centos5-i386-vm.bis.pasteur.fr 2.6.18-53.1.4.el5vm #1 SMP Thu Dec 6 11:09:34 EST 2007 i686 athlon i386 GNU/Linux
[tru at centos5-i386-vm ~]$ ntpdc -p
     remote           local      st poll reach  delay   offset    disp
=======================================================================
=LOCAL(0)        127.0.0.1       10   64   17 0.00000  0.000000 0.96858
*ntp.pasteur.fr  157.99.90.56     1   64   17 0.00131  0.004765 0.96953
[tru at centos5-i386-vm ~]$

Cheers,

Tru
-- 
Tru Huynh (mirrors, CentOS-3 i386/x86_64 Package Maintenance)
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xBEFA581B
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20071212/b9b59563/attachment-0005.sig>