Questions tagged [ntpd]

The Network Time Protocol daemon (NTPd) is a daemon program that synchronizes the system time with time servers using the Network Time Protocol (NTP).

30 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
1answer
1k views

Unable to sync NTP v4 client to Windows AD server

I realize that Microsoft doesn't even recommend using a windows server as a time service, however I don't have a choice -- closed network in a windows centric shop. It became an issue when the newer ...
3
votes
0answers
2k views

NTPD fails to sync

I'm transferring from one server to another. Identical configuration, newer hardware, same data center. The new machine CAN speak NTP: $ sudo ntpdate -d ntp.jentfoo.com Password: 24 Aug 14:50:59 ...
3
votes
1answer
891 views

NTP symmetric mode

I'm configuring NTP symmetric modes. Say I have Peer A (192.168.101.1) and Peer B(192.168.101.2) and configure their ntp.conf as follows: # Peer A peer 192.168.101.2 server 127.127.1.0 fudge 127.127....
2
votes
0answers
774 views

preventing udev symlink overwrite

I built a PPS-capable GPS clock on my Raspberry Pi, and to get it to work, I needed to use udev to create symlinks to the hardware serial port and the kernel GPIO PPS on /dev/gps0 and /dev/gpspps0. ...
2
votes
0answers
421 views

Restart rsyslog after NTP time sync

I want to ensure that the logs written, have the correct timestamp. So, when ntpd completes the sync (ntpq -c rv displays sync_ntp), I want to restart rsyslogd. But I am not finding any hooks/config ...
1
vote
0answers
30 views

Why are ntpq -p and ntpstat showing different outputs of time differences and stratum value at all the times?

Why are ntpq -p and ntpstat showing different outputs of time differences and stratum value at all the times? And what does it mean "unspecified in the result from ntpstat", which one to ...
1
vote
0answers
384 views

RHEL 6: service ntpd status ntpd dead but pid file exists

I am trying to start the ntpd service. Because the NTP status is service ntpd status ntpd dead but PID file exists I tried to kill the ntpd process. After trying ps -ef | grep ntpd and unable to find ...
1
vote
0answers
14 views

Offline time synchronisation in cascade

I have the following setup : [Group1] : - Server 1 (Linux) - Client 1 (Windows) - Client 2 (Windows) ... - Client n (Windows) [Group2] : - Server 2 (Linux) - Client 1 (Windows) - Client 2 (Windows) ...
1
vote
0answers
117 views

Using ntpd to perform a one-time sync to an NTP server is taking too long

I have several servers that need to be sync'd to an NTP server on my network. Initially, the time on these servers is relatively close (+/- 5 seconds). My goal is to do a "one-time sync" for each ...
1
vote
1answer
2k views

What does the ntp option “restrict default nopeer” do?

NTP version installed: ntp-4.2.6p5-5 I'm trying to understand the usage and meaning of the ntp restrict along with restrict default nopeer Quoting the NTP documentation: nopeer: Deny packets ...
1
vote
0answers
485 views

Running `ntpd -q -g` to set the time on Raspberry Pi never completes

On my Raspberry Pi which has been running for about 4 or 5 years now, I have a cron job running every hour that sets the time. I know form experience that my Pi has a tendency to drift its time quite ...
1
vote
1answer
93 views

Digital clock in Lubuntu 16.04 shows one hour more under CET ZT

The digital clock is synchronized with internet servers, set to Europe/Madrid ZT (i.e. CET), but shows one hour more, at the time of posting this question it is 20:31. I've tried to remove and add it ...
1
vote
0answers
502 views

ntpd socket problem

Currently I have a C# program that queries my NTP server (CentOS 7) public static DateTime GetNetworkTime() { const string ntpServer = "192.168.10.48"; var ntpData = new byte[48]; ntpData[...
1
vote
2answers
418 views

Can I start ntp.service after boot?

I've had issues with ntp drastically increasing the startup time, and I am not the only one, see for example here. Since it is responsible for adjusting my system time, I see no important reason for ...
1
vote
1answer
957 views

