Centos7.0 Install instance parsing of ceph of JEWEL and above

  • 2020-08-22 23:20:10
  • OfStack

background

Since rexray, the Ceph plug-in for docker, has a set requirement for the Ceph version, rexray cannot successfully create an rbd device when the Ceph version is hammer (0.94.10). CentOS 7 and above, hammer is installed by default, so we need to install a higher VERSION of jewel. Versions of Ceph are available.

The installation

For installation speed, we can choose domestic source. Domestic sources commonly used include:

Netease http: / / mirrors. 163. com/ceph USTC http: / / mirrors. ustc. edu. cn/ceph Ali http: / / mirrors. aliyun. com/ceph

Add the source

Add 1 Ceph source to yum (for example, netease source).


$ tee /etc/yum.repos.d/ceph.repo <<-'EOF'
[Ceph]
name=Ceph packages for $basearch
baseurl=http://mirrors.163.com/ceph/rpm-jewel/el7/$basearch
enabled=1
gpgcheck=0
type=rpm-md
gpgkey=https://mirrors.163.com/ceph/keys/release.asc
priority=1
jpg[Ceph-noarch]
name=Ceph noarch packages
baseurl=http://mirrors.163.com/ceph/rpm-jewel/el7/noarch
enabled=1
gpgcheck=0
type=rpm-md
gpgkey=https://mirrors.163.com/ceph/keys/release.asc
priority=1
[ceph-source]
name=Ceph source packages
baseurl=http://mirrors.163.com/ceph/rpm-jewel/el7/SRPMS
enabled=1
gpgcheck=0
type=rpm-md
gpgkey=https://mirrors.163.com/ceph/keys/release.asc
priority=1
EOF

Install dependencies


$ yum install -y yum-utils && yum-config-manager --add-repo https://dl.fedoraproject.org/pub/epel/7/x86_64/ && yum install --nogpgcheck -y epel-release && rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 && rm -f /etc/yum.repos.d/dl.fedoraproject.org* 

This step is very important. If you skip this step and go straight to the ceph installation, you will report the following error:


Error: Package: 1:ceph-common-10.2.10-0.el7.x86_64 (Ceph)
      Requires: libbabeltrace.so.1()(64bit)
Error: Package: 1:librados2-10.2.10-0.el7.x86_64 (Ceph)
      Requires: liblttng-ust.so.0()(64bit)
Error: Package: 1:librgw2-10.2.10-0.el7.x86_64 (Ceph)
      Requires: libfcgi.so.0()(64bit)
Error: Package: 1:librbd1-10.2.10-0.el7.x86_64 (Ceph)
      Requires: liblttng-ust.so.0()(64bit)
Error: Package: 1:ceph-common-10.2.10-0.el7.x86_64 (Ceph)
      Requires: libbabeltrace-ctf.so.1()(64bit)

Install Ceph

In the last step, install Ceph. Here, take Ceph-ES57en as an example:


$ yum -y install ceph-common

Verify Ceph


$ ceph --version
ceph version 10.2.10 (5dc1e4c05cb68dbf62ae6fce3f0700e4654fdbbe)

conclusion


Related articles: