ntpからchronyに変える

 どうやら、今時分はntpからchronyがntp クライアント・サーバの時流らしい。そこで、うちのTimeServerであるwpserverをchronyにしてみた。

$ sudo apt-get remove --purge ntp
$ sudo apt-get install chrony
$ sudo gedit /etc/chrony/chrony.conf
---
#pool ntp.ubuntu.com iburst maxsources 4
#pool 0.ubuntu.pool.ntp.org iburst maxsources 1
#pool 1.ubuntu.pool.ntp.org iburst maxsources 1
#pool 2.ubuntu.pool.ntp.org iburst maxsources 2
server ntp.nict.jp iburst
server ntp1.jst.mfeed.ad.jp iburst
server ntp2.jst.mfeed.ad.jp iburst
server ntp3.jst.mfeed.ad.jp iburst 

#For Server Conf.
allow 192.168.12.0/24
---
$ sudo service chrony restart

ntpと違うのは、allowでサーバになれるIPの範囲を指定するところです。

root@wpserver:~# chronyc sources
210 Number of sources = 4
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^- ntp-b3.nict.go.jp 1 6 35 3 -1326us[-1326us] +/- 27ms
^+ ntp1.jst.mfeed.ad.jp 2 6 17 6 -146us[-1596us] +/- 121ms
^* ntp2.jst.mfeed.ad.jp 2 6 17 5 +49us[-1402us] +/- 107ms
^+ ntp3.jst.mfeed.ad.jp 2 6 17 5 -243us[-1693us] +/- 162ms

wpserverをサーバとして同期するクライアントの設定。


$ sudo apt-get remove --purge ntp
$ sudo apt-get install chrony
$ sudo gedit /etc/chrony/chrony.conf
---
#pool ntp.ubuntu.com iburst maxsources 4
#pool 0.ubuntu.pool.ntp.org iburst maxsources 1
#pool 1.ubuntu.pool.ntp.org iburst maxsources 1
#pool 2.ubuntu.pool.ntp.org iburst maxsources 2
server wpserver iburst
---
$ sudo service chrony restart
$ chronyc sources
210 Number of sources = 1
MS Name/IP address         Stratum Poll Reach LastRx Last sample               
===============================================================================
^* wpserver                      2   6    17    22   +631ns[ +116us] +/-   26ms

トップ   編集 凍結解除 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2018-06-13 (水) 23:00:23