Hello,
This has been driving me crazy.
We installed a new server (CentOS 7), and have NTP running and syncing to another machine in the network.
It works, it syncs the time, but incorrectly.
It's always 26 seconds behind.
I can set the time ahead 26 seconds, then it's correct.
However ntpdate {ntpserver} will change the clock back to 26 seconds behind.
$ ssh {ntpserver} date && date shows:
Sun Feb 21 18:12:36
Sun Feb 21 18:12:10
I've tried everything. Looked at dozens of threads.
Please help
/Edit:
Here is output from hwclock --debug && timedatectl status (note the RTC clock is correct because I set it manually 26 seconds ahead, then I synced with ntpdate {ntpserver} and ran these commands
Code:
# hwclock --debug && timedatectl status && date
hwclock from util-linux 2.23.2
Using /dev interface to clock.
Last drift adjustment done at 1456107784 seconds after 1969
Last calibration done at 1456107784 seconds after 1969
Hardware clock is on UTC time
Assuming hardware clock is kept in UTC time.
Waiting for clock tick...
...got clock tick
Time read from Hardware Clock: 2016/02/22 02:23:42
Hw clock time : 2016/02/22 02:23:42 = 1456107822 seconds since 1969
Sun Feb 21 18:23:16 2016 -0.235122 seconds
Local time: Sun 2016-02-21 18:23:16 PST
Universal time: Mon 2016-02-22 02:23:16 UTC
RTC time: Mon 2016-02-22 02:23:42
Time zone: right/America/Los_Angeles (PST, -0800)
NTP enabled: yes
NTP synchronized: no
RTC in local TZ: no
DST active: no
Last DST change: DST ended at
Sun 2015-11-01 01:59:59 PDT
Sun 2015-11-01 01:00:00 PST
Next DST change: DST begins (the clock jumps one hour forward) at
Sun 2016-03-13 01:59:59 PST
Sun 2016-03-13 03:00:00 PDT
Sun Feb 21 18:23:16 PST 2016
Update:
It seems this computer has the correct time, but is counting from Epoch wrong.
Note this output:
Code:
# date +"%s" && ssh {timeserver} date +"%s"
1456108363
1456108363
# date && ssh {timeserver} date
Sun Feb 21 18:32:29 PST 2016
Sun Feb 21 18:32:55 PST 2016