在ceph1上引导新集群
在ceph1上引导生成Ceph容器集群。
- 引导Ceph集群。
- 单节点
1
cephadm bootstrap --mon-ip xxip --single-host-defaults --no-minimize-config
- 多节点
1
cephadm bootstrap --mon-ip xxip --cluster-network xxx --no-minimize-config
xxx为实际使用的本地ip地址。
--mon-ip对应前端网络的ip。
--cluster-network对应后端网络的ip。
- 单节点
- 拷贝公钥到其他节点(多节点使用)。
1 2
ssh-copy-id -f -i /etc/ceph/ceph.pub root@ceph2 ssh-copy-id -f -i /etc/ceph/ceph.pub root@ceph3
- 本地仓库配置同步到其他节点。
1 2
scp /etc/containers/registries.conf ceph2:/etc/containers/ scp /etc/containers/registries.conf ceph3:/etc/containers/
- 进入Ceph集群容器。
1
cephadm shell
- 添加主机(命令执行完需等待3~5min)。
1 2
ceph orch host add ceph2 ceph orch host add ceph3
- 查看是否添加成功。
1
ceph orch host ls
- 查看集群状态,确认其他两节点加入集群。
1
ceph -s
父主题: 部署Ceph