一、ceph安装
1 前期准备
本次安装环境为:
ceph1(集群命令分发管控,提供磁盘服务集群) | CentOS7.5 | 192.168.3.61 |
---|---|---|
ceph2(提供磁盘服务集群) | CentOs7.5 | 192.168.3.62 |
ceph3(提供磁盘服务集群) | CentOs7.5 | 192.168.3.63 |
2 编辑hosts文件,增加以下内容
# ceph1-master and ceph1-osd1
192.168.3.61 ceph1
# ceph2-osd2
192.168.3.62 ceph2
# ceph3-osd3
192.168.3.63 ceph3
3 ceph是通ssh下发指令。
首先配置管理节点可以无密码访问存储节点,生成密钥,并建立touch authorized_keys文件(在ceph1操作)
ssh-keygen -t rsa # 生成公钥及私钥
touch /root/.ssh/authorized_keys
cat /root/.ssh/id_rsa.pub > /root/.ssh/authorized_keys
chmod 700 /root/.ssh
chmod 644 /root/.ssh/authorized_keys
# 将密钥拷贝到其他主机
ssh-copy-id ceph2
ssh-copy-id ceph3
# 关闭防火墙及安全选项,所有节点
egrep -v "^$|^#" /etc/sel