ceph-deploy 部署 ceph nautilus 版本

ceph-deploy 部署 ceph nautilus 版本

环境

操作系统:CentOS7.6.1810

ceph:ceph nautilus

公共部分

  • 配置 hosts

    tee -a /etc/hosts << EOF
    192.168.200.11 node1
    192.168.200.12 node2
    192.168.200.13 node3
    EOF
  • 安装源

    yum -y install epel-release
    yum install -y https://download.ceph.com/rpm-nautilus/el7/noarch/ceph-release-1-0.el7.noarch.rpm
  • 安装时间同步 chrony

    yum install -y chrony
    systemctl restart chronyd
    systemctl enable chronyd
  • 安装 ceph-deploy

    yum install -y ceph-deploy
  • 安装其它软件包

    yum install -y crudini
  • 配置节点互相

    ssh-keygen
    ssh-copy-id node1
    ssh-copy-id node2
    ssh-copy-id node3
  • 防火墙放行端口

    firewall-cmd --zone=public --add-service=ceph-mon
    firewall-cmd --zone=public --add-service=ceph-mon --permanent
    firewall-cmd --zone=public --add-service=ceph
    firewall-cmd --zone=public --add-service=ceph --permanent
  • 关闭 SeLinux

    setenforce 0

创建集群

  • 创建临时工作目录

  • 清理环境

    当安装失败并且想重新开始,请执行一下命令清理 ceph 软件包,数据及配置

  • 创建集群

  • 修改配置文件

  • 安装软件包

  • 部署初始监视器并收集密钥

  • 复制客户端管理密钥,以便使用 ceph cli

  • 添加 MGR

  • 添加 OSD

  • 添加 MON

  • 添加 MDS

  • 添加 RGW

最后更新于