配置chrony服务器
节点ip
controller:192.168.100.10
compute:192.168.100.20
配置chrony
安装配置NTP服务
在两个节点安装配置chrony
yum install chrony -y
在controller节点
vi /etc/chrony.conf
server controller iburst //所有节点向controller节点同步时间
allow 172.16.100.0/24 //设置时间同步网段
systemctl enable chronyd
systemctl restart chronyd
在compute节点
vi /etc/chrony.conf
server controller iburst
systemctl enable chronyd
systemctl restart chronyd
验证时钟同步服务
chronyc sources