{"id":6692,"date":"2017-05-08T12:38:44","date_gmt":"2017-05-08T04:38:44","guid":{"rendered":"http:\/\/rmohan.com\/?p=6692"},"modified":"2017-05-08T12:38:44","modified_gmt":"2017-05-08T04:38:44","slug":"centos-rhel-7-how-to-sync-chrony-to-local-clock","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=6692","title":{"rendered":"CentOS \/ RHEL 7 : How to sync chrony to local clock"},"content":{"rendered":"<p>Question : How to sync chrony to the local clock.<\/p>\n<p>Answer :<br \/>\nWhen the chrony service starts, there are some settings in the \/etc\/chrony\/chrony.conf file that tells it to actually set the time if specific conditions occur. Below procedure lts you set the local clock as the source for chrony to synchronize the time.<\/p>\n<p>1. Currently the chrony does not sync to local clock and \u2018chronyc sources\u2019 command gives the following result :<\/p>\n<p># chronyc sources<br \/>\n210 Number of sources = 1<br \/>\nMS Name\/IP address         Stratum Poll Reach LastRx Last sample<br \/>\n===============================================================================<br \/>\n^? localhost<br \/>\n2. Edit \/etc\/chrony.conf to add the settings below. The configuration file needs atleast 3 of the below entries to have a local clock synchronization.<\/p>\n<p># vi \/etc\/chrony.conf<br \/>\nserver 127.127.1.0<br \/>\nallow 127.0.0.0\/8<br \/>\nlocal stratum 10<br \/>\n3. Restart chronyd service<\/p>\n<p># systemctl restart chronyd.service<br \/>\n4. Verify the status of chrony synchronization<\/p>\n<p># chronyc sources<br \/>\n210 Number of sources = 1<br \/>\nMS Name\/IP address         Stratum Poll Reach LastRx Last sample<br \/>\n===============================================================================<br \/>\n^* 127.127.1.0                  15   6   377    42  -4471ns[  -13us] +\/-  204us<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Question : How to sync chrony to the local clock.<\/p>\n<p>Answer : When the chrony service starts, there are some settings in the \/etc\/chrony\/chrony.conf file that tells it to actually set the time if specific conditions occur. Below procedure lts you set the local clock as the source for chrony to synchronize the time.<\/p>\n<p>1. [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6692"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6692"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6692\/revisions"}],"predecessor-version":[{"id":6693,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6692\/revisions\/6693"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6692"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6692"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6692"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}