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

Deploying a Ceph Cluster

  1. Create a local repository.
    1. Install the tool. Perform this step only for CentOS 7.6. Skip it for openEuler 20.03.
      1
      yum -y install createrepo
      
    1. Create a /home/ecturbo_rpm directory and copy the created RPM packages to the directory.
      1
      2
      3
      mkdir /home/ecturbo_rpm 
      cp /home/rpmbuild/RPMS/aarch64/* /home/ecturbo_rpm   
      cp /home/rpmbuild/RPMS/noarch/* /home/ecturbo_rpm
      
    2. Go to /home/ecturbo_rpm and generate repodata.
      1
      2
      cd /home/ecturbo_rpm
      createrepo ./
      
    1. Go to /etc/yum.repos.d and create a my_ceph_local.repo file.
      1
      2
      cd /etc/yum.repos.d
      vim my_ceph_local.repo
      
    1. Press i to enter the insert mode and edit the my_ceph_local.repo file. Add the information of Ceph and oath.
      • On CentOS 7.6:
        1
        2
        3
        4
        5
        [myceph]
        name=myceph
        baseurl=file:///home/ecturbo_rpm
        enabled=1
        gpgcheck=0
        
      • On 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
        
    2. Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
    1. Update the Yum cache.
      1
      2
      yum clean all
      yum makecache
      
  2. Install Ceph.

    For details, see Installing the Ceph Software in the Ceph Block Storage Deployment Guide (CentOS 7.6 & openEuler 20.03).

    • In the Deployment Guide, the Ceph mirror is the official Ceph mirror, which is a Ceph RPM package that does not contain the EC Turbo feature. Therefore, you need to install Ceph using the local repository.
    • Before installing Ceph, run the yum list | grep ceph command to ensure that Ceph is installed from the local repository. In the command, myceph is the name of the repository where Ceph components are installed.
    • When installing Ceph, you may need to install other third-party software. Ensure that the network connection is normal.