Home  >  Article  >  System Tutorial  >  How to manually install a Ceph cluster on CentOS 7.1

How to manually install a Ceph cluster on CentOS 7.1

WBOY
WBOYforward
2024-01-14 13:36:05489browse

Let’s go with the editor to see how to manually install ceph on centos7.1!

1. Prepare the environment

One centos7.1 host

Update yum source

[root@cgsl ]# yum -y update

2. Install the key. Add the key to your system's trusted key list to eliminate security alerts.

[root@cgsl ]# sudo rpm --import <a href="https://www.php.cn/link/bb1634f001578f89ee3eab364ed22432" rel="nofollow" target="_blank" >'https://www.php.cn/link/bb1634f001578f89ee3eab364ed22432'</a>

3. Obtain the RPM binary package. You need to add a new Ceph library in the /etc/yum.repos.d/ directory: create ceph.repo. Some Ceph packages (such as EPEL ) must be prioritized over standard packages, so you must make sure priority=2 is set.

[root@cgsl ]# vim /etc/yum.repos.d/ceph.repo
[ceph]
name=Ceph packages for $basearch
baseurl=http://download.ceph.com/rpm-jewel/el7/$basearch
enabled=1
priority=2
gpgcheck=1
type=rpm-md
gpgkey=https://www.php.cn/link/bb1634f001578f89ee3eab364ed22432

[ceph-noarch]
name=Ceph noarch packages
baseurl=http://download.ceph.com/rpm-jewel/el7/noarch
enabled=1
priority=2
gpgcheck=1
type=rpm-md
gpgkey=https://www.php.cn/link/bb1634f001578f89ee3eab364ed22432

[ceph-source]
name=Ceph source packages
baseurl=http://download.ceph.com/rpm-jewel/el7/SRPMS
enabled=0
priority=2
gpgcheck=1
type=rpm-md
gpgkey=https://www.php.cn/link/bb1634f001578f89ee3eab364ed22432

[apache2-ceph-noarch]
name=Apache noarch packages for Ceph
baseurl=http://gitbuilder.ceph.com/ceph-rpm-centos7-x86_64-basic/ref/master/SRPMS
#baseurl=http://gitbuilder.ceph.com/ceph-rpm-centos7-x86_64-basic/ref/master
enabled=1
priority=2
gpgcheck=1
type=rpm-md
gpgkey=https://download.ceph.com/keys/autobuild.asc

[apache2-ceph-source]
name=Apache source packages for Ceph
baseurl=http://gitbuilder.ceph.com/ceph-rpm-centos7-x86_64-basic/ref/master/SRPMS
#baseurl=http://gitbuilder.ceph.com/ceph-rpm-centos7-x86_64-basic/ref/master
enabled=0
priority=2
gpgcheck=1
type=rpm-md
gpgkey=https://download.ceph.com/keys/autobuild.asc

4. Download the software package Ceph relies on some third-party libraries. Execute the following command to add the EPEL library:

[root@cgsl ]# su -c 'rpm -Uvh http://download.ceph.com/rpm-jewel/el7/noarch/ceph-release-1-1.el7.noarch.rpm '

[root@cgsl ]# su -c 'rpm -Uvh https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpm '

5. Install yum-plugin-priorities.

[root@cgsl ]# yum install yum-plugin-priorities

6. Confirm that the /etc/yum/pluginconf.d/priorities.conf file exists.

[root@cgsl ]# vim /etc/yum/pluginconf.d/priorities.conf
[main]
enabled = 1

7. Install dependent software packages:

[root@cgsl ]# yum install snappy leveldb gdisk python-argparse gperftools-libs

8. Install ceph

[root@cgsl ]# yum install ceph

The above is the detailed content of How to manually install a Ceph cluster on CentOS 7.1. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:jb51.net. If there is any infringement, please contact admin@php.cn delete