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

Installing the Ceph Software

Install the Ceph software on all nodes and install the ceph-deploy tool on ceph1 to facilitate cluster deployment.

  1. Set the Yum certificate verification status on all nodes to be verification-free.
    1. Open the yum.conf file.
      1
      vi /etc/yum.conf
      
    2. Press i to enter the insert mode and add the following content to the end of the file:
      1
      2
      sslverify=false
      deltarpm=0
      
    3. Press Esc to exit the insert mode. Type :wq! and press Enter to save and exit the file.
  2. Install gperftools on all nodes.

    In the Yum repository of an openEuler LTS SP release, gperftools-libs 2.8.1 uses the source code of gperftools-libs 2.8.0, which has bugs. Therefore, the RPM package of gperftools-libs 2.8.1 cannot be used.

    You are advised to download the RPM packages of gperftools-devel-2.7.7 and gperftools-libs-2.7.7 from the Yum repository of an openEuler LTS release and configure it as the local repository.

    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 and exit the file.
  3. Install Ceph on all nodes.
    1
    2
    dnf -y install librados2-14.2.8 ceph-14.2.8
    pip install prettytable werkzeug
    

    If the installation fails, configure pip to download from Huawei Mirrors based on 3, so as to accelerate the download.

  4. Install ceph-deploy on ceph1.
    1
    pip install ceph-deploy
    
  5. Adapt ceph-deploy to openEuler.
    1. Open the __init__.py file of ceph_deploy on ceph1.
      • On openEuler 20.03:
        1
        vi /lib/python2.7/site-packages/ceph_deploy/hosts/__init__.py
        
      • On openEuler 22.03:
        1
        vi /lib/python3.9/site-packages/ceph_deploy/hosts/__init__.py
        

      The default Python version is 2.7 on openEuler 20.03 and 3.9 on openEuler 22.03.

    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 and exit the file.
  6. View the Ceph version on each node.
    1
    ceph -v
    

    The command output is as follows:

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