ceph J版安装(手动安装)
一、准备环境
干净的centos7环境
二、获取RPM包并安装
1.更新yum
yum -y update
2.获取密钥
sudo rpm --import 'https://download.ceph.com/keys/release.asc'
3.设置ceph源,设置优先级
sudo 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://download.ceph.com/keys/release.asc
[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://download.ceph.com/keys/release.asc
4.执行下列命令添加 Ceph 依赖一些第三方EPEL 库
sudo su -c 'rpm -Uvh http://download.ceph.com/rpm-jewel/el7/noarch/ceph-release-1-1.el7.noarch.rpm '
sudo vim /etc/yum.repos.d/ceph.repo
[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://download.ceph.com/keys/release.asc
[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
5.安装 yum-plugin-priorities
sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpm
sudo yum install yum-plugin-priorities
6.确认 priorities.conf 里面打开了插件支持
sudo vim /etc/yum/pluginconf.d/priorities.conf
7.安装依赖的的软件包
sudo yum install snappy leveldb gdisk python-argparse gperftools-libs
8.安装 Ceph 软件包
sudo yum install ceph
9.查看ceph的版本
ceph -v