Should ntpd be used on Raspbian Stretch?

It was installed by default on the previous distributions (jessie, wheezy, etc), but it is not so on stretch. Before installing it, I wish to know whether there is some other preferred means to ...
0
votes
0answers
41 views

Update RTC drift file (adjtime) from NTP updates

I'm trying to improve the accuracy of the RTC clock on a buildroot embedded system that I'm working with. I need it to be accurate to 10 seconds over 2 weeks, while switched off and powered but ...
0
votes
0answers
46 views

How to reject ntpd query results with large delay or offsets?

Sometimes I get large offsets when my ntpd try to sync the local clock. I think these show up as spike_detect in the log followed by clock_step because the offset is too large. These instances seem to ...
0
votes
0answers
44 views

check Ntp daemon via Ntp3 protocol

On the server, I stop the chronyd daemon (ver 3.5). I start it and send a NTP3 CLIENT query, to localhost port 123/udp: NTP_VERSION << 3 | NTP_MODE_CLIENT The first answer has the status 0xdc ...
0
votes
0answers
480 views

ntpq behavior seems wrong

I'm investigating a system failure related to NTP and time sync operations. The problem is hard to duplicate, so I went about just doing some sanity checking to see if different conditions would yield ...
0
votes
0answers
58 views

ntpd config optimization

I have an embedded Linux system without RTC, so it (currently) boots with thinking it's Jan, 1st 1970. I have ntpd installed and started as: /usr/bin/ntpd -g with a pretty standard /etc/ntp.conf: ...
0
votes
0answers
43 views

ntp + ntp loose synchronize each time in 5:00 morning

we have a very strange behavior we have 12 Linux redhat machines - redhat 7.x two of these VM servers are loosing the time synchronize each day at 5:00 in the morning after we restart the ntp , ...
0
votes
1answer
1k views

How to get timesyncd details?

How can I get detailed information about the NTP status of my system, when using systemd-timesyncd as the time client? The closest one I found is # timedatectl status Local ...
0
votes
1answer
404 views

ntpd.pid not getting generated even when ntpd is running in centos7

I have recently upgraded to centos7. I could observe that ntpd.pid is not generated when the ntpd service is started. Earlier, in centos 6, when we start the ntpd service the file ntpd.pid is ...
0
votes
1answer
319 views

Sync 1pps sync with system clock

We need to use 1pps (gpio source) for timestamp in application. I thought that ntp should be used with the linux pps for this purpose. But the system is standalone without any other servers connected....
0
votes
1answer
334 views

Time gets 3 hours forward always on midnight

Every time I sync the time on a CentOS 7 (Scientific Linux 7) server virtualized on VMware ESXi, I arrive the next day to find that the time gets 3 hours forward. I did a cronjob to write the time ...
0
votes
1answer
1k views

NTP Server - sync from local system clock

I need to create device (currently Raspberry Pi 3 based) which states as NTP Server, it has no connection to Internet and NTP should read actual time from local system clock (this clock is set from ...
0
votes
0answers
533 views

ntpd in systemd-nspawn

I'm playing with containerizing various parts of my server infrastructure and one of the services I would like to run in container is ntp daemon. I'm using systemd-nspawn (systemd 233) as a ...
0
votes
0answers
3k views

NTP clock drifting out of sync frequently. Offset too high

I am having some problem with a local NTP server time synchronization. The clock drifts out of synchronization again and again. I initially tried stopping the ntpd daemon. Then ran ntpdate to ...
0
votes
1answer
2k views

How to set NTP tinker step (which unit)? and how to query?

One of the workaround for old CentOS/CentOS kernel (6.1-6.3) which may "Systems hang due to leap-second livelock." (quoting redhat), is to set tinker step in /etc/ntp.conf. Bug the documentation is ...
-1
votes
1answer
120 views

when chrony sync time wtih local,why the Last Sample is not zero?

Linux version:Centos 7 chrony version :3.2 chrony.conf: driftfile /var/lib/chrony/drift local stratum 10 server localhost rtcsync makestep 1.0 3 logdir /var/log/chrony allow this picture is about ...