Home > System Tutorial > LINUX > body text

How to manually install a Ceph cluster on CentOS 7.1

WBOY
Release: 2024-01-14 13:36:05
forward
544 people have browsed it

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
Copy after login

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>
Copy after login

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
Copy after login
[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
Copy after login

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 '
Copy after login

5. Install yum-plugin-priorities.

[root@cgsl ]# yum install yum-plugin-priorities
Copy after login

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

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

7. Install dependent software packages:

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

8. Install ceph

[root@cgsl ]# yum install ceph
Copy after login

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!

Related labels:
source:jb51.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template