在ceph1上引导生成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/ |
1
|
cephadm shell
|
1 2 |
ceph orch host add ceph2 ceph orch host add ceph3 |
1
|
ceph orch host ls |
1
|
ceph -s
|