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