---
title: 部署Ceph集群
description: "1. 创建本地源。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/2400/sds/kunpengecturbo_20_0011.html
sourcePath: /source/zh/kunpengboostkithistory/2400/sds/kunpengecturbo_20_0011.html
indexId: 5d37904071a52751b9c0a638615dbef4661cc523984fc1f1686e3a31e95c65e170
---
# 部署Ceph集群

1. 创建本地源。

  a. 安装工具。本步骤仅CentOS 7.6需要执行，openEuler 20.03用户请跳过。
    1 yum -y install createrepo


  b. 创建“/home/ecturbo_rpm”目录，将生成的RPM包拷贝到该目录。
    1 2 3 mkdir /home/ecturbo_rpm cp /home/rpmbuild/RPMS/aarch64/* /home/ecturbo_rpm cp /home/rpmbuild/RPMS/noarch/* /home/ecturbo_rpm

  c. 进入“/home/ecturbo_rpm”目录，生成repodata。
    1 2 cd /home/ecturbo_rpm createrepo ./


  d. 进入“/etc/yum.repos.d”目录，创建 my_ceph_local.repo文件。
    1 2 cd /etc/yum.repos.d vim my_ceph_local.repo


  e. 按“i”进入编辑模式，编辑my_ceph_local.repo文件。添加Ceph和oath的内容。

    - CentOS 7.6：
      1 2 3 4 5 [myceph] name=myceph baseurl=file:///home/ecturbo_rpm enabled=1 gpgcheck=0

    - openEuler 20.03：
      1 2 3 4 5 6 7 8 9 10 11 [myceph] name=myceph baseurl=file:///home/ecturbo_rpm enabled=1 gpgcheck=0 [local-oath] name=local-oath baseurl=file:///home/rpm/oath enabled=1 gpgcheck=0

  f. 按“Esc”键退出编辑模式，输入:wq!后按“Enter”键保存并退出文件。

  g. 更新Yum缓存。
    1 2 yum clean all yum makecache

2. 安装Ceph。
  详细操作请参考《Ceph块存储 部署指南（CentOS 7.6&openEuler 20.03）》中的“安装Ceph(https://www.hikunpeng.com/document/detail/zh/kunpengsdss/ecosystemEnable/Ceph/kunpengcephblock_04_0004.html)”相关内容。

  部署指南中配置的Ceph镜像源为Ceph官方镜像，该镜像为不包含EC Turbo特性的Ceph RPM包，因此，需要采用本地源的方式配置。 安装Ceph前通过yum list | grep ceph命令确认从本地源安装Ceph。通过该命令可以看到安装Ceph各组件的repo名称是myceph。 安装Ceph过程中可能需要安装其他第三方软件，需要保持联网状态。
