2015-09-08 13:38:37 -05:00
|
|
|
.. _environment-ntp-other:
|
|
|
|
|
|
|
|
Other nodes
|
|
|
|
~~~~~~~~~~~
|
|
|
|
|
2015-11-11 08:49:46 -07:00
|
|
|
Other nodes reference the controller node for clock synchronization.
|
|
|
|
Perform these steps on all other nodes.
|
|
|
|
|
2015-10-05 13:39:48 -05:00
|
|
|
Install and configure components
|
|
|
|
--------------------------------
|
|
|
|
|
2015-11-11 08:49:46 -07:00
|
|
|
1. Install the packages:
|
2015-09-08 13:38:37 -05:00
|
|
|
|
2015-11-11 08:49:46 -07:00
|
|
|
.. only:: ubuntu or debian
|
2015-09-08 13:38:37 -05:00
|
|
|
|
2015-11-11 08:49:46 -07:00
|
|
|
.. code-block:: console
|
2015-09-08 13:38:37 -05:00
|
|
|
|
2016-09-28 03:13:12 +09:00
|
|
|
# apt install chrony
|
2015-09-08 13:38:37 -05:00
|
|
|
|
2016-08-24 02:46:17 +02:00
|
|
|
.. end
|
|
|
|
|
|
|
|
.. endonly
|
|
|
|
|
2015-11-11 08:49:46 -07:00
|
|
|
.. only:: rdo
|
2015-09-08 13:38:37 -05:00
|
|
|
|
2015-11-11 08:49:46 -07:00
|
|
|
.. code-block:: console
|
2015-09-08 13:38:37 -05:00
|
|
|
|
2015-11-11 08:49:46 -07:00
|
|
|
# yum install chrony
|
2015-09-08 13:38:37 -05:00
|
|
|
|
2016-08-24 02:46:17 +02:00
|
|
|
.. end
|
|
|
|
|
|
|
|
.. endonly
|
|
|
|
|
2015-11-11 08:49:46 -07:00
|
|
|
.. only:: obs
|
2015-09-08 13:38:37 -05:00
|
|
|
|
2015-11-11 08:49:46 -07:00
|
|
|
.. code-block:: console
|
2015-09-08 13:38:37 -05:00
|
|
|
|
2015-11-11 08:49:46 -07:00
|
|
|
# zypper install chrony
|
2015-09-08 13:38:37 -05:00
|
|
|
|
2016-08-24 02:46:17 +02:00
|
|
|
.. end
|
|
|
|
|
|
|
|
.. endonly
|
|
|
|
|
2015-09-08 13:38:37 -05:00
|
|
|
.. only:: ubuntu or debian
|
|
|
|
|
2015-11-11 08:49:46 -07:00
|
|
|
2. Edit the ``/etc/chrony/chrony.conf`` file and comment out or remove all
|
2015-09-08 13:38:37 -05:00
|
|
|
but one ``server`` key. Change it to reference the controller node:
|
|
|
|
|
2016-08-24 02:46:17 +02:00
|
|
|
.. path /etc/chrony/chrony.conf
|
2017-01-11 18:07:14 +01:00
|
|
|
.. code-block:: shell
|
2015-09-08 13:38:37 -05:00
|
|
|
|
|
|
|
server controller iburst
|
|
|
|
|
2016-08-24 02:46:17 +02:00
|
|
|
.. end
|
|
|
|
|
2016-10-22 04:09:28 +00:00
|
|
|
3. Comment out the ``pool 2.debian.pool.ntp.org offline iburst`` line.
|
|
|
|
|
|
|
|
4. Restart the NTP service:
|
2015-09-08 13:38:37 -05:00
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
|
|
|
# service chrony restart
|
|
|
|
|
2016-08-24 02:46:17 +02:00
|
|
|
.. end
|
|
|
|
|
|
|
|
.. endonly
|
|
|
|
|
2015-09-08 13:38:37 -05:00
|
|
|
.. only:: rdo or obs
|
|
|
|
|
2015-11-11 08:49:46 -07:00
|
|
|
2. Edit the ``/etc/chrony.conf`` file and comment out or remove all but one
|
2015-09-08 13:38:37 -05:00
|
|
|
``server`` key. Change it to reference the controller node:
|
|
|
|
|
2016-08-24 02:46:17 +02:00
|
|
|
.. path /etc/chrony.conf
|
2017-01-11 18:07:14 +01:00
|
|
|
.. code-block:: shell
|
2015-09-08 13:38:37 -05:00
|
|
|
|
|
|
|
server controller iburst
|
|
|
|
|
2016-08-24 02:46:17 +02:00
|
|
|
.. end
|
|
|
|
|
2015-11-11 08:49:46 -07:00
|
|
|
3. Start the NTP service and configure it to start when the system boots:
|
2015-09-08 13:38:37 -05:00
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
|
|
|
# systemctl enable chronyd.service
|
|
|
|
# systemctl start chronyd.service
|
2016-08-24 02:46:17 +02:00
|
|
|
|
|
|
|
.. end
|
|
|
|
|
|
|
|
.. endonly
|