ceph1节点:
1
hostnamectl --static set-hostname ceph1
其余节点以此类推。
client1节点:
hostnamectl --static set-hostname client1
vi /etc/hosts
1 2 3 4
192.168.3.166 ceph1 192.168.3.167 ceph2 192.168.3.168 ceph3 192.168.3.160 client1
检查服务端节点和客户节点网络是否已连接成功,正确响应即为修改域名解析文件成功。如登录ceph1节点,在ceph1节点上检查ceph1与ceph2的网络是否能连接成功。
[root@ceph1 ~]# ping ceph2
返回以下信息即表示成功。