Centos7.1 manual installation of ceph

Source: Internet
Author: User

Centos7.1 manual installation of ceph

1. Prepare the environment
One centos7.1 host
Update yum Source

[root@cgsl ]# yum -y update

2. Install the key and add it to the trusted Key List of your system to eliminate security alarms.

[root@cgsl ]# sudo rpm --import 'https://download.ceph.com/keys/release.asc'

3. To obtain the RPM Binary Package, you need to add a Ceph library in the/etc/yum. repos. d/directory: Create ceph. repo. Some Ceph packages (such as EPEL) must take precedence over standard packages, so you must ensure that priority = 2 is set.

[root@cgsl ]# vim /etc/yum.repos.d/ceph.repo
[ceph]name=Ceph packages for $basearchbaseurl=http://download.ceph.com/rpm-jewel/el7/$basearchenabled=1priority=2gpgcheck=1type=rpm-mdgpgkey=https://download.ceph.com/keys/release.asc[ceph-noarch]name=Ceph noarch packagesbaseurl=http://download.ceph.com/rpm-jewel/el7/noarchenabled=1priority=2gpgcheck=1type=rpm-mdgpgkey=https://download.ceph.com/keys/release.asc[ceph-source]name=Ceph source packagesbaseurl=http://download.ceph.com/rpm-jewel/el7/SRPMSenabled=0priority=2gpgcheck=1type=rpm-mdgpgkey=https://download.ceph.com/keys/release.asc[apache2-ceph-noarch]name=Apache noarch packages for Cephbaseurl=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/masterenabled=1priority=2gpgcheck=1type=rpm-mdgpgkey=https://download.ceph.com/keys/autobuild.asc[apache2-ceph-source]name=Apache source packages for Cephbaseurl=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/masterenabled=0priority=2gpgcheck=1type=rpm-mdgpgkey=https://download.ceph.com/keys/autobuild.asc

4. The downloaded software package Ceph depends on some third-party libraries. Run 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. Check whether the/etc/yum/pluginconf. d/priorities. conf file exists.

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

7. Install the dependent software package:

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

8. Install ceph

[root@cgsl ]# yum install ceph

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.