OpenStack搭建Q版只属于计算节点上的环境准备(step6)

配置NTP服务

1.安装chronyd

yum install chrony -y

2.修改配置文件,使计算节点与控制节点同步时间

vim /etc/chrony.conf

注释掉下面四行:

#server 0.centos.pool.ntp.org iburst
#server 1.centos.pool.ntp.org iburst
#server 2.centos.pool.ntp.org iburst
#server 3.centos.pool.ntp.org iburst

添加:

server 192.168.0.10 iburst

3.启动chronyd服务并设置开机启动

systemctl enable chronyd.service && systemctl start chronyd.service

4.查看时间同步状态,当前同步的源为controller1  

chronyc sources

5.查看时间是否与控制节点一致

timedatectl

看到NTP synchronized: yes就说明已经同步成功了。

初版只需要准备这一个环境就够了。

猜你喜欢

转载自www.cnblogs.com/jipinglong/p/10184661.html
今日推荐