一、节点网络配置
停止网络服务(在所有节点中部署)
(1)停用管理网络:
systemctl disable NetworkManager; systemctl stop NetworkManager
(2)停用防火墙:
systemctl disable firewalld; systemctl stop firewalld setenforce 0; getenforce
sed '7c SELINUX=disabled' /etc/sysconfig/selinux
二、NTP服务部署
(一)安装软件包(在所有节点中部署)
yum install -y chrony
systemctl enable chronyd.service; systemctl start chronyd.service
**(二)配置 host 记录(在所有节点中部署)**
```bash
echo '
192.168.154.11 controller
192.168.154.12 compute1
192.168.154.13 block1
'>> /etc/hosts
(三)所有节点中使用阿里云ntp
sed -i '/^server/s/server/#server/' /etc/chrony.conf
sed -i '2a server ntpl.aliyun.com iburst' /etc/chrony.conf
systemctl restart chronyd.service
timedatectl set-timezone Asia/Shanghai
timedatectl status