我要评分
获取效率
正确性
完整性
易理解

Booting a Cluster on ceph1

Boot a Ceph container cluster on ceph1.

  1. Boot a Ceph cluster.
    • Single node:
      1
      cephadm bootstrap --mon-ip xxip --single-host-defaults --no-minimize-config
      
    • Multiple nodes:
      1
      cephadm bootstrap --mon-ip xxip --cluster-network xxx --no-minimize-config
      

      xxx indicates the actual local IP address.

      --mon-ip specifies the IP address of the front-end network.

      --cluster-network specifies the IP address of the back-end network.

  2. Copy the public key to other nodes (if multiple nodes are used).
    ssh-copy-id -f -i /etc/ceph/ceph.pub root@ceph2
    ssh-copy-id -f -i /etc/ceph/ceph.pub root@ceph3
  3. Synchronize the local repository configuration to other nodes.
    scp /etc/containers/registries.conf ceph2:/etc/containers/
    scp /etc/containers/registries.conf ceph3:/etc/containers/
  4. Enter a Ceph cluster container.
    1
    cephadm shell
    
  5. Add hosts. (Wait for 3 to 5 minutes after the following commands are executed.)
    1
    2
    ceph orch host add ceph2 
    ceph orch host add ceph3 
    
  6. Check whether the hosts are added.
    1
    ceph orch host ls
    

  7. Check the cluster status and ensure that the other two nodes are added to the cluster.
    1
    ceph -s