Rate This Document
Findability
Accuracy
Completeness
Readability

Deploying the Cluster

Prerequisites

  • All the OSs must support the Python 3.x environment.
  • The basic environment image source, password-free, and NTP service configurations have been completed.

    For details, see "Configuring the Deployment Environment" in Ceph Block Storage Deployment Guide.

  • The following dependencies have been installed: pyOpenSSL, werkzeug, and prettytable. If not, run the following command to install:
    1
    2
    3
    pip3 install --upgrade pip
    pip3 install  setuptools_rust
    pip3 install pyOpenSSL werkzeug prettytable
    
  • A Ceph user has been created. If not, run the following commands to create a user:
    1
    2
    echo 'ceph:x:167:' >> /etc/group
    echo 'ceph:x:167:167:Ceph daemons:/var/lib/ceph:/sbin/nologin' >> /etc/passwd
    

Deploying a Ceph Cluster

  1. Copy the compiled RPM package to the /home/local_ceph directory.
    1
    2
    mkdir /home/local_ceph
    cp -r /root/rpmbuild/RPMS/*  /home/local_ceph/
    
  2. Create a local source.
    1. Create a repo source.
      cd /home/local_ceph
      createrepo .
    2. Create a local_ceph.repo file.
      1
      vi /etc/yum.repos.d/local_ceph.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
      [local_ceph]
      name=local_ceph
      baseurl=file:///home/local_ceph
      enable=1
      gpgcheck=0
      
    4. Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
  3. Generate the local Yum cache.
    1
    yum clean all && yum makecache
    
  4. Install the dependencies.
    yum install -y python-sphinx rdma-core-devel systemd-devel openldap-devel leveldb-devel snappy-devel lz4-devel curl-devel expat-devel liboath-devel lttng-ust-devel libbabeltrace-devel python3-Cython fuse-devel libnl3-devel libaio-devel gperf librabbitmq-devel gperftools libcap-ng-devel
  5. Check whether the installation is successful.
    yum repolist

    The command output displays the list of installed dependencies.

  6. Install Ceph.
    yum install -y ceph-14.2.8

    Check the Ceph version. If the version is 14.2.8, the installation is successful.

    1
    ceph -v
    

  7. Deploy MON and MGR nodes.

    For details, see "Deploying MON Nodes" and "Deploying MGR Nodes" in Ceph Block Storage Deployment Guide.

    In the deployment guide, the Ceph image source is the official Ceph image, which is a Ceph RPM package that does not contain new features. Therefore, you need to use the local source to configure the compiled RPM package.

  8. Deploy OSD nodes.

    For details, see "Deploying OSD Nodes" in Ceph Block Storage Deployment Guide.