なにかの技術メモ置き場

なにかの技術メモ置き場

@インフラエンジニア

OpenStack環境構築 part04

Network Time Protocol (NTP)

コントローラノードは任意のNTPサーバを参照する。当環境では「ntp01」を使用する。
その他ノードはコントローラノードをNTPサーバとして参照する。

★図

Controller node

dnf -y install chrony
cp -p /etc/chrony.conf{,_org}
ls -l /etc/chrony.conf{,_org}
sed -i \
-e 's/pool 2.centos.pool.ntp.org iburst/server ntp01 iburst/g' \
-e 's@#allow 192.168.0.0/16@allow 172.16.0.0/24@g' \
/etc/chrony.conf
diff /etc/chrony.conf{,_org}
cat /etc/chrony.conf
systemctl enable --now chronyd.service
systemctl status --no-pager -l chronyd.service
systemctl is-active chronyd.service
systemctl is-enabled chronyd.service

Other nodes

dnf -y install chrony
cp -p /etc/chrony.conf{,_org}
ls -l /etc/chrony.conf{,_org}
sed -i \
-e 's/pool 2.centos.pool.ntp.org iburst/server ctr01 iburst/g' \
/etc/chrony.conf
diff /etc/chrony.conf{,_org}
cat /etc/chrony.conf
systemctl enable --now chronyd.service
systemctl status --no-pager -l chronyd.service
systemctl is-active chronyd.service
systemctl is-enabled chronyd.service

Verify operation

chronyc sources

参考サイト

docs.openstack.org