ceph 高可用集群
· 阅读需 8 分钟
ceph 搭建
基础环境配置
1. 配置网络
我这里 ceph01、ceph02、ceph03 对应的地址分别为:
192.168.75.128 192.168.75.129 192.168.75.130
2. 关闭防火墙
所有机器均关闭掉防火墙。
systemctl disable iptables
systemctl stop iptables
systemctl disable firewalld
systemctl stop firewalld
selinux 也要关闭
3. 配置加速源
所有机器均配置 yum 国内加速源:
yum install -y wget
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum clean all
yum makecache
所有机器均配置 pip 国内加速源:
mkdir ~/.pip
cat > ~/.pip/pip.conf << EOF
[global]
trusted-host=mirrors.aliyun.com
index-url=https://mirrors.aliyun.com/pypi/simple/
EOF
4. 配置主机名解析
这里配置的是部署节点到其它机器间的主机解析。
在所有节点上执行:
vim /etc/hosts 添加如下内容: # 具体的 ip 看 vpn 给分配的 ip 来填写
10.128.0.14 ceph1
10.128.0.10 ceph2
10.128.0.18 ceph3