赞
踩
cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
uname -a
Linux host-192-168-235-123 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
分别为每台主机修改主机名
hostnamectl set-hostnme ceph-node1
hostnamectl set-hostnme ceph-node2
hostnamectl set-hostnme ceph-node3
在ceph-node1节点修改主机名解析,复制到另外两个节点
cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.235.123 ceph-node1
192.168.235.137 ceph-node2
192.168.235.142 ceph-node3
scp /etc/hosts ceph-node2:/etc/
scp /etc/hosts ceph-node3:/etc/
3台节点都操作
systemctl d
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。