二.安装ceph

1.yum设置代理(本地网络需要配置代理才能上网)
vim /etc/yum.conf
proxy=http://11.32.1.20:808
2.参考“安装Ceph存储集群” 进行安装
安装yum插件
yum install yum-plugin-priorities
ceph yum源
[root@ceph1 ~]# cat /etc/yum/pluginconf.d/priorities.conf 
[main]
enabled = 1
check_obsoletes = 1

[root@ceph1 ~]# cat /etc/yum.repos.d/ceph.repo
[ceph]
name=Ceph packages for $basearch
baseurl=http://download.ceph.com/rpm-jewel/el7/x86_64/
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/x86_64/
enabled=1
priority=2
gpgcheck=1
type=rpm-md
gpgkey=https://download.ceph.com/keys/release.asc
skip_if_unavailable = 1

[ceph-source]
name=Ceph source packages
baseurl=http://download.ceph.com/rpm-jewel/el7/x86_64/
enabled=0
priority=2
gpgcheck=1
type=rpm-md
gpgkey=https://download.ceph.com/keys/release.asc
如何确定目录?
  • http://download.ceph.com/rpm-jewel/el7/x86_64/
  • 登陆到download.ceph.com/rpm-xxx 去找最新或是想要安装的版本目录
  • 截止到2016.6.28 rpm-jewel 是Ceph 最新版本 10.2.2
安装依赖包
yum install snappy leveldb gdisk python-argparse gperftools-libs
安装Ceph
yum install ceph

你可能感兴趣的:(二.安装ceph)