[chrony-dev] Issue about chronyd synchronize to local clock |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-dev Archives
]
- To: chrony-dev <chrony-dev@xxxxxxxxxxxxxxxxxxxx>
- Subject: [chrony-dev] Issue about chronyd synchronize to local clock
- From: "xqmeng80@xxxxxxxxxxx" <xqmeng80@xxxxxxxxxxx>
- Date: Thu, 25 Jun 2020 21:54:56 +0800
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; 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=w35hV4tUrIAVjD5+rTdGTfdT57NrId0GyKpKjA5fukQ=; b=Ih5vlZSHok5ENLOkHyhm5mLASPka0pvBjW/onPNg3s/v0EPEX/2fwqlAk4W2CgEA7rgtEYbXs2hd1lTfIskIIM2ogC2SRHCXaR3pZcs5XzITB/rFg74Jg6nKcg+qNsDuHSNhI+uBydfZnErjusAB5fKI4kuiEp3O5NYRJOCT8aIatoyZuLJjKeTbSUPauBg2o87mTWSRHOH/ZU33z4BU5FgQ/4S46Sxdpwy2S/yr45fD8psGe9zlxN0j5twbYDV63ISI7TNk7SSvFUiYgf4WYXOrVbIPabxngSMUKu2Kq9Q2IkXeHptjxfZsTqwcSoqXBJovKCtR3ITC+hubljs/yw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lC3S2CNDMFAeqrzEdaJgkUomzDflHMDNus6xqMLnO8Wiv5l2yAX1+bvGqsFVR6hb5pK4LomWY+9DZMJm4KSeX9NQ+2nGAOUZiP80qWtZ1GXuZoTcE3UZXluKzrnC3jqYEWNJlr2UrxaraT2ChMCuRbOyfV01R+ikMZ6Wdv9TcfboIIRYa+u6Xs7+O2zPfvYX9Duy+oSUvZXDUpKyMHRUbElDGYjnFP/APvt9yUrIkQCH4llkqhmO8CWc/ebtMZJrvCla8SZVsWJOCZG08zTAMzGjv0ljIi595wMvmvQaXFejuvwMZpWyy9j1CrqrIDHQ5bl23iXjJUM/1kWURDUrAQ==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=w35hV4tUrIAVjD5+rTdGTfdT57NrId0GyKpKjA5fukQ=; b=pgdinWvN8BfV9E0vpV7GrpaKPOXfNtS9inQkLSjqmsGdJkpAyCjmIcp2flBFReHEIna2RaLo1DrWUKkaVzcbNBV4gkqnU1EmWuxWErwCGfS/0tSUWa+YHyKKox0bSAdgPZJJnEKPkqmPrpXNXFE5gmtH2YWTwJiraFRPTvAUfmucSGuFwRKQ/uA21WFKZOqb9M9k56DHUErQj7yD5fFzS2ZrX6YoDqeOlyoA0xrNYA0x0XlIfqVQdILKUjO9XGjcR1wZd0hAzwSAgIguSriz6/9Kw577jL2wUApPep4uwVJ5RGI8y8cPPugRniUDpK5xNBFP3OT17UZoS998ULynjA==
Hi All,
I started chronyd as a client and server, then I try to synchronize to local clock with the following configuration:
server 127.0.0.1 iburst
allow
local stratum 10
driftfile /var/lib/chrony/drift
makestep 1.0 -1
rtcsync
logdir /var/log/chrony
Every time, after several hours the NTP Synchronization status becomes No. I got the following result with timedatectl command on centos 7.
and I'm sure chronyd is running well, it can connect to localhost. But the 'NTP Synchronization status' never come back to yes. So is this a issue with chronyd or my configuration is not correct ?
[root@bogon ~]# timedatectl
Local time: Thu 2020-06-25 09:47:13 EDT
Universal time: Thu 2020-06-25 13:47:13 UTC
RTC time: Thu 2020-06-25 13:47:09
Time zone: America/New_York (EDT, -0400)
NTP enabled: yes
NTP synchronized: no