By YaST I’m trying to configure an interval of synchronisation of 60 minutes for NTP.
But increasing the number of minutes from the (automatically) set 5 minutes to 60 minutes doesn’t work.
Any new setting is set back to 5 minutes when I reopen the “Advanced NTP configuration”.
Stopping NTP by “rcntp stop” doesn’t help.
The runtime configuration policy is set to “auto”
I checked the traffic with wireshark and noticed that the NT protocol is working
ceaselessly about every 1 minute (not 5).
"rcntp status" shows
remote refid st t when poll reach delay offset jitter
==============================================================================
-h1939797.strato 160.45.10.8 2 u 228 256 377 17.904 3.260 2.661
-ashe.besaid.de 131.188.3.221 2 u 237 256 377 26.201 5.834 2.211
-stratum2-4.NTP. 129.70.130.70 2 u 241 256 377 27.280 14.277 3.088
-y.ns.gin.ntt.ne 145.238.203.14 2 u 95 256 377 27.992 15.668 3.727
+ptbtime1.ptb.de .DCFp. 1 u 95 256 377 15.387 10.750 2.493
*ptbtime2.ptb.de .PTB. 1 u 31 256 377 16.386 12.954 3.941
+ptbtime3.ptb.de .DCFp. 1 u 25 256 377 14.678 8.442 2.766
Checking for network time protocol daemon (NTPD): running
ntp.service - LSB: Network time protocol daemon (ntpd)
Loaded: loaded (/etc/init.d/ntp)
Drop-In: /run/systemd/generator/ntp.service.d
└─50-insserv.conf-$time.conf
Active: active (running) since So 2014-08-10 16:56:24 CEST; 1h 7min ago
Process: 756 ExecStart=/etc/init.d/ntp start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/ntp.service
└─828 /usr/sbin/ntpd -p /var/run/ntp/ntpd.pid -g -u ntp:ntp -i /var/lib/ntp -c /etc/ntp.conf
su - -c "grep -v '^#' /etc/ntp.conf" shows
driftfile /var/lib/ntp/drift/ntp.drift
logfile /var/log/ntp
keys /etc/ntp.keys
trustedkey 1
requestkey 1
server de.pool.ntp.org iburst
server 1.de.pool.ntp.org iburst
server 2.de.pool.ntp.org iburst
server 3.de.pool.ntp.org iburst
server ptbtime1.ptb.de iburst
server ptbtime2.ptb.de iburst
server ptbtime3.ptb.de iburst
I thought I probably could change the value by editing a file by hand
but I couldn’t find the minutes value at “ntp.conf” or somwhere else
in the ntp folders.
>
> I don’t think you understand how ntpd works, so I’ll just make you read
> things because it’s better to learn this way;
> http://www.ntp.org/ntpfaq/NTP-s-algo.htm
>
> The “sync time” is only used when you choose the Syncronize without
> Daemon setting.
>
Oh, I see. Thanks for attending to my problem and for the link.
On 2014-08-10 18:36, mawi wrote:
>
> By YaST I’m trying to configure an interval of synchronisation of 60
> minutes for NTP.
> But increasing the number of minutes from the (automatically) set 5
> minutes to 60 minutes doesn’t work.
…
> I checked the traffic with wireshark and noticed that the NT protocol is
> working
> ceaselessly about every 1 minute (not 5).
Because you are using the daemon. The daemon does mostly its own
choices, and will probably connect very often at the start, and very
seldom once the clock is disciplined.
I would simply leave the configs at defaults, till you read all the
documentation and understand it
(well, of course, you have to add servers names to use)
–
Cheers / Saludos,
Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)
> …
> Because you are using the daemon. The daemon does mostly its own
> choices, and will probably connect very often at the start, and very
> seldom once the clock is disciplined.
>
>
> I would simply leave the configs at defaults, till you read all the
> documentation and understand it
>
> …
I will - I simply thought I caused unnecessary traffic for
the time servers and wanted to test out a barely sufficient
access frequency. Because of the basic misunderstanding
you and Miuku pointed out I wrongly supposed a handling error.
Thanks for your attention.
On 2014-08-10 23:53, mawi wrote:
> Carlos E. R. wrote:
> I will - I simply thought I caused unnecessary traffic for
> the time servers and wanted to test out a barely sufficient
> access frequency. Because of the basic misunderstanding
> you and Miuku pointed out I wrongly supposed a handling error.
> Thanks for your attention.
Ah, I see. No, you are not the first one that has the same idea - I did,
time ago
I suggest you configure “/etc/ntp.conf” like this:
server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org
server 0.ch.pool.ntp.org
server 0.fr.pool.ntp.org
server 0.uk.pool.ntp.org
server 0.es.pool.ntp.org
You can use the two letter code for your country. All the servers in
“pool.ntp.org” should be happy for users to “use” them, or they would
simply not be listed in the pool. And the traffic is really very small:
the client gets a time and goes away for a time, which with /time/
becomes long (how many times did I write time? ). So the load on
servers is quite small.
If you don’t have a permanent connection to internet, or you power up
intermittently, then it can make sense to sync now and then. I have my
laptop sync once when it gets an internet connection. Or it could be
setup in cron hourly.
I can share my method if you want.
–
Cheers / Saludos,
Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)
> …
> You can use the two letter code for your country.
> All the servers in
> “pool.ntp.org” should be happy for users to “use” them, or they would
> simply not be listed in the pool. And the traffic is really very small:
> …
So I feel fine with the daemon and will stick to it for now.
> I suggest you configure “/etc/ntp.conf” like this:
>
>
> server 0.pool.ntp.org
> server 1.pool.ntp.org
> server 2.pool.ntp.org
>
> server 0.ch.pool.ntp.org
> server 0.fr.pool.ntp.org
> server 0.uk.pool.ntp.org
> server 0.es.pool.ntp.org
>
On the first glance I don’t see a significant difference to my configuration
server de.pool.ntp.org
server 1.de.pool.ntp.org
server 2.de.pool.ntp.org
server 3.de.pool.ntp.org
server ptbtime1.ptb.de
server ptbtime2.ptb.de
server ptbtime3.ptb.de
> If you don’t have a permanent connection to internet, or you power up
> intermittently, then it can make sense to sync now and then. I have my
> laptop sync once when it gets an internet connection. Or it could be
> setup in cron hourly.
>
> I can share my method if you want.
I’ve got a permanent connection which is fast enough, so referring to the
parameters you describe an adjustment obviously doesn’t make sense.
But as I said I’ll read about NTP and if I change my configuration after
that to a sync now and then I would appreciate if I could refer to your
offer.