[chrony-users] Can't synchronise: no majority |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: "chrony-users@xxxxxxxxxxxxxxxxxxxx" <chrony-users@xxxxxxxxxxxxxxxxxxxx>
- Subject: [chrony-users] Can't synchronise: no majority
- From: Niko Delarich <ndelarich@xxxxxxxxxx>
- Date: Wed, 25 Mar 2020 13:22:11 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=loytec.com; dmarc=pass action=none header.from=loytec.com; dkim=pass header.d=loytec.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hFHAnPMI5aLkJ7Y8DsmOmUVCz+9amsGRR1tLjE/jukU=; b=eQw/s9bzJ9AKWQ1jWC8b/GWcAIv+tWk8QXB+r1IH+W5wxQHq4i5z76LmtjyZHoURN8p1+tk1MMwQ22IGHtz6DzwUIUAx54dnl3kW+5Xmao5jTVsf7uW8f8m6aEUvnT0pXdgNbai8mfQ20vTA1kXD/FFXtA50rvxggSR1SEwLFqsR+mHh+L5VxXuhfFMuzUw/KKUWk2itYaBMNX6CIRYLhyrJgrPoS/UnnUhxXCOsBlqGd8A93T0KAKxIUxJT/JPkHyNi/m1WjizR5CvkIKEUgkzOeBzCEHnZuBG6w+RLgNE0Ts4tJ6PvJJl96KIDCkwOvKSf9ESuGyML8DiKqPiRYg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Jdt1ouXkfADTRSQDWlg9Ll79kC3IJ/8N0e6w7/APuR+Nwz9MOqf8niabnJwzAs9vSq6X2t9zkgCEahyfbA0kzkWwaqV6zN6Ziq3+yPrMkC4Z8RdCS7PHcM+RYNIktS/5pbf/XEHoji2daWqoxqIxenSSf0T26O05F8JZMQCrIFLWC5ctXizKuCIFfh0ewsmtjo1mIeKBsmiCVX7PMDBBUX0rMzNIMSYchYcHH2sV65uhLpF691PHhy6Pjcc6xbDvAAjrMGLnJHUuEY5Jo0wDCDVs+zLNEioUKcrQSlhRmJMMK6JCqTA5Lqrzsh05WAduEQmLSYQzdJ9zlyl2aN0aIg==
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=ndelarich@xxxxxxxxxx;
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=loytec.com; s=Delta2019; t=1585142534; bh=hFHAnPMI5aLkJ7Y8DsmOmUVCz+9amsGRR1tLjE/jukU=; h=From:To:Date; b=VMOOGodSbZOU7vL5KZEShqshM7JQ55036CyX1Eaa1nD3t1GpXA8ScZtmthPYkfOWy 11bzdA4/QW1l0eGTwrbPN3gLq57OPUN/Ma6SCqGcjJffkcx5i39kIg6rEDveGISsK0 yz7E3YuQiBVGDNXLuTdd/wTQx21yMQGRqtJuwv0U=
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=DeltaO365.onmicrosoft.com; s=selector1-DeltaO365-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hFHAnPMI5aLkJ7Y8DsmOmUVCz+9amsGRR1tLjE/jukU=; b=FdDoYTeMTTXB1qBZAeFs1XLFRfcLl6Qrgx+yLHNLte/fDVdXexz+A5NjFnkzpcxdyeCnnWpWLPU8fAEgXU3Kcy3y0UkGnuc7/BnbXtqjtiLqgnWHoEjO1v8R53bP5boudr4TTdRxyX2nO+YQQvCMaYrwfYXKlsllVZpDvB6OK/g=
- Thread-index: AdYCp8+z3831PjiCQ56ikQLoQDOrnw==
- Thread-topic: Can't synchronise: no majority
Hi,
we use chrony 3.5 in an embedded network device (Linux 4.4.122 armv7l).
In some of our customers installations we've noticed that chrony is sometimes unable to synchronize correctly if the two configured NTP servers don't agree on a time (i.e. the source intervals don't overlap).
In one specific case the customer has two NTP servers:
#1: Windows Server 2012 R2 NTP Server (Stratum 14) running in a VM (yes, I know - probably not a good idea)
#2: Cisco router with NTP server (Stratum 3)
chronyc sources:
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^x <server 1> 14 7 377 90 +1518us[+1518us] +/- 23ms
^x <server 2> 3 10 377 248 -248ms[ -248ms] +/- 66ms
chronyc sourcestats:
Name/IP Address NP NR Span Frequency Freq Skew Offset Std Dev
==============================================================================
<server1> 13 7 25m +0.090 1.386 +2099us 543us
<server2> 7 5 102m -41.170 0.662 -258ms 371us
After comparing the source intervals, the "Can't synchronise: no majority" message is emitted if the two servers don't agree on a time.
sources.c:907
Could not even get half the reachable sources to agree and there are no trusted sources - clearly we can't synchronise
I know the situation is not ideal and the customer should probably just use better servers but shouldn't chrony just pick the "better" of the two servers in this case (#2 with stratum 3)?
There's a comment in sources.c:869 which seems to indicate it should:
The first case is just bad luck - we need extra sources to
detect the falseticker, so just make an arbitrary choice based
on stratum & stability etc.
Or is there maybe a configuration option I'm missing? Setting one of the sources to "trusted" manually is most likely not an option for us since the servers may be assigned by a DHCP server.
Thanks for your help,
Niko
------------
Niko Delarich
Product Manager
LOYTEC electronics GmbH
--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.