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

Installing Ceph

Install Ceph on all server and client nodes.

  1. Set the Yum certificate verification status of all server nodes and client nodes to verification-free.
    1. Open the following file:
      1
      vi /etc/yum.conf
      
    1. Press i to enter the insert mode and add the following content to the end of the file:
      1
      2
      sslverify=false
      deltarpm=0
      
    2. Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
  2. (Optional) Configure the local source of gperftools on all server and client nodes.
    1. Download the RPM packages of gperftools-devel-2.7.7 and gperftools-libs-2.7.7.
      1
      2
      3
      4
      mkdir -p /home/gperftools-2.7-7 && cd /home/gperftools-2.7-7
      wget --no-check-certificate  https://repo.openeuler.org/openEuler-20.03-LTS/OS/aarch64/Packages/gperftools-devel-2.7-7.oe1.aarch64.rpm
      wget --no-check-certificate  https://repo.openeuler.org/openEuler-20.03-LTS/OS/aarch64/Packages/gperftools-libs-2.7-7.oe1.aarch64.rpm
      createrepo .
      
    2. Open the /etc/yum.repos.d/openEuler.repo file.
      vi /etc/yum.repos.d/openEuler.repo
    3. Press i to enter the insert mode and add the following content to the end of the file:
      1
      2
      3
      4
      5
      6
      [gperftools-2.7-7]
      name=gperftools-2.7-7
      baseurl=file:///home/gperftools-2.7-7
      enabled=1
      gpgcheck=0
      priority=1
      
    4. Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
  3. Install the RDMA dependency packages on all server and client nodes.
    yum install libibverbs-devel rdma-core-devel numactl-devel -y
  4. Install the UCX RPM packages on all server and client nodes. (Place the RPM packages generated in 4.1 on each node.)
    1
    2
    3
    4
    5
    6
    7
    8
    rpm -ivh ucx-1.14.1-1.aarch64.rpm
    rpm -ivh ucx-cma-1.14.1-1.aarch64.rpm
    rpm -ivh ucx-debuginfo-1.14.1-1.aarch64.rpm
    rpm -ivh ucx-debugsource-1.14.1-1.aarch64.rpm
    rpm -ivh ucx-devel-1.14.1-1.aarch64.rpm
    rpm -ivh ucx-ib-1.14.1-1.aarch64.rpm
    rpm -ivh ucx-rdmacm-1.14.1-1.aarch64.rpm
    rpm -ivh ucx-static-1.14.1-1.aarch64.rpm
    
  5. Save the Ceph RPM package with UCX enabled (generated in 4.2.2) to /home/ceph-ucx and configure the local source.
    Run the vi /etc/yum.repos.d/local.repo command, add the following content to the end of the file, save the file, and exit:
    [ceph-ucx]
    name=ceph-ucx
    baseurl=file:///home/ceph-ucx
    enabled=1
    gpgcheck=0
    priority=1
  6. Install Ceph on all server and client nodes.
    1
    2
    dnf -y install librados2-14.2.8 ceph-14.2.8
    pip install prettytable werkzeug
    

    If Ceph fails to be installed, configure a network proxy.

    During Ceph installation, verify that the version of gperftools is 2.7-7.

  7. Install ceph-deploy on ceph1.
    1
    pip install ceph-deploy
    
  8. Add the adaptation to openEuler.
    1. Open the /lib/python2.7/site-packages/ceph_deploy/hosts/__init__.py file on ceph1.
      1
      vi /lib/python2.7/site-packages/ceph_deploy/hosts/__init__.py
      
    2. Press i to enter the insert mode and add the following code to the _get_distro function:
      'openeuler':fedora,

    3. Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
  9. Run the following command on each node to check the Ceph version:
    1
    ceph -v
    

    If the following information is displayed, the installation is successful.

    1
    ceph version 14.2.8 (2d095e947a02261ce61424021bb43bd3022d35cb) nautilus (stable)