On 07/09/15 22:32, Patrick Dupre wrote:
On 07/09/15 18:48, Patrick Dupre wrote:
Now, I have:
Local time: Mon 2015-09-07 17:46:49 CEST
Universal time: Mon 2015-09-07 15:46:49 UTC
RTC time: Mon 2015-09-07 17:46:49
Time zone: Europe/Paris (CEST, +0200)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: yes
DST active: yes
Last DST change: DST began at
Sun 2015-03-29 01:59:59 CET
Sun 2015-03-29 03:00:00 CEST
Next DST change: DST ends (the clock jumps one hour backwards) at
Sun 2015-10-25 02:59:59 CEST
Sun 2015-10-25 02:00:00 CET
But the time to 2 hours off.
It should be 19:46:49
Why?
Subject: NTP synchronized: no
Hello,
In fedora 22, how do I synchronize the ntp:
timedatectl
Local time: Mon 2015-09-07 17:04:58 CEST
Universal time: Mon 2015-09-07 15:04:58 UTC
RTC time: Mon 2015-09-07 17:04:58
Time zone: Europe/Paris (CEST, +0200)
NTP enabled: yes
NTP synchronized: no
RTC in local TZ: yes
DST active: yes
Last DST change: DST began at
Sun 2015-03-29 01:59:59 CET
Sun 2015-03-29 03:00:00 CEST
Next DST change: DST ends (the clock jumps one hour backwards) at
Sun 2015-10-25 02:59:59 CEST
Sun 2015-10-25 02:00:00 CET
chronyc sources
210 Number of sources = 4
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^? y.ns.gin.ntt.net 0 8 0 10y +0ns[ +0ns] +/- 0ns
^? ks3370497.kimsufi.com 0 8 0 10y +0ns[ +0ns] +/- 0ns
^? gw1.networkschool.org 0 8 0 10y +0ns[ +0ns] +/- 0ns
^? ip139.ip-5-196-160.eu 0 8 0 10y +0ns[ +0ns] +/- 0ns
I don't know what you changed between these two posts, but your 'chronyc
sources' printout looks to me as if you have no connection to external
time servers.
I would agree with you.
How can I fix it ?
This is the chrony.conf file:
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
server 0.fedora.pool.ntp.org iburst
server 1.fedora.pool.ntp.org iburst
server 2.fedora.pool.ntp.org iburst
server 3.fedora.pool.ntp.org iburst
# Ignore stratum in source selection.
stratumweight 0
# Record the rate at which the system clock gains/losses time.
driftfile /var/lib/chrony/drift
# Enable kernel RTC synchronization.
rtcsync
# In first three updates step the system clock instead of slew
# if the adjustment is larger than 10 seconds.
makestep 10 3
# Allow NTP client access from local network.
#allow 192.168/16
# Listen for commands only on localhost.
bindcmdaddress 127.0.0.1
bindcmdaddress ::1
# Serve time even if not synchronized to any NTP server.
#local stratum 10
keyfile /etc/chrony.keys
# Specify the key used as password for chronyc.
commandkey 1
# Generate command key if missing.
generatecommandkey
# Disable logging of client accesses.
noclientlog
# Send a message to syslog if a clock adjustment is larger than 0.5 seconds.
logchange 0.5
logdir /var/log/chrony
#log measurements statistics tracking
This looks identical to mine, except for fedora/rhel
Maybe the 'Issues with chronyc' section in the faq?
' $ netstat -a ' gives a long list which includes
udp 0 0 0.0.0.0:ntp 0.0.0.0:*
udp 0 0 0.0.0.0:mdns 0.0.0.0:*
udp 0 0 localhost:323 0.0.0.0:*
and
udp6 0 0 [::]:ntp [::]:*
udp6 0 0 localhost:323 [::]:*
Here are two printouts of mine, less than an hour apart.
The sources seem to be from the rhel pool, because this is an SL7 system.
/usr/share/doc/chrony-1.29.1/faq.txt
chronyc sources
210 Number of sources = 4
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^? vps8641.xlshosting.net 0 10 0 10y +0ns[ +0ns] +/-
0ns
^+ vpn.webersheim.de 3 10 317 736 -1967us[-2016us] +/-
106ms
^* srv02.privatcloud.dk 2 10 377 207 +788us[ +738us] +/-
57ms
^- 213.145.129.29 2 10 277 521 -403us[ -452us] +/-
165ms
chronyc sources
210 Number of sources = 4
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^? vps8641.xlshosting.net 0 10 0 10y +0ns[ +0ns] +/-
0ns
^+ vpn.webersheim.de 3 10 173 962 -1927us[-1896us] +/-
97ms
^* srv02.privatcloud.dk 2 10 377 405 +955us[ +986us] +/-
74ms
^- 213.145.129.29 2 10 377 750 -376us[ -345us] +/-
156ms
John P
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